From: Björn C. <bj...@ca...> - 2009-08-20 09:53:56
|
Ok! That explains it. Since I am porting a JavaME application there is no main method. The JavaME to iPhone must eventuallu become a separate target and then I should probably write something that picks up the right class from the manifest file and generate the main.m from that. /Björn Arno Puder skrev: > XMVM will create a main() function when the corresponding Java file > contains the standard entry point (public static void main(String[])). > You should do this instead of writing your own main() function because > XMLVM is doing a few other things in there. Take a look at one of the > Hello World examples and take note that they have a static main method. > > Arno > > > Björn Caroll wrote: > >> For me an main.m is never generated. I created it manually. I use xmlvm >> with the following ant script: >> >> <java jar="../XMLVMTest/xmlvm/dist/xmlvm.jar"> >> <arg value="--in=build/compiled"/> >> <arg value="--out=iphone"/> >> <arg value="--target=iphone"/> >> <arg value="--iphone-app=IQumbrix"/> >> </java> >> >> >> Arno Puder skrev: >> >>> that is weird. The linking error indicates that there is no main() >>> function. But that should have been generated from the example. >>> >>> Which of the three Hello World versions are you using? I just did the >>> following: >>> >>> ant >>> cd dist/demo/iphone/ihelloworld/portrait/iphone >>> make >>> >>> That works perfectly fine for me. >>> >>> Arno >>> >>> >>> ART...@Au... wrote: >>> >>> >>>> Afternoon, >>>> >>>> >>>> >>>> I have been reading through the instructions and >>>> everything has gone great up to this point. First off, my setup… I am >>>> doing everything on Windows (sorry) up to the point of running the >>>> ‘make’ under the output directory. I have a mount to the windows folder >>>> on my Mac that I run the ‘make’ command (on the Mac). >>>> >>>> >>>> >>>> It compiles and then at the end I get this instead of it bringing up the >>>> emulator… >>>> >>>> >>>> >>>> Undefined symbols: >>>> >>>> “_main”, reference from: >>>> >>>> Start in crt1.10.5.o >>>> >>>> Id: symbol(s) not found >>>> >>>> collect2: Id returned 1 exit status >>>> >>>> make: *** [build/hellp.app/hellpp] Error 1 >>>> >>>> >>>> >>>> Again I am starting with the supplied hello program… Any ideas? >>>> >>>> >>>> >>>> Thank you in advance, >>>> >>>> Andy Tipton Jr. >>>> >>>> Automationdirect.com >>>> >>>> Product Development >>>> >>>> >>>> >>>> >>>> ------------------------------------------------------------------------ >>>> >>>> ------------------------------------------------------------------------------ >>>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day >>>> trial. Simplify your report design, integration and deployment - and focus on >>>> what you do best, core application coding. Discover what's new with >>>> Crystal Reports now. http://p.sf.net/sfu/bobj-july >>>> >>>> >>>> ------------------------------------------------------------------------ >>>> >>>> _______________________________________________ >>>> xmlvm-users mailing list >>>> xml...@li... >>>> https://lists.sourceforge.net/lists/listinfo/xmlvm-users >>>> >>>> >>> ------------------------------------------------------------------------------ >>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day >>> trial. Simplify your report design, integration and deployment - and focus on >>> what you do best, core application coding. Discover what's new with >>> Crystal Reports now. http://p.sf.net/sfu/bobj-july >>> _______________________________________________ >>> xmlvm-users mailing list >>> xml...@li... >>> https://lists.sourceforge.net/lists/listinfo/xmlvm-users >>> >>> >>> >> ------------------------------------------------------------------------ >> >> ------------------------------------------------------------------------------ >> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day >> trial. Simplify your report design, integration and deployment - and focus on >> what you do best, core application coding. Discover what's new with >> Crystal Reports now. http://p.sf.net/sfu/bobj-july >> >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> xmlvm-users mailing list >> xml...@li... >> https://lists.sourceforge.net/lists/listinfo/xmlvm-users >> > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > > |