Page 1 of 1

[FIXED] Ubuntu 14.04 linker error

Posted: Mon May 05, 2014 9:45 pm
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

Re: Ubuntu 14.04 linker error

Posted: Tue May 06, 2014 6:36 am
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...

Re: Ubuntu 14.04 linker error

Posted: Tue May 06, 2014 10:29 am
by meshlab
Thanks!
I successfully compiled both cloudcompare and ccviewer.
Both of them are able to load projects.

Re: Ubuntu 14.04 linker error

Posted: Tue May 06, 2014 11:25 am
by daniel
Good news!

We still have issues on MacOS but it should be fixed soon.