hello everyone, I'm new here. This is my second contact with this type of device. First was EFIKA MPC5200B PowerPC. I thought that it was difficult to install debian linux and write some c++ program on it. But it worked and I built little vehicle controlled by wifi. now I have this mini2440, I am a professional pyrotechnics and I am going to use it as a launching unit. But...after 2weeks I stil have preinstaled "demo" wersion linux with qtopia. I read a lot, but mayby I can't quite understand the context. At the beginning I planned to install a normal linux, and I failed, now I want to install(somewhere) the QT because I planned to write an application in QTCreator under Windows or Linux and launch it on mini2440. I even tried to follow the Chinese man from dvd, still something was wrong I use Ubuntu 10.04/win xp/vista whatever...and I'm running out off time This "demo"linux is enought to run a qt aplication ? Can I wrote something on qtcreator and kompile it to qtopia? or I must instal it first on arm. I know it sounds like I knew nothing but now I am little confused...? I put a beer for every hint
mini2440(1gb) + qt + help
By "demo" I assume 2.6.32.2 from FriendlyArm. Yes you can run Qt apps with that. Start here: http://www.sereno-labs.com/qt-4-6-2-installation-procedure-for-friendlya... and http://billforums.station51.net/viewtopic.php?f=8&t=15 then get back with questions. There are several long threads on here as well, search <4.6.2> Good luck!
Thx for reply, I read that so now : 1. root@patryk:~/QT/tslib/tslib# arm-linux-gcc -v Using built-in specs. Target: arm-none-linux-gnueabi Configured with: /scratch/julian/lite-respin/linux/src/gcc-4.3/configure --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --target=arm-none-linux-gnueabi --enable-threads --disable-libmudflap --disable-libssp --disable-libstdcxx-pch --with-gnu-as --with-gnu-ld --enable-languages=c,c++ --enable-shared --enable-symvers=gnu --enable-__cxa_atexit --with-pkgversion='Sourcery G++ Lite 2008q3-72' --with-bugurl=https://support.codesourcery.com/GNUToolchain/ --disable-nls --prefix=/opt/codesourcery --with-sysroot=/opt/codesourcery/arm-none-linux-gnueabi/libc --with-build-sysroot=/scratch/julian/lite-respin/linux/install/arm-none-linux-gn ueabi/libc --with-gmp=/scratch/julian/lite-respin/linux/obj/host-libs-2008q3-72-arm-none-li nux-gnueabi-i686-pc-linux-gnu/usr --with-mpfr=/scratch/julian/lite-respin/linux/obj/host-libs-2008q3-72-arm-none-l inux-gnueabi-i686-pc-linux-gnu/usr --disable-libgomp --enable-poison-system-directories --with-build-time-tools=/scratch/julian/lite-respin/linux/install/arm-none-linux -gnueabi/bin --with-build-time-tools=/scratch/julian/lite-respin/linux/install/arm-none-linux -gnueabi/bin Thread model: posix gcc version 4.3.2 (Sourcery G++ Lite 2008q3-72) 2. I did root@patryk:~/QT/qt-everywhere-opensource-src-4.7.1# ./configure -embedded arm -xplatform qws/linux-arm-g++ -prefix /usr/local/Qt -qt-mouse-tslib -little-endian -no-webkit -no-qt3support -no-cups -no-largefile -optimized-qmake -no-openssl -nomake tools and The tslib functionality test failed! 3. I try $ mkdir tslib ; cd tslib $ git clone http://github.com/kergoth/tslib.git root@patryk:~/QT/tslib/tslib# ./autogen.sh ./autogen.sh: 3: autoreconf: not found and I stuck a little bit...
at start thank you all for suggestions! ok, next round - sudo apt-get install autoreconf - there isn't any package so I downloaded "dh-autoreconf_2_all.deb", ofcourse I had update system a little bit (autoconf, automake, libtool etc) I ran this script: #!/bin/bash export PATH=/usr/local/arm/4.3.2/bin:$PATH export CROSS_COMPILE=arm-none-linux-gnueabi- export CC=${CROSS_COMPILE}gcc export CFLAGS=-march=armv4t export CXX=${CROSS_COMPILE}"g++" export AR=${CROSS_COMPILE}"ar" export AS=${CROSS_COMPILE}"as" export RANLIB=${CROSS_COMPILE}"ranlib" export LD=${CROSS_COMPILE}"ld" export STRIP=${CROSS_COMPILE}"strip" rm -r /usr/local/tslib mkdir /usr/local/tslib chown patryk:patryk -R /usr/local/tslib ./autogen-clean.sh ./autogen.sh ./configure --host=arm-linux --prefix=/usr/local/tslib --enable-shared=yes --enable-static=yes make make install it seems ok. after that I can find /usr/local/tslib I did: - uncomment the first line of code (the second line) in /usr/local/tslib/etc/ts.conf - copy the contents of /usr/local/tslib/lib/ts into /usr/local/tslib/lib, possibly to do with the way the Qt application is setup - run ./ts_calibrate from /usr/local/tslib/bin after last I see info like: root@patryk:/usr/local/tslib/bin# ./ts_calibrate bash: ./ts_calibrate: you can not run binary file any ideas ?!? what I did wrong ps. I assume that I do it all on my ubuntu, and later I will be able to write applications in QTcreator for run on Friendly 3,5 which is booted with qutopia and working touchscreen :-) ps.
Sorry, that was probably suppose to be <autoconf>. I am at work and I don't develop ARM software at work! There is another program that generally needs to be installed ... build-essential. Do <readelf -A ts_calibrate> or ./ts_calibrate and look for armv4t. Looks like you do not have a properly cross-compiled binary. Oops, looks like another assumption on my part all the stuff after -uncomment the first line ... is done on the mini2440 :(
hello again... I did something like this http://equallybad.blogspot.com/2010/02/project-how-to-setup-default-dev-... a followed every step with success :-) and something strange happened 1. "cd /opt/FriendlyARM/mini2440/examples/hello/ make You should see: arm-linux-gcc -o hello hello.c" everything works fine for me 2. I was able to find new files "cd /opt/FriendlyARM/mini2440/x86-qtopia/hello ./build" 3. sudo gedit run-hello line 17: --- hello -qws line 17: +++ /opt/FriendlyARM/mini2440/x86-qtopia/qtopia-2.2.0-FriendlyARM/qtopia/bin/hello -qws ./run-hello after that I saw a working program :-P I upload it to ARM, and that was an end of happiness :-( I try to run program but nothing happened It is better, I can't compile any program now, after "make" I can't find any new folders and files help ?!? I an so close
I started everything again...and I was wrong example "hello" is in the package :-( I didn't notice that so my question is, can I write application in qtcreator...and how to compile it for qtoipa?
qtopia on my ubuntu works fine I have problem with arm-qtopia :-( root@patryk:/opt/FriendlyARM/mini2440/arm-qtopia/hello# ./build rm -f .obj/release-shared/moc_hello_base.o rm -f .moc/release-shared/moc_hello_base.cpp rm -f .ui/release-shared/hello_base.cpp .ui/release-shared/hello_base.h rm -f .obj/release-shared/hello.o .obj/release-shared/main.o .obj/release-shared/hello_base.o rm -f *~ core *.core /opt/FriendlyARM/mini2440/arm-qtopia/qtopia-2.2.0-FriendlyARM/qt2/bin/uic hello_base.ui -o .ui/release-shared/hello_base.h make: /opt/FriendlyARM/mini2440/arm-qtopia/qtopia-2.2.0-FriendlyARM/qt2/bin/uic: Polecenie nie znalezione make: *** [.ui/release-shared/hello_base.h] Błąd 127 any ideas?
ok, I reinstalled arm-qtopia, and I used newest version from this site download area :-) everything work fine !!! yeah but still I am not sure how to compile normal application and prepare it for arm?