Page 29 of 43
Re: he conseguido un iphone
Posted: Thu Nov 25, 2010 6:27 am
by Antonio Linares
Creadas las librería completas (teléfono y simulador) y funcionando correctamente!
http://fivephone.googlecode.com/files/libfivephone.full.ahttp://fivephone.googlecode.com/files/libharbour.full.aLas he creado asi:
Code: Select all | Expand
lipo -create -arch i386 libfivephone.sim.a -arch arm libfivephone.a -output libfivephone.full.a
Code: Select all | Expand
lipo -create -arch i386 libharbour.sim.a -arch arm libharbour.a -output libharbour.full.a
Re: he conseguido un iphone
Posted: Thu Nov 25, 2010 8:12 am
by mastintin
Antonio felicidades doble
.
Por el trabajo realizado .Estupendo
Por tu cumpleaños .Aun mas importante quel trabajo es ir cumpliendo años .
Felicidades
Re: he conseguido un iphone
Posted: Thu Nov 25, 2010 8:13 am
by Antonio Linares
Manuel,
Estamos realizando un trabajo en equipo, realmente bueno
Gracias por todo,
Antonio
Re: he conseguido un iphone
Posted: Thu Nov 25, 2010 8:37 am
by Massimo Linossi
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
Re: he conseguido un iphone
Posted: Thu Nov 25, 2010 8:40 am
by Antonio Linares
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
Re: he conseguido un iphone
Posted: Thu Nov 25, 2010 12:56 pm
by mastintin
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.
Re: he conseguido un iphone
Posted: Thu Nov 25, 2010 2:15 pm
by mastintin
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
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.
Re: he conseguido un iphone
Posted: Thu Nov 25, 2010 7:20 pm
by Antonio Linares
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!
Re: he conseguido un iphone
Posted: Thu Nov 25, 2010 7:31 pm
by mastintin
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.
Re: he conseguido un iphone
Posted: Thu Nov 25, 2010 8:33 pm
by mastintin
para poder usar los includes desde xcode en rules
Code: Select all | Expand
/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
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
Re: he conseguido un iphone
Posted: Sun Nov 28, 2010 10:25 am
by Antonio Linares
El simulador del iPad tambien funcionando bien, desde xcode
Re: he conseguido un iphone
Posted: Sun Nov 28, 2010 7:28 pm
by mastintin
los comandos para el Toolbar implementados.
Code: Select all | Expand
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
Re: he conseguido un iphone
Posted: Mon Nov 29, 2010 3:29 am
by Antonio Linares
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
Re: he conseguido un iphone
Posted: Mon Nov 29, 2010 5:09 am
by Antonio Linares
Nueva Clase TMoviePlayer
Incluye el "hack" para ver el video por "AirPlay" en el AppleTV2
Re: he conseguido un iphone
Posted: Mon Nov 29, 2010 10:16 am
by Antonio Linares
El ejemplo samples/movie.prg reproduciéndose por "AirPlay" desde el iphone en el televisor (a traves de Apple TV2):