mmcmatthew / ssl-vision

Automatically exported from code.google.com/p/ssl-vision
GNU General Public License v3.0
0 stars 0 forks source link

Linker Errors on Ubuntu 11.10 #16

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi All,

I've experienced some strange behaviors while trying to compile r198 on Ubuntu 
11.10. 

After upgrading to Ubuntu 11.10 from 11.04, I faced to many linker errors while 
trying to compile SSL-Vision. I found out that the $QT_LIBRARIES variable in 
the CMakeList.txt points to wrong place, /usr/lib instead of currect 
/usr/lib/i386-linux-gnu/. This seems like a upgrade problem/bug.

I started again with a fresh install of Ubuntu 11.10 with all SSL-Vision 
required libraries installed. This time the $QT_LIBRARIES pointed to the 
correct place, however I receive this strange error while doing `make`:

[ 60%] Building CXX object CMakeFiles/client.dir/src/client/main.cpp.o
Linking CXX executable bin/client
libsslvision.a(robocup_ssl_client.cpp.o): In function 
`RoboCupSSLClient::RoboCupSSLClient(int, std::basic_string<char, 
std::char_traits<char>, std::allocator<char> >, std::basic_string<char, 
std::char_traits<char>, std::allocator<char> >)':
robocup_ssl_client.cpp:(.text+0x27): undefined reference to 
`QMutex::QMutex(QMutex::RecursionMode)'
robocup_ssl_client.cpp:(.text+0xc3): undefined reference to `QMutex::~QMutex()'
libsslvision.a(robocup_ssl_client.cpp.o): In function 
`RoboCupSSLClient::~RoboCupSSLClient()':
robocup_ssl_client.cpp:(.text+0x127): undefined reference to `QMutex::~QMutex()'
robocup_ssl_client.cpp:(.text+0x15d): undefined reference to `QMutex::~QMutex()'
collect2: ld returned 1 exit status
make[2]: *** [bin/client] Error 1
make[1]: *** [CMakeFiles/client.dir/all] Error 2
make: *** [all] Error 2

Original issue reported on code.google.com by mani.mon...@gmail.com on 14 Oct 2011 at 11:25

GoogleCodeExporter commented 9 years ago
Estou passando pelo seguinte problema, acredito ser similar 
utilizo o kubuntu versão:

Linux version 3.2.0-33-generic (buildd@batsu) (gcc version 4.6.3 (Ubuntu/Linaro 
4.6.3-1ubuntu5) ) #52-Ubuntu SMP

poderia ser problema de arquitetura este roda em 64?

[ 58%] Built target GenerateProto
[ 58%] Built target sslvision
Linking CXX executable bin/client
/usr/bin/ld: cannot find -lcv
/usr/bin/ld: cannot find -lcxcore
/usr/bin/ld: cannot find -lml
collect2: ld returned 1 exit status
make[2]: *** [bin/client] Error 1
make[1]: *** [CMakeFiles/client.dir/all] Error 2
make: *** [all] Error 2

Original comment by ander....@gmail.com on 3 Dec 2012 at 1:23

GoogleCodeExporter commented 9 years ago
Hello. Tim has applied a workaround for this back in Dec 2011, I believe he 
forgot to close the issue, so I'm doing it.

Cheers, Angelo

Original comment by jgurz...@yahoo.com.br on 16 Mar 2013 at 7:09