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

OS package build dependencies? #68

Open
edwintorok opened this issue Dec 25, 2018 · 0 comments
Open

OS package build dependencies? #68

edwintorok opened this issue Dec 25, 2018 · 0 comments

Comments

@edwintorok
Copy link

Is there an equivalent to opam depext <pkg> with esy? The build instruciton only mention using esy install and esy build, but that is not enough because the build fails like this:

opam@95af5803e9d7:~/revery/revery-quick-start$ esy build
info esy build 0.4.8 (using package.json)
info building reason-glfw@1.0.0@d41d8cd9
error: build failed with exit code: 1
  build log:
    # esy-build-package: building: reason-glfw@1.0.0
    # esy-build-package: pwd: /home/opam/.esy/3_____________________________________________________________________/b/reason_glfw-1.0.0-28b3b891
    # esy-build-package: running: 'make' 'build-glfw' 'ROOTDIR=/home/opam/.esy/3_____________________________________________________________________/b/reason_glfw-1.0.0-28b3b891'
    echo Library: /home/opam/.esy/3_____________________________________________________________________/b/reason_glfw-1.0.0-28b3b891/_build/glfw/src
    Library: /home/opam/.esy/3_____________________________________________________________________/b/reason_glfw-1.0.0-28b3b891/_build/glfw/src
    echo Include: /home/opam/.esy/3_____________________________________________________________________/b/reason_glfw-1.0.0-28b3b891/_build/glfw/include
    Include: /home/opam/.esy/3_____________________________________________________________________/b/reason_glfw-1.0.0-28b3b891/_build/glfw/include
    mkdir -p /home/opam/.esy/3_____________________________________________________________________/b/reason_glfw-1.0.0-28b3b891/_build
    git clone https://github.com/glfw/glfw /home/opam/.esy/3_____________________________________________________________________/b/reason_glfw-1.0.0-28b3b891/_build/glfw
    Cloning into '/home/opam/.esy/3_____________________________________________________________________/b/reason_glfw-1.0.0-28b3b891/_build/glfw'...
    cd /home/opam/.esy/3_____________________________________________________________________/b/reason_glfw-1.0.0-28b3b891/_build/glfw; cmake .
    -- The C compiler identification is GNU 8.2.0
    -- Check for working C compiler: /usr/bin/cc
    -- Check for working C compiler: /usr/bin/cc -- works
    -- Detecting C compiler ABI info
    -- Detecting C compiler ABI info - done
    -- Detecting C compile features
    -- Detecting C compile features - done
    -- Looking for pthread.h
    -- Looking for pthread.h - found
    -- Looking for pthread_create
    -- Looking for pthread_create - not found
    -- Looking for pthread_create in pthreads
    -- Looking for pthread_create in pthreads - not found
    -- Looking for pthread_create in pthread
    -- Looking for pthread_create in pthread - found
    -- Found Threads: TRUE  
    -- Could NOT find Vulkan (missing: VULKAN_LIBRARY VULKAN_INCLUDE_DIR) 
    -- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) 
    -- Using X11 for window creation
    -- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so
    -- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so - found
    -- Looking for gethostbyname
    -- Looking for gethostbyname - found
    -- Looking for connect
    -- Looking for connect - found
    -- Looking for remove
    -- Looking for remove - found
    -- Looking for shmat
    -- Looking for shmat - found
    -- Found X11: /usr/lib/x86_64-linux-gnu/libX11.so
    CMake Error at CMakeLists.txt:234 (message):
      The Xinerama headers were not found
    
    
    -- Configuring incomplete, errors occurred!
    See also "/home/opam/.esy/3_____________________________________________________________________/b/reason_glfw-1.0.0-28b3b891/_build/glfw/CMakeFiles/CMakeOutput.log".
    See also "/home/opam/.esy/3_____________________________________________________________________/b/reason_glfw-1.0.0-28b3b891/_build/glfw/CMakeFiles/CMakeError.log".
    make: *** [Makefile:20: /home/opam/.esy/3_____________________________________________________________________/b/reason_glfw-1.0.0-28b3b891/_build/glfw/src/libglfw3.a] Error 1
    error: command failed: 'make' 'build-glfw' 'ROOTDIR=/home/opam/.esy/3_____________________________________________________________________/b/reason_glfw-1.0.0-28b3b891' (exited with 2)
    esy-build-package: exiting with errors above...
    
  building reason-glfw@1.0.0
esy: exiting due to errors above

I can fix them one-by-one but would be good to be able to get the full list automatically from somewhere.

Taking a peek into .travis.yml hints at the needed packages, would be good if the README contained these too.

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

1 participant