Skip to content

OS package build dependencies? #68

@edwintorok

Description

@edwintorok

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions