[Moved] Qt Creator 2.3 can’t detect ABI for embedded platform
I use Qt for sh4 linux platform. So, I need to add a Qt version (qws/linux-sh4-g++) to Qt Creator manually.
In Qt Creator 2.0 it is okay. But Qt Creator 2.3 says "failed to detect the ABI(s) used by the Qt version".
Is there a way to add my Qt version to Qt Creator 2.3?
and checks whether the paths are correct. If they are not, put some soft links to the correct paths for qmake.
Yes all paths are correct. In Qt Creator 2.0 there is no problem
Creator now looks at the Qt Core to decide which tool chains to offer. Can you "please open a bug report":http://bugreports.qt.nokia.com/ and attach your libQtCore*.so.* to it? Maybe the detection is off, since I have no unit test for the sh4 yet.
PS: You should be save to use Qt Creator 2.2 for the time being. The tool chain code only went into 2.3.
I opened a bug.
I tried Qt Creator 2.2.1. It fails too.
[quote author="isavaskan" date="1316611741"]I opened a bug.
I tried Qt Creator 2.2.1. It fails too.[/quote]
It would be nice, if you could report back the issue id here, so that others can find it more easily. Thanks.
The url of the issue is https://bugreports.qt.nokia.com/browse/QTCREATORBUG-6152
I am surprised that Qt Creator 2.2.1 is failing here. It does not have the relevant code yet. Qt Creator 2.3.1 will fail.
I am currently having a patch in codereview that will open all tool chains for use whenever we fail to detect a Qt version fully, so I hope Qt Creator 2.4 will cover this use case again. Sorry for the inconvenience, we underestimated the use case quite a bit it seems:-(
When I run Qt Creator 2.2.1 from console it says:
Warning: Could not find ABI for '/usr/local/Trolltech/QtEmbedded-4.7.0-sh4/mkspecs/qws/linux-sh4-g++' ('Qt 4.7.0 sh4', /usr/local/Trolltech/QtEmbedded-4.7.0-sh4/bin/qmake)/sh4-linux-g++ by looking at /usr/local/Trolltech/QtEmbedded-4.7.0-sh4/lib/libQtCore.so.4.7.0:Qt Creator does not know about the system includes, nor the system defines.
So, I think 2.2.1 checks core lib for ABI too.
Oh, you are right of course:-( Sorry, I misremembered that.
The issue should be fixed in master. Please give it a try.
Yes, it is fixed.
I suppose current Qt Creator doesn't save my tool chain configuration.
Firstly, I define my custom tool chain with the ABI settings: sh-linux-generic-elf-32bit. But when I restart the program, the ABI of manually added tool chain shows: unknown-linux-generic-elf-unkonwn.
Also, I can debug program on device using Debug > Start Debugging > Attach to Remote Debug Server.
But If I use Debug button (or press F5), the debugger says:
Reading debug information failed:
<executable path>: could not open as an executable file: Invalid bfd target
I think there are still some little issues with sh architecture.
I might have fixed that today when fixing a typo in the abi.cpp file:-)
Ok. Qt Creator remembers the tool chain now.
But I encounter the problem mentioned my previous post about debugging.
Please specify whether the problem is related to ABI detection or not.
I happened to notice your tool chain issue by chance here... if you do not want to rely on chance alone to get your issues fixed, then please "file bug reports":http://bugreports.qt.nokia.com/.
You are right. I filed the issue with no 6181