Problems with deploying to Nokia N9 with QtCreator
I get following error message when I'm tying to follow hello world exaple for harmattan and qtcreator:
[CODE]12:57:17: Running steps for project hello...
12:57:17: Configuration unchanged, skipping qmake step.
12:57:17: Starting: "/usr/bin/make" -w
make: Entering directory `/home/tomin/etc/Ohjelmointi/Meego/hello-build-embedded-Qt_4_8_2_in_PATH__System__Release'
Copying application data...
make: Leaving directory `/home/tomin/etc/Ohjelmointi/Meego/hello-build-embedded-Qt_4_8_2_in_PATH__System__Release'
12:57:17: The process "/usr/bin/make" exited normally.
12:57:17: Uploading file '/home/tomin/etc/Ohjelmointi/Meego/hello-build-embedded-Qt_4_8_2_in_PATH__System__Release/hello'...
mkdir: can't create directory '/opt/hello/': Permission denied
12:57:17: Failed to upload file '/home/tomin/etc/Ohjelmointi/Meego/hello-build-embedded-Qt_4_8_2_in_PATH__System__Release/hello'.
12:57:17: Deploy step failed.
Error while building/deploying project hello (target: Embedded Linux)
When executing step 'Upload files via SFTP'
[/CODE]
I get this when I click run. And I checked using ssh that indeed I can't create a dircetory using developer user.
[CODE]$ ls -ld /opt
drwxr-xr-x 40 root root 4096 Jul 24 08:18 /opt
$ mkdir /opt/hello
mkdir: can't create directory '/opt/hello': Permission denied[/CODE]
What should I do?
Re: Problems with deploying to Nokia N9 with QtCreator
Have you gone through [URL="http://doc.qt.nokia.com/qtcreator-2.3/creator-developing-meego.html"]http://doc.qt.nokia.com/qtcreator-2.3/creator-developing-meego.html[/URL] and set up the connection to the device?
Br,
Villep
Re: Problems with deploying to Nokia N9 with QtCreator
Well, the connection works and test seems to be fine.
[CODE]Device test finished successfully.[/CODE]
Now I checked better what the page says about project's settings and I don't think I have quite the same Run settings as they are not available. On that page it's set up to create package, but my computer is just set up to upload. Although the tutorial didn't say anything about that...
The tutorial I'm following is this: [url]http://harmattan-dev.nokia.com/docs/library/html/guide/html/Developer_Library_Getting_started_with_Harmattan_using_Qt_SDK_Creating_and_running_a_Hello_World_application_with_Qt_SDK.html[/url]
It seems to be for a bit older QtCreator as the first steps weren't exaclty the same, but I think I chose the right path.
The version seems to be Qt Creator 2.5.0, Based on Qt 4.8.1 (64 bit) and it's run on Arch Linux. My N9 has 1.3 update installed if that matters.
There is something weird in my installation as this program I built for the device is x86_64 application:
[CODE]$ file /home/tomin/etc/Ohjelmointi/Meego/hello-build-embedded-Qt_4_8_2_in_PATH__System__Release/hello
/home/tomin/etc/Ohjelmointi/Meego/hello-build-embedded-Qt_4_8_2_in_PATH__System__Release/hello: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, BuildID[sha1]=0x8b523238ba551d3744d1c0509a0676e0706e086d, not stripped[/CODE]
Re: Problems with deploying to Nokia N9 with QtCreator
What username (the one in Linux Devices) are you using to connect to the device? Are you using Harmattan Target as the Qt version? Do you have the correct device selected in Run Settings -> Device configuration?
Br,
Villep
Re: Problems with deploying to Nokia N9 with QtCreator
I think so...
[url]https://dl.dropbox.com/u/4305182/Scrot/2012-07-26-13-56-34.png[/url]
[url]https://dl.dropbox.com/u/4305182/Scrot/2012-07-26-13-58-09.png[/url]
except about that qt version, because I can't find such settings anywhere.
[url]https://dl.dropbox.com/u/4305182/Scrot/2012-07-26-14-00-10.png[/url]
Should I have installed something in addition to qtcreator package?
List of files in qtcreator: [url]http://pastebin.com/RCkcMx8N[/url]
Re: Problems with deploying to Nokia N9 with QtCreator
Please check if you have Harmattan target installed if not, install it.
Start Qt Creator, then Help -> Start Updater -> Package Manager.
You should now get a list of installed components. Under Development tools you should see Harmattan. Under Harmattan you should have Harmattan Emulator, Qt Quick Components and Harmattan Target. If you do not have those installed (they should be checked if they are) then check atleast Harmattan Target and press next.
Now Qt Creator should install the proper target and after that you can use that to create applications for Harmattan.
Image to clarify [URL="http://imgur.com/xkHq5"]http://imgur.com/xkHq5[/URL].
Br,
Villep
Re: Problems with deploying to Nokia N9 with QtCreator
I don't know what I'm doing wrong but I don't have Start Updater item in Help menu. The program is definately Qt Creator though.
Re: Problems with deploying to Nokia N9 with QtCreator
Did you install the full QtSDK or only QtCreator ? If you installed the full SDK you should find SDKMaintenanceTool in the directory you installed the SDK to (such as /home/QtSDK/). You can launch the maintenance tool and use that to download necessary packages without launching QtCreator.
Br,
Villep
Re: Problems with deploying to Nokia N9 with QtCreator
Apparently I didn't install anything else but just Qt Creator. Thanks.
I assumed that I needed only qtcreator-package as that was the only QtSDK related package available in Arch Linux repository (or even aur it seems). I downloaded the whole (offline) installer and used it. Now I have a working setup. Thanks again. :)
It took me some time to reply as I was on vacation last week and I also have quite slow internet connection, so it took me quite a bit of time to download the SDK.