gl-terrain-demo icon indicating copy to clipboard operation
gl-terrain-demo copied to clipboard

Make produces errors when compiling

Open arash28134 opened this issue 2 years ago • 0 comments

After running autogen.sh, when I run make it produces error. this is the log:

Making all in src
make[1]: Entering directory '/home/arash/gl-terrain-demo/src'
make  all-am
make[2]: Entering directory '/home/arash/gl-terrain-demo/src'
/bin/bash ../libtool  --tag=CXX   --mode=link g++  -g -O2 -Wall -Werror -Wmissing-declarations   -o demo main.o ter-cache.o ter-camera.o ter-shader-program.o ter-mesh.o ter-terrain.o ter-light.o ter-model.o ter-object.o ter-object-catalog.o ter-object-renderer.o ter-tile.o ter-water-tile.o ter-shadow-map.o ter-shadow-box.o ter-shadow-renderer.o ter-box.o ter-texture.o ter-render-texture.o ter-sky-box.o ter-filter.o -L/usr/local/lib -lglib-2.0 -lGL -lglfw3 -lSDL_image -lSDL -lm 
libtool: link: g++ -g -O2 -Wall -Werror -Wmissing-declarations -o demo main.o ter-cache.o ter-camera.o ter-shader-program.o ter-mesh.o ter-terrain.o ter-light.o ter-model.o ter-object.o ter-object-catalog.o ter-object-renderer.o ter-tile.o ter-water-tile.o ter-shadow-map.o ter-shadow-box.o ter-shadow-renderer.o ter-box.o ter-texture.o ter-render-texture.o ter-sky-box.o ter-filter.o  -L/usr/local/lib -lglib-2.0 -lGL -lglfw3 -lSDL_image -lSDL -lm
/usr/bin/ld: /usr/local/lib/libglfw3.a(posix_thread.c.o): undefined reference to symbol 'pthread_getspecific@@GLIBC_2.2.5'
/usr/bin/ld: /lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:461: demo] Error 1
make[2]: Leaving directory '/home/arash/gl-terrain-demo/src'
make[1]: *** [Makefile:361: all] Error 2
make[1]: Leaving directory '/home/arash/gl-terrain-demo/src'
make: *** [Makefile:410: all-recursive] Error 1

I'm using Ubuntu 20.04.4 LTS and I've installed all dependencies

arash28134 avatar Sep 16 '22 07:09 arash28134