Package description
Glfw is a multi-platform library for OpenGL, OpenGL ES, Vulkan, window and input.
Home page URL
https://www.glfw.org/
Source code URL
https://github.com/glfw/glfw
Packaging policy acknowledgement
Additional information
I tried to compile glfw for termux with GLFW_VULKAN_STATIC on but fails and give the following-
❯ cmake . -DGLFW_VULKAN_STATIC=ON
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
-- Using X11 for window creation
-- Configuring done
-- Generating done
-- Build files have been written to: /data/data/com.termux/files/home/glfw
❯ make
[ 1%] Building C object src/CMakeFiles/glfw.dir/context.c.o
[ 2%] Building C object src/CMakeFiles/glfw.dir/init.c.o
[ 3%] Building C object src/CMakeFiles/glfw.dir/input.c.o
[ 4%] Building C object src/CMakeFiles/glfw.dir/monitor.c.o
[ 5%] Building C object src/CMakeFiles/glfw.dir/vulkan.c.o
[ 6%] Building C object src/CMakeFiles/glfw.dir/window.c.o
[ 7%] Building C object src/CMakeFiles/glfw.dir/x11_init.c.o
[ 8%] Building C object src/CMakeFiles/glfw.dir/x11_monitor.c.o
[ 10%] Building C object src/CMakeFiles/glfw.dir/x11_window.c.o
[ 11%] Building C object src/CMakeFiles/glfw.dir/xkb_unicode.c.o
[ 12%] Building C object src/CMakeFiles/glfw.dir/posix_time.c.o
[ 13%] Building C object src/CMakeFiles/glfw.dir/posix_thread.c.o
[ 14%] Building C object src/CMakeFiles/glfw.dir/glx_context.c.o
[ 15%] Building C object src/CMakeFiles/glfw.dir/egl_context.c.o
[ 16%] Building C object src/CMakeFiles/glfw.dir/osmesa_context.c.o
[ 17%] Building C object src/CMakeFiles/glfw.dir/null_joystick.c.o
[ 18%] Linking C static library libglfw3.a
[ 18%] Built target glfw
[ 20%] Building C object examples/CMakeFiles/wave.dir/wave.c.o
[ 21%] Linking C executable wave
/data/data/com.termux/files/usr/bin/ld: /system/lib64/libziparchive.so: .dynsym local symbol at index 0 (>= sh_info of 0)
/data/data/com.termux/files/usr/bin/ld: /system/lib64/libhwbinder.so: .dynsym local symbol at index 0 (>= sh_info of 0)
/data/data/com.termux/files/usr/bin/ld: /system/lib64/libunwind.so: undefined reference to XzUnpacker_Free' /data/data/com.termux/files/usr/bin/ld: /system/lib64/libunwind.so: undefined reference to XzUnpacker_IsStreamWasFinished'
/data/data/com.termux/files/usr/bin/ld: /system/lib64/libunwind.so: undefined reference to XzUnpacker_Construct' /data/data/com.termux/files/usr/bin/ld: /system/lib64/libunwind.so: undefined reference to CrcGenerateTable'
/data/data/com.termux/files/usr/bin/ld: /system/lib64/libunwind.so: undefined reference to Crc64GenerateTable' /data/data/com.termux/files/usr/bin/ld: /system/lib64/libunwind.so: undefined reference to XzUnpacker_Code'
clang-12: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [examples/CMakeFiles/wave.dir/build.make:99: examples/wave] Error 1
make[1]: *** [CMakeFiles/Makefile2:272: examples/CMakeFiles/wave.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
It gives me the following linker errors
Without GLFW_VULKAN_STATIC, it works fine...
Anyone knows how to do it?
Package description
Glfw is a multi-platform library for OpenGL, OpenGL ES, Vulkan, window and input.
Home page URL
https://www.glfw.org/
Source code URL
https://github.com/glfw/glfw
Packaging policy acknowledgement
Additional information
I tried to compile glfw for termux with GLFW_VULKAN_STATIC on but fails and give the following-
❯ cmake . -DGLFW_VULKAN_STATIC=ON
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
-- Using X11 for window creation
-- Configuring done
-- Generating done
-- Build files have been written to: /data/data/com.termux/files/home/glfw
❯ make
[ 1%] Building C object src/CMakeFiles/glfw.dir/context.c.o
[ 2%] Building C object src/CMakeFiles/glfw.dir/init.c.o
[ 3%] Building C object src/CMakeFiles/glfw.dir/input.c.o
[ 4%] Building C object src/CMakeFiles/glfw.dir/monitor.c.o
[ 5%] Building C object src/CMakeFiles/glfw.dir/vulkan.c.o
[ 6%] Building C object src/CMakeFiles/glfw.dir/window.c.o
[ 7%] Building C object src/CMakeFiles/glfw.dir/x11_init.c.o
[ 8%] Building C object src/CMakeFiles/glfw.dir/x11_monitor.c.o
[ 10%] Building C object src/CMakeFiles/glfw.dir/x11_window.c.o
[ 11%] Building C object src/CMakeFiles/glfw.dir/xkb_unicode.c.o
[ 12%] Building C object src/CMakeFiles/glfw.dir/posix_time.c.o
[ 13%] Building C object src/CMakeFiles/glfw.dir/posix_thread.c.o
[ 14%] Building C object src/CMakeFiles/glfw.dir/glx_context.c.o
[ 15%] Building C object src/CMakeFiles/glfw.dir/egl_context.c.o
[ 16%] Building C object src/CMakeFiles/glfw.dir/osmesa_context.c.o
[ 17%] Building C object src/CMakeFiles/glfw.dir/null_joystick.c.o
[ 18%] Linking C static library libglfw3.a
[ 18%] Built target glfw
[ 20%] Building C object examples/CMakeFiles/wave.dir/wave.c.o
[ 21%] Linking C executable wave
/data/data/com.termux/files/usr/bin/ld: /system/lib64/libziparchive.so: .dynsym local symbol at index 0 (>= sh_info of 0)
/data/data/com.termux/files/usr/bin/ld: /system/lib64/libhwbinder.so: .dynsym local symbol at index 0 (>= sh_info of 0)
/data/data/com.termux/files/usr/bin/ld: /system/lib64/libunwind.so: undefined reference to
XzUnpacker_Free' /data/data/com.termux/files/usr/bin/ld: /system/lib64/libunwind.so: undefined reference toXzUnpacker_IsStreamWasFinished'/data/data/com.termux/files/usr/bin/ld: /system/lib64/libunwind.so: undefined reference to
XzUnpacker_Construct' /data/data/com.termux/files/usr/bin/ld: /system/lib64/libunwind.so: undefined reference toCrcGenerateTable'/data/data/com.termux/files/usr/bin/ld: /system/lib64/libunwind.so: undefined reference to
Crc64GenerateTable' /data/data/com.termux/files/usr/bin/ld: /system/lib64/libunwind.so: undefined reference toXzUnpacker_Code'clang-12: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [examples/CMakeFiles/wave.dir/build.make:99: examples/wave] Error 1
make[1]: *** [CMakeFiles/Makefile2:272: examples/CMakeFiles/wave.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
It gives me the following linker errors
Without GLFW_VULKAN_STATIC, it works fine...
Anyone knows how to do it?