Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build Oni2 failed on ubuntu 16.04 #59

Closed
saibing opened this issue Feb 19, 2019 · 2 comments
Closed

Build Oni2 failed on ubuntu 16.04 #59

saibing opened this issue Feb 19, 2019 · 2 comments

Comments

@saibing
Copy link

saibing commented Feb 19, 2019

 SZX1000428519  baas   master  ~  my  oni2  esy bootstrap
info building revery@github:revery-ui/revery#ccac6fc@d41d8cd9
error: build failed with exit code: 1
  build log:
    # esy-build-package: building: revery@github:revery-ui/revery#ccac6fc
    # esy-build-package: pwd: /home/baas/.esy/source/i/revery__76de015f
    # esy-build-package: running: 'dune' 'build' '--root' '.' '-j4'
             gcc src/Core/file.o
    file.cpp: In function 'value caml_open_sync_raw(value, value, value)':
    file.cpp:26:42: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
                 fread(pData, lSize, 1, pFile);
                                              ^
          ocamlc src/Native/dialog_gtk.o
    dialog_gtk.c: In function 'activate':
    dialog_gtk.c:10:35: warning: format not a string literal and no format arguments [-Wformat-security]
                                       GTK_BUTTONS_CLOSE, user_data);
                                       ^
     js_of_ocaml examples/Examples.bc.runtime.js
    warning: free variables in primitive code "caml_glReadPixels_bytecode" (/home/baas/.esy/3_____________________________________________________________________/i/reason_glfw-3.2.1015-d0427b63/lib/reglfw/gl_stubs.js:264)
    vars: ArrayBuffer, Uint32Array, Uint8Array, console
    warning: free variables in primitive code "caml_createImage" (/home/baas/.esy/3_____________________________________________________________________/i/reason_glfw-3.2.1015-d0427b63/lib/reglfw/image_stubs.js:0)
    vars: Uint16Array, Uint8Array
    warning: free variables in primitive code "caml_saveImage" (/home/baas/.esy/3_____________________________________________________________________/i/reason_glfw-3.2.1015-d0427b63/lib/reglfw/image_stubs.js:48)
    vars: ArrayBuffer, Blob, DataView, URL, Uint16Array, Uint8Array, caml_saveImage_anchor
        ocamlopt examples/Examples.exe (exit 2)
    (cd /home/baas/.esy/3_____________________________________________________________________/b/revery-2323bdc2/default && /home/baas/.esy/3_____________________________________________________________________/i/ocaml-4.7.1004-a6ae015e/bin/ocamlopt.opt -w @a-4-29-40-41-42-44-45-48-58-59-60-40 -strict-sequence -strict-formats -short-paths -keep-locs -g -o examples/Examples.exe -I /home/baas/.esy/3_____________________________________________________________________/i/brisk__s__brisk_reconciler-a0b1e8c1/lib/brisk-reconciler -I /home/baas/.esy/3_____________________________________________________________________/i/flex-1.2.2-11b95d72/lib/flex -I /home/baas/.esy/3_____________________________________________________________________/i/ocaml-4.7.1004-a6ae015e/lib/ocaml/threads -I /home/baas/.esy/3_____________________________________________________________________/i/opam__s__color-opam__c__0.2.0-67a32fc9/lib/color -I /home/baas/.esy/3_____________________________________________________________________/i/opam__s__gg-opam__c__0.9.3-87d5d3d5/lib/gg -I /home/baas/.esy/3_____________________________________________________________________/i/opam__s__js__of__ocaml-499ea313/lib/js_of_ocaml -I /home/baas/.esy/3_____________________________________________________________________/i/opam__s__lwt-opam__c__4.1.0-e4c451c0/lib/lwt -I /home/baas/.esy/3_____________________________________________________________________/i/opam__s__lwt-opam__c__4.1.0-e4c451c0/lib/lwt/unix -I /home/baas/.esy/3_____________________________________________________________________/i/opam__s__ocamlfind-opam__c__1.8.0-eecbed0c/lib/bytes -I /home/baas/.esy/3_____________________________________________________________________/i/opam__s__result-opam__c__1.3-5fad2388/lib/result -I /home/baas/.esy/3_____________________________________________________________________/i/opam__s__uchar-opam__c__0.0.2-835f2252/lib/uchar -I /home/baas/.esy/3_____________________________________________________________________/i/reason_fontkit-2.2.1-417c3c85/lib/fontkit -I /home/baas/.esy/3_____________________________________________________________________/i/reason_gl_matrix-0.9.9302-ff36c75d/lib/reglm -I /home/baas/.esy/3_____________________________________________________________________/i/reason_glfw-3.2.1015-d0427b63/lib/reglfw -I /home/baas/.esy/3_____________________________________________________________________/i/rebez-96006174/lib/rebez/lib -I examples/stubs -I src -I src/Core -I src/Geometry -I src/Math -I src/Native -I src/Shaders -I src/UI -I src/UI_Components /home/baas/.esy/3_____________________________________________________________________/i/opam__s__result-opam__c__1.3-5fad2388/lib/result/result.cmxa /home/baas/.esy/3_____________________________________________________________________/i/opam__s__lwt-opam__c__4.1.0-e4c451c0/lib/lwt/lwt.cmxa /home/baas/.esy/3_____________________________________________________________________/i/opam__s__js__of__ocaml-499ea313/lib/js_of_ocaml/js_of_ocaml.cmxa examples/stubs/ExampleStubs.cmxa /home/baas/.esy/3_____________________________________________________________________/i/ocaml-4.7.1004-a6ae015e/lib/ocaml/str.cmxa /home/baas/.esy/3_____________________________________________________________________/i/ocaml-4.7.1004-a6ae015e/lib/ocaml/unix.cmxa /home/baas/.esy/3_____________________________________________________________________/i/ocaml-4.7.1004-a6ae015e/lib/ocaml/bigarray.cmxa /home/baas/.esy/3_____________________________________________________________________/i/ocaml-4.7.1004-a6ae015e/lib/ocaml/threads/threads.cmxa /home/baas/.esy/3_____________________________________________________________________/i/opam__s__lwt-opam__c__4.1.0-e4c451c0/lib/lwt/unix/lwt_unix.cmxa /home/baas/.esy/3_____________________________________________________________________/i/reason_gl_matrix-0.9.9302-ff36c75d/lib/reglm/reglm.cmxa /home/baas/.esy/3_____________________________________________________________________/i/reason_glfw-3.2.1015-d0427b63/lib/reglfw/reglfw.cmxa /home/baas/.esy/3_____________________________________________________________________/i/opam__s__gg-opam__c__0.9.3-87d5d3d5/lib/gg/gg.cmxa /home/baas/.esy/3_____________________________________________________________________/i/opam__s__color-opam__c__0.2.0-67a32fc9/lib/color/color.cmxa /home/baas/.esy/3_____________________________________________________________________/i/flex-1.2.2-11b95d72/lib/flex/Flex.cmxa /home/baas/.esy/3_____________________________________________________________________/i/reason_fontkit-2.2.1-417c3c85/lib/fontkit/fontkit.cmxa src/Core/Revery_Core.cmxa src/Math/Revery_Math.cmxa src/Shaders/Revery_Shaders.cmxa src/Geometry/Revery_Geometry.cmxa /home/baas/.esy/3_____________________________________________________________________/i/brisk__s__brisk_reconciler-a0b1e8c1/lib/brisk-reconciler/brisk_reconciler.cmxa /home/baas/.esy/3_____________________________________________________________________/i/rebez-96006174/lib/rebez/lib/Rebez.cmxa src/UI/Revery_UI.cmxa src/UI_Components/Revery_UI_Components.cmxa src/Native/Revery_Native.cmxa src/Revery.cmxa examples/.Examples.eobjs/native/AnalogClock.cmx examples/.Examples.eobjs/native/Border.cmx examples/.Examples.eobjs/native/Boxshadow.cmx examples/.Examples.eobjs/native/Calculator.cmx examples/.Examples.eobjs/native/CheckboxExample.cmx examples/.Examples.eobjs/native/DefaultButton.cmx examples/.Examples.eobjs/native/DropdownExample.cmx examples/.Examples.eobjs/native/Flexbox.cmx examples/.Examples.eobjs/native/Focus.cmx examples/.Examples.eobjs/native/GameOfLife.cmx examples/.Examples.eobjs/native/Hello.cmx examples/.Examples.eobjs/native/InputExample.cmx examples/.Examples.eobjs/native/Native.cmx examples/.Examples.eobjs/native/RadioButtonExample.cmx examples/.Examples.eobjs/native/ScreenCapture.cmx examples/.Examples.eobjs/native/ScrollView.cmx examples/.Examples.eobjs/native/Slider.cmx examples/.Examples.eobjs/native/Stopwatch.cmx examples/.Examples.eobjs/native/TodoExample.cmx examples/.Examples.eobjs/native/TreeView.cmx examples/.Examples.eobjs/native/Examples.cmx)
    //usr/lib/x86_64-linux-gnu/libpangoft2-1.0.so.0: undefined reference to `hb_glib_script_from_script'
    //usr/lib/x86_64-linux-gnu/libpangoft2-1.0.so.0: undefined reference to `hb_ft_face_create'
    //usr/lib/x86_64-linux-gnu/libpangoft2-1.0.so.0: undefined reference to `hb_glib_get_unicode_funcs'
    //usr/lib/x86_64-linux-gnu/libpangoft2-1.0.so.0: undefined reference to `hb_glib_script_to_script'
    //usr/lib/x86_64-linux-gnu/libpangoft2-1.0.so.0: undefined reference to `hb_ft_face_create_cached'
    collect2: error: ld returned 1 exit status
    File "caml_startup", line 1:
    Error: Error during linking
    error: command failed: 'dune' 'build' '--root' '.' '-j4' (exited with 1)
    esy-build-package: exiting with errors above...
    
  building revery@github:revery-ui/revery#ccac6fc
esy: exiting due to errors above
  SZX1000428519  baas   master  ~  my  oni2  

I try build Oni2 on ubuntu 16.04, it is failed, but build it on ubuntu 18.10 is ok.

@saibing saibing closed this as completed Feb 20, 2019
@jplew
Copy link

jplew commented Jul 8, 2019

I'm getting this exact error when building on Ubuntu 18.04. Besides upgrading to 18.10, can you think of any other solution?

@jplew
Copy link

jplew commented Jul 8, 2019

nevermind. From the README:

NOTE: reason-fontkit (a dependency of revery) requires harfbuzz 1.7.7+. This means revery requires Ubuntu 18.10+ (or you can install libharfbuzz-dev@1.8.8 by adding 'cosmic' packages to your sources, but proceed with caution since you can break other packages this way)

NOTE: If esy build produces an error about libpangoft2 then try deleting the ./_esy and ~/.esy directories and run run esy install and esy build again.

I ended up updating my WSL Ubuntu installation using this guide:
https://attacomsian.com/blog/upgrade-ubuntu-18-04-to-18-10-cosmic-cuttlefish

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants