QtSDK 1.1.3 && toolchain problem
Page |
1 |
Hi all,
I installed the new SDK and I’m trying to compile one my old project.
The .pro has :
- ....
- ....
- linux-g++ {
- INCLUDEPATH += ../modbus_x86
- QMAKE_LIBDIR += ../modbus_x86
- LIBS += -lmodbus
- }
- linux-arm-gnueabi-g++ {
- INCLUDEPATH += ../modbus_beagle
- QMAKE_LIBDIR += ../modbus_beagle
- LIBS += -lmodbus
- }
- ....
- ....
- ....
While compiling for x86 it doesn’t find modbus.h . But the file is ../modbus_x86 .
It seems that linux-g++ isn’t recognized.
I hadn’t this problem with old SDK.
How can I solve the problem?
20 replies
I found a possible problem.
In Qt Creator -> Projects -> Build Steps
there is:
- qmake: qmake satellite.pro -r -spec linux-g++-32
so it seems always take linux-g++-32 for every toolchain I select.
I solved the problem removing the wron build step and adding a new “Custom Process Step”:
Command: /opt/qt4-4.7.4-beagle/bin/qmake
Command arguments: /home/luca/DATI/gei/qt4/progetto_solarwind/satellite/satellite_2/satellite/satellite.pro
and putting this build step on the top of the build steps.
Is there another way to change the default:
- qmake: qmake satellite.pro -r -spec linux-g++-32
in the Build Steps?
I found a Bug Report:
https://bugreports.qt.nokia.com/browse/QTCREATORBUG-5917
So I hope it will be solved soon …
You can leave the qmake build step. Just expand it and you will find an input field for command line switches. If you add “-spec name-of-your-spec” to it, the default is replaced by your value.
You can vote for QTCREATORBUG-5756 [bugreports.qt.nokia.com], this is the replacement report for QTCREATORBUG-5756 [bugreports.qt.nokia.com].
Thnaks Volker,
I just tried and it works.
I seen that before writing the “additional aruments” the “Effective qmake call” was:
- qmake /home/luca/DATI/gei/qt4/progetto_solarwind/satellite/satellite_2/satellite/satellite.pro -r -spec linux-g++-32
next when typing “-spec linux-g++” the “Effective qmake call” become:
- qmake /home/luca/DATI/gei/qt4/progetto_solarwind/satellite/satellite_2/satellite/satellite.pro -r -spec linux-g++
For me it should be better to avoid at all the argument “-spec” to let Qt to get the “default”.
Do you think it’s possible?
As far as I know, the Trolls are on it. You can vote for QTCREATORBUG-5756 [bugreports.qt.nokia.com], that could rise the priority :-)
You can leave the qmake build step. Just expand it and you will find an input field for command line switches. If you add “-spec name-of-your-spec” to it, the default is replaced by your value.You can vote for QTCREATORBUG-5756 [bugreports.qt.nokia.com], this is the replacement report for QTCREATORBUG-5756 [bugreports.qt.nokia.com].
I just found another workaround to use the default spec instead of using “-spec name-of-your-spec” I only need “-spec default”.
Sorry Tobias, I didn’t understand very well what you mean with “try the master branch”? If you can explain me better I can try.
He meant to use the sources of Qt Creator at gitorious [qt.gitorious.org]. You would have to checkt out the master branch and build Creator manually. To my knowledge, there are no nightly builds or similar prebuilt development snapshots available.
You must log in to post a reply. Not a member yet? Register here!





