Author Topic: How To Set A Dev Environment For Moto E680i  (Read 10111 times)

david_chen

  • Newbie
  • *
  • Posts: 4
    • View Profile
How To Set A Dev Environment For Moto E680i
« on: July 27, 2005, 10:42:58 am »
Do someone know how to set an environment for developing MOTO E680i Applications???

I've searched the Internet for a long time.
I just can find some pieces of information. It's not enough.
I've got some software like, xscale-gcc-vfp-3.3.2, qt-2.3.6, tmake-1.8.5.

Mostly, I follow this Build native application on E680. But it doesn't work.

Oh, I forget to tell that I use Cygwin.

rpconnect

  • Newbie
  • *
  • Posts: 6
    • View Profile
How To Set A Dev Environment For Moto E680i
« Reply #1 on: July 27, 2005, 10:17:18 pm »
Quote
Do someone know how to set an environment for developing MOTO E680i Applications???

I've searched the Internet for a long time.
I just can find some pieces of information. It's not enough.
I've got some software like, xscale-gcc-vfp-3.3.2, qt-2.3.6, tmake-1.8.5.

Mostly, I follow this Build native application on E680. But it doesn't work.

Oh, I forget to tell that I use Cygwin.
[div align=\"right\"][{POST_SNAPBACK}][/a][/div]

Have you tried the opie app development on [a href=\"http://marcus.bluetroll.se/e680/]http://marcus.bluetroll.se/e680/[/url] ?  It does a very nice job of setting up a cross-compiler development and shows how to compile first qt-2.3.10 then opie to run on the e680.  The only problem w/ this setup is that opie apps are based on a different version of qt than the phone so by default they don't run too smoothly together.  This problem has been solved at the moto fanclub forum where a proxy environment handles the interfacing (touchscreen and key inputs) between opie an the native phone qt apps so that both can be running essentially at the same time regardless of the different versions of qt.

The moto fanclub forum can be found at http://www.rcsc.sisrs.com/mfc/index.php?name=Forums but it is down right now.  When it comes back up check out the development section, there you will see a thread started by "cyph" who did the very nice job of developing the proxy and there is an opie package there along w/ the code for the proxy and patches needed to the qt-2.6.10 package to get things to work harmoniously.  In addition to opie I now have an X server running on the same package, and all of this stems from the opie app development at http://marcus.bluetroll.se/e680/ (so far the key seems to be that the cross-compiler described here correctly compiles w/ softfloat options, i have tried at least three other cross-compilers and just couldn't get the softfloat patching to work properly)

I have also played w/ qtopia compiled w/ and against qt-2.3.6 thinking that it might be closer to the phone environment (i think the phone qt version is 2.3.6), but the opie option is much better and works much more reliably.  

Also, the development description from the link you posted assumes you have access to the headers used by Motorola to compile their qt libraries (note that they are not by any means stock).  With the proper headers, and the right cross compiler, it is possible to develop for the e680, but we have noticed that the e680i is different enough that qt apps that work on the e680 aren't compatible w/ the e680i.

I've even tried to put together an OE-style environment to build apps using the e680 linux source (its available at sourceforge), but as of right now the opie w/ qt-2.3.10 and the proxy interface is by far the most stable environment.  There are still some bugs to work out (e.g. sound is buggy) but it has yielded the most reliable development that still works the native apps so that we don't have to give up the actual phone in the e680/i.

As far as I know, all the development thus far has been done on linux, if you want to do it on cygwin i'd suggest starting w/ the opie app dev. page and see if you can't build the cross-compiler; after that it shouldn't be too much of a problem.  If you have luck w/ this please let us know, i too would be interested in a Cygwin dev. environment.  Best of luck....
« Last Edit: July 27, 2005, 10:24:37 pm by rpconnect »

david_chen

  • Newbie
  • *
  • Posts: 4
    • View Profile
How To Set A Dev Environment For Moto E680i
« Reply #2 on: July 29, 2005, 09:37:14 am »
rpconnect, Thanks for your reply!!!

I'm trying the OPIE right now.
I find it hard to get Qt from Trolltech's ftp.

And when I'm ready, I will let you know that.

Thanks!!!

rpconnect

  • Newbie
  • *
  • Posts: 6
    • View Profile
How To Set A Dev Environment For Moto E680i
« Reply #3 on: July 29, 2005, 12:49:54 pm »
Quote
rpconnect, Thanks for your reply!!!

I'm trying the OPIE right now.
I find it hard to get Qt from Trolltech's ftp.
[div align=\"right\"][{POST_SNAPBACK}][/a][/div]

If you want to try opie on the phone first go to: [a href=\"http://www.rcsc.sisrs.com/mfc/index.php?name=Forums&file=viewtopic&t=1148]http://www.rcsc.sisrs.com/mfc/index.php?na...iewtopic&t=1148[/url].  There you can download a prepared opie image that will run on the phone to test it out.

I have found the easiest way to get the qt sutff is to do a google search for qt-embedded-2.3.10-free.tar.gz.  I just did a search for it and i think you can get it from http://ftp.iasi.roedu.net/pub/mirrors/ftp....com/qt/sources/.  

have fun!

david_chen

  • Newbie
  • *
  • Posts: 4
    • View Profile
How To Set A Dev Environment For Moto E680i
« Reply #4 on: July 29, 2005, 11:43:12 pm »
Quote
Quote
rpconnect, Thanks for your reply!!!

I'm trying the OPIE right now.
I find it hard to get Qt from Trolltech's ftp.
[div align=\"right\"][{POST_SNAPBACK}][/a][/div]

If you want to try opie on the phone first go to: [a href=\"http://www.rcsc.sisrs.com/mfc/index.php?name=Forums&file=viewtopic&t=1148]http://www.rcsc.sisrs.com/mfc/index.php?na...iewtopic&t=1148[/url].  There you can download a prepared opie image that will run on the phone to test it out.

I have found the easiest way to get the qt sutff is to do a google search for qt-embedded-2.3.10-free.tar.gz.  I just did a search for it and i think you can get it from http://ftp.iasi.roedu.net/pub/mirrors/ftp....com/qt/sources/.  

have fun!
[div align=\"right\"][{POST_SNAPBACK}][/a][/div]

Oh, thanks!
I just got the package from Trolltech's ftp this early morning.
And I do follow [a href=\"http://marcus.bluetroll.se/e680/]Leprechaun's guide[/url], but I find it hard to setup the crosstool in Cygwin.
the Cygwin has not gcc-3.3.2 and glibc-2.3.2. then the configure script stop there, and I'm finding a way to install gcc-3.3.2 and glibc-2.3.2.

kopsis

  • Sr. Member
  • ****
  • Posts: 329
    • View Profile
    • http://kopsisengineering.com
How To Set A Dev Environment For Moto E680i
« Reply #5 on: July 30, 2005, 10:18:30 am »
Quote
I just got the package from Trolltech's ftp this early morning.
And I do follow Leprechaun's guide, but I find it hard to setup the crosstool in Cygwin.
[div align=\"right\"][{POST_SNAPBACK}][/a][/div]

Forget Cygwin -- it's going to cause you way more pain than it's worth. Use a LiveCD like [a href=\"http://www.damnsmalllinux.org]DSL[/url] to get a real Linux environment. If you don't want to leave Windows (and you have a 1.5GHz+ machine) you can use a LiveCD in conjunction with QEMU to get a Linux dev environment in a virtual machine.

david_chen

  • Newbie
  • *
  • Posts: 4
    • View Profile
How To Set A Dev Environment For Moto E680i
« Reply #6 on: July 30, 2005, 01:29:58 pm »
Quote
Forget Cygwin -- it's going to cause you way more pain than it's worth. Use a LiveCD like DSL to get a real Linux environment. If you don't want to leave Windows (and you have a 1.5GHz+ machine) you can use a LiveCD in conjunction with QEMU to get a Linux dev environment in a virtual machine.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=90168\"][{POST_SNAPBACK}][/a][/div]

Thanks for your mention.
I almost finish the environment setup in Cygwin, and I don't want go to another place and do the same thing again.