FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveMac / FivePhone (iPhone, iPad) he conseguido un iphone
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: he conseguido un iphone
Posted: Thu Nov 25, 2010 06:27 AM
Creadas las librería completas (teléfono y simulador) y funcionando correctamente! :-)
http://fivephone.googlecode.com/files/libfivephone.full.a
http://fivephone.googlecode.com/files/libharbour.full.a

Las he creado asi:
Code (fw): Select all Collapse
lipo -create -arch i386 libfivephone.sim.a -arch arm libfivephone.a -output libfivephone.full.a

Code (fw): Select all Collapse
lipo -create -arch i386 libharbour.sim.a -arch arm libharbour.a -output libharbour.full.a
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1516
Joined: Thu May 27, 2010 02:06 PM
Re: he conseguido un iphone
Posted: Thu Nov 25, 2010 08:12 AM

Antonio felicidades doble :D .
Por el trabajo realizado .Estupendo :D
Por tu cumpleaños .Aun mas importante quel trabajo es ir cumpliendo años .
Felicidades :P

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: he conseguido un iphone
Posted: Thu Nov 25, 2010 08:13 AM

Manuel,

Estamos realizando un trabajo en equipo, realmente bueno :-)

Gracias por todo,

Antonio

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 512
Joined: Mon Oct 17, 2005 10:38 AM
Re: he conseguido un iphone
Posted: Thu Nov 25, 2010 08:37 AM

Sorry if I write in English...
First of all many compliments for the work made.
If you use the Xcode compiler, you can develop for the Iphone, Ipad and for the Imac too ?
Thanks a lot.
Massimo.

if date() = ctod("25/11/2010")
msgalert("Happy Birthday Antonio","Fiwewin Power")
endif

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: he conseguido un iphone
Posted: Thu Nov 25, 2010 08:40 AM

Massimo,

The iPhone and the iPad use the same library: FivePhone.

FiveMac uses a different library (FiveMac). And surely we could also build FiveMac apps from the xcode now, with all that we have learnt :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1516
Joined: Thu May 27, 2010 02:06 PM
Re: he conseguido un iphone
Posted: Thu Nov 25, 2010 12:56 PM

Antonio ,he subido una nueva version del instalador con las librerias posteadas que sirven para telefono y simulador . Les he quitado lo de full de la extensión pues pienso que a partir de ahora debemos trabajar con estas .
Cambiala en los archivos de descarga cuando puedas.
Saludos.

Posts: 1516
Joined: Thu May 27, 2010 02:06 PM
Re: he conseguido un iphone
Posted: Thu Nov 25, 2010 02:15 PM
Subido nuevo makefile y un makelib.sh para intentar automatizar el hacer la libreria total en un paso .
Genera las 2 librerias sin problema ( la del simulador y la del telefono) . pero cuando ejecuta lipo me da un error y no genera la libreria final .
pare e un problema con los flags de compilacion del simulador que puse en el makefile .
Code (fw): Select all Collapse
lipo -create -arch i386 ./lib/libfiveSimul.a  -arch arm ./lib/libfiveDevice.a -output ./lib/libfivephone.a
lipo: specifed architecture type (i386) for file (./lib/libfiveSimul.a) does not match it's cputype (12) and cpusubtype (6) (should be cputype (7) and cpusubtype (3))


-------------------------edito ------------------------------------
no lo he probado aun pero he encontrado un bug ( ya corregido) en el makefile que seguro que es el problema .
Confirmado ya está resuelto .
Saludos.
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: he conseguido un iphone
Posted: Thu Nov 25, 2010 07:20 PM
mastintin wrote:Antonio ,he subido una nueva version del instalador con las librerias posteadas que sirven para telefono y simulador . Les he quitado lo de full de la extensión pues pienso que a partir de ahora debemos trabajar con estas .
Cambiala en los archivos de descarga cuando puedas.
Saludos.


Manuel,

Subido a la sección de descargas, gracias! :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1516
Joined: Thu May 27, 2010 02:06 PM
Re: he conseguido un iphone
Posted: Thu Nov 25, 2010 07:31 PM
Añadido los archivos simula.prg ( en funciones) y simulas.m para el simulador ...
El makelib.sh ya genera una unica libreria libfivephone.a compatible para simulador e iphone ...
Desde el simulador .... :-)

Saludos.
Posts: 1516
Joined: Thu May 27, 2010 02:06 PM
Re: he conseguido un iphone
Posted: Thu Nov 25, 2010 08:33 PM
para poder usar los includes desde xcode en rules
Code (fw): Select all Collapse
/Developer/fivephone/harbour/bin/harbour ${INPUT_FILE_BASE}.prg -n -I/Developer/fivephone/fivephone/include -I/Developer/fivephone/harbour/include -o${DERIVED_FILES_DIR}/${INPUT_FILE_BASE}.c


Ya tengo algo funcionando con DEFINES ...
Code (fw): Select all Collapse
 
function Main()

   local oWnd , oLabel
   
    DEFINE WINDOW oWnd COLOR 255,255,0,100
  
   @ 120, 100 SAY oLabel PROMPT  "Hello world!" OF oWnd ;
     SIZE 100,50 ;
     COLOR 255,0,0,100
   
   ACTIVATE WINDOW oWnd
   
return nil
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: he conseguido un iphone
Posted: Sun Nov 28, 2010 10:25 AM
El simulador del iPad tambien funcionando bien, desde xcode :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1516
Joined: Thu May 27, 2010 02:06 PM
Re: he conseguido un iphone
Posted: Sun Nov 28, 2010 07:28 PM
los comandos para el Toolbar implementados. :-)
Code (fw): Select all Collapse
function Main()

   local oWnd , oLabel
   
    DEFINE WINDOW oWnd COLOR 255,255,0,100
    
    TNavBar():New( oWnd, "FivePhone", "Exit", "About" )

      
   oWnd:oNavBar:bLeftClick = { || oWnd:End() }
   oWnd:oNavBar:bRightClick = { || MsgInfo( "iOS SDK for Harbour" ) }
    
    
     DEFINE TOOLBAR oTbr OF oWnd          
     
   oTbr:SetColor(90,90,90, 80)
   oTbr:SetTraslucent(.t.)

    DEFINE TBBUTTON PROMPT 2 OF oTbr ACTION  MsgInfo( "New" )         
    DEFINE TBBUTTON PROMPT 7 OF oTbr ACTION  MsgInfo( "New2" ) 
    DEFINE TBBUTTON PROMPT 9 OF oTbr ACTION  MsgInfo( "open2" ) 
    DEFINE TBBUTTON PROMPT 10 OF oTbr ACTION  MsgInfo( "open3" )
    DEFINE TBBUTTON PROMPT "Save" OF oTbr ACTION  MsgInfo( "save" )         
       
   ACTIVATE WINDOW oWnd
   
return nil


Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: he conseguido un iphone
Posted: Mon Nov 29, 2010 03:29 AM

Manuel,

He modificado el makefile para que cree libfivephone.a y ya no hace falta buildlib.sh

Log message

  • makefile modified to create libfivephone.a
  • No longer need for buildlib.sh
  • Minor change to function NSLog() to avoid compiler warning

Affected files expand all collapse all
Modify /trunk/makefile diff
Delete /trunk/makelib.sh diff
Modify /trunk/source/sdkapi/system.m diff

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: he conseguido un iphone
Posted: Mon Nov 29, 2010 05:09 AM
Nueva Clase TMoviePlayer :-)

Incluye el "hack" para ver el video por "AirPlay" en el AppleTV2 :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: he conseguido un iphone
Posted: Mon Nov 29, 2010 10:16 AM
El ejemplo samples/movie.prg reproduciéndose por "AirPlay" desde el iphone en el televisor (a traves de Apple TV2):

regards, saludos

Antonio Linares
www.fivetechsoft.com