|
From: Aiche, S. <Ste...@fu...> - 2014-05-30 08:49:40
|
He Antonio, first of all great that it works now but it shouldn't be necessary to extend the linker flags via LDFLAGS. Could you therefore provide some more details regarding your setup so we can try to reproduce the error and, if possible, fix it. Following things would be very helpful Fedora version OpenMS version (I assume 1.11.1) CMake version Qt version How did you setup OpenMS? (self compiled contrib or system libs) ? What was the cmake command you used to configure OpenMS? Could you also please attach the CMakeCache.txt Thanks a lot Stephan On 29 May 2014, at 22:29, Antonio Trande <ant...@gm...<mailto:ant...@gm...>> wrote: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 05/29/2014 07:27 PM, Antonio Trande wrote: Hi all. Please, I need to resolve this error during the OpenMS compilation in Fedora; I don't understand what's the problem here (full log attached): Linking CXX executable bin/CompNovo /usr/bin/cmake -E cmake_link_script CMakeFiles/CompNovo.dir/link.txt --verbose=1 /usr/lib64/ccache/c++ -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -fopenmp -DNDEBUG -Wl,-z,relro -fopenmp CMakeFiles/CompNovo.dir/source/APPLICATIONS/TOPP/CompNovo.C.o -o bin/CompNovo -rdynamic lib/libOpenMS.so -lQtOpenGL -lQtSvg -lQtWebKit -lQtTest -lQtXml -lQtSql -lQtNetwork lib/libOpenSwathAlgo.so -lgsl -lgslcblas -lsvm -lm -lxerces-c -lboost_iostreams -lboost_date_time -lboost_math_c99 -lboost_regex -lbz2 -lz -lglpk -Wl,-rpath,/home/sagitter/rpmbuild/BUILD/OpenMS-Release1.11.1/lib /usr/bin/ld: CMakeFiles/CompNovo.dir/source/APPLICATIONS/TOPP/CompNovo.C.o: undefined reference to symbol '_ZN7QString16fromAscii_helperEPKci' /usr/bin/ld: note: '_ZN7QString16fromAscii_helperEPKci' is defined in DSO /lib64/libQtCore.so.4 so try adding it to the linker command line /lib64/libQtCore.so.4: could not read symbols: Invalid operation collect2: error: ld returned 1 exit status make[2]: *** [bin/CompNovo] Error 1 make[2]: Leaving directory `/home/sagitter/rpmbuild/BUILD/OpenMS-Release1.11.1' make[1]: *** [CMakeFiles/CompNovo.dir/all] Error 2 make[1]: Leaving directory `/home/sagitter/rpmbuild/BUILD/OpenMS-Release1.11.1' make: *** [all] Error 2 Error fixed by adding export LDFLAGS="$LDFLAGS -lQtCore" before 'cmake' command. - -- Antonio Trande mailto: sagitterATfedoraproject.org<http://sagitteratfedoraproject.org/> http://www.fedoraos.worpress.com<http://www.fedoraos.worpress.com/> https://fedoraproject.org/wiki/User:Sagitter GPG Key: D400D6C4 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBAgAGBQJTh5i5AAoJED2vIvfUANbENgYQAK2XaLk4MSGZFGoXh18tNNTO zTv1hbX/VZ7ewBlvLlbXaZmhmfbAcRDrm4klCDHzbvibyfcFFqQSFa+TJps+UZTQ PswStme3yIZJZk4MQDSXq9R3+dF3c6PaY5R/OdDiw0rZg+Hv6SOdN8JQkCys7R8c zBYzBv+dtKXeHeBcNrm39qXEItfkyugpOt1BgcKA/sWkY3BEcNMCQp3EXel/uZZU PUTBXOKcSWmn2e2awn/oStmbDV/rwKcm45kf+u6VH2ZLJmjLOKBSW42jm3CGdTpP M6FJmWjFeDXd0EcRQ/HXw7Alwc8D33IM2bK2s4aMAft4SFTnWzhbaXSy+nmx+Zul rZ4uke4NFqjNlFNhX7oxjrskyeI5bzSxaAzjVXnhhKYccYSgLPDnW/GuYtW/pqjF cDvsTLs1eOoIdTFNu1hogJaWeqQEppU/5hag7HxLGNEdP4ASb3JarUvbv7fAIYir EAYFFzc2VyRvBcJTSUGU1tPMA6j2a2TwoTTOqU+GJ9SCozGpSqx2QQ3UFB98nq8n 3DNwGxUoHkPXB/7bISblB6FxHNY0XQJz1PrybRmlR5BLpy5NQeE57N7909Us58qt lfSvp0WBFEXgq5fOB5dYswgNPBSt3heghlv3obgTeTae4d2V2JU3J2uQnhz2APpP dFMtCfDmuiEL7/+WZFK9 =NxGF -----END PGP SIGNATURE----- ------------------------------------------------------------------------------ Time is money. Stop wasting it! Get your web API in 5 minutes. www.restlet.com/download<http://www.restlet.com/download> http://p.sf.net/sfu/restlet _______________________________________________ Open-ms-general mailing list Ope...@li... https://lists.sourceforge.net/lists/listinfo/open-ms-general |