Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linking error while building octovis #309

Open
DarkGeekMS opened this issue Oct 16, 2020 · 1 comment
Open

Linking error while building octovis #309

DarkGeekMS opened this issue Oct 16, 2020 · 1 comment
Labels

Comments

@DarkGeekMS
Copy link

Hello,

I'm trying to build octovis with QT5, however I get the following error :

[ 20%] Building CXX object CMakeFiles/octovis.dir/qrc_icons.cpp.o
[ 20%] Linking CXX executable ../bin/octovis
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/libQGLViewer-qt5.so: undefined reference to `qt_version_tag@Qt_5.12'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/octovis.dir/build.make:359: ../bin/octovis] Error 1
make[1]: *** [CMakeFiles/Makefile2:108: CMakeFiles/octovis.dir/all] Error 2
make: *** [Makefile:141: all] Error 2

I spent some time searching and trying to solve it, but no luck.

So, any help?

Thanks in advance.

@rlabs-oss
Copy link

HI,
I ran into the same issue and it was related to my anaconda install.
Removing the build folder followed by conda deactivate, mkdir build, cmake .. again and finally make solved this issue for me.

I also added set(CMAKE_CXX_FLAGS "-w") to the top level CMakeLists.txt to prevent the build failing with errors related to unused parameters in the code marked TODO. (Not before trying the no warn unused parameter which didnt help)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants