| Prev |   5     6   7   8     9   | Next
maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   On-device development in C/C++? (https://talk.maemo.org/showthread.php?t=34412)

codeMonkey 2010-02-19 15:44

Re: On-device development in C/C++?
 
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.

kleimola 2010-02-19 20:15

Re: On-device development in C/C++?
 
Quote:

Originally Posted by DaveR53 (Post 536578)
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 2010-02-19 22:08

Re: On-device development in C/C++?
 
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 :D

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.

kleimola 2010-02-20 15:21

Re: On-device development in C/C++?
 
Quote:

Originally Posted by kleimola (Post 537216)
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?

codeMonkey 2010-02-23 18:22

Re: On-device development in C/C++?
 
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.

kleimola 2010-02-23 18:57

Re: On-device development in C/C++?
 
Quote:

Originally Posted by codeMonkey (Post 543056)
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.

fred123 2010-02-26 21:15

Re: On-device development in C/C++?
 
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?

fred123 2010-02-26 21:34

Re: On-device development in C/C++?
 
OK found problem!
apt-get install libc6-dev

All working

wannessmet 2010-08-17 11:04

Re: On-device development in C/C++?
 
@ 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 2010-08-17 11:11

Re: On-device development in C/C++?
 
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


| Prev |   5     6   7   8     9   | Next
All times are GMT. The time now is 08:42.

vBulletin® Version 3.8.8