我使用Ubuntu 18.04.3 LTS(gcc 7.4.0)我已经成功构建了shaderc,其中包含ktx library所需的所有组件。当我构建ktx库(cmake / Iinux /调试或发行版)时,出现以下错误:
[ 91%] Linking CXX executable gl3loadtests
/usr/bin/ld:/home/user/Downloads/KTX-Software-master/build/cmake/linux/Release/../../../../other_lib/linux/Release-x64/libSDL2-2.0.so: file format not recognized; treating as linker script
/usr/bin/ld:/home/user/Downloads/KTX-Software-master/build/cmake/linux/Release/../../../../other_lib/linux/Release-x64/libSDL2-2.0.so:1: syntax error
collect2: error: ld returned 1 exit status
CMakeFiles/gl3loadtests.dir/build.make:205: recipe for target 'gl3loadtests' failed
make[2]: *** [gl3loadtests] Error 1
CMakeFiles/Makefile2:218: recipe for target 'CMakeFiles/gl3loadtests.dir/all' failed
make[1]: *** [CMakeFiles/gl3loadtests.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
符号链接的外观如下:
libSDL2-2.0.so -> libSDL2-2.0.so.0
libSDL2-2.0.so.0 -> libSDL2-2.0.so.0.9.0
libSDL2-2.0.so.0.9.0
有人在linux上遇到相同的错误吗?如何解决?