2

I use Qt Creator 2.8.1 on Windows, no deployment menu (configure) available. Cross compile for ARM target device.

I defined toolchain which is ok except GDB, cross compiler and kit (all together). The application is built either in debug and release mode but two things I need more:

  • executable name is always *.exe. This is a linux ARM binary, cannot change this?
  • deploy not available at all (neither run menu)

I must scp by hand, change attributes and run. Can be automatic little bit? However, I can create a batch file witch pscp but isn't suppose Qt Creator handle this?

6
  • Out of curiosity: which toolchain are you using? Also, which embedded platorm is this? Commented Dec 31, 2013 at 18:39
  • quick question why 2.8.1.? Commented Dec 31, 2013 at 19:57
  • because 3.0 is not working properly on XP, the property menus are collapsing one over each other and it's much slower Commented Dec 31, 2013 at 20:25
  • @dan: even if it was working on XP, using the newest is not always necessary just because there is a newer version available, especially if it is a new major release. :) Commented Dec 31, 2013 at 20:41
  • agree :) these days.. newest, worse, more cpu, more ram, more GB... My XP it's absolute rocket.. I would not change for anything right now. Commented Dec 31, 2013 at 20:48

2 Answers 2

2

It is only the matter of proper toolchain and deployment setup. Here you can find the screenshots of mine from my QtCreator session where you can customize the kit and deployment as you wish.

Please make sure you have the right "-spec" argument there because that will determine the toolchain used, and it is important to be set up properly.

As for the deployment, you can put the commands in there that you would otherwise put into your Windows batch file, et al.

enter image description here

enter image description here

Sign up to request clarification or add additional context in comments.

6 Comments

Hi Laszlo, I don't have "deploy locally" just "deploy to remote linux host". And there is a yellow icon that says "don't know what to run"
@user1973900: yes, that is expected since you are trying to deploy to a remote target as opposed to locally. Yet, the customization is very similar. The warning is probably due to the fact it cannot figure out for you automatically, hence the customization. There can be so many different deploying steps, so just specify and chain the commands as you wish.
Do I have to enable some FTP on target? rignt now it's only SCP and working well.. even Qt can read the processes, environment, etc. ? PS. It's my own built SDK :) hope I'm not missing something :)
@user1973900: Why do you need an ftp server on the target for scp on the host? You would need that or sftp, but not for scp. I used to see custom SDKs, like with Yocto, but it should work in general. You can always give a try to the official SDK to see if it makes a difference.
I read some posts on net about SFPT (sorry, spell). Ok, I'll see what to do.. at mine, I have no files at all in Deployment -> Files to deploy.. perhaps here is the problem. Ok, thanks and happy new year.
|
0

Ok, I found the problem here, thanks stackoverflow:

Raspberry pi on Qt 5.1.1: Remote path not set

In the project .pro file must be set the remote path for deploying:

target.path = /root/john/qt INSTALLS += target

And now, the deployment works as expected.

There is one problem more... on my XP, executable is with .exe extension. In the same project .pro file, must change:

TARGET = untitled1.exe

If anyone knows how to get ride of .exe extension, appreciate.

Thanks all for suggestions,

2 Comments

This is not a forum site, hence the posts are not rolling. There should be one question, and the rest is about answer(s). Please modify your post respectively. Also, it is weird that you post an answer without answering the questions first. It feels like a bit write-only. :)
OT: this looks really strange: target.path = /root/john/qt

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.