Reply
Thread Tools
Posts: 23 | Thanked: 0 times | Joined on Jul 2010
#1
I am using Qt creator. Developed Hello application and ran successfully to see hello world on simulator. I selected option to create build for maemo device.

I found c:\users\sukumar\Helloword\helloworld_0.1_armel.de b. I copied to MyDocs folder on n900 device. I opened xterm
and ran

sudo gainroot
dbpk -i helloword_0.1_armel.deb

I saw following message
Reading database... 27752 files and directories currently installed.)
Preparing to replafcfe helloworld .1 (using heloword_0.1_armel.deb)...
unpacking replacement heloword...
Setting up Helloword(0.1)

But I can't see hello world program in applications. I am beginner for both maemo and Qt. Appreciate any help.
 
Posts: 1,992 | Thanked: 3,339 times | Joined on Jun 2010 @ N900: Battery low. N950: torx 4 re-used once and fine; SIM port torn apart
#2
Originally Posted by sukumar View Post
I am using Qt creator. Developed Hello application and ran successfully to see hello world on simulator. I selected option to create build for maemo device.

I found c:\users\sukumar\Helloword\helloworld_0.1_armel.de b. I copied to MyDocs folder on n900 device. I opened xterm
and ran

sudo gainroot
dbpk -i helloword_0.1_armel.deb

I saw following message
Reading database... 27752 files and directories currently installed.)
Preparing to replafcfe helloworld .1 (using heloword_0.1_armel.deb)...
unpacking replacement heloword...
Setting up Helloword(0.1)

But I can't see hello world program in applications. I am beginner for both maemo and Qt. Appreciate any help.
You were able to run it in emulator. You should know how it is called and were it is stored. One possibility:
/usr/bin/helloworld
another
/opt/usr/bin/helloworld

So, find it wherever it is, and try to run from xterm.

If you found it, but it cannot run, type
sudo gainroot
chmod +x pathtothefile

Post results here.
And people will try to help you.

P.S. Do you see your application in App Manager? If not, it's not a reason to think it wasn't installed. You might have declared Section in your deb something like "devel" or "other" instead of "user/something". If you get Faster Application Manager, it will show not only user/... packages, but all the system, devel and others.

http://wiki.maemo.org/Packaging
http://wiki.maemo.org/Packaging_a_Qt_application
http://wiki.maemo.org/Qt4_development

Last edited by Wikiwide; 2010-08-04 at 03:11. Reason: A thought, and a wiki link
 

The Following 2 Users Say Thank You to Wikiwide For This Useful Post:
Posts: 23 | Thanked: 0 times | Joined on Jul 2010
#3
I have tried one more sample qt application from qt creator. This is what I did

1. I used "Welcome" tab and created sample project using Animation->Moving blocks.
2. I chose both simulator and Maemo Fermantle as test environment
3. I went to Projects->Maemo Build and chose Edit build configuration as "Release"
4. I found following debian package
C:\NokiaQtSDK2\Examples\4.6\animation\moveblocks moveblocks_0.1_armel.deb
5. I copied to MyDocs\sukumar folder and ran the following
dbkg -i moveblocks_0.1_armel.deb
I saw the message

Reading database .. 28033 files and directories currently installed
Preparing to replace moviebocks 0.1
unpacking replacement moveblocks
Setting up move blocs

6. I don't see this application in all of the followng
a.application manager
c. /usr/bin
d /opt/usr/bin

7. I verified that i am able to open this package in 7zip containing all of the files.


I am attaching this deb package.
Attached Files
File Type: deb moveblocks_0.1_armel.deb (15.2 KB, 99 views)
 
Posts: 23 | Thanked: 0 times | Joined on Jul 2010
#4
I just found that /usr/local/bin has this moveblocks. I don't know why qtcreator uses this directory. I am able to run this by going to this directory and typing the command.

This is great news for me to run sample program on Maemo. I still have following questions.

1. Is it normal to use this directory structure (/usr/local/bin)?
2. What is recommended directory and how do I override qt creator to use recommended directory?
3. How do I uninstall this program since I can't see it in application manager?
4. After running the command on xterm, I am not able to figure out how to kill it? I tried ctrl+c as well as ctrl+z. Finallay, I clicked on close icon which killed xterm.

5. File manager shows only n900 directory. I have to use xterm to traverse directories like /usr/bin etc. Is there any way I can see all these directories using file manager?

Thanks for any help. I will try fast app manager.
 
Posts: 1,992 | Thanked: 3,339 times | Joined on Jun 2010 @ N900: Battery low. N950: torx 4 re-used once and fine; SIM port torn apart
#5
To see it in App Manager, edit 'control' file of the deb package: 'Section' should be not 'unknown', but 'user/anything'.

Default File Manager can hardly see these directories. But, if you want to experiment...
/home/user/.config/user-dirs.dirs
These file might allow you to change the folders the File Manager can see.

To uninstall a package, you could use either dpkg or apt-... in X Terminal. Or Faster Application Manager.

killall moveblocks
should kill the process

Read the links
http://wiki.maemo.org/Packaging
http://wiki.maemo.org/Packaging_a_Qt_application
http://wiki.maemo.org/Qt4_development
 
xomm's Avatar
Posts: 609 | Thanked: 243 times | Joined on Jan 2010 @ Eastern USA
#6
Thread moved to Development.
__________________
==In school once again. Free time limited to night, holidays and weekends.==
Hi! I'm Andy, a Maemo Greeter! I'm also a moderator of the Applications, Nokia N900, and Maemo 5/Fremantle forums.
Useful Links: Maemo Wiki Main Page, New users start here, Beginners' wiki page, Maemo5 101, Frequently Asked Questions (FAQ)
Also, pin yourself in the map! Maemo Map. Send me a PM (Private Message) if I leave you hanging on a problem (or if you need more help).
Owner of both a N800 and N900; Active community member since Jan 2010. You've been xommified! - My blog.
 
Venemo's Avatar
Posts: 1,296 | Thanked: 1,773 times | Joined on Aug 2009 @ Budapest, Hungary
#7
Hi Sukumar!

Please, don't ever use Qt Creator for creating your packages!

Qt Creator can run your apps on your device, but its packaging system is flawed and will not support any of the options that you may require for your applications. You can already see the result of what it did.
Don't worry the developers of Qt Creator are friendly people and admitted the bugs... they intend to do it right, perhaps 2 or 3 releases later, it will be right.
So, do yourself a favour and turn on the "skip packaging step" in your build options.

Here is how most of us do the packaging.
  1. Create the required debian folder and the files that it require. Here is the debian folder of Sticky Notes for an example: http://vcs.maemo.org/svn/sticky-note...-notes/debian/ Note that you'll need to save these files with UNIX line endings, otherwise it won't work.
    (Note that these files are correctly created for your app if you create a project skeleton with mad pstcreate.)
  2. Open a MADDE Terminal
  3. Navigate to the directory of your app with the cd command
  4. In your app's directory, type:
    Code:
    mad dpkg-buildpackage
  5. Hopefully, it will create a correct package for you.

Also note that if you wish to upload your app to the community repository (Extras-devel), you'll only need to create a source package and the Extras Assistant software. http://wiki.maemo.org/Uploading_to_Extras

If you want your app to appear in the application menu, you'll have to create a .desktop file for it.

I hope this helps!

Last edited by Venemo; 2010-08-06 at 07:48.
 

The Following 4 Users Say Thank You to Venemo For This Useful Post:
Venemo's Avatar
Posts: 1,296 | Thanked: 1,773 times | Joined on Aug 2009 @ Budapest, Hungary
#8
Originally Posted by sukumar View Post
6. I don't see this application in all of the followng
a.application manager
c. /usr/bin
d /opt/usr/bin
You can see the package with:
Code:
dpkg -l | grep yourappname
 

The Following 2 Users Say Thank You to Venemo For This Useful Post:
Posts: 36 | Thanked: 45 times | Joined on Jan 2010 @ Belgium
#9
Venemo,

I would like to give you many thanks: following your small but useful information I was able to compile my first application (using QT) and make it appearing in the N900 menu.

I "just" need now to go ahead with the next steps and make my small tool available to the community: it is my time to give ;-)
 

The Following 2 Users Say Thank You to mno@8 For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 22:13.