Open vijaybritto opened 4 years ago
I'm trying to build revery-quick-start in my system but it fails while building reason-sdl2. Any guidance would be much appreciated. Here's the log:
info esy build 0.6.2 (using package.json) info building reason-sdl2@2.10.3010@d41d8cd9 error: build failed with exit code: 1 build log: # esy-build-package: building: reason-sdl2@2.10.3010 # esy-build-package: pwd: /home/vijay/.esy/source/i/reason_sdl2__2.10.3010__dae8935c # esy-build-package: running: 'dune' 'build' '--root' '.' File "dune", line 1, characters 17-31: 1 | (ignored_subdirs (node_modules)) ^^^^^^^^^^^^^^ Warning: ignored_subdirs is deprecated in 1.6. Use dirs to specify visible directories or data_only_dirs for ignoring only dune files. js_of_ocaml bin_js/test_sdl2.bc.runtime.js warning: free variables in primitive code "caml_glGetString" (/home/vijay/.esy/3/b/reason_sdl2-2.10.3010-037a6d51/default/bin_js/../src/gl_stubs.js:23) vars: caml_js_to_string code providing caml_glGetString (/home/vijay/.esy/3/b/reason_sdl2-2.10.3010-037a6d51/default/bin_js/../src/gl_stubs.js:23) may miss dependencies: caml_js_to_string gcc src/sdl2_wrapper.o (exit 1) (cd /home/vijay/.esy/3/b/reason_sdl2-2.10.3010-037a6d51/default/src && /usr/bin/gcc -I /home/vijay/.esy/3____________________________________________________________________/i/ocaml-4.7.1004-a6ae015e/lib/ocaml -I /home/vijay/.esy/3____________________________________________________________________/i/opam__s__lwt-opam__c__4.4.0-185b2924/lib/lwt -I /home/vijay/.esy/3____________________________________________________________________/i/opam__s__ocamlfind-opam__c__1.8.1-3176721a/lib/bytes -I /home/vijay/.esy/3____________________________________________________________________/i/opam__s__result-opam__c__1.4-35a3271d/lib/result -I /home/vijay/.esy/3____________________________________________________________________/i/opam__s__seq-opam__c__base-37652505/lib/seq -I /home/vijay/.esy/3____________________________________________________________________/i/reason_gl_matrix-0.9.9306-c198df5b/lib/reglm -I /home/vijay/.esy/3____________________________________________________________________/i/esy_sdl2-2.0.10004-5d8a4274/include -I /home/vijay/.esy/source/i/reason_sdl2__2.10.3010__dae8935c/include -I /home/vijay/.esy/source/i/reason_sdl2__2.10.3010__dae8935c/src -fPIC -std=c++11 -g -o sdl2_wrapper.o -c sdl2_wrapper.cpp) sdl2_wrapper.cpp: In function 'value resdl_SDL_GetNativeWindow(value)': sdl2_wrapper.cpp:189:41: error: 'union SDL_SysWMinfo::<unnamed>' has no member named 'x11' pNativeWindow = (void *)wmInfo.info.x11.window; ^~~ error: command failed: 'dune' 'build' '--root' '.' (exited with 1) esy-build-package: exiting with errors above... building reason-sdl2@2.10.3010 esy: exiting due to errors above
This is due to you not having the development packages for XOrg/X11. Check out Revery's "Build and Run" for the required packages!
I'm trying to build revery-quick-start in my system but it fails while building reason-sdl2. Any guidance would be much appreciated. Here's the log: