![]() |
2009-12-22
, 07:16
|
Posts: 71 |
Thanked: 49 times |
Joined on Sep 2009
@ Espoo
|
#2
|
The Following User Says Thank You to ymb For This Useful Post: | ||
![]() |
2009-12-22
, 07:21
|
Posts: 66 |
Thanked: 44 times |
Joined on Nov 2009
|
#3
|
The Following User Says Thank You to kyle For This Useful Post: | ||
![]() |
2009-12-22
, 10:07
|
Posts: 46 |
Thanked: 17 times |
Joined on Oct 2009
|
#5
|
![]() |
2009-12-22
, 10:59
|
Posts: 46 |
Thanked: 17 times |
Joined on Oct 2009
|
#6
|
![]() |
2009-12-22
, 11:24
|
Posts: 66 |
Thanked: 44 times |
Joined on Nov 2009
|
#7
|
I tried out of the root shell and still it doesnt work. I have now looked a bit more closely at the error "libhildonmm-1.0.so.5 error missing shared libaray". When I look in /usr/lib I cannot see this file or any "mm" C++ library files.
I was also trying to run the program by simply typing in the name "helloworld" and I would get the erorr, "no such file or directory". I hadnt realised that I need to type the full path and filename to get it to run. Hence the reason why I was using run-standalone.sh!
The Following User Says Thank You to kyle For This Useful Post: | ||
![]() |
2009-12-22
, 11:34
|
Posts: 46 |
Thanked: 17 times |
Joined on Oct 2009
|
#8
|
I don't know why the Nokia forum site decided to do their helloworld in C++ when every program that comes with the device is written in C.
You're right- it just doesn't ship with certain libraries used for C++. The command you need is 'apt-get install libhildonmm'. Always good to follow this up with apt-get clean.
You can also use a relative path, ./helloworld for example. Only two extra keystrokes that way!
![]() |
2009-12-23
, 00:29
|
Posts: 66 |
Thanked: 44 times |
Joined on Nov 2009
|
#9
|
I have successfully created and compiled (xARMEL) a C++ helloworld application. I have run and tested this on the emulator and now want to copy it to my N900 physical device.
Here are the steps that I have completed thus far;
1. Installed rootsh on N900 - this was required to copy the file from the FAT partition (as you cannot run programs from there) to the ext3 partition /opt directory.
2. Modified the binary to allow execution chmod a+x
3. invoked run-standalone.sh helloworld
4. received errors stating that the hildonmm shared libraries are unavailable (of course they are available in the /usr/libs directory)
What am I doing wrong ? How can I get the shared library files to work with my binary ? I read on google about creating a symbolic link, but this seems a bit overkill - or is this a standard thing ?
Should I be statically linking in the libraries ? I dont really want to do this. Is there a way to specify the path to the libraries at compile time ?
I read the maemo documenation on packaging but this seems way overkill for helloworld.
Any help here would be much appreciated.