Comments (9)
Sure thing, here you go /home/tomasz/.opam/4.06.1/lib/stublibs:/home/tomasz/.opam/4.06.1/lib/ocaml/stublibs:/home/tomasz/.opam/4.06.1/lib/ocaml
from reprocessing-example.
@bsansouci looks like that global ocaml issue again?
@LastShadowPL you said you went through #8, do you have a global ocaml/opam install?
from reprocessing-example.
To make sure I reinstalled both opam and ocaml.
First I installed the ocaml with sudo apt install ocaml
, then I downloaded the opam's source code from https://github.com/ocaml/opam/releases and built it according to the guide
./configure --prefix=/home/tomasz/.opam
make lib-ext
make
sudo make install
opam init
I used sudo
with the make install
, because I ran into errors:
Creating directory /home/tomasz/.opam/doc/opam-core
[ERROR] Failure during install
./opam-installer: "mkdir" failed on /home/tomasz/.opam/doc/opam-core: Permission denied
make: *** [Makefile:133: installlib-core] Error 1
rm opam-core.install
Now when running the npm run build
I get something like this:
> reprocessing-example@ build /home/tomasz/Desktop/projects/cp-flow
> bsb -make-world
ninja: no work to do.
[1/1] Building run_build_script
[1/1] Building run_build_script
[1/1] Building run_build_script
[1/1] Building run_build_script
Fatal error: exception Unix.Unix_error(Unix.EPERM, "utimes", "/home/tomasz/Desktop/projects/cp-flow/node_modules/Tgls/lib/ocaml/bytecode/tgls_new.cmi")
from reprocessing-example.
Now I followed this guide from http://ocaml.org/docs/install.html#OPAM :
# environment setup
opam init
eval `opam env`
# install given version of the compiler
opam switch create 4.06.1
eval `opam env`
# check you got what you want
which ocaml
ocaml -version
Here's the which ocaml
output: /home/tomasz/.opam/4.06.1/bin/ocaml
And here's the the error:
> reprocessing-example@ build /home/tomasz/Desktop/projects/cp-flow
> bsb -make-world
ninja: no work to do.
[1/1] Building run_build_script
[1/1] Building run_build_script
[1/1] Building run_build_script
[1/1] Building run_build_script
[1/4] Building src/RGLInterface.mlast
FAILED: src/RGLInterface.mlast
/home/tomasz/Desktop/projects/cp-flow/node_modules/bs-platform/lib/bsc.exe -pp "/home/tomasz/Desktop/projects/cp-flow/node_modules/bs-platform/lib/refmt3.exe --print binary" -bs-super-errors -w -30-40+6+7+27+32..39+44+45+101-44 -bs-D BSB_BACKEND="bytecode" -nostdlib -I '/home/tomasz/Desktop/projects/cp-flow/node_modules/bs-platform/lib/ocaml' -no-alias-deps -color always -c -o src/RGLInterface.mlast -bs-syntax-only -bs-simple-binary-ast -bs-binary-ast -impl /home/tomasz/Desktop/projects/cp-flow/node_modules/Reasongl/src/RGLInterface.re
File "/home/tomasz/Desktop/projects/cp-flow/node_modules/Reasongl/src/RGLInterface.re", line 217, characters 6-7:
Error: 337: <UNKNOWN SYNTAX ERROR>
We've found a bug for you!
/home/tomasz/Desktop/projects/cp-flow/node_modules/Reasongl/src/RGLInterface.re
There's been an error running Reason's refmt parser on a file.
This was the command:
/home/tomasz/Desktop/projects/cp-flow/node_modules/bs-platform/lib/refmt3.exe --print binary '/home/tomasz/Desktop/projects/cp-flow/node_modules/Reasongl/src/RGLInterface.re' > /tmp/ocamlpp534e7d
Please file an issue on github.com/facebook/reason. Thanks!
ninja: error: rebuilding 'build.ninja': subcommand failed
Failure: /home/tomasz/Desktop/projects/cp-flow/node_modules/bs-platform/lib/ninja.exe
Location: /home/tomasz/Desktop/projects/cp-flow/node_modules/Reasongl/lib/bs/bytecode
from reprocessing-example.
Hey! Awesome that you got this far, I think turning off opam is the simplest way to get around this issue. That being said, the project you forked uses an older version of bsb-native. If you bump that to be โbsb-nativeโ: โ4.0.7000โ and also make reprocessing be the latest version, it should build better.
from reprocessing-example.
Sorry about the misunderstanding! To be more clear, as ben said, the current release of bsb-native has a known issue where it sometimes doesn't work with a global opam install because of some env vars that opam shoves in your env that confuse the compiler :) (we actually found a fix last night and we're working on making a release)
from reprocessing-example.
Hi there. I'm sorry to bother you again, but I updated the bsb-native
(global install) to the version 4.0.7000
and linked it in the cloned dir (npm link bsb-native
). Now I'm getting this error when running npm run build
:
> reprocessing-example@ build /home/tomasz/Desktop/projects/cp-flow
> bsb -make-world
[2/2] Building fake_src/sdl_index.mlast.d
[2/2] Building lib.cma
[4/4] Running build_script
Fatal error: cannot load shared library dllunix
Reason: /home/tomasz/.opam/4.06.1/lib/ocaml/stublibs/dllunix.so: undefined symbol: caml_ba_element_size
ninja: error: rebuilding 'build.ninja': subcommand failed
Failure: /home/tomasz/.npm/lib/node_modules/bsb-native/lib/ninja.exe
Location: /home/tomasz/Desktop/projects/cp-flow/node_modules/Tsdl/lib/bs/bytecode
from reprocessing-example.
I got rid of the last error by installing the flexdll
lib. sudo apt install flexdll
.
Thanks for the help :)
from reprocessing-example.
Wow ok, that's interesting! Could you print out the value of your env variable: CAML_LD_LIBRARY_PATH
from where you were building the app?
I'm going to re-open because this is the issue that we're working on fixing, so you don't have to install anything else. I'm glad you were able to make it work though haha.
from reprocessing-example.
Related Issues (20)
- Running `npm run build` fails on OS X HOT 6
- Is Raspberry PI Supported? HOT 4
- indexhot.byte not working in Windows 10 HOT 4
- `npm run start:native` and `npm run start` fail with "That operation is not supported" HOT 16
- js files get placed in src/, not in lib/js/src HOT 2
- Inconsistent assumptions error in merlin
- Web and native examples fail with runtime exception Not_found accessing hashtable
- Ubuntu 16.04 x86_64 failure HOT 7
- Add github template functionnality to this repo HOT 2
- Fresh install issues Ubuntu 18.04 HOT 6
- Issues on Sway (Wayland) HOT 7
- Conflict with global bs-platform HOT 10
- Issue with setup (tgls_bindings.a not found)
- submitting fixes for 2048 and livestream-flappybird branch HOT 1
- Firefox 58.0.1 64 bit Ubuntu 16.04 64 bit HOT 18
- Example fails because of library naming issues HOT 1
- Mention that you are using python 2 in the readme HOT 1
- Does not build properly on OpenSUSE 42.2, npm version 5.6.0 HOT 3
- Unable to run `npm run build` on Ubuntu 17.10 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from reprocessing-example.