You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I installed ncnn with vulkan on the raspberry pi 4B 8Gb correctly and I'm running the ncnn examples successfully on vulkan. But I'm not knowing how to correctly configure my CMakeLists.txt file to reference the glslang library.
Error:
/usr/bin/ld: /usr/local/lib/ncnn/libncnn.a(gpu.cpp.o): in function `ncnn::destroy_gpu_instance()':
gpu.cpp:(.text+0xcb4): undefined reference to `glslang::FinalizeProcess()'
/usr/bin/ld: /usr/local/lib/ncnn/libncnn.a(gpu.cpp.o): in function `ncnn::create_gpu_instance()':
gpu.cpp:(.text+0x3dc8): undefined reference to `glslang::InitializeProcess()'
/usr/bin/ld: /usr/local/lib/ncnn/libncnn.a(gpu.cpp.o): in function `ncnn::compile_spirv_module(char const*, int, ncnn::Option const&, std::vector<unsigned int, std::allocator<unsigned int> >&)':
gpu.cpp:(.text+0x7ba0): undefined reference to `glslang::TShader::TShader(EShLanguage)'
/usr/bin/ld: gpu.cpp:(.text+0x7bb8): undefined reference to `glslang::TShader::setStringsWithLengths(char const* const*, int const*, int)'
/usr/bin/ld: gpu.cpp:(.text+0x7bcc): undefined reference to `glslang::TShader::addProcesses(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&)'
/usr/bin/ld: gpu.cpp:(.text+0x7bdc): undefined reference to `glslang::TShader::setEntryPoint(char const*)'
/usr/bin/ld: gpu.cpp:(.text+0x7be8): undefined reference to `glslang::TShader::setSourceEntryPoint(char const*)'
/usr/bin/ld: gpu.cpp:(.text+0x7d3c): undefined reference to `glslang::TShader::parse(TBuiltInResource const*, int, EProfile, bool, bool, EShMessages, glslang::TShader::Includer&)'
/usr/bin/ld: gpu.cpp:(.text+0x7d84): undefined reference to `glslang::TShader::getInfoLog()'
/usr/bin/ld: gpu.cpp:(.text+0x7dac): undefined reference to `glslang::TShader::getInfoDebugLog()'
/usr/bin/ld: gpu.cpp:(.text+0x7dd0): undefined reference to `glslang::TShader::~TShader()'
/usr/bin/ld: gpu.cpp:(.text+0x84b0): undefined reference to `glslang::GlslangToSpv(glslang::TIntermediate const&, std::vector<unsigned int, std::allocator<unsigned int> >&, glslang::SpvOptions*)'
/usr/bin/ld: gpu.cpp:(.text+0x84bc): undefined reference to `glslang::TShader::~TShader()'
/usr/bin/ld: gpu.cpp:(.text+0xa474): undefined reference to `glslang::TShader::~TShader()'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/test.dir/build.make:285: ../test] Error 1
make[1]: *** [CMakeFiles/Makefile2:95: CMakeFiles/test.dir/all] Error 2
Hi,
I installed ncnn with vulkan on the raspberry pi 4B 8Gb correctly and I'm running the ncnn examples successfully on vulkan. But I'm not knowing how to correctly configure my CMakeLists.txt file to reference the glslang library.
Error:
CMakeLists.txt:
Obs: Everything runs perfect with Ncnn without Vulkan
Regards,
Kevin
The text was updated successfully, but these errors were encountered: