Fri, Sep 26, 2014 at 07:08:11PM +0200, skrev Morten Langlo: > Fri, Sep 26, 2014 at 06:17:58PM +0200, skrev JLuc: > > Thanks for your attention :-) > > > > > So the above linker option seems not to be used, instead You could try > > > either CMAKE_EXE_LINKER_FLAGS_DEBUG, CMAKE_EXE_LINKER_FLAGS_MINSIZEREL, > > > CMAKE_EXE_LINKER_FLAGS_RELEASE or CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO > > > > AMOF, i think it is used, because at some point i tried > > with -DCMAKE_EXE_LINKER_FLAGS="-libQt5Quick -libQt5PrintSupport" > > (notice the -lib instead of -l) > > and when doing this i had an error message (stating that these files were > > not found). > > See further down! > > > >... > > >... > > >If it still doesn't work, a last resort could be to manually add > > > -lQt5Quick -lQt5PrintSupport > > >to the file "Your_build_directory/scribus/CMakeFiles/scribus.dir/link.txt" > > > just before CMakeFiles/scribus.dir/moc_ > > > > > >so it starts with something like this > > > > > >/usr/bin/c++ -O2 -Wall -fPIC -lQt5Quick -lQt5PrintSupport > > >CMakeFiles/scribus.dir/moc_... > > If it is being used You vil see the option put into this file > "Your_build_directory/scribus/CMakeFiles/scribus.dir/link.txt" > > something like this: > /usr/bin/c++ -O2 -Wall -fPIC -lQt5Quick -lQt5PrintSupport > CMakeFiles/scribus.dir/moc_ >
One more thing - if "-lQt5Quick -lQt5PrintSupport" is found in the file link.txt the error message You still have, indicates, that the linker can't find the library, and since they are in a NON standard place, it might be necessary to tell the linker where to search the libraries by using the -L option in this way: -DCMAKE_EXE_LINKER_FLAGS="-L/home/jluc/dev/Qt/Qt5.3.2/5.3/gcc_64/lib -libQt5Quick -libQt5PrintSupport" Hope this helps You -- Morten Langlo Denmark
