Active Topics

 


Reply
Thread Tools
Posts: 755 | Thanked: 406 times | Joined on Feb 2008 @ UK
#61
Currently I'm doing it in the same way that that post says. Running it from a file, rather than a separate partition.
Qole also has an easy-chroot guide here.
 

The Following 2 Users Say Thank You to codeMonkey For This Useful Post:
Posts: 5 | Thanked: 0 times | Joined on Dec 2009
#62
Originally Posted by DaveR53 View Post
I just followed this... http://talk.maemo.org/showpost.php?p...5&postcount=19 works a treat
Thanks, I got it working. I'd like to try Qt 4.6 development on the device, but I wonder if there are any ARM version of libqt4-maemo5-dev around?
 
DaveR53's Avatar
Posts: 41 | Thanked: 15 times | Joined on Oct 2009 @ UK
#63
I've been messing around today trying to get a nice dev enviroment setup. I connect it on usb to my FreeBSD desktop and enable PC Suite Mode so that the USB networking starts, then set an ip on the usb0 interface on the N900 and one on my desktop.

Use sshfs on my desktop to mount the home folder locally so I can use my text editor (NEdit) on a sensible keyboard to edit/hack source. And also have open an ssh session to the n900 for compiling in the qchroot.

Perfect, it's just like working locally on my desktop

Its a surprisingly nippy little machine, a lot quicker at compiling than I thought it would be and with this setup its way more convienient than working with the SDK in a VM. Compile directly on the device and then run it.
 
Posts: 5 | Thanked: 0 times | Joined on Dec 2009
#64
Originally Posted by kleimola View Post
Thanks, I got it working. I'd like to try Qt 4.6 development on the device, but I wonder if there are any ARM version of libqt4-maemo5-dev around?
This is odd. apt-getting libqt4-maemo5-dev from extras-devel seems to install libqt4-maemo5-dev_4.6.2~git20100212-0maemo1_armel.deb but the installed /opt/qt4-maemo5/qmake is still i386 binary and not ARM like in libqt4-dev (version 4.5.3). Has anyone got this working yet?
 
Posts: 755 | Thanked: 406 times | Joined on Feb 2008 @ UK
#65
The versions that are installed in scratchbox armel seem to work.
Try step 7 of the instructions in this section of the wiki.
You'll need to add the source line that you get back after accepting the EULA to your /etc/apt/sources.list within the chroot.
Then run apt-get update and apt-get install libqt4-dev.

Last edited by codeMonkey; 2010-02-23 at 18:27.
 

The Following User Says Thank You to codeMonkey For This Useful Post:
Posts: 5 | Thanked: 0 times | Joined on Dec 2009
#66
Originally Posted by codeMonkey View Post
Then run apt-get update and apt-get install libqt4-dev.
Yes, the libqt4-dev works, which is qt 4.5.3, but libqt4-maemo5-dev does not (qt 4.6.2 currently). There is no ARM binaries for that package as answered on qt-maemo-feedback mailing list:

http://lists.trolltech.com/pipermail...ry/000074.html

I wonder who provided the ARM binaries for libqt4-dev? Perhaps it could be possible to cross-compile libqt4-maemo5-dev as well.
 
Posts: 196 | Thanked: 54 times | Joined on Jan 2010 @ UK
#67
Trying to compile a program on n900, getting error from .configure.

Code:
gcc (GCC) 4.2.1
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:2731: $? = 0
configure:2733: gcc -v </dev/null >&5
Using built-in specs.
Target: arm-linux-gnueabi
Configured with: ../src/configure -v --enable-languages=c,c++ --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.2 --program-suffix=-4.2 --enable-clocale=gnu --enable-libstdcxx-debug --disable-libssp --disable-sjlj-exceptions --disable-multilib --enable-checking=release --build=arm-linux-gnueabi --host=arm-linux-gnueabi --target=arm-linux-gnueabi
Thread model: posix
gcc version 4.2.1
configure:2736: $? = 0
configure:2738: gcc -V </dev/null >&5
gcc: '-V' option must have argument
configure:2741: $? = 1
configure:2764: checking for C compiler default output file name
configure:2767: gcc    conftest.c  >&5
/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
configure:2770: $? = 1
configure: failed program was:
| /* confdefs.h.  */
I have apt-get install gcc, what else do I need?
 
Posts: 196 | Thanked: 54 times | Joined on Jan 2010 @ UK
#68
OK found problem!
apt-get install libc6-dev

All working
 
Posts: 10 | Thanked: 3 times | Joined on Jul 2010 @ belgium
#69
@ lcuk

I followed your instructions but while trying to configure (ipmitool)

Code:
Nokia-N900-51-1:/home/user/MyDocs/Downloads/ipmitool-1.8.11# PATH=$PATH:. ;
Nokia-N900-51-1:/home/user/MyDocs/Downloads/ipmitool-1.8.11# sh ./configure
checking build system type... armv7l-unknown-linux-gnu
checking host system type... armv7l-unknown-linux-gnu
checking target system type... armv7l-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/ginstall -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
Nokia-N900-51-1:/home/user/MyDocs/Downloads/ipmitool-1.8.11# checking for gawk... no

Do you have any idea what's going wrong?
 
nicolai's Avatar
Posts: 1,637 | Thanked: 4,424 times | Joined on Apr 2009 @ Germany
#70
checking whether the C compiler works... configure: error: cannot run C compiled programs.
Don't do this from within you MyDocs folder.
It is on a partitition which is formatted as VFAT
and you can not run executables from there.
Put your ipmitool-1.8.11 to
/home/user/
for example and try again.
Nicolai
 

The Following User Says Thank You to nicolai For This Useful Post:
Reply

Tags
c compiler, c language, c programming, c++ compiler, c++ language, c++ programming, compile, compiler, development, maemo, on-device, on-device development, on-device programming, programming


 
Forum Jump


All times are GMT. The time now is 19:51.