dellboy
Posts: 7
Joined: Fri Nov 09, 2012 4:45 pm

qt creator toolchain

Tue Nov 20, 2012 4:01 pm

I'm running qt creator 4.8.3 on ubuntu laptop and want to compile for both the laptop and the pi. I have added the arm tool chain, pic 2 , but I cannot select it. It's greyed out, see pic1.
pic1.jpg
pic1.jpg (49.19 KiB) Viewed 4590 times
pic2.jpg
pic2.jpg (56.66 KiB) Viewed 4590 times
If i remove and add the qt version, the toolchain dropdown becomes active for a second or two until the automatic parsing and evaluating is completed, then its greyed out again.

Its like the version doesnt support the tool chain.

Also, I can build and run on the laptop, and buuild and deploy to the pi, but i get the following error when i try to run it
Syntax error: word unexpected (expecting ")")
presumably because its compiled for intel, not arm.


I'm only feeling my way along here, so sorry if I'm missing something silly. Has anyone come across the same problem?

User avatar
mad-hatter
Posts: 419
Joined: Sun Feb 26, 2012 2:58 pm
Location: By the UK seaside

Re: qt creator toolchain

Wed Nov 21, 2012 6:52 pm

Hi,

I didn't know how to set up the tool chain either.
On the pi, I use, from a terminal:-
qmake -project
qmake myprog.pro
make
./myprog
You might have edit your myprog.pro file.

Regards

User avatar
mad-hatter
Posts: 419
Joined: Sun Feb 26, 2012 2:58 pm
Location: By the UK seaside

Re: qt creator toolchain

Sat Dec 01, 2012 1:25 pm

Hi,

If you haven't found it already, this is the answere.

http://www.raspberrypi.org/phpBB3/viewt ... 33&t=11706

Regards

Return to “C/C++”