Home › Forums › AR Sandbox Forum › Vrui VR Toolkit Installation Linker Error
- This topic has 1 reply, 2 voices, and was last updated 2 years ago by Sean Robinson.
-
AuthorPosts
-
November 11, 2022 at 11:14 pm #2322MeanderingElectronParticipant
Hi all, I’m making a post in hopes that someone can help me solve this linker error I’m getting while installing the Vrui VR Toolkit. I tried adding the -ffriend-injection flag to CSYSFLAGS in BuildRoot/BasicMakeFile as it was mentioned as a possible fix for undeclared functions in the README, but it didn’t seem to have any effect. Any help would be much appreciated.
Some system information if you think it’ll be helpful.
OS: Fedora Linux 36 (KDE Plasma) x86_64
Kernel: 6.0.7-200.fc36.x86_64
Compiler: g++ (GCC) 12.2.1 20220819 (Red Hat 12.2.1-2)The error reported during linking.
/usr/bin/ld: o/g++-3.g0.O3/pic/SceneGraph/NodeCreator.o: in function 'SceneGraph::GenericNodeFactory<SceneGraph::FancyTextNode>::getClassName() const': NodeCreator.cpp:(.text._ZNK10SceneGraph18GenericNodeFactoryINS_13FancyTextNodeEE12getClassNameEv[_ZNK10SceneGraph18GenericNodeFactoryINS_13FancyTextNodeEE12getClassNameEv]+0x3): undefined reference to 'SceneGraph::FancyTextNode::className' /usr/bin/ld: o/g++-3.g0.O3/pic/SceneGraph/NodeCreator.o: in function 'SceneGraph::GenericNodeFactory<SceneGraph::FancyFontStyleNode>::getClassName() const': NodeCreator.cpp:(.text._ZNK10SceneGraph18GenericNodeFactoryINS_18FancyFontStyleNodeEE12getClassNameEv[_ZNK10SceneGraph18GenericNodeFactoryINS_18FancyFontStyleNodeEE12getClassNameEv]+0x3): undefined reference to 'SceneGraph::FancyFontStyleNode::className' /usr/bin/ld: o/g++-3.g0.O3/pic/SceneGraph/NodeCreator.o: in function 'SceneGraph::GenericNodeFactory<SceneGraph::FancyFontStyleNode>::createNode()': NodeCreator.cpp:(.text._ZN10SceneGraph18GenericNodeFactoryINS_18FancyFontStyleNodeEE10createNodeEv[_ZN10SceneGraph18GenericNodeFactoryINS_18FancyFontStyleNodeEE10createNodeEv]+0x17): undefined reference to 'SceneGraph::FancyFontStyleNode::FancyFontStyleNode()' /usr/bin/ld: o/g++-3.g0.O3/pic/SceneGraph/NodeCreator.o: in function 'SceneGraph::GenericNodeFactory<SceneGraph::FancyTextNode>::createNode()': NodeCreator.cpp:(.text._ZN10SceneGraph18GenericNodeFactoryINS_13FancyTextNodeEE10createNodeEv[_ZN10SceneGraph18GenericNodeFactoryINS_13FancyTextNodeEE10createNodeEv]+0x17): undefined reference to 'SceneGraph::FancyTextNode::FancyTextNode()' collect2: error: ld returned 1 exit status make: *** [/home/topologist/src/Vrui-8.0-002/BuildRoot/BasicMakefile:261: /home/topologist/src/Vrui-8.0-002/lib64/libSceneGraph.so.8.0] Error 1 make: *** Waiting for unfinished jobs.... Build unsuccessful; please fix any reported errors and try again
- This topic was modified 2 years ago by MeanderingElectron.
November 16, 2022 at 1:37 pm #2332Sean RobinsonParticipantThe only thing I have seen similar to this is when I have tried to continue on from a failed build. The Make dependency graph does not see the need to recompile object files, so stale files are used during linking. One option is to remove the
src
directory before re-runningbash Build-Ubuntu.sh
. -
AuthorPosts
- You must be logged in to reply to this topic.