he conseguido un iphone

Re: he conseguido un iphone

Postby Antonio Linares » Thu Nov 25, 2010 6: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: Select all  Expand view

lipo -create -arch i386 libfivephone.sim.a -arch arm libfivephone.a -output libfivephone.full.a
 

Code: Select all  Expand view

lipo -create -arch i386 libharbour.sim.a -arch arm libharbour.a -output libharbour.full.a
 
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41408
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: he conseguido un iphone

Postby mastintin » Thu Nov 25, 2010 8: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
User avatar
mastintin
 
Posts: 1516
Joined: Thu May 27, 2010 2:06 pm

Re: he conseguido un iphone

Postby Antonio Linares » Thu Nov 25, 2010 8:13 am

Manuel,

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

Gracias por todo,

Antonio
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41408
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: he conseguido un iphone

Postby Massimo Linossi » Thu Nov 25, 2010 8: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
User avatar
Massimo Linossi
 
Posts: 495
Joined: Mon Oct 17, 2005 10:38 am
Location: Italy

Re: he conseguido un iphone

Postby Antonio Linares » Thu Nov 25, 2010 8: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
User avatar
Antonio Linares
Site Admin
 
Posts: 41408
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: he conseguido un iphone

Postby mastintin » 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.
User avatar
mastintin
 
Posts: 1516
Joined: Thu May 27, 2010 2:06 pm

Re: he conseguido un iphone

Postby mastintin » Thu Nov 25, 2010 2: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: Select all  Expand view


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.
User avatar
mastintin
 
Posts: 1516
Joined: Thu May 27, 2010 2:06 pm

Re: he conseguido un iphone

Postby Antonio Linares » Thu Nov 25, 2010 7: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
User avatar
Antonio Linares
Site Admin
 
Posts: 41408
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: he conseguido un iphone

Postby mastintin » Thu Nov 25, 2010 7: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 .... :D
Image
Saludos.
User avatar
mastintin
 
Posts: 1516
Joined: Thu May 27, 2010 2:06 pm

Re: he conseguido un iphone

Postby mastintin » Thu Nov 25, 2010 8:33 pm

para poder usar los includes desde xcode en rules
Code: Select all  Expand view

/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: Select all  Expand view

 
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  

 
User avatar
mastintin
 
Posts: 1516
Joined: Thu May 27, 2010 2:06 pm

Re: he conseguido un iphone

Postby Antonio Linares » Sun Nov 28, 2010 10:25 am

El simulador del iPad tambien funcionando bien, desde xcode :-)

Image
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41408
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: he conseguido un iphone

Postby mastintin » Sun Nov 28, 2010 7:28 pm

los comandos para el Toolbar implementados. :D
Code: Select all  Expand view

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    


 


Image
User avatar
mastintin
 
Posts: 1516
Joined: Thu May 27, 2010 2:06 pm

Re: he conseguido un iphone

Postby Antonio Linares » Mon Nov 29, 2010 3: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
User avatar
Antonio Linares
Site Admin
 
Posts: 41408
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: he conseguido un iphone

Postby Antonio Linares » Mon Nov 29, 2010 5:09 am

Nueva Clase TMoviePlayer :-)

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

Image
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41408
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: he conseguido un iphone

Postby Antonio Linares » 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):

Image
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41408
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

PreviousNext

Return to FiveMac / FivePhone (iPhone, iPad)

Who is online

Users browsing this forum: No registered users and 4 guests