[FIXED] Ubuntu 14.04 linker error

If you are allergic to bug trackers, you can post here any remarks, issues and potential bugs you encounter
Post Reply
meshlab
Posts: 2
Joined: Mon May 05, 2014 9:34 pm
Location: Venice, Italy
Contact:

[FIXED] Ubuntu 14.04 linker error

Post by meshlab »

Hi all,
I'm trying to compile CloudeCompare (the git head of master branch) against QT5 on a Xubuntu 14.04 32bit machine.

At linker time I get:

Linking CXX executable CloudCompare
/usr/bin/ld: cannot find -lQt5::WinMain
collect2: error: ld returned 1 exit status
make[2]: *** [qCC/CloudCompare] Error 1
make[1]: *** [qCC/CMakeFiles/CloudCompare.dir/all] Error 2
make: *** [all] Error 2

Do you have any suggestion on which library the linker is looking for?
As far as I can see, no ubuntu package provide Qt5::WinMain.

Any suggestion will be appreciated.
Thanks
Regards
Gigi
daniel
Site Admin
Posts: 7713
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Ubuntu 14.04 linker error

Post by daniel »

Hi,

In fact the compilation with Qt5 is not finished and still under development (we don't even talk about it in the compilation instructions ;).

I've just patched the CMake files to prevent the WinMain issue. But you might encounter other errors...
Daniel, CloudCompare admin
meshlab
Posts: 2
Joined: Mon May 05, 2014 9:34 pm
Location: Venice, Italy
Contact:

Re: Ubuntu 14.04 linker error

Post by meshlab »

Thanks!
I successfully compiled both cloudcompare and ccviewer.
Both of them are able to load projects.
daniel
Site Admin
Posts: 7713
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Ubuntu 14.04 linker error

Post by daniel »

Good news!

We still have issues on MacOS but it should be fixed soon.
Daniel, CloudCompare admin
Post Reply