Motorola Development Community

Member Login

Quick Search



Development Hacking, development, scripts etc


Reply
  #1  
Old 09-20-2005
MotoFans JUNR
 
Join Date: Feb 2005
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts
Default E680i native app development

Has anyone been successful with native ezx or qte/qtopia application development in e680i? I have tried something (with e680i (?) headers from the forum) without success (segfault). I tried to compiled t1 tutorial in qte (a simplest demo in qte) - it ran but nothing showed up.
Reply With Quote
  #2  
Old 09-20-2005
Moto Fans SENR
 
Join Date: Feb 2005
Posts: 694
Thanks: 0
Thanked 1 Time in 1 Post
Default Re: E680i native app development

What version of qte/qtopia were you using? Were you compiling against the qt-libs in the phone or those built during the qt-embedded build?

The tricky part is getting non-native qt apps to run w/ the native qt-libs, but since the qt-libs in the phone aren't stock this is not a trivial application; at present it seems like cyph's opieproxy app is the best way to run non-native qt apps w/ the native phone apps. I'm sure it could be modified to work w/ stand-alone qtopia apps, but it would require applying a similar patch to the qt-embedded source and if you are using a version different than for the opie stuff (qt-2.3.6) you might have to patch this by hand.

Also, the ezx headers are available for the qt-libs in the e680, but not yet for the e680i, so it is possible to develop agaist the libs in the e680, but not all functionality will be ported to the e680i.

It seems as though any qt dev. for the phone will require some non-standard mods, either to the qt-embedded source (e.g. cyph's method) to get it to work along side the native qt-apps, or modify the calls to the qt embedded functions such that they are compatible w/ the phone's qt-libs (but again, limited to e680 use at this time).

For this type of experimentation i've found the opie option to be the best bet. Starting w/ cyph's package covers the problem of the qt-libs compatibility, and it is fairly easy to build and play around w/ the opie example apps (fairly similar to the example apps that come w/ qtopia) and then include them in your own (modified) opie.cramfs.

i'd still like to see us be able to develop single stand-alone qt apps that run w/out problems on the phone, but having to fight against the non-open qt environment on the phone is more work than i care to go through.
Reply With Quote
  #3  
Old 09-20-2005
MotoFans JUNR
 
Join Date: Feb 2005
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: E680i native app development

Thank you for the information. I compiled with qt-2.3.6 headers (from the SDK) and and libs from the phone (C5A4P).
For t1 tutorial:
Code:
#include <qapplication.h>
#include <qpushbutton.h>

int main( int argc, char **argv )
{
    QApplication a( argc, argv );

    QPushButton hello( "Hello world!", 0 );
    hello.resize( 100, 30 );

    a.setMainWidget( &hello );
    hello.show();
    return a.exec();
}
- using native qt lib at runtime (i.e. via #. /home/native/.profile) and run #./t1 I got a black rectangle w/o any "Hello world!" and w/o any posible interaction using touch screen and /or buttons
- using qt lib from the sdk and run #./t1 : i got in the same thing
For neopop (neogeo pocket emu):
- using native qt lib at runtime (i.e. /home/native/.profile) i got segfault
- using qt lib from the sdk and run #./neopop : UI shown on the screen but the process is not in EZX task manager
I will look for opieproxy for a workaround. Btw, in miniroot.cramfs (from cyph) we have loop.o, so maybe we could mount opie.cramfs as a loop device (so it would not necessary to create a new partition in sd). I have trouble with partitioning my sd
Reply With Quote
  #4  
Old 09-20-2005
maxx_730's Avatar
Moto Fans SENR
 
Join Date: Feb 2005
Location: The Netherlands
Cell: E680 flashed to E680i
Posts: 1,368
Thanks: 0
Thanked 1 Time in 1 Post
Default Re: E680i native app development

Yes that is possible, the partition way was just done because at the time leprechaun put that guide together there were no kernel sources yet so no loopback module.
__________________
Yes, but does it run Linux?
Reply With Quote
  #5  
Old 09-20-2005
MotoFans JUNR
 
Join Date: Feb 2005
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: E680i native app development

Thanks. And one important thing is that neither t1 nor neopop shows a caption or label in the buttons etc.
Reply With Quote
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Google Provides Android Coders the Native Development Kit Administrator News 0 06-26-2009 12:50 PM
Development of native SoftWare under MotoMagx gorgoyle MOTOMAGX 1 04-17-2009 10:25 AM
How to access native.db on e680i? netyj Development 0 12-05-2006 01:44 AM
native gcc compiler for e680i bitfly Development 0 04-18-2006 03:22 AM
Native Development (I Got Montavista Graphics Package) mudassar Development 3 10-28-2005 06:22 AM

 
Advertisement

Partner Links





Web Analytics