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

Linux/Ubuntu 21.04: Build failure during 'make libs' #52

Closed
thatLeaflet opened this issue Jun 24, 2021 · 1 comment
Closed

Linux/Ubuntu 21.04: Build failure during 'make libs' #52

thatLeaflet opened this issue Jun 24, 2021 · 1 comment

Comments

@thatLeaflet
Copy link

thatLeaflet commented Jun 24, 2021

Log Files
CMakeError.log
CMakeOutput.log

Terminal Output

evanm@evan-ubuntu:~/repos/minecraft-weekend$ make libs

cd lib/cglm && cmake . -DCGLM_STATIC=ON && make
-- Configuring done
-- Generating done
-- Build files have been written to: /home/evanm/repos/minecraft-weekend/lib/cglm
make[1]: Entering directory '/home/evanm/repos/minecraft-weekend/lib/cglm'
make[2]: Entering directory '/home/evanm/repos/minecraft-weekend/lib/cglm'
make[3]: Entering directory '/home/evanm/repos/minecraft-weekend/lib/cglm'
make[3]: Leaving directory '/home/evanm/repos/minecraft-weekend/lib/cglm'
[100%] Built target cglm
make[2]: Leaving directory '/home/evanm/repos/minecraft-weekend/lib/cglm'
make[1]: Leaving directory '/home/evanm/repos/minecraft-weekend/lib/cglm'
cd lib/glad && clang -o src/glad.o -Iinclude -c src/glad.c
cd lib/glfw && cmake . && make
-- The C compiler identification is GNU 10.3.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- 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 Doxygen (missing: DOXYGEN_EXECUTABLE) 
-- Using X11 for window creation
CMake Error at /usr/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:165 (message):
  Could NOT find X11 (missing: X11_X11_INCLUDE_PATH X11_X11_LIB)
Call Stack (most recent call first):
  /usr/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:458 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake-3.18/Modules/FindX11.cmake:414 (find_package_handle_standard_args)
  CMakeLists.txt:154 (find_package)


-- Configuring incomplete, errors occurred!
See also "/home/evanm/repos/minecraft-weekend/lib/glfw/CMakeFiles/CMakeOutput.log".
See also "/home/evanm/repos/minecraft-weekend/lib/glfw/CMakeFiles/CMakeError.log".
make: *** [Makefile:30: libs] Error 1

Edit: Solution was to install libx11-dev, libxi-dev, libxcursor-dev, libxinerama-dev, libxrandr-dev, doxygen

@thatLeaflet thatLeaflet changed the title Linux/Ubuntu 21.04: Build failure Linux/Ubuntu 21.04: Build failure during 'make libs' Jun 24, 2021
@jdah
Copy link
Owner

jdah commented Jun 24, 2021

This is an error on your part, please don't create issues for this sort of thing and read the build output - you need to install some X11 libs (look for those that glfw requires), as the log says.

@jdah jdah closed this as completed Jun 24, 2021
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