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
[ 44%] Linking CXX shared library libopenxr_loader.so
/usr/bin/ld: CMakeFiles/openxr_loader.dir/manifest_file.cpp.o: in function ManifestFile::IsValidJson(Json::Value const&, JsonVersion&)': manifest_file.cpp:(.text._ZN12ManifestFile11IsValidJsonERKN4Json5ValueER11JsonVersion+0x2b2): undefined reference to Json::Value::asStringabi:cxx11 const'
/usr/bin/ld: CMakeFiles/openxr_loader.dir/manifest_file.cpp.o: in function ManifestFile::ParseCommon(Json::Value const&)': manifest_file.cpp:(.text._ZN12ManifestFile11ParseCommonERKN4Json5ValueE+0x278): undefined reference to Json::Value::asStringabi:cxx11 const'
/usr/bin/ld: manifest_file.cpp:(.text._ZN12ManifestFile11ParseCommonERKN4Json5ValueE+0x305): undefined reference to Json::Value::asString[abi:cxx11]() const' /usr/bin/ld: manifest_file.cpp:(.text._ZN12ManifestFile11ParseCommonERKN4Json5ValueE+0x3b0): undefined reference to Json::Value::asStringabi:cxx11 const'
/usr/bin/ld: manifest_file.cpp:(.text._ZN12ManifestFile11ParseCommonERKN4Json5ValueE+0x3cb): undefined reference to Json::Value::asString[abi:cxx11]() const' /usr/bin/ld: CMakeFiles/openxr_loader.dir/manifest_file.cpp.o:manifest_file.cpp:(.text._ZN19RuntimeManifestFile13CreateIfValidERKN4Json5ValueERKNSt7__cxx1112basic_str ingIcSt11char_traitsIcESaIcEEERSt6vectorISt10unique_ptrIS_St14default_deleteIS_EESaISG_EE+0x88d): more undefined references to Json::Value::asStringabi:cxx11 con
st' follow
/usr/bin/ld: CMakeFiles/openxr_loader.dir/manifest_file.cpp.o: in function RuntimeManifestFile::CreateIfValid(std::__cxx11::basic_string<char, std::char_traits<char> , std::allocator<char> > const&, std::vector<std::unique_ptr<RuntimeManifestFile, std::default_delete<RuntimeManifestFile> >, std::allocator<std::unique_ptr<RuntimeMa nifestFile, std::default_delete<RuntimeManifestFile> > > >&)': manifest_file.cpp:(.text._ZN19RuntimeManifestFile13CreateIfValidERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERSt6vectorISt10unique_ptrIS_St14default_deleteI S_EESaISC_EE+0x5f6): undefined reference to Json::parseFromStream(Json::CharReader::Factory const&, std::istream&, Json::Value*, std::__cxx11::basic_string<char, std
::char_traits, std::allocator >)'
/usr/bin/ld: CMakeFiles/openxr_loader.dir/manifest_file.cpp.o: in function ApiLayerManifestFile::CreateIfValid(ManifestFileType, std::__cxx11::basic_string<char, std ::char_traits<char>, std::allocator<char> > const&, std::istream&, bool (*)(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, st d::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >& ), std::vector<std::unique_ptr<ApiLayerManifestFile, std::default_delete<ApiLayerManifestFile> >, std::allocator<std::unique_ptr<ApiLayerManifestFile, std::default_de lete<ApiLayerManifestFile> > > >&)': manifest_file.cpp:(.text._ZN20ApiLayerManifestFile13CreateIfValidE16ManifestFileTypeRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERSiPFbS8_S8_RS6_ERSt6vectorI St10unique_ptrIS_St14default_deleteIS_EESaISH_EE+0x2f5): undefined reference to Json::parseFromStream(Json::CharReader::Factory const&, std::istream&, Json::Value,
std::__cxx11::basic_string<char, std::char_traits, std::allocator >*)'
/usr/bin/ld: manifest_file.cpp:(.text._ZN20ApiLayerManifestFile13CreateIfValidE16ManifestFileTypeRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERSiPFbS8_S8_RS6
_ERSt6vectorISt10unique_ptrIS_St14default_deleteIS_EESaISH_EE+0xd11): undefined reference to Json::Value::asString[abi:cxx11]() const' /usr/bin/ld: manifest_file.cpp:(.text._ZN20ApiLayerManifestFile13CreateIfValidE16ManifestFileTypeRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERSiPFbS8_S8_RS6 _ERSt6vectorISt10unique_ptrIS_St14default_deleteIS_EESaISH_EE+0xd2f): undefined reference to Json::Value::asStringabi:cxx11 const'
/usr/bin/ld: manifest_file.cpp:(.text._ZN20ApiLayerManifestFile13CreateIfValidE16ManifestFileTypeRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERSiPFbS8_S8_RS6
_ERSt6vectorISt10unique_ptrIS_St14default_deleteIS_EESaISH_EE+0xdbf): undefined reference to Json::Value::asString[abi:cxx11]() const' /usr/bin/ld: manifest_file.cpp:(.text._ZN20ApiLayerManifestFile13CreateIfValidE16ManifestFileTypeRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERSiPFbS8_S8_RS6 _ERSt6vectorISt10unique_ptrIS_St14default_deleteIS_EESaISH_EE+0xe1c): undefined reference to Json::Value::asStringabi:cxx11 const'
/usr/bin/ld: manifest_file.cpp:(.text._ZN20ApiLayerManifestFile13CreateIfValidE16ManifestFileTypeRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERSiPFbS8_S8_RS6
_ERSt6vectorISt10unique_ptrIS_St14default_deleteIS_EESaISH_EE+0x1318): undefined reference to Json::Value::asString[abi:cxx11]() const' /usr/bin/ld: CMakeFiles/openxr_loader.dir/manifest_file.cpp.o:manifest_file.cpp:(.text._ZN20ApiLayerManifestFile13CreateIfValidE16ManifestFileTypeRKNSt7__cxx1112basic _stringIcSt11char_traitsIcESaIcEEERSiPFbS8_S8_RS6_ERSt6vectorISt10unique_ptrIS_St14default_deleteIS_EESaISH_EE+0x1450): more undefined references to Json::Value::asS
tringabi:cxx11 const' follow
collect2: error: ld returned 1 exit status
make[2]: *** [dependencies/OpenXR-SDK/src/loader/CMakeFiles/openxr_loader.dir/build.make:274: dependencies/OpenXR-SDK/src/loader/libopenxr_loader.so.1.0.26] Error 1
make[1]: *** [CMakeFiles/Makefile2:551: dependencies/OpenXR-SDK/src/loader/CMakeFiles/openxr_loader.dir/all] Error 2
The build works fine with this command:
cmake . -B build -DCMAKE_CUDA_COMPILER=/usr/local/cuda-11.6/bin/nvcc
I run this to compile (I treid with and without the -j)
cmake --build build --config RelWithDebInfo -j
cuda=11.6
gcc=9.4.0
cmake=3.21.3
I have all the dependencies installed as well:
$ sudo apt-get install build-essential git python3-dev python3-pip libopenexr-dev libxi-dev libglfw3-dev libglew-dev libomp-dev libxinerama-dev libxcursor-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libxcursor-dev is already the newest version (1:1.2.0-2).
libxi-dev is already the newest version (2:1.7.10-0ubuntu1).
libxinerama-dev is already the newest version (2:1.1.4-2).
python3-dev is already the newest version (3.8.2-0ubuntu2).
libglew-dev is already the newest version (2.1.0-4).
libglfw3-dev is already the newest version (3.3.2-1).
libomp-dev is already the newest version (1:10.0-50~exp1).
build-essential is already the newest version (12.8ubuntu1.1).
git is already the newest version (1:2.25.1-1ubuntu3.11).
libopenexr-dev is already the newest version (2.3.0-6ubuntu0.5).
python3-pip is already the newest version (20.0.2-5ubuntu1.8).
0 upgraded, 0 newly installed, 0 to remove and 423 not upgraded.
So I'm not sure why I'm getting an error when attempting to link the libopenxr_loader.so library. Does anyone know what might be the issue?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
When attempting to compile I get this error:
[ 44%] Linking CXX shared library libopenxr_loader.so
/usr/bin/ld: CMakeFiles/openxr_loader.dir/manifest_file.cpp.o: in function
ManifestFile::IsValidJson(Json::Value const&, JsonVersion&)': manifest_file.cpp:(.text._ZN12ManifestFile11IsValidJsonERKN4Json5ValueER11JsonVersion+0x2b2): undefined reference to
Json::Value::asStringabi:cxx11 const'/usr/bin/ld: CMakeFiles/openxr_loader.dir/manifest_file.cpp.o: in function
ManifestFile::ParseCommon(Json::Value const&)': manifest_file.cpp:(.text._ZN12ManifestFile11ParseCommonERKN4Json5ValueE+0x278): undefined reference to
Json::Value::asStringabi:cxx11 const'/usr/bin/ld: manifest_file.cpp:(.text._ZN12ManifestFile11ParseCommonERKN4Json5ValueE+0x305): undefined reference to
Json::Value::asString[abi:cxx11]() const' /usr/bin/ld: manifest_file.cpp:(.text._ZN12ManifestFile11ParseCommonERKN4Json5ValueE+0x3b0): undefined reference to
Json::Value::asStringabi:cxx11 const'/usr/bin/ld: manifest_file.cpp:(.text._ZN12ManifestFile11ParseCommonERKN4Json5ValueE+0x3cb): undefined reference to
Json::Value::asString[abi:cxx11]() const' /usr/bin/ld: CMakeFiles/openxr_loader.dir/manifest_file.cpp.o:manifest_file.cpp:(.text._ZN19RuntimeManifestFile13CreateIfValidERKN4Json5ValueERKNSt7__cxx1112basic_str ingIcSt11char_traitsIcESaIcEEERSt6vectorISt10unique_ptrIS_St14default_deleteIS_EESaISG_EE+0x88d): more undefined references to
Json::Value::asStringabi:cxx11 const' follow
/usr/bin/ld: CMakeFiles/openxr_loader.dir/manifest_file.cpp.o: in function
RuntimeManifestFile::CreateIfValid(std::__cxx11::basic_string<char, std::char_traits<char> , std::allocator<char> > const&, std::vector<std::unique_ptr<RuntimeManifestFile, std::default_delete<RuntimeManifestFile> >, std::allocator<std::unique_ptr<RuntimeMa nifestFile, std::default_delete<RuntimeManifestFile> > > >&)': manifest_file.cpp:(.text._ZN19RuntimeManifestFile13CreateIfValidERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERSt6vectorISt10unique_ptrIS_St14default_deleteI S_EESaISC_EE+0x5f6): undefined reference to
Json::parseFromStream(Json::CharReader::Factory const&, std::istream&, Json::Value*, std::__cxx11::basic_string<char, std::char_traits, std::allocator >)'
/usr/bin/ld: CMakeFiles/openxr_loader.dir/manifest_file.cpp.o: in function
ApiLayerManifestFile::CreateIfValid(ManifestFileType, std::__cxx11::basic_string<char, std ::char_traits<char>, std::allocator<char> > const&, std::istream&, bool (*)(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, st d::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >& ), std::vector<std::unique_ptr<ApiLayerManifestFile, std::default_delete<ApiLayerManifestFile> >, std::allocator<std::unique_ptr<ApiLayerManifestFile, std::default_de lete<ApiLayerManifestFile> > > >&)': manifest_file.cpp:(.text._ZN20ApiLayerManifestFile13CreateIfValidE16ManifestFileTypeRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERSiPFbS8_S8_RS6_ERSt6vectorI St10unique_ptrIS_St14default_deleteIS_EESaISH_EE+0x2f5): undefined reference to
Json::parseFromStream(Json::CharReader::Factory const&, std::istream&, Json::Value,std::__cxx11::basic_string<char, std::char_traits, std::allocator >*)'
/usr/bin/ld: manifest_file.cpp:(.text._ZN20ApiLayerManifestFile13CreateIfValidE16ManifestFileTypeRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERSiPFbS8_S8_RS6
_ERSt6vectorISt10unique_ptrIS_St14default_deleteIS_EESaISH_EE+0xd11): undefined reference to
Json::Value::asString[abi:cxx11]() const' /usr/bin/ld: manifest_file.cpp:(.text._ZN20ApiLayerManifestFile13CreateIfValidE16ManifestFileTypeRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERSiPFbS8_S8_RS6 _ERSt6vectorISt10unique_ptrIS_St14default_deleteIS_EESaISH_EE+0xd2f): undefined reference to
Json::Value::asStringabi:cxx11 const'/usr/bin/ld: manifest_file.cpp:(.text._ZN20ApiLayerManifestFile13CreateIfValidE16ManifestFileTypeRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERSiPFbS8_S8_RS6
_ERSt6vectorISt10unique_ptrIS_St14default_deleteIS_EESaISH_EE+0xdbf): undefined reference to
Json::Value::asString[abi:cxx11]() const' /usr/bin/ld: manifest_file.cpp:(.text._ZN20ApiLayerManifestFile13CreateIfValidE16ManifestFileTypeRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERSiPFbS8_S8_RS6 _ERSt6vectorISt10unique_ptrIS_St14default_deleteIS_EESaISH_EE+0xe1c): undefined reference to
Json::Value::asStringabi:cxx11 const'/usr/bin/ld: manifest_file.cpp:(.text._ZN20ApiLayerManifestFile13CreateIfValidE16ManifestFileTypeRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERSiPFbS8_S8_RS6
_ERSt6vectorISt10unique_ptrIS_St14default_deleteIS_EESaISH_EE+0x1318): undefined reference to
Json::Value::asString[abi:cxx11]() const' /usr/bin/ld: CMakeFiles/openxr_loader.dir/manifest_file.cpp.o:manifest_file.cpp:(.text._ZN20ApiLayerManifestFile13CreateIfValidE16ManifestFileTypeRKNSt7__cxx1112basic _stringIcSt11char_traitsIcESaIcEEERSiPFbS8_S8_RS6_ERSt6vectorISt10unique_ptrIS_St14default_deleteIS_EESaISH_EE+0x1450): more undefined references to
Json::Value::asStringabi:cxx11 const' follow
collect2: error: ld returned 1 exit status
make[2]: *** [dependencies/OpenXR-SDK/src/loader/CMakeFiles/openxr_loader.dir/build.make:274: dependencies/OpenXR-SDK/src/loader/libopenxr_loader.so.1.0.26] Error 1
make[1]: *** [CMakeFiles/Makefile2:551: dependencies/OpenXR-SDK/src/loader/CMakeFiles/openxr_loader.dir/all] Error 2
The build works fine with this command:
cmake . -B build -DCMAKE_CUDA_COMPILER=/usr/local/cuda-11.6/bin/nvcc
I run this to compile (I treid with and without the -j)
cmake --build build --config RelWithDebInfo -j
cuda=11.6
gcc=9.4.0
cmake=3.21.3
I have all the dependencies installed as well:
$ sudo apt-get install build-essential git python3-dev python3-pip libopenexr-dev libxi-dev libglfw3-dev libglew-dev libomp-dev libxinerama-dev libxcursor-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libxcursor-dev is already the newest version (1:1.2.0-2).
libxi-dev is already the newest version (2:1.7.10-0ubuntu1).
libxinerama-dev is already the newest version (2:1.1.4-2).
python3-dev is already the newest version (3.8.2-0ubuntu2).
libglew-dev is already the newest version (2.1.0-4).
libglfw3-dev is already the newest version (3.3.2-1).
libomp-dev is already the newest version (1:10.0-50~exp1).
build-essential is already the newest version (12.8ubuntu1.1).
git is already the newest version (1:2.25.1-1ubuntu3.11).
libopenexr-dev is already the newest version (2.3.0-6ubuntu0.5).
python3-pip is already the newest version (20.0.2-5ubuntu1.8).
0 upgraded, 0 newly installed, 0 to remove and 423 not upgraded.
So I'm not sure why I'm getting an error when attempting to link the libopenxr_loader.so library. Does anyone know what might be the issue?
Beta Was this translation helpful? Give feedback.
All reactions