make error 2.7.0 (trunk.r56)

Added by maxi Bauregger over 4 years ago

Hi,

i have some issues in step make.

Used :
GCC 4.7
QTC 2.7.0
QTC-src 2.7.0
doxygen 1.8.2
Qt 5.1.0
OpenSuse 12.3

(same errors on windows with mingw Qt 4.8.0 / 5.0.1)

make output:
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
linux-ucpv:/opt/QTStuff/build-doxygen-Desktop-Debug # make
/opt/Qt5.1.0/5.1.0/gcc/bin/qmake -spec linux-g++ CONFIG+=debug CONFIG+=declarative_debug CONFIG+=qml_debug -o Makefile ../trunk.r56/doxygen.pro
Project MESSAGE: QTC_SOURCE_DIR = /opt/QTStuff/qt-creator-2.7.0-src/
Project MESSAGE: IDE_SOURCE_TREE = /opt/QTStuff/qt-creator-2.7.0-src
Project MESSAGE: QTC_BUILD_DIR = /opt/QTStuff/qtcreator-doxygen/
Project MESSAGE: IDE_BUILD_TREE = /opt/QTStuff/qtcreator-doxygen/
Project MESSAGE: DESTDIR = /opt/QTStuff/qtcreator-2.7.0-x86/lib/qtcreator/plugins/Kofee
Project MESSAGE: Good luck with make...
rm -f libDoxygen.so
g++ -Wl,-z,origin '-Wl,-rpath,/opt/Qt5.1.0//5.1.0/gcc:$ORIGIN:$ORIGIN/..:$ORIGIN/../..' -Wl,--no-undefined -Wl,-O1 -Wl,-rpath,/opt/Qt5.1.0/5.1.0/gcc/lib -shared -Wl,-soname,libDoxygen.so -o libDoxygen.so .obj/release-shared/doxygenplugin.o .obj/release-shared/doxygen.o .obj/release-shared/doxygensettings.o .obj/release-shared/doxygensettingswidget.o .obj/release-shared/doxygensettingsstruct.o .obj/release-shared/qrc_doxygen.o .obj/release-shared/moc_doxygenplugin.o .obj/release-shared/moc_doxygensettings.o .obj/release-shared/moc_doxygensettingswidget.o -L/home/root/qtcreator-2.7.0-x86/lib/qtcreator -L/home/root/qtcreator-2.7.0-x86/lib/qtcreator/plugins/QtProject -L/home/root/qtcreator-2.7.0-x86/lib -L/opt/QTStuff/qtcreator-doxygen//lib/qtcreator -L/opt/QTStuff/qtcreator-doxygen//lib/qtcreator/plugins/QtProject -L/opt/QTStuff/qtcreator-doxygen//lib/qtcreator/plugins/Kofee -lAggregation -lExtensionSystem -lUtils -lCore -lFind -lLocator -lTextEditor -lCPlusPlus -lLanguageUtils -lProjectExplorer -lCppTools -lCppEditor -L/opt/Qt5.1.0//5.1.0/gcc/lib -lQt5Widgets -lQt5Network -lQt5Concurrent -lQt5Gui -lQt5Core -lGL -lpthread
/usr/lib/gcc/i586-suse-linux/4.7/../../../../i586-suse-linux/bin/ld: cannot find -lAggregation
/usr/lib/gcc/i586-suse-linux/4.7/../../../../i586-suse-linux/bin/ld: cannot find -lExtensionSystem
/usr/lib/gcc/i586-suse-linux/4.7/../../../../i586-suse-linux/bin/ld: cannot find -lUtils
/usr/lib/gcc/i586-suse-linux/4.7/../../../../i586-suse-linux/bin/ld: cannot find -lCore
/usr/lib/gcc/i586-suse-linux/4.7/../../../../i586-suse-linux/bin/ld: cannot find -lFind
/usr/lib/gcc/i586-suse-linux/4.7/../../../../i586-suse-linux/bin/ld: cannot find -lLocator
/usr/lib/gcc/i586-suse-linux/4.7/../../../../i586-suse-linux/bin/ld: cannot find -lTextEditor
/usr/lib/gcc/i586-suse-linux/4.7/../../../../i586-suse-linux/bin/ld: cannot find -lCPlusPlus
/usr/lib/gcc/i586-suse-linux/4.7/../../../../i586-suse-linux/bin/ld: cannot find -lLanguageUtils
/usr/lib/gcc/i586-suse-linux/4.7/../../../../i586-suse-linux/bin/ld: cannot find -lProjectExplorer
/usr/lib/gcc/i586-suse-linux/4.7/../../../../i586-suse-linux/bin/ld: cannot find -lCppTools
/usr/lib/gcc/i586-suse-linux/4.7/../../../../i586-suse-linux/bin/ld: cannot find -lCppEditor
collect2: error: ld returned 1 exit status
make: *** [../qtcreator-2.7.0-x86/lib/qtcreator/plugins/Kofee/libDoxygen.so] Error 1
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

add also the line:
Q_PLUGIN_METADATA(IID "org.qt-project.ExtensionSystem.IPlugin")

can someone help me ? thanks

Max


Replies (2)

RE: make error 2.7.0 (trunk.r56) - Added by Andreas Wass over 4 years ago

Hello

The easy answer first: Q_PLUGIN_METADATA was added in r57 so use that revision for QTC 2.7 together with Qt5.

Now for the second problem: Try settings LIBSROOT to /opt/QTStuff/qtcreator-2.7.0-x86/lib when you run qmake. As far as I can work out you did not set this variable so it will default to /home/<user>/qtcreator-2.7.0-x86/lib

RE: make error 2.7.0 (trunk.r56) - Added by maxi Bauregger over 4 years ago

Hey,

thanks i solved the problem, happy*

problem was LIBSROOT, but the correct path was :
LIBS += -L/opt/QTStuff/build-qtcreator-Desktop_Qt_5_1_0_GCC_32bit-Release/lib/qtcreator \
-L/opt/QTStuff/build-qtcreator-Desktop_Qt_5_1_0_GCC_32bit-Release/lib/qtcreator/plugins/QtProject \
-L/opt/QTStuff/build-qtcreator-Desktop_Qt_5_1_0_GCC_32bit-Release/lib

for all other with the same problem use the path to the QTC build directory by LIBSROOT

thanks for all

Max

ps: perhapes it is possible to make also a qmake output for LIBSROOT :-D
"message(LIBSROOT = $$LIBSROOT)"

(1-2/2)