topic stringlengths 1 63 | text stringlengths 1 577k ⌀ |
|---|---|
hbzip.lib para Harbour | Paco,
La librería está en el CVS de Harbour. Tienes el make para construirla.
Ya construida para xHarbour la tienes en la sección de utilidades de estos foros. A ver si tenemos tiempo y la construimos para Harbour y la ponemos también. |
hbzip.lib para Harbour | Sería de gran utilidad. Yo no soy muy bueno a la hora de manejarme con los makes. Lo he intentado pero me da montón de errores.
A ver si tienes un ratillo, que seguro que para ti es pan comido.
Un saludo |
hbzip.lib para Harbour | Paco,
Lo hemos estado intentando y por lo visto no se puede. Está incompleta para Harbour.
Si quieres usarla tendrás que recompilar con xHarbour, lo cual es algo inmediato ya que son totalmente compatibles. |
hbzip.lib para Harbour | Antonio tanto en anterior release como este ultimo de xharbour el proceso de descompresion de datos hb_unzipfile falla con un GPF, el de compresion no da problema.
solo he regenerado la hbzip.lib del cvs y ya no presenta el problema.
puede ser alguno de los parametros de construccion el que provoque el problema <!-- s:-( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":-(" title="Sad" /><!-- s:-( -->
nota: en la construccion no uso la variable cflags
y sip incluyo el pcproc.lib al scrip de contruccion del exe <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
salu2
carlos vargas |
hbzip.lib ziparchive.lib for Harbour (Microsoft flavour) | Hello!
Does anybody have hbzip.lib compiled and linked
with Microsoft C/C++ for use with Harbour+FWH???
Is there any other solution for handling ZIP files
in Harbour/Fivewin?
Thanks, Roman |
hbzip.lib ziparchive.lib for Harbour (Microsoft flavour) | You mean Harbour or (x)Harbour ?,
If is (x)Harbour you can download the files from the <!-- w --><a class="postlink" href="http://www.xharbour.org">www.xharbour.org</a><!-- w --> section contributions. |
hbzip.lib ziparchive.lib for Harbour (Microsoft flavour) | Roman,
You may download the xHB demo, install it and at the LIB directory there is a xHBZIP.lib that you may use with Microsoft as the xharbour CVS zip files for Microsoft are broken.
Please let us know if it works for you. Thanks. |
hbzip.lib ziparchive.lib for Harbour (Microsoft flavour) | Hello!
This file is only 4172 bytes, just like the following LIBs:
ActiveX, CT3Comm, Ole, OleServer, RMDBFCDX,
xBScript and xHBComm!
Probably because this is demo - I don't know ...
Regards, Roman |
hbzip.lib ziparchive.lib for Harbour (Microsoft flavour) | Hello!
I'm also trying to compile my app with
xHarbour (Microsoft), but I'm receiveing
[quote:1hau0088]unresolved external symbol _hb_stack[/quote:1hau0088]
in hpzip.lib(zip.obj)
EDIT: there is another unresolved _hb_stack in
GETDIR.OBJ:HB_FUN_CGETDIR
Please, help! |
hbzip.lib ziparchive.lib for Harbour (Microsoft flavour) | Roman,
> Probably because this is demo - I don't know ...
Yes, it looks as an empty file.
> unresolved external symbol _hb_stack
> in hpzip.lib(zip.obj)
You need to rebuild hbzip.lib for Microsoft, but its actually broken for Microsoft. You may report it to xharbour newsgroup.
Regarding cGetDir.obj, here you have the right one:
<!-- m --><a class="postlink" href="http://hyperupload.com/download/9fd48273/GETDIR.zip.html">http://hyperupload.com/download/9fd4827 ... R.zip.html</a><!-- m --> |
hbzip.lib ziparchive.lib for Harbour (Microsoft flavour) | WOOHOO!
I've converted my app again (this time to xHarbour 0.99.51 ;),
downloaded latest xHarbour CVS with <!-- m --><a class="postlink" href="http://www.tortoisecvs.org">http://www.tortoisecvs.org</a><!-- m -->
and compiled hbzip.lib with MSVC.
It seems that I can finally create and extract ZIP files ...
Roman
P.S. I have again problems with RDSADS.LIB and ACE32.LIB with
xHarbour, but I hope I will tame them ...
EDIT: May I assume that final FWPPC will work with xHarbour, too? |
hbzip.lib ziparchive.lib for Harbour (Microsoft flavour) | Roman,
> It seems that I can finally create and extract ZIP files ...
good!
> May I assume that final FWPPC will work with xHarbour, too?
yes, probably <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> |
hbziparc.lib error of Harbour (FTDN) | Dear All,
I've problem with HB_ZIPFILE() from current Harbour (FTDN). What are librarys I need?
- hbziparc.lib and hbzlib.lib (hbzlib is not included in Harbour (FTDN)) *I found the message in the forums*
- I try to copy both lib files from Harbour (Harbour-Project.org) but it's still show following error.
[code:26sfgrgm]
Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
Error: Unresolved external '_HB_FUN_HB_UNZIPOPEN' referenced from D:\HARBOUR\LIB\HBZIPARC.LIB|hbziparc
Error: Unresolved external '_HB_FUN_HB_UNZIPGLOBALINFO' referenced from D:\HARBOUR\LIB\HBZIPARC.LIB|hbziparc
Error: Unresolved external '_HB_FUN_HB_UNZIPCLOSE' referenced from D:\HARBOUR\LIB\HBZIPARC.LIB|hbziparc
Error: Unresolved external '_HB_FUN_HB_UNZIPFILEFIRST' referenced from D:\HARBOUR\LIB\HBZIPARC.LIB|hbziparc
Error: Unresolved external '_HB_FUN_HB_UNZIPFILEINFO' referenced from D:\HARBOUR\LIB\HBZIPARC.LIB|hbziparc
Error: Unresolved external '_HB_FUN_HB_UNZIPFILENEXT' referenced from D:\HARBOUR\LIB\HBZIPARC.LIB|hbziparc
Error: Unresolved external '_HB_FUN_HB_ZIPOPEN' referenced from D:\HARBOUR\LIB\HBZIPARC.LIB|hbziparc
Error: Unresolved external '_HB_FUN_HB_ZIPFILECREATE' referenced from D:\HARBOUR\LIB\HBZIPARC.LIB|hbziparc
Error: Unresolved external '_HB_FUN_HB_ZIPFILEWRITE' referenced from D:\HARBOUR\LIB\HBZIPARC.LIB|hbziparc
Error: Unresolved external '_HB_FUN_HB_ZIPFILECLOSE' referenced from D:\HARBOUR\LIB\HBZIPARC.LIB|hbziparc
Error: Unresolved external '_HB_FUN_HB_ZIPCLOSE' referenced from D:\HARBOUR\LIB\HBZIPARC.LIB|hbziparc
Error: Unresolved external '_HB_FUN_HB_UNZIPEXTRACTCURRENTFILE' referenced from D:\HARBOUR\LIB\HBZIPARC.LIB|hbziparc
Error: Unresolved external '_HB_FUN_HB_ZIPDELETEFILE' referenced from D:\HARBOUR\LIB\HBZIPARC.LIB|hbziparc
QUOTE.EXE - 13 error(s), 0 warning(s)
[/code:26sfgrgm]
Regards,
Dutch |
hbziparc.lib error of Harbour (FTDN) | [quote="dutch":2rk2ykjd]Dear All,
I've problem with HB_ZIPFILE() from current Harbour (FTDN). What are librarys I need?[/quote:2rk2ykjd]
Try:
hbmzip.lib
hbzlib.lib
EMG |
hdbc de Harbour | Hola,Parece que en Harbour estan montando clases para acceso a RDBMS varios...Esto puede aportar algo al proyecto sqlwin ?Saludos |
hdbc de Harbour | Antonio,Si, efectivamente se está comentando acerca de la misma idea: crear un RDD universal para SQL. Por lo visto Mindaugas Kavaliauskas ya tiene cierto código desarrollado:<!-- m --><a class="postlink" href="http://www.dbtopas.lt/hrb/sdd.zip">http://www.dbtopas.lt/hrb/sdd.zip</a><!-- m -->>sqlbase.c - basic RDD for interfacing with SQL database driver;sqlmix.c - this RDD implements indexes using B-trees in memory. It is inherited from SQLBASE;mysqldd.c - SQL database driver for MySQL;hbsqldd.h - include files for all above. Some defines should be moved to should dbinfo.ch;test1.prg - test code.> |
he conseguido un iphone | Pues eso que ya tengo un iphone y si se saca harbour para ios4 me ofrezco como tester ... <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
Un Saludo |
he conseguido un iphone | Manuel,
Bien! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Yo tambien tengo ganas de seguir haciendo pruebas <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
he conseguido un iphone | Manuel,
Tenemos dos posibles caminos:
1. Instalar OpenSSH desde Cydia y construir Harbour en el propio iPhone.
2. Construir la aplicación en el Mac y enviarla al iPhone. |
he conseguido un iphone | Estas son las pruebas más recientes que yo publiqué:
<!-- m --><a class="postlink" href="http://code.google.com/p/fivephone/">http://code.google.com/p/fivephone/</a><!-- m --> |
he conseguido un iphone | Por el primer camino:
1. Instalamos openssh desde Cydia
2. Instalamos apt strict desde Cydia
3. Accedemos al iphone por SSH usando putty (login: root, contraseña: alpine)
4. para probar que el apt-get va bien, podemos hacer: apt-get install mc (se instala el midnight commander, con mc se ejecuta)
5. apt-get install subversion
6. Creamos una carpeta harbour (mkdir harbour) y descargamos harbour:
svn co [url:28mcvx4z]https://harbour-project.svn.sourceforge.net/svnroot/harbour-project/trunk[/url:28mcvx4z] harbour
7. Instalamos el GNU C compiler desde Cydia (aqui hay un problema que solucionar)
8. apt-get install wget
9. wget [url:28mcvx4z]http://apt.saurik.com/debs/libgcc_4.2-20080410-1-6_iphoneos-arm.deb[/url:28mcvx4z]
10. dpkg -i libgcc_4.2-20080410-1-6_iphoneos-arm.deb
11. apt-get install iphone-gcc
ya podemos escribir gcc y vemos que se ejecuta bien
12. apt-get install make ldid zip unzip
13. Los ficheros de cabecera del gcc no vienen incluidos asi que los copiamos desde el Mac al iPhone:
en el Mac estan en: /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.1.sdk/usr/include
en el iPhone ponerlos en: /usr/include
Los he copiado usando el Total Commander con el plugin SFTP
14. Desde la carpeta de Harbour, escribir make
Se construye bien hasta este error que intento solucionar:
gcc -L../../../../../lib/darwin/gcc -o
../../../../../bin/darwin/gcc/hbpp hbpp.o -lhbnortl -lhbcommon -lm
ld: library not found for -lm
collect2: ld returned 1 exit status
creo que m es la libreria para el soporte de ratón. Estoy intentando encontrar cual era la libreria a instalar...
editado: para solucionarlo lo que hago es copiar cualquier otra libreria de las creadas ya para Harbour a libm.a
Algunas de las librerias que faltan pueden copiarse desde el Mac en
\Developer\Platforms\iPhoneOS.platform\Developer\SDKs\iPhoneOS4.1.sdk\usr\lib\
a iPhone /usr/lib
/usr/lib/libSystem.dylib
/usr/lib/libcache.dylib
/usr/lib/system/libcopyfile.dylib
/usr/lib/system/libdispatch.dylib
(copio todas las de .../lib/system a /usr/lib/system/...) |
he conseguido un iphone | Estoy siguiendo esta guia que parece estar bastante actualizada:
[url:3hml95gg]http://iphonesdkdev.blogspot.com/2010/06/iphone-gcc-for-sdk-32-ipad.html[/url:3hml95gg]
el problema que estoy encontrando es que la conexión SSH desde Windows al iPhone se corta cada cierto rato. Voy a probar desde Mac...
Desde el Mac la conexion SSH va perfectamente: (desde una ventana de terminal) ssh root@192.168.155 (la IP de tu Iphone) contraseña alpine
Estoy actualizando el post anterior según voy avanzando... |
he conseguido un iphone | creo que el segundo camino es mas limpio y correcto cara al programador .
El tema de cydia y openssh ya esta solucionado , tambien tengo instalador el terminal para iphone .
Para moverse por dentro del iphone yo estoy usando el filezilla que existe para windows y mac , es free y no da ningun problema ( es un programa de ftp) . |
he conseguido un iphone | Manuel,
El segundo camino es el que usé para el FivePhone pero no conseguí que funcionase correctamente.
A ver si logramos solucionarlo <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
he conseguido un iphone | Tirando de momento por el 1º camino .
El at-get funcionando . Instalado el mc
el svn instalado y bajado el harbour ...
Como primera cosa decir que lo que he visto bajando por el terminal creo que se pueden borrar bastantes cosas...
En contrib tenemos un directorio hbwin y otro hbide
un directorio doc
confirmame si se pueden borrar sin problemas ...
Sería bueno borrar todo lo superfluo.
paso al punto 7 en cuanto tenga un momento.
Saludos.
------------------------------ editado ---------------------------
completado hasta el paso 12... |
he conseguido un iphone | Añado este enlace que puede que tenga bastante informacion:
<!-- m --><a class="postlink" href="http://code.google.com/p/iphone-gcc/">http://code.google.com/p/iphone-gcc/</a><!-- m --> |
he conseguido un iphone | A la hora de enlazar hbpp faltan librerias, hasta ahi he llegado... <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
a ver si lo solucionamos |
he conseguido un iphone | He compilado la aplicación de ejemplo siguiendo los pasos que pone en el blog ,para ver si tengo instalado todo correctamente y se ha compilado la aplicacion e incluso se ha instalado perfectamente .... Es un punto de partida interesante .
[img:vzla7xzr]http://img524.imageshack.us/img524/4641/img0079.png[/img:vzla7xzr] |
he conseguido un iphone | No he pasado ni el crear la primera libreria ....mi terminal:
iPhone-de-manuel:~/harbour/harbour root# make
! Building Harbour 2.1.0beta2 from source - <!-- m --><a class="postlink" href="http://harbour-project.org">http://harbour-project.org</a><!-- m -->
! MAKE: make 3.81 /bin/sh
! HB_HOST_PLAT: darwin HB_SHELL: sh
! LD_LIBRARY_PATH: /private/var/root/harbour/harbour/lib/darwin/gcc:
! HB_PLATFORM: darwin (autodetected)
! HB_COMPILER: gcc (autodetected: /usr/bin/)
! Component: 'zlib' found in /private/var/root/harbour/harbour/external/zlib (local)
! Component: 'pcre' found in /usr/include
! Component: 'gpm' not supported on darwin platform
! Component: 'slang' not found
! Component: 'curses' found in /usr/include
! Component: 'x11' not found
! Component: 'wattcp/watt-32' not supported on darwin platform
! HB_INSTALL_PREFIX automatically set to: /usr/local
! REVISION: 15642
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
! 'sqlite3' library skipped (unused)
gcc -I. -I../../../../../include -fno-common -W -O3 -DHB_LEGACY_TYPES_OFF -o blocksor.o -c ../../../blocksor.c
In file included from ../../../blocksor.c:22:
../../../bzlib_pr.h:25:20: error: stdlib.h: No such file or directory
../../../bzlib_pr.h:28:19: error: stdio.h: No such file or directory
../../../bzlib_pr.h:29:19: error: ctype.h: No such file or directory
../../../bzlib_pr.h:30:20: error: string.h: No such file or directory
In file included from ../../../bzlib_pr.h:33,
from ../../../blocksor.c:22:
../../../bzlib.h:141: error: expected declaration specifiers or '...' before 'FILE'
../../../bzlib.h:169: error: expected declaration specifiers or '...' before 'FILE'
../../../blocksor.c: In function 'fallbackSort':
../../../blocksor.c:230: warning: incompatible implicit declaration of built-in function 'fprintf'
../../../blocksor.c:230: error: 'stderr' undeclared (first use in this function)
../../../blocksor.c:230: error: (Each undeclared identifier is reported only once
../../../blocksor.c:230: error: for each function it appears in.)
../../../blocksor.c: In function 'mainSort':
../../../blocksor.c:767: warning: incompatible implicit declaration of built-in function 'fprintf'
../../../blocksor.c:767: error: 'stderr' undeclared (first use in this function)
../../../blocksor.c: In function 'BZ2_blockSort':
../../../blocksor.c:1070: warning: incompatible implicit declaration of built-in function 'fprintf'
../../../blocksor.c:1070: error: 'stderr' undeclared (first use in this function)
make[3]: *** [blocksor.o] Error 1
make[2]: *** [descend] Error 2
make[1]: *** [bzip2] Error 2
make: *** [external] Error 2
iPhone-de-manuel:~/harbour/harbour root# cd..
-sh: cd..: command not found
iPhone-de-manuel:~/harbour/harbour root# cd ..
iPhone-de-manuel:~/harbour root# cd..
-sh: cd..: command not found
iPhone-de-manuel:~/harbour root# cd ..
iPhone-de-manuel:~ root# |
he conseguido un iphone | Manuel,
[quote:2itmh7ps]
../../../bzlib_pr.h:25:20: error: stdlib.h: No such file or directory
../../../bzlib_pr.h:28:19: error: stdio.h: No such file or directory
../../../bzlib_pr.h:29:19: error: ctype.h: No such file or directory
../../../bzlib_pr.h:30:20: error: string.h: No such file or directory
[/quote:2itmh7ps]
Te faltan los ficheros de cabecera de gcc. En mis notas del proceso de instalación explico como solucionarlo <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
[quote:2itmh7ps]
13. Los ficheros de cabecera del gcc no vienen incluidos asi que los copiamos desde el Mac al iPhone:
en el Mac estan en: /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.1.sdk/usr/include
en el iPhone ponerlos en: /usr/include
Los he copiado usando el Total Commander con el plugin SFTP
[/quote:2itmh7ps] |
he conseguido un iphone | Esta página es interesante para revisar la forma de instalar una aplicación en el iPhone/iPad (sin usar appinstall que puede dejar de funcionar en próximas versiones del iOS):
<!-- m --><a class="postlink" href="http://forums.whirlpool.net.au/archive/1034897">http://forums.whirlpool.net.au/archive/1034897</a><!-- m -->
[quote:3s30ejoy]
- SSH into iPhone
- Copy the *.app folder into Application folder in iPhone (must look for the right place, you can say when it has all of you apps)
- Set permission for that folder 0775
- Open that folder and set all files in it permission 0775
- Create Documents folder in var/mobile and set permission 0777 for it
- Restart iPhone and you will see that application
[/quote:3s30ejoy] |
he conseguido un iphone | me parece que el problema está en donde busca los includes harbour...
En el programa "ejemplo" se instalan un monton de "includes" sin los cuales es imposible que compile , los instala en /var/toolchain/
luego el archivo makefile lleva estas lineas :
SDK=/var/toolchain/sys32
CPPFLAGS += -I"$(SDK)/usr/include"
yo entiendo que no se tienen que añadir mas includes a /usr/include ( dime si es correcto ) .Sería suficiente cambiar los path en el makefile de harbour ¿ no ?
Saludos. |
he conseguido un iphone | Manuel,
Si, seria suficiente con cambiar el path en el makefile.
Que versión de software usa tu iPhone ? Yo estoy usando iOS 4.1
Puedes comprobar si stdlib.h está en los ficheros de cabecera del ejemplo ?
De todas formas a mi lo que me faltan son librerías del propio sistema que busca el makefile de Harbour... |
he conseguido un iphone | Si que está el stdlib.h .
Uso tambien la version 4.1 , pero con los archivos de la 3.2 del ejemplo compilo sin problemas .
He cambiado los includes de sitio y los he colocado en usr/include y ahora mismo tengo el movil "creando" harbour , que por cierto tarda un montón , y a parte de errores parece que va compilando por ahora ( esta con las librerias de los png )...
Saludos.
--------------- edito ------------------------
Se para en el mismo sitio .... la libreria m falta....
De momento aqui quedamos ...
Saludos. |
he conseguido un iphone | Puedes avanzar algo mas si copias una lib cambiandole el nombre a libm.a |
he conseguido un iphone | Algunas de las librerias que faltan pueden copiarse desde el Mac en
\Developer\Platforms\iPhoneOS.platform\Developer\SDKs\iPhoneOS4.1.sdk\usr\lib\
a iPhone /usr/lib
sigue la construcción de Harbour... <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
editado:
/usr/lib/libSystem.dylib
/usr/lib/libcache.dylib
/usr/lib/system/libcopyfile.dylib
/usr/lib/system/libdispatch.dylib
(copio todas las de .../lib/system a /usr/lib/system/...) |
he conseguido un iphone | El compilador construido y funcionando <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
[img:20a4k9i6]http://img843.imageshack.us/img843/4884/screenshot20101019at233.png[/img:20a4k9i6] |
he conseguido un iphone | Esto si es un gran avance ... Felicidades .
Ya tenemos compilador , ahora a por un hola mundo en el iphone <!-- s;-) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";-)" title="Wink" /><!-- s;-) --> |
he conseguido un iphone | Ya estamos <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
[img:2rv4eaci]http://img412.imageshack.us/img412/462/screenshot20101019at313.png[/img:2rv4eaci] |
he conseguido un iphone | El compilador con las librerias y un ejemplo con el fichero build.sh a usar para iOS <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
<!-- m --><a class="postlink" href="http://www.fivetechsoft.com/files/harbour_iOS.zip">http://www.fivetechsoft.com/files/harbour_iOS.zip</a><!-- m --> |
he conseguido un iphone | Directamente sustituyo el directorio harbour que tengo en el iphone por estos nuevos archivos ...
Muchas gracias...
Saludos. |
he conseguido un iphone | Ahora copio los frameworks desde el Mac:
\Developer\Platforms\iPhoneOS.platform\Developer\SDKs\iPhoneOS4.1.sdk\System\Library\Frameworks\
al iphone a /usr/include |
he conseguido un iphone | Estoy intentando enlazar con los frameworks pero me da un error.
A ver que nos falta... |
he conseguido un iphone | He creado un archivo ios.m en donde añadir lo que necesitemos para las primeras pruebas y lo compilo asi:
Anto-iPhone:~/fivephone/samples root# gcc -c -I././../harbour/harbour/harbour/include -F/usr/include ios.m
In file included from /usr/include/UIKit.framework/Headers/UIKit.h:9,
from ios.m:1:
/usr/include/UIKit.framework/Headers/UIAccelerometer.h:9:34: error: Foundation/Foundation.h: No such file or directory
No encuentra el framework Foundation. Ando intentando resolverlo... |
he conseguido un iphone | Solucionado... El total commander no lo copió (no se por qué). Sigo... |
he conseguido un iphone | Manuel,
Este es el fichero ios.m que intento compilar, pero da errores...
Ayuda! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
ios.m
[code=fw:3nzrmkdh]<div class="fw" id="{CB}" style="font-family: monospace;">#import <UIKit/UIKit.h><br /><span style="color: #00D7D7;">#define</span> HB_DONT_DEFINE_BOOL<br /><span style="color: #00D7D7;">#include</span> <hbapi.h><br /><br />@<span style="color: #00C800;">interface</span> MainApp : <span style="color: #000000;">UIApplication</span><br /><span style="color: #000000;">{</span><br /><span style="color: #000000;">}</span><br />@end<br /><br /><span style="color: #00C800;">static</span> NSAutoreleasePool * pool;<br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">(</span> CREATEPOOL <span style="color: #000000;">)</span><br /><span style="color: #000000;">{</span><br /> pool = <span style="color: #000000;">[</span> <span style="color: #000000;">[</span> NSAutoreleasePool alloc <span style="color: #000000;">]</span> <span style="color: #0000ff;">init</span> <span style="color: #000000;">]</span>;<br /><span style="color: #000000;">}</span><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">(</span> CREATEAPP <span style="color: #000000;">)</span><br /><span style="color: #000000;">{</span><br /> UIApplicationMain<span style="color: #000000;">(</span> <span style="color: #000000;">0</span>, <span style="color: #00C800;">nil</span>, @<span style="color: #ff0000;">"MainApp"</span>, @<span style="color: #ff0000;">"MainApp"</span> <span style="color: #000000;">)</span>;<br /><span style="color: #000000;">}</span> <br /> </div>[/code:3nzrmkdh] |
he conseguido un iphone | Reemplazando los ficheros de cabecera en los que da error por los de la versión 3.2, entonces lo compila <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
he conseguido un iphone | Antonio , me estoy bajando el sdk del 4.1 ( me quedé en el del 3.1 ) y como son varios gb está tardando algo , en cuanto tenga los archivos en su sitio intento cogerte .... ( no creo que me de tiempo hoy , pues mas tarde tengo lio)
-------------------- edito -----------------
he visto justo ahora el mensaje anterior ...creo que debemos recapitular que archivos y versiones se necesitan . |
he conseguido un iphone | Manuel,
Creo que habria que hacer una prueba con la 3.2 completa, basándonos en que el ejemplo de esa web a ti te ha funcionado bien.
He conseguido construir un EXE (minimo) completo y arranca, aunque de momento no hace nada. Voy a poner aqui el código que he usado (el iphone me anda dando errores de conexion wifi...) |
he conseguido un iphone | ios.m
[code=fw:w9e7lc6i]<div class="fw" id="{CB}" style="font-family: monospace;">#import <UIKit/UIKit.h> <br /><span style="color: #00D7D7;">#define</span> HB_DONT_DEFINE_BOOL <br /><span style="color: #00D7D7;">#include</span> <hbapi.h> <br /><span style="color: #00D7D7;">#include</span> <hbvm.h> <br /> <br /><span style="color: #00C800;">static</span> NSAutoreleasePool * pool; <br /> <br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">(</span> CREATEPOOL <span style="color: #000000;">)</span> <br /><span style="color: #000000;">{</span> <br /> pool = <span style="color: #000000;">[</span> <span style="color: #000000;">[</span> NSAutoreleasePool alloc <span style="color: #000000;">]</span> <span style="color: #0000ff;">init</span> <span style="color: #000000;">]</span>; <br /><span style="color: #000000;">}</span> <br /> <br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">(</span> CREATEAPP <span style="color: #000000;">)</span> <br /><span style="color: #000000;">{</span> <br /> UIApplicationMain<span style="color: #000000;">(</span> <span style="color: #000000;">0</span>, <span style="color: #00C800;">nil</span>, @<span style="color: #ff0000;">"MainApp"</span>, @<span style="color: #ff0000;">"MainApp"</span> <span style="color: #000000;">)</span>; <br /><span style="color: #000000;">}</span> <br /><br />@<span style="color: #00C800;">interface</span> MainApp : <span style="color: #000000;">UIApplication</span> <br /><span style="color: #000000;">{</span> <br /><span style="color: #000000;">}</span> <br />@end <br /> <br />@implementation MainApp <br />- <span style="color: #000000;">(</span> void <span style="color: #000000;">)</span> applicationDidFinishLaunching : <span style="color: #000000;"><span style="color: #000000;">(</span></span> UIApplication * <span style="color: #000000;">)</span> application <br /><span style="color: #000000;">{</span> <br /> PHB_SYMB symMain = hb_dynsymSymbol<span style="color: #000000;">(</span> hb_dynsymFindName<span style="color: #000000;">(</span> <span style="color: #ff0000;">"MAIN"</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span>; <br /> <br /> hb_vmPushSymbol<span style="color: #000000;">(</span> symMain <span style="color: #000000;">)</span>; <br /> hb_vmPushNil<span style="color: #000000;">(</span><span style="color: #000000;">)</span>; <br /> hb_vmDo<span style="color: #000000;">(</span> <span style="color: #000000;">0</span> <span style="color: #000000;">)</span>; <br /> <br /> exit<span style="color: #000000;">(</span> <span style="color: #000000;">0</span> <span style="color: #000000;">)</span>; <br /><span style="color: #000000;">}</span> <br />@end <br /> </div>[/code:w9e7lc6i]
hello.prg
[code=fw:w9e7lc6i]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">function</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <br /> <br /> ? <span style="color: #ff0000;">"Hello world from iOS"</span> <br /> <br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span> <br /> <br /><span style="color: #0000ff;">init</span> procedure start <br /> <br /> CreatePool<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <br /> CreateApp<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <br /> <br /><span style="color: #00C800;">return</span> <br /> </div>[/code:w9e7lc6i]
Puede ser que no se vea nada al arrancar la aplicación porque al crear el pool estamos en modo GUI... no se...
se puede terminar la aplicación haciendo killall hello desde otra ventana de terminal |
he conseguido un iphone | Y modificar esto en build.sh:
[code=fw:2szmv1oc]<div class="fw" id="{CB}" style="font-family: monospace;"><br />echo linking... <br />gcc $<span style="color: #000000;">1</span>.o ios.o -o $<span style="color: #000000;">1</span> -F/usr/include -L./../lib -L./../../harbour/harbour/harbour<br />/lib/darwin/gcc -lhbdebug -lhbvm -lhbrtl -lhblang -lhbrdd -lgttrm -lgtstd -lhbrt<br />l -lhbvm -lhbmacro -lrddntx -lrddcdx -lrddfpt -lhbsix -lhbcommon \ <br /> -framework CoreFoundation \ <br /> -framework Foundation \ <br /> -framework UIKit \ <br /> -framework CoreGraphics <br /> </div>[/code:2szmv1oc] |
he conseguido un iphone | En modo consola el hello.prg compila sin problemas .
Eso si para el harbour que tenemos es este mismo hilo tenemos que cambiar los path del build.sh
[code=fw:27vnx55d]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> <br />clear<br /> <br /><span style="color: #00C800;">if</span> <span style="color: #000000;">[</span> $# = <span style="color: #000000;">0</span> <span style="color: #000000;">]</span>; then<br /> echo syntax: ./build.sh file <span style="color: #000000;">[</span>options...<span style="color: #000000;">]</span><br /> exit<br />fi<br />echo compiling...<br />./../../harbour/bin/harbour $<span style="color: #000000;">1</span> -n -I./../../harbour/include $<span style="color: #000000;">2</span><br /><span style="color: #00C800;">if</span> <span style="color: #000000;">[</span> $? = <span style="color: #000000;">1</span> <span style="color: #000000;">]</span>; then<br /> exit<br />fi <br />echo compiling C module...<br />gcc $<span style="color: #000000;">1</span>.c -c -I./../../harbour/include<br />echo linking...<br />gcc $<span style="color: #000000;">1</span>.o -o $<span style="color: #000000;">1</span> -L./../lib -L./../../harbour/lib -lhbdebug -lhbvm -lhbrtl -lhblang -lhbrdd -lgttrm -lgtstd -lhbrtl -lhbvm -lhbmacro -lrddntx -lrddcdx -lrddfpt -lhbsix -lhbcommon <br />rm $<span style="color: #000000;">1</span>.c<br />rm $<span style="color: #000000;">1</span>.o<br /> <br />echo done!<br /> </div>[/code:27vnx55d] |
he conseguido un iphone | Estoy parado en la compilacion de ios.m .
He puesto los frameworks del ios3.2 ...
y me da todos estos errorres :
[code=fw:2txsrtav]<div class="fw" id="{CB}" style="font-family: monospace;"><br />iPhone-de-manuel:~/harbour/samples root# gcc -c -I./../../harbour/include -F/usr/include ios.m<br />In file included <span style="color: #0000ff;">from</span> /usr/include/UIKit.framework/Headers/UIResponder.h:<span style="color: #000000;">10</span>,<br /> <span style="color: #0000ff;">from</span> /usr/include/UIKit.framework/Headers/UIView.h:<span style="color: #000000;">9</span>,<br /> <span style="color: #0000ff;">from</span> /usr/include/UIKit.framework/Headers/UIActivityIndicatorView.h:<span style="color: #000000;">8</span>,<br /> <span style="color: #0000ff;">from</span> /usr/include/UIKit.framework/Headers/UIKit.h:<span style="color: #000000;">11</span>,<br /> <span style="color: #0000ff;">from</span> ios.m:<span style="color: #000000;">1</span>:<br />/usr/include/UIKit.framework/Headers/UIEvent.h:<span style="color: #000000;">30</span>: <span style="color: #000000;">warning</span>: <span style="color: #ff0000;">'weak_import'</span> attribute ignored<br />/usr/include/UIKit.framework/Headers/UIEvent.h:<span style="color: #000000;">31</span>: <span style="color: #000000;">warning</span>: <span style="color: #ff0000;">'weak_import'</span> attribute ignored<br />In file included <span style="color: #0000ff;">from</span> /usr/include/UIKit.framework/Headers/UIView.h:<span style="color: #000000;">9</span>,<br /> <span style="color: #0000ff;">from</span> /usr/include/UIKit.framework/Headers/UIActivityIndicatorView.h:<span style="color: #000000;">8</span>,<br /> <span style="color: #0000ff;">from</span> /usr/include/UIKit.framework/Headers/UIKit.h:<span style="color: #000000;">11</span>,<br /> <span style="color: #0000ff;">from</span> ios.m:<span style="color: #000000;">1</span>:<br />/usr/include/UIKit.framework/Headers/UIResponder.h:<span style="color: #000000;">40</span>: <span style="color: #000000;">warning</span>: <span style="color: #ff0000;">'weak_import'</span> attribute ignored<br />/usr/include/UIKit.framework/Headers/UIResponder.h:<span style="color: #000000;">58</span>: <span style="color: #000000;">warning</span>: <span style="color: #ff0000;">'weak_import'</span> attribute ignored<br />/usr/include/UIKit.framework/Headers/UIResponder.h:<span style="color: #000000;">59</span>: <span style="color: #000000;">warning</span>: <span style="color: #ff0000;">'weak_import'</span> attribute ignored<br />In file included <span style="color: #0000ff;">from</span> /usr/include/UIKit.framework/Headers/UIActivityIndicatorView.h:<span style="color: #000000;">8</span>,<br /> <span style="color: #0000ff;">from</span> /usr/include/UIKit.framework/Headers/UIKit.h:<span style="color: #000000;">11</span>,<br /> <span style="color: #0000ff;">from</span> ios.m:<span style="color: #000000;">1</span>:<br />/usr/include/UIKit.framework/Headers/UIView.h:<span style="color: #000000;">190</span>: <span style="color: #000000;">warning</span>: <span style="color: #ff0000;">'weak_import'</span> attribute ignored<br />/usr/include/UIKit.framework/Headers/UIView.h:<span style="color: #000000;">220</span>: <span style="color: #000000;">warning</span>: <span style="color: #ff0000;">'weak_import'</span> attribute ignored<br />In file included <span style="color: #0000ff;">from</span> /usr/include/UIKit.framework/Headers/UIApplication.h:<span style="color: #000000;">13</span>,<br /> <span style="color: #0000ff;">from</span> /usr/include/UIKit.framework/Headers/UIKit.h:<span style="color: #000000;">13</span>,<br /> <span style="color: #0000ff;">from</span> ios.m:<span style="color: #000000;">1</span>:<br />/usr/include/UIKit.framework/Headers/UIDevice.h:<span style="color: #000000;">67</span>: <span style="color: #000000;">warning</span>: <span style="color: #ff0000;">'weak_import'</span> attribute ignored<br />/usr/include/UIKit.framework/Headers/UIDevice.h:<span style="color: #000000;">68</span>: <span style="color: #000000;">warning</span>: <span style="color: #ff0000;">'weak_import'</span> attribute ignored<br />/usr/include/UIKit.framework/Headers/UIDevice.h:<span style="color: #000000;">69</span>: <span style="color: #000000;">warning</span>: <span style="color: #ff0000;">'weak_import'</span> attribute ignored<br />/usr/include/UIKit.framework/Headers/UIDevice.h:<span style="color: #000000;">71</span>: <span style="color: #000000;">warning</span>: <span style="color: #ff0000;">'weak_import'</span> attribute ignored<br />/usr/include/UIKit.framework/Headers/UIDevice.h:<span style="color: #000000;">72</span>: <span style="color: #000000;">warning</span>: <span style="color: #ff0000;">'weak_import'</span> attribute ignored<br />/usr/include/UIKit.framework/Headers/UIDevice.h:<span style="color: #000000;">74</span>: <span style="color: #000000;">warning</span>: <span style="color: #ff0000;">'weak_import'</span> attribute ignored<br />In file included <span style="color: #0000ff;">from</span> /usr/include/UIKit.framework/Headers/UIKit.h:<span style="color: #000000;">13</span>,<br /> <span style="color: #0000ff;">from</span> ios.m:<span style="color: #000000;">1</span>:<br />/usr/include/UIKit.framework/Headers/UIApplication.h:<span style="color: #000000;">161</span>: <span style="color: #000000;">warning</span>: <span style="color: #ff0000;">'weak_import'</span> attribute ignored<br />In file included <span style="color: #0000ff;">from</span> /usr/include/UIKit.framework/Headers/UIKit.h:<span style="color: #000000;">17</span>,<br /> <span style="color: #0000ff;">from</span> ios.m:<span style="color: #000000;">1</span>:<br />/usr/include/UIKit.framework/Headers/UIButton.h:<span style="color: #000000;">86</span>: <span style="color: #000000;">warning</span>: <span style="color: #ff0000;">'weak_import'</span> attribute ignored<br />/usr/include/UIKit.framework/Headers/UIButton.h:<span style="color: #000000;">87</span>: <span style="color: #000000;">warning</span>: <span style="color: #ff0000;">'weak_import'</span> attribute ignored<br />In file included <span style="color: #0000ff;">from</span> /usr/include/UIKit.framework/Headers/UIDocumentInteractionController.h:<span style="color: #000000;">12</span>,<br /> <span style="color: #0000ff;">from</span> /usr/include/UIKit.framework/Headers/UIKit.h:<span style="color: #000000;">23</span>,<br /> <span style="color: #0000ff;">from</span> ios.m:<span style="color: #000000;">1</span>:<br />/usr/include/UIKit.framework/Headers/UIViewController.h:<span style="color: #000000;">134</span>: <span style="color: #000000;">warning</span>: <span style="color: #ff0000;">'weak_import'</span> attribute ignored<br />/usr/include/UIKit.framework/Headers/UIViewController.h:<span style="color: #000000;">135</span>: <span style="color: #000000;">warning</span>: <span style="color: #ff0000;">'weak_import'</span> attribute ignored<br />/usr/include/UIKit.framework/Headers/UIViewController.h:<span style="color: #000000;">137</span>: <span style="color: #000000;">warning</span>: <span style="color: #ff0000;">'weak_import'</span> attribute ignored<br />In file included <span style="color: #0000ff;">from</span> /usr/include/UIKit.framework/Headers/UIImagePickerController.h:<span style="color: #000000;">9</span>,<br /> <span style="color: #0000ff;">from</span> /usr/include/UIKit.framework/Headers/UIKit.h:<span style="color: #000000;">30</span>,<br /> <span style="color: #0000ff;">from</span> ios.m:<span style="color: #000000;">1</span>:<br />/usr/include/UIKit.framework/Headers/UINavigationController.h:<span style="color: #000000;">88</span>: <span style="color: #000000;">warning</span>: <span style="color: #ff0000;">'weak_import'</span> attribute ignored<br />/usr/include/UIKit.framework/Headers/UINavigationController.h:<span style="color: #000000;">90</span>: <span style="color: #000000;">warning</span>: <span style="color: #ff0000;">'weak_import'</span> attribute ignored<br />/usr/include/UIKit.framework/Headers/UINavigationController.h:<span style="color: #000000;">116</span>: <span style="color: #000000;">warning</span>: <span style="color: #ff0000;">'weak_import'</span> attribute ignored<br />In file included <span style="color: #0000ff;">from</span> /usr/include/UIKit.framework/Headers/UIKit.h:<span style="color: #000000;">30</span>,<br /> <span style="color: #0000ff;">from</span> ios.m:<span style="color: #000000;">1</span>:<br />/usr/include/UIKit.framework/Headers/UIImagePickerController.h:<span style="color: #000000;">60</span>: <span style="color: #000000;">warning</span>: <span style="color: #ff0000;">'weak_import'</span> attribute ignored<br />/usr/include/UIKit.framework/Headers/UIImagePickerController.h:<span style="color: #000000;">64</span>: <span style="color: #000000;">warning</span>: <span style="color: #ff0000;">'weak_import'</span> attribute ignored<br />/usr/include/UIKit.framework/Headers/UIImagePickerController.h:<span style="color: #000000;">65</span>: <span style="color: #000000;">warning</span>: <span style="color: #ff0000;">'weak_import'</span> attribute ignored<br />/usr/include/UIKit.framework/Headers/UIImagePickerController.h:<span style="color: #000000;">68</span>: <span style="color: #000000;">warning</span>: <span style="color: #ff0000;">'weak_import'</span> attribute ignored<br />/usr/include/UIKit.framework/Headers/UIImagePickerController.h:<span style="color: #000000;">69</span>: <span style="color: #000000;">warning</span>: <span style="color: #ff0000;">'weak_import'</span> attribute ignored<br />/usr/include/UIKit.framework/Headers/UIImagePickerController.h:<span style="color: #000000;">70</span>: <span style="color: #000000;">warning</span>: <span style="color: #ff0000;">'weak_import'</span> attribute ignored<br />In file included <span style="color: #0000ff;">from</span> /usr/include/UIKit.framework/Headers/UIKit.h:<span style="color: #000000;">31</span>,<br /> <span style="color: #0000ff;">from</span> ios.m:<span style="color: #000000;">1</span>:<br />/usr/include/UIKit.framework/Headers/UIImageView.h:<span style="color: #000000;">23</span>: <span style="color: #000000;">warning</span>: <span style="color: #ff0000;">'weak_import'</span> attribute ignored<br />/usr/include/UIKit.framework/Headers/UIImageView.h:<span style="color: #000000;">26</span>: <span style="color: #000000;">warning</span>: <span style="color: #ff0000;">'weak_import'</span> attribute ignored<br />/usr/include/UIKit.framework/Headers/UIImageView.h:<span style="color: #000000;">31</span>: <span style="color: #000000;">warning</span>: <span style="color: #ff0000;">'weak_import'</span> attribute ignored<br />In file included <span style="color: #0000ff;">from</span> /usr/include/UIKit.framework/Headers/UIKit.h:<span style="color: #000000;">36</span>,<br /> <span style="color: #0000ff;">from</span> ios.m:<span style="color: #000000;">1</span>:<br />/usr/include/UIKit.framework/Headers/UIMenuController.h:<span style="color: #000000;">38</span>: <span style="color: #000000;">warning</span>: <span style="color: #ff0000;">'weak_import'</span> attribute ignored<br />/usr/include/UIKit.framework/Headers/UIMenuController.h:<span style="color: #000000;">40</span>: <span style="color: #000000;">warning</span>: <span style="color: #ff0000;">'weak_import'</span> attribute ignored<br />In file included <span style="color: #0000ff;">from</span> /usr/include/UIKit.framework/Headers/UIKit.h:<span style="color: #000000;">37</span>,<br /> <span style="color: #0000ff;">from</span> ios.m:<span style="color: #000000;">1</span>:<br />/usr/include/UIKit.framework/Headers/UINavigationBar.h:<span style="color: #000000;">56</span>: <span style="color: #000000;">warning</span>: <span style="color: #ff0000;">'weak_import'</span> attribute ignored<br />In file included <span style="color: #0000ff;">from</span> /usr/include/UIKit.framework/Headers/UIKit.h:<span style="color: #000000;">46</span>,<br /> <span style="color: #0000ff;">from</span> ios.m:<span style="color: #000000;">1</span>:<br />/usr/include/UIKit.framework/Headers/UIPopoverController.h:<span style="color: #000000;">114</span>: <span style="color: #000000;">warning</span>: <span style="color: #ff0000;">'weak_import'</span> attribute ignored<br />/usr/include/UIKit.framework/Headers/UIPopoverController.h:<span style="color: #000000;">118</span>: <span style="color: #000000;">warning</span>: <span style="color: #ff0000;">'weak_import'</span> attribute ignored<br />In file included <span style="color: #0000ff;">from</span> /usr/include/UIKit.framework/Headers/UIKit.h:<span style="color: #000000;">50</span>,<br /> <span style="color: #0000ff;">from</span> ios.m:<span style="color: #000000;">1</span>:<br />/usr/include/UIKit.framework/Headers/UIScreen.h:<span style="color: #000000;">36</span>: <span style="color: #000000;">warning</span>: <span style="color: #ff0000;">'weak_import'</span> attribute ignored<br />/usr/include/UIKit.framework/Headers/UIScreen.h:<span style="color: #000000;">37</span>: <span style="color: #000000;">warning</span>: <span style="color: #ff0000;">'weak_import'</span> attribute ignored<br />In file included <span style="color: #0000ff;">from</span> /usr/include/UIKit.framework/Headers/UIKit.h:<span style="color: #000000;">52</span>,<br /> <span style="color: #0000ff;">from</span> ios.m:<span style="color: #000000;">1</span>:<br />/usr/include/UIKit.framework/Headers/UIScrollView.h:<span style="color: #000000;">159</span>: <span style="color: #000000;">warning</span>: <span style="color: #ff0000;">'weak_import'</span> attribute ignored<br />/usr/include/UIKit.framework/Headers/UIScrollView.h:<span style="color: #000000;">196</span>: <span style="color: #000000;">warning</span>: <span style="color: #ff0000;">'weak_import'</span> attribute ignored<br />In file included <span style="color: #0000ff;">from</span> /usr/include/UIKit.framework/Headers/UIKit.h:<span style="color: #000000;">53</span>,<br /> <span style="color: #0000ff;">from</span> ios.m:<span style="color: #000000;">1</span>:<br />/usr/include/UIKit.framework/Headers/UISearchBar.h:<span style="color: #000000;">57</span>: <span style="color: #000000;">warning</span>: <span style="color: #ff0000;">'weak_import'</span> attribute ignored<br />/usr/include/UIKit.framework/Headers/UISearchBar.h:<span style="color: #000000;">58</span>: <span style="color: #000000;">warning</span>: <span style="color: #ff0000;">'weak_import'</span> attribute ignored<br />/usr/include/UIKit.framework/Headers/UISearchBar.h:<span style="color: #000000;">62</span>: <span style="color: #000000;">warning</span>: <span style="color: #ff0000;">'weak_import'</span> attribute ignored<br />/usr/include/UIKit.framework/Headers/UISearchBar.h:<span style="color: #000000;">69</span>: <span style="color: #000000;">warning</span>: <span style="color: #ff0000;">'weak_import'</span> attribute ignored<br />/usr/include/UIKit.framework/Headers/UISearchBar.h:<span style="color: #000000;">70</span>: <span style="color: #000000;">warning</span>: <span style="color: #ff0000;">'weak_import'</span> attribute ignored<br />/usr/include/UIKit.framework/Headers/UISearchBar.h:<span style="color: #000000;">71</span>: <span style="color: #000000;">warning</span>: <span style="color: #ff0000;">'weak_import'</span> attribute ignored<br />In file included <span style="color: #0000ff;">from</span> /usr/include/UIKit.framework/Headers/UIKit.h:<span style="color: #000000;">62</span>,<br /> <span style="color: #0000ff;">from</span> ios.m:<span style="color: #000000;">1</span>:<br />/usr/include/UIKit.framework/Headers/UITabBarController.h:<span style="color: #000000;">69</span>: <span style="color: #000000;">warning</span>: <span style="color: #ff0000;">'weak_import'</span> attribute ignored<br />In file included <span style="color: #0000ff;">from</span> /usr/include/UIKit.framework/Headers/UITableView.h:<span style="color: #000000;">11</span>,<br /> <span style="color: #0000ff;">from</span> /usr/include/UIKit.framework/Headers/UIKit.h:<span style="color: #000000;">64</span>,<br /> <span style="color: #0000ff;">from</span> ios.m:<span style="color: #000000;">1</span>:<br />/usr/include/UIKit.framework/Headers/UITableViewCell.h:<span style="color: #000000;">137</span>: <span style="color: #000000;">warning</span>: <span style="color: #ff0000;">'weak_import'</span> attribute ignored<br />/usr/include/UIKit.framework/Headers/UITableViewCell.h:<span style="color: #000000;">139</span>: <span style="color: #000000;">warning</span>: <span style="color: #ff0000;">'weak_import'</span> attribute ignored<br />/usr/include/UIKit.framework/Headers/UITableViewCell.h:<span style="color: #000000;">140</span>: <span style="color: #000000;">warning</span>: <span style="color: #ff0000;">'weak_import'</span> attribute ignored<br />In file included <span style="color: #0000ff;">from</span> /usr/include/UIKit.framework/Headers/UIKit.h:<span style="color: #000000;">64</span>,<br /> <span style="color: #0000ff;">from</span> ios.m:<span style="color: #000000;">1</span>:<br />/usr/include/UIKit.framework/Headers/UITableView.h:<span style="color: #000000;">324</span>: <span style="color: #000000;">warning</span>: <span style="color: #ff0000;">'weak_import'</span> attribute ignored<br />In file included <span style="color: #0000ff;">from</span> /usr/include/UIKit.framework/Headers/UIKit.h:<span style="color: #000000;">66</span>,<br /> <span style="color: #0000ff;">from</span> ios.m:<span style="color: #000000;">1</span>:<br />/usr/include/UIKit.framework/Headers/UITableViewController.h:<span style="color: #000000;">29</span>: <span style="color: #000000;">warning</span>: <span style="color: #ff0000;">'weak_import'</span> attribute ignored<br />In file included <span style="color: #0000ff;">from</span> /usr/include/UIKit.framework/Headers/UIKit.h:<span style="color: #000000;">71</span>,<br /> <span style="color: #0000ff;">from</span> ios.m:<span style="color: #000000;">1</span>:<br />/usr/include/UIKit.framework/Headers/UITextView.h:<span style="color: #000000;">88</span>: <span style="color: #000000;">warning</span>: <span style="color: #ff0000;">'weak_import'</span> attribute ignored<br />In file included <span style="color: #0000ff;">from</span> /usr/include/UIKit.framework/Headers/UIKit.h:<span style="color: #000000;">72</span>,<br /> <span style="color: #0000ff;">from</span> ios.m:<span style="color: #000000;">1</span>:<br />/usr/include/UIKit.framework/Headers/UIToolbar.h:<span style="color: #000000;">45</span>: <span style="color: #000000;">warning</span>: <span style="color: #ff0000;">'weak_import'</span> attribute ignored<br />In file included <span style="color: #0000ff;">from</span> /usr/include/UIKit.framework/Headers/UIKit.h:<span style="color: #000000;">73</span>,<br /> <span style="color: #0000ff;">from</span> ios.m:<span style="color: #000000;">1</span>:<br />/usr/include/UIKit.framework/Headers/UITouch.h:<span style="color: #000000;">55</span>: <span style="color: #000000;">warning</span>: <span style="color: #ff0000;">'weak_import'</span> attribute ignored<br />In file included <span style="color: #0000ff;">from</span> /usr/include/UIKit.framework/Headers/UIKit.h:<span style="color: #000000;">77</span>,<br /> <span style="color: #0000ff;">from</span> ios.m:<span style="color: #000000;">1</span>:<br />/usr/include/UIKit.framework/Headers/UIWebView.h:<span style="color: #000000;">54</span>: <span style="color: #000000;">warning</span>: <span style="color: #ff0000;">'weak_import'</span> attribute ignored<br />In file included <span style="color: #0000ff;">from</span> /usr/include/UIKit.framework/Headers/UIKit.h:<span style="color: #000000;">78</span>,<br /> <span style="color: #0000ff;">from</span> ios.m:<span style="color: #000000;">1</span>:<br />/usr/include/UIKit.framework/Headers/UIWindow.h:<span style="color: #000000;">60</span>: <span style="color: #000000;">warning</span>: <span style="color: #ff0000;">'weak_import'</span> attribute ignored<br />iPhone-de-manuel:~/harbour/samples root# <br /><br /><br /> </div>[/code:2txsrtav] |
he conseguido un iphone | Solucionado Cambiando el uikit.framework 3.2 de sdk de desarrollo por el proporcionado por el blog ....( sin los includes )
ya me ha compilado ios.m ...
paso al ejemplo hello en modo "gui" ...
intento compilar y me manda unos errores que aparentemente son del build.sh ...
mi build.sh
[code=fw:379rfuy7]<div class="fw" id="{CB}" style="font-family: monospace;"><br /># ./build.sh<br /> <br />clear<br /> <br /><span style="color: #00C800;">if</span> <span style="color: #000000;">[</span> $# = <span style="color: #000000;">0</span> <span style="color: #000000;">]</span>; then<br /> echo syntax: ./build.sh file <span style="color: #000000;">[</span>options...<span style="color: #000000;">]</span><br /> exit<br />fi<br />echo compiling...<br />./../../harbour/bin/harbour $<span style="color: #000000;">1</span> -n -I./../../harbour/include $<span style="color: #000000;">2</span><br /><span style="color: #00C800;">if</span> <span style="color: #000000;">[</span> $? = <span style="color: #000000;">1</span> <span style="color: #000000;">]</span>; then<br /> exit<br />fi <br />echo compiling C module...<br />gcc $<span style="color: #000000;">1</span>.c -c -I./../../harbour/include<br />echo linking...<br /> gcc $<span style="color: #000000;">1</span>.o ios.o -o $<span style="color: #000000;">1</span> -F/usr/include -L./../lib -L./../../harbour/lib -lhbdebug -lhbvm -lhbrtl -lhblang -lhbrdd -lgttrm -lgtstd -lhbrtl -lhbvm -lhbmacro -lrddntx -lrddcdx -lrddfpt -lhbsix -lhbcommon -framework CoreFoundation -framework Foundation -framework UIKit -framework CoreGraphics <br />rm $<span style="color: #000000;">1</span>.c<br />rm $<span style="color: #000000;">1</span>.o<br /> <br />echo done!<br /> </div>[/code:379rfuy7]
la consola :
[code=fw:379rfuy7]<div class="fw" id="{CB}" style="font-family: monospace;"><br />iPhone-de-manuel:~/harbour/samples root# ./build.sh hello<br />: <span style="color: #000000;">command</span> not found: <br />: <span style="color: #000000;">command</span> not found: <br />: <span style="color: #000000;">command</span> not found: <span style="color: #000000;">clear</span><br />: <span style="color: #000000;">command</span> not found: <br />./build.sh: <span style="color: #000000;">line</span> <span style="color: #000000;">65</span>: <span style="color: #000000;">syntax</span> error near unexpected token `fi<span style="color: #ff0000;">'<br />'</span>/build.sh: <span style="color: #000000;">line</span> <span style="color: #000000;">65</span>: `fi <br />iPhone-de-manuel:~/harbour/samples root# ./build.sh hello<br />: <span style="color: #000000;">command</span> not found: <br />: <span style="color: #000000;">command</span> not found: <br />: <span style="color: #000000;">command</span> not found: <span style="color: #000000;">clear</span><br />: <span style="color: #000000;">command</span> not found: <br />./build.sh: <span style="color: #000000;">line</span> <span style="color: #000000;">65</span>: <span style="color: #000000;">syntax</span> error near unexpected token `fi<span style="color: #ff0000;">'<br />'</span>/build.sh: <span style="color: #000000;">line</span> <span style="color: #000000;">65</span>: `fi <br />iPhone-de-manuel:~/harbour/samples root# <br /><br /> </div>[/code:379rfuy7] |
he conseguido un iphone | Solucionado el problema del build.sh .... ahora compila y me tira estos errores:
[code=fw:3olw1uns]<div class="fw" id="{CB}" style="font-family: monospace;"><br />compiling...<br />Harbour <span style="color: #000000;">2.1</span>.0beta2 <span style="color: #000000;">(</span>Rev. <span style="color: #000000;">15642</span><span style="color: #000000;">)</span><br />Copyright <span style="color: #000000;">(</span>c<span style="color: #000000;">)</span> <span style="color: #000000;">1999</span><span style="color: #000000;">-2010</span>, http:<span style="color: #B900B9;">//harbour-project.org/</span><br />Compiling <span style="color: #ff0000;">'hello.prg'</span>...<br />Lines <span style="color: #000000;">12</span>, Functions/Procedures <span style="color: #000000;">2</span><br />Generating C source output <span style="color: #0000ff;">to</span> <span style="color: #ff0000;">'hello.c'</span>... Done.<br />compiling C module...<br />linking...<br />Undefined symbols:<br /> <span style="color: #ff0000;">"_HB_FUN_CREATEPOOL"</span>, referenced <span style="color: #0000ff;">from</span>:<br /> _symbols_table in hello.o<br /> <span style="color: #ff0000;">"_HB_FUN_CREATEAPP"</span>, referenced <span style="color: #0000ff;">from</span>:<br /> _symbols_table in hello.o<br />ld: <span style="color: #000000;">symbol</span><span style="color: #000000;">(</span>s<span style="color: #000000;">)</span> not found<br />collect2: <span style="color: #000000;">ld</span> returned <span style="color: #000000;">1</span> exit status<br />done!<br />iPhone-de-manuel:~/harbour/samples root# <br /><br /> </div>[/code:3olw1uns]
Es como que no enlaza el ios.o con el resto de la aplicacion ....
por otro lado puede que se tenga que cambiar algo en el build.sh
gcc $1.o ios.o -o ./$1.app/$1 -F/usr/include ............
He investigado tambien el tema de crear archivos ipa con las aplicaciones generadas .
He cogido una aplicacion de iphone que realice para probar con el xcode y artesanalmente me he construido un archivo ipa de la aplicación .
Ahora el instalarla es tan facil como arrastrarla al itunes y sincronizar . Mañana voy a intentarlo con la aplicacion que generé con el ejemplo del blog a ver que me dice .
Por hoy lo dejo . Gracias por todo el interes que estas poniendo en este proyecto y a ver si alguien mas se anima.
Saludos. |
he conseguido un iphone | He recordado que en las versiones recientes del iOS ya no es posible lanzar una aplicación gráfica desde el terminal y que ha de ser lanzada desde su desktop GUI (springboard).
De ahi que sea muy interesante el poder generar la aplicación y que se muestre en el springboard y que desde ahí la ejecutemos. Lo que estas investigando es muy util <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
he conseguido un iphone | Manuel,
Ya que tenemos las librerias de Harbour para el iOS, ahora resulta muy fácil construir desde Mac usando el Harbour para Mac y enlazando con las librerias de Harbour-iOS <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Descarga el proyecto FivePhone desde <!-- m --><a class="postlink" href="http://code.google.com/p/fivephone/">http://code.google.com/p/fivephone/</a><!-- m --> y usa samples/buildmac.sh para construir. Ha hecho el ejecutable a la primera <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Ahora solo falta copiarlo al iPhone/iPad en un formato que nos permita lanzarlo desde el springboard... |
he conseguido un iphone | De momento y hasta tener algo mas "concreto" unba forma de acerlo , y que funciona es usar el appinstall que viene con el ejemplo del blog ... creas una carpeta en el iphone ( la tengo en ~ ) y colocas en ella el appinstall y la aplicacion , en terminal :
./appinstall nombreapp y ya la tienes instalada para funcionar . Eso si no la puedes gestionar con el iTunes ... pero en eso estoy ahora mismo . Al medio dia cuando este en casa con mi mac intento lo de compilar con fivephone ...
Saludos. |
he conseguido un iphone | Manuel,
Lo he probado con el appinstall y se instala pero no consigo que funcione tutor01
Algo debe estar mal en el Info.plist o en la aplicación en si... |
he conseguido un iphone | como intento , he creado un ipa con el programa de ejemplo del blog que he creado desde el iphone y que funciona .
En el itunes se coloca sin problema , no se si instala en el iphone , ya que este itunes no es con el que sincronizo y no quiero liar una buena . Si tu tienes manera de probar te paso el ipa en este enlace .
[url:1r9mom79]http://rapidshare.com/files/426110106/TabBar.ipa[/url:1r9mom79] |
he conseguido un iphone | Esto es el info.plist del ejemplo que funciona .... cambialo en tutor.app a ver si va :
[code=fw:cdsl0p4c]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><?xml version=<span style="color: #ff0000;">"1.0"</span> encoding=<span style="color: #ff0000;">"UTF-8"</span>?><br /><!DOCTYPE plist <span style="color: #00C800;">PUBLIC</span> <span style="color: #ff0000;">"-//Apple//DTD PLIST 1.0//EN"</span> <span style="color: #ff0000;">"http://www.apple.com/DTDs/PropertyList-1.0.dtd"</span>><br /><plist version=<span style="color: #ff0000;">"1.0"</span>><br /><dict><br /> <key>CFBundleDevelopmentRegion</key><br /> <string>English</string><br /> <key>CFBundleDisplayName</key><br /> <string>TabBarSample</string><br /> <key>CFBundleExecutable</key><br /> <string>TabBarSample</string><br /> <key>CFBundleIconFile</key><br /> <string></string><br /> <key>CFBundleIdentifier</key><br /> <string>com.yourcompany.iphone.TabBarSample</string><br /> <key>CFBundleInfoDictionaryVersion</key><br /> <string><span style="color: #000000;">6.0</span></string><br /> <key>CFBundleName</key><br /> <string>TabBarSample</string><br /> <key>CFBundlePackageType</key><br /> <string>APPL</string><br /> <key>CFBundleSignature</key><br /> <string>????</string><br /> <key>CFBundleVersion</key><br /> <string><span style="color: #000000;">1.0</span></string><br /> <key>LSRequiresIPhoneOS</key><br /> <true/><br /> <key>UIDeviceFamily</key><br /> <array><br /> <string><span style="color: #000000;">1</span></string><br /> <string><span style="color: #000000;">2</span></string><br /> </array><br /></dict><br /></plist><br /> </div>[/code:cdsl0p4c] |
he conseguido un iphone | Manuel,
Tu ipa se instala perfectamente <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
He probado a reemplazar el ejecutable dentro del ipa con el tutor01 y no arranca (aparece pantalla en negro y se cierra), luego algo debe estar mal en la aplicacion
vamos progresando... <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
he conseguido un iphone | [quote="Antonio Linares":3bpjspsr]Manuel,
Ya que tenemos las librerias de Harbour para el iOS, ahora resulta muy fácil construir desde Mac usando el Harbour para Mac y enlazando con las librerias de Harbour-iOS <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Descarga el proyecto FivePhone desde <!-- m --><a class="postlink" href="http://code.google.com/p/fivephone/">http://code.google.com/p/fivephone/</a><!-- m --> y usa samples/buildmac.sh para construir. Ha hecho el ejecutable a la primera <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Ahora solo falta copiarlo al iPhone/iPad en un formato que nos permita lanzarlo desde el springboard...[/quote:3bpjspsr]
Entiendo que lo que debo hacer es con el harbour que tenemos para mac ( el de fivemac) , sustituyo los lib por los que tengo dentro del iphone y los samples por los samples del fivephone ¿ NO ? .
El harbour para iphone que aparece como enlace en fivephone ¿ Es para iphone (arm ) o es una version para mac especialmente creada para construir para iphone ? . Pregunto ahora para luego ir mas rápido en casa ...
Saludos. |
he conseguido un iphone | Manuel,
[quote:1iz9zk8z]
Entiendo que lo que debo hacer es con el harbour que tenemos para mac ( el de fivemac) , sustituyo los lib por los que tengo dentro del iphone y los samples por los samples del fivephone ¿ NO ?
[/quote:1iz9zk8z]
Si, exactamente <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Solo hay que reemplazar las librerias de Harbour para que use las construidas para el iOS |
he conseguido un iphone | [quote="Antonio Linares":2370c0ha]Manuel,
He probado a reemplazar el ejecutable dentro del ipa con el tutor01 y no arranca (aparece pantalla en negro y se cierra), luego algo debe estar mal en la aplicacion
vamos progresando... <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->[/quote:2370c0ha]
Puede que tenga lago que ver con lo de la firma de aplicaciones para que funcionen en el iphone .
Por curiosidad coloca la aplicacióon que generaste en el iphone ( como antes con el appinstall ) . Con la applicacion ejemplo del blog ademas del appinstall viene otro programilla llamado ldid que sirve para "seudo firmar" la aplicación .Desde consola :
ldid -S nombreapp y luego le damos al appinstall .
Todo esto lo he sacado revisando el make del blog , que por ahora es una muy buena "guia de referencia" .
Saludos. |
he conseguido un iphone | Ya tengo eñ harbour para iphone en el mac ... pero me faltan cosas para intentar el tutor01 ... tengo el archivo ios.m y el msgs.m ... en lazandolos tambien me da error :
[code=fw:grsexfn1]<div class="fw" id="{CB}" style="font-family: monospace;"><br />compiling...<br />Harbour <span style="color: #000000;">2.1</span>.0beta1 <span style="color: #000000;">(</span>Rev. <span style="color: #000000;">14766</span><span style="color: #000000;">)</span><br />Copyright <span style="color: #000000;">(</span>c<span style="color: #000000;">)</span> <span style="color: #000000;">1999</span><span style="color: #000000;">-2010</span>, http:<span style="color: #B900B9;">//harbour-project.org/</span><br />Compiling <span style="color: #ff0000;">'tutor01.prg'</span>...<br />Lines <span style="color: #000000;">64</span>, Functions/Procedures <span style="color: #000000;">2</span><br />Generating C source output <span style="color: #0000ff;">to</span> <span style="color: #ff0000;">'tutor01.c'</span>... Done.<br />compiling C module...<br />linking...<br />Undefined symbols:<br /> <span style="color: #ff0000;">"_GetApp"</span>, referenced <span style="color: #0000ff;">from</span>:<br /> _MsgInfo in msgs.o<br /> _MsgYesNo in msgs.o<br />ld: <span style="color: #000000;">symbol</span><span style="color: #000000;">(</span>s<span style="color: #000000;">)</span> not found<br />collect2: <span style="color: #000000;">ld</span> returned <span style="color: #000000;">1</span> exit status<br />done!<br />iMac-de-Manuel-Alvarez-Sanchez:<span style="color: #000000;">samples</span> manuel$ <br /><br /> </div>[/code:grsexfn1] |
he conseguido un iphone | Manuel,
Haz un checkout desde el repositorio del FivePhone y haz make para que se construya.
Luego usa samples/buildmac.sh tutor01
No necesitas el ios.m, ya que ese código lo proporciona la libreria del FivePhone |
he conseguido un iphone | Manuel,
Cierto, se me habia pasado pseudo-firmar la aplicacion con ldid -S tutor01
aun asi, sigue la pantalla negra. Algo falta... |
he conseguido un iphone | Si estaba ahora precisamente con ello , he generado ya la aplicacion tutor01 y la he seudofirmado y la he instalado , pero me pasa lo que a ti , se habre y cierra inmediato ...
Antes hice una cosa ( por error ) intente enlazar el ios.o que tenia en el iphone con los otros archivos ... me dijo que no era un archivo valido ya que era arm y yo estabe generando un linkado arm6 y no lo enlazo .... si forzamos a que se genere codigo arm en vez arm6 , ¿ Pasara algo ? . |
he conseguido un iphone | Posiblemente arm sea compatible con arm6, pero no al reves (pura suposición) pues arm6 tiene mas cosas que arm
Tal vez deberiamos quitar la llamada a MsgInfo() y ver si podemos escribir un log ó un sonido, algo que nos indique que se ejecuta... |
he conseguido un iphone | Saludos
humildemente tengo el 2g será.
Será compatible todo este proceso, me gustaría aportar <!-- s:-D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":-D" title="Very Happy" /><!-- s:-D --> |
he conseguido un iphone | Daniel,
Que versión de software tiene instalado ?
Con 3.2 ó 4.1 seria perfecto <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
he conseguido un iphone | Hola Antonio,
Tengo un 3GS con iOS4.1, lo unico es que esta sin el jailbreak, Serviria este ?
se podria hacer esto desde Windows o Linux, No tengo MAC |
he conseguido un iphone | [quote="Daniel Garcia-Gil":ulkec6c0]Saludos
humildemente tengo el 2g será.
Será compatible todo este proceso, me gustaría aportar <!-- s:-D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":-D" title="Very Happy" /><!-- s:-D -->[/quote:ulkec6c0]
Primero Bienvenidos todos <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
Creo que el iphone 2 se quedo en la 3.1 <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( -->
De todas formas lo primero es preguntar si tienes jailbreak , si no lo tienes , en esta fase por ahora no podras hacer mucho ( creo que nada ) .
si lo tienes , un punto de partida "facil" es instalar el programa que se ha puesto en rapidshare ( en este mismo hilo , unos mensajes mas arriba ) , es una ipa ,la colocas en el itunes y sincronizas , esta en principio compilada con el sdk 3.2 , asi sabremos si en tu telefono corren aplicaciones compliadas con esa version .
Saludos. |
he conseguido un iphone | [quote="pablovidal":12o7jykh]Hola Antonio,
Tengo un 3GS con iOS4.1, lo unico es que esta sin el jailbreak, Serviria este ?
se podria hacer esto desde Windows o Linux, No tengo MAC[/quote:12o7jykh]
Yo estoy usando tu mismo equipo 3gs con ios4.1.
Sin jailbreak de momento poco se puede hacer . Ojo , de momento .
Con jailbreak es otra cosa . El camino que seguimos hasta hoy era compilar y linkar los programas en el mismo iphone .Esto hace que sea independiente de la plataforma que uses ya que se realiza todo desde terminal via SSH . Yo en contreto he estado haciendo las pruebas desde windows y desde mac indistintamente , realmente se hacen en el iphone .
Saludos. |
he conseguido un iphone | Saludos
La versión es 3.1.3
si tengo el jailbreak, de hecho ya he descargado harbour del svn, instale gcc, intente construir pero me da un error con utemp.h
use la compilación que publicaste pero no funciono (me lo imaginaba)
he seguido esto desde el principio, pero me encuentro en un punto de tranca
seguiré probando y muestro los resultados, lo intentare usando el 3.2 |
he conseguido un iphone | Daniel Trata de ejecutar este programa en tu iphone :
[url:23kew262]http://rapidshare.com/files/426110106/TabBar.ipa[/url:23kew262]
instalalo mediante el itunes y sincronizalo.
y nos cuentas . |
he conseguido un iphone | he mirado como podemos "controlar" que pasa en esa aplicacion que se cierra y no se por donde tirar . La de emitir un beep para saber si se ejecuta se complica porque el framework del iphone no tiene la funcion nsbeep . Otra forma sería controlarlo por medio de NSlog pero al no ser lanzado desde consola no nos va a dar la salida por ella .Una opcion que se me ocurre es mirar si existe manera de redireccionar la salida de nslog a un archivo log concreto .
He mirado a ver si en mi iphone tengo algun crashreport y no tengo ninguno ,asi que realmente no parece que la aplicación "casque" ,solo que no hace lo que debe.
Un saludo.
-------------------------- edito para ampliar ------------------------
he encontrado esto que puede servir :
[code=fw:25q9eaui]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br />Redirect NSLog <span style="color: #0000ff;">to</span> a file <span style="color: #0000ff;">on</span> the iPhone<br />January <span style="color: #000000;">9</span>, <span style="color: #000000;">2009</span> – <span style="color: #000000;">21</span>:<span style="color: #000000;">42</span> Share <span style="color: #0000ff;">on</span> Twitter<br /><br /><span style="color: #00C800;">If</span> you need <span style="color: #0000ff;">to</span> debug your app <span style="color: #0000ff;">when</span> disconnected <span style="color: #0000ff;">from</span> your Mac <span style="color: #000000;">(</span>and <span style="color: #0000ff;">from</span> the console<span style="color: #000000;">)</span>, redirect all your NSLog calls <span style="color: #0000ff;">to</span> a file so you can later read it.<br /><br />The <span style="color: #00C800;">method</span> below will create a file <span style="color: #0000ff;">name</span> “console.log” in the Documents <span style="color: #0000ff;">folder</span> <span style="color: #0000ff;">of</span> your application so you can later read it.<br /><br />Just call this <span style="color: #00C800;">method</span> in your program:<br /><br />- <span style="color: #000000;">(</span>void<span style="color: #000000;">)</span> redirectConsoleLogToDocumentFolder<br /><span style="color: #000000;">{</span><br /> NSArray *paths = NSSearchPathForDirectoriesInDomains<span style="color: #000000;">(</span>NSDocumentDirectory,<br /> NSUserDomainMask, YES<span style="color: #000000;">)</span>;<br /> NSString *documentsDirectory = <span style="color: #000000;">[</span>paths objectAtIndex:<span style="color: #000000;">0</span><span style="color: #000000;">]</span>;<br /> NSString *logPath = <span style="color: #000000;">[</span>documentsDirectory<br /> stringByAppendingPathComponent:@<span style="color: #ff0000;">"console.log"</span><span style="color: #000000;">]</span>;<br /> freopen<span style="color: #000000;">(</span><span style="color: #000000;">[</span>logPath cStringUsingEncoding:<span style="color: #000000;">NSASCIIStringEncoding</span><span style="color: #000000;">]</span>,<span style="color: #ff0000;">"a+"</span>,stderr<span style="color: #000000;">)</span>;<br /><span style="color: #000000;">}</span><br /><br />The log will never be erased, so use with caution.<br /> </div>[/code:25q9eaui] |
he conseguido un iphone | Manuel,
El CrashReporter.log deberia estar en:
~/Library/Logs/CrashReporter/MobileDevice/...
si ? |
he conseguido un iphone | [quote="Antonio Linares":34i9digi]Manuel,
El CrashReporter.log deberia estar en:
~/Library/Logs/CrashReporter/MobileDevice/...
si ?[/quote:34i9digi]
Si es donde yo he mirado
Mejor dicho ese path pero partiendo de la raíz y no del usuario |
he conseguido un iphone | [quote="mastintin":16h615qs]Daniel Trata de ejecutar este programa en tu iphone :
[url:16h615qs]http://rapidshare.com/files/426110106/TabBar.ipa[/url:16h615qs]
instalalo mediante el itunes y sincronizalo.
y nos cuentas .[/quote:16h615qs]
Manuel
me dice que la aplicacion no esta firmada |
he conseguido un iphone | Daniel,
Que versión de iTunes estás usando ? |
he conseguido un iphone | Manuel,
Se me ocurre la siguiente prueba:
Suponiendo que el PRG se este ejecutando correctamente, hacer:
[code=fw:2wrrkp8c]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> MemoWrit<span style="color: #000000;">(</span> <span style="color: #ff0000;">"/test.txt"</span>, <span style="color: #ff0000;">"ok, funciona!"</span> <span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:2wrrkp8c]
Otra posibilidad es crear un bucle y ver si se queda en él:
[code=fw:2wrrkp8c]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">while</span> .T.<br /> end<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:2wrrkp8c] |
he conseguido un iphone | con el memowrite no escribe nada ....
y con el bucle tampoco .... parece que el problrema es que no entra en main() |
he conseguido un iphone | [quote="Daniel Garcia-Gil":59m32l5h]
me dice que la aplicacion no esta firmada[/quote:59m32l5h]
Mira si tienes instalado el appsync de Cydia , si lo tienes intenta reinstalarlo , sino instalalo. |
he conseguido un iphone | Manuel,
Prueba por favor a poner la llamada a MemoWrit() en el init procedure start.
A ver si llega a arrancar... (antes de que salte a Main) |
he conseguido un iphone | no no entra en init procedure star .
Lo he probado con memowrit , y por si acaso es que no tiene permisos de escritura y por eso no coloca el archivo lo he intentado con el bucle y nada , todo igual .
Si es verdad que con memowrit da la sensación que se detiene un poco mas y da tiempo a ver una ventana con fondo negro ampliandose y cerrandose , pero puede que solo sea cuestion del iphone en ese momento .
<!-- s:evil: --><img src="{SMILIES_PATH}/icon_evil.gif" alt=":evil:" title="Evil or Very Mad" /><!-- s:evil: --> <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( --> <!-- s:cry: --><img src="{SMILIES_PATH}/icon_cry.gif" alt=":cry:" title="Crying or Very sad" /><!-- s:cry: --> <!-- s:evil: --><img src="{SMILIES_PATH}/icon_evil.gif" alt=":evil:" title="Evil or Very Mad" /><!-- s:evil: --> <!-- s:| --><img src="{SMILIES_PATH}/icon_neutral.gif" alt=":|" title="Neutral" /><!-- s:| -->
Saludos. |
he conseguido un iphone | Manuel,
El caso es Que construyendo en modo terminal arranca bien
Sera algo del plist ? |
he conseguido un iphone | He hecho lo siguiente .... he compilado el tutor01 nuevamente ( el del msginfo() ) . He instalado el tabBarsample que sabemos que funciona ( y lo he ejecutado) .
He colocado el tutor01 en el iphone y lo he seudofirmado ( ldid -s ) ,he ido a la aplicacion instalada ( /private/var/mobile/Applications/278205AC-FB63-4B4C-B1EA-10250EBF6CB8 ) he abierto el app y le he borrado tabBarSample y en su lugar he colocado el tutor01 renombrandolo .... mismo resultado ....
Una cosa , Hemos hecho funcionar el hola mundo compilado dentro del iphone , pero ¿ funcionaba el hola mundo compilado desde el mac ? . Yo creo que no lo llegue a conseguir compilar ...
Saludos. |
he conseguido un iphone | Manuel,
[quote:25vjw510]
¿ funcionaba el hola mundo compilado desde el mac ?
[/quote:25vjw510]
Voy a probarlo... |
he conseguido un iphone | [quote="Antonio Linares":2tt7rftl]Daniel,
Que versión de iTunes estás usando ?[/quote:2tt7rftl]
10.0.1
[quote="mastintin":2tt7rftl]Mira si tienes instalado el appsync de Cydia , si lo tienes intenta reinstalarlo , sino instalalo.[/quote:2tt7rftl]
instalada y funcionando la aplicacion que me enviaste, lo que no logro es avanzar con la construcion de harbour, estoy en el mismo sitio |
he conseguido un iphone | Daniel,
Descarga el build de Harbour iOS que he publicado y prueba a ver si te funciona en el iphone <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
<!-- m --><a class="postlink" href="http://www.fivetechsoft.com/files/harbour_iOS.zip">http://www.fivetechsoft.com/files/harbour_iOS.zip</a><!-- m -->
Lleva un build.sh y un test.prg en samples
Lo que si es necesario es que tengas el gcc instalado. Los pasos para instalarlo son:
apt-get install wget
wget <!-- m --><a class="postlink" href="http://apt.saurik.com/debs/libgcc_4.2-20080410-1-6_iphoneos-arm.deb">http://apt.saurik.com/debs/libgcc_4.2-2 ... os-arm.deb</a><!-- m -->
dpkg -i libgcc_4.2-20080410-1-6_iphoneos-arm.deb
apt-get install iphone-gcc
ya podemos escribir gcc y vemos que se ejecuta bien <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
todo esto en el propio iphone, manejado por ssh |
he conseguido un iphone | Antonio
tengo todo eso instalado y ya lo probe.... al ejecutar ./harbour lo que me sale en el iphone es "Killed" |
he conseguido un iphone | Daniel,
gcc te funciona ? |
he conseguido un iphone | [quote="Antonio Linares":2fce8qbu]Daniel,
gcc te funciona ?[/quote:2fce8qbu]
si |
he conseguido un iphone | Daniel,
Intenta construir Harbour en tu iphone y comprueba hasta donde llega |
he conseguido un iphone | [quote="Daniel Garcia-Gil":3buw989d]Saludos
intente construir pero me da un error con utemp.h
use la compilación que publicaste pero no funciono (me lo imaginaba)
he seguido esto desde el principio, pero me encuentro en un punto de tranca
seguiré probando y muestro los resultados, lo intentare usando el 3.2[/quote:3buw989d] |
he conseguido un iphone | [quote="Antonio Linares":2d4vopft]Manuel,
[quote:2d4vopft]
¿ funcionaba el hola mundo compilado desde el mac ?
[/quote:2d4vopft]
Voy a probarlo...[/quote:2d4vopft]
Probado , funciona perfectamente , en modo consola con la compilacion que tenemos.
Saludos. |
he conseguido un iphone | Daniel te puedo enviar el harbour construido que estamos utilizando desde mac y que parece que funciona en modo consola , pero antes vamos a confirmar que los programas consola que genera se ejecutan en tu iphone ...
[url:1w2noy7g]http://rapidshare.com/files/426420523/hello.zip[/url:1w2noy7g]
te envio el hello word generado desde macosx ... colocalo en root en el iphone , cambiale los permisos para que sea ejecutable , y lanzalo desde la consola a ver si te lanza el hola mundo .
Saludos. |
he conseguido un iphone | Manuel, Antonio
Estoy empezando de 0 nuevamente, reprograme el iphone... a ver que sucede
voy a probar el ejemplo hello... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.