V7 BETA and iphone build error

Previous topic - Next topic

codegit

Hi

Has anybody been able to build an iphone project on a Apple MAC? I keep getting this error during the build process "libPROGRAM.a file too small" ??

Any ideas how to solve?

Thanks
------------------------------------------
1 X Acer TravelMate 4270, laptop, XP PRO
1 X Dell Studio 17 laptop, Windows 7
1 X MacBook Pro 2,2 GHz Core 2 Duo, 2 GB RAM, 160 GB HDD, 9400M
2 X iTouch
1 X HTC Desire (Android 2.1)
iPad soon to be added

Kitty Hello

I think you need to run libtool -arch_only armv6 libPROGRAM.a -o libNEWPROGRAM.a

codegit

Thanks I will try this.
------------------------------------------
1 X Acer TravelMate 4270, laptop, XP PRO
1 X Dell Studio 17 laptop, Windows 7
1 X MacBook Pro 2,2 GHz Core 2 Duo, 2 GB RAM, 160 GB HDD, 9400M
2 X iTouch
1 X HTC Desire (Android 2.1)
iPad soon to be added

MrTAToad

I tried that, but unfortunately I get :

libtool: no library created (no object files in input file)

codegit

Hi

I got the same message.
------------------------------------------
1 X Acer TravelMate 4270, laptop, XP PRO
1 X Dell Studio 17 laptop, Windows 7
1 X MacBook Pro 2,2 GHz Core 2 Duo, 2 GB RAM, 160 GB HDD, 9400M
2 X iTouch
1 X HTC Desire (Android 2.1)
iPad soon to be added

javiero

Hi.

First of all, the apps compiled with glbasic are suitable for Iphone simulator or only for real iphone ?.

When I compiled for Iphone device, i get this error ->  Code Sign Error: The identity iphone developer dosn't match any valid certificate/private key pari in the default keychain

When I compiled for Iphone simulater, i get this errors:
---------------------------------------
collect2: ide returned 1 exit status
symbol(s) not found
_main in main.o
(X) "_GLB_iPhone_call_main", referenced form:
_main in main.o
(X) "_iPhoneDeviceID", referenced from:

---------------------------------------

Any idea?

I have the SDK for free but not purchase the license 100$ by now. Is neccesary ?

Thanks.

javiero

The compiler in windows say this:
--------------------------------------------------------------------------------

*** Configuration: IPHONE ***
precompiling:
GPC - GLBasic Precompiler V.7.003 - 3D, NET
Wordcount:3 commands
compiling:
arch:
/cygdrive/q/Compiler/platform/iPhone/bin/arm-apple-darwin9-ar: can't find or exec: /usr/local/bin/arm-apple-darwin9-ranlib (No such file or directory)
/cygdrive/q/Compiler/platform/iPhone/bin/arm-apple-darwin9-ar: internal ranlib command failed
Creating .app for Hello_world

--------------------------------------------------------------------------------

Is needed any library to windows?

Kitty Hello

Oh dear ;)

OK, first, the iPhone compiler yield's some warning when creating a library:
Code (glbasic) Select

/cygdrive/q/Compiler/platform/iPhone/bin/arm-apple-darwin9-ar: can't find or exec: /usr/local/bin/arm-apple-darwin9-ranlib (No such file or directory)
/cygdrive/q/Compiler/platform/iPhone/bin/arm-apple-darwin9-ar: internal ranlib command failed

Ignore that.

Next, the iPhone is release only, not for the simulator.
Third, the next update will solve the problem with the libtool.

You don't need the full SDK for compilation on iPhone, the demo is enough.


javiero

Quote from: Kitty Hello on 2009-Jul-21
Oh dear ;)

OK, first, the iPhone compiler yield's some warning when creating a library:
Code (glbasic) Select

/cygdrive/q/Compiler/platform/iPhone/bin/arm-apple-darwin9-ar: can't find or exec: /usr/local/bin/arm-apple-darwin9-ranlib (No such file or directory)
/cygdrive/q/Compiler/platform/iPhone/bin/arm-apple-darwin9-ar: internal ranlib command failed

Ignore that.

Next, the iPhone is release only, not for the simulator.
Third, the next update will solve the problem with the libtool.

You don't need the full SDK for compilation on iPhone, the demo is enough.



Hi gernot

But when I compile for real device I get this error->    Code Sign Error: The identity iphone developer dosn't match any valid certificate/private key pari in the default keychain

How can i resolve this?

Many thanks.  :good:

Hark0

Hi Javiero....

I install SDK Beta 7.0 and compiling for Iphone shows this message:

_______________________________________
*** Configuration: IPHONE ***
precompiling:
GPC - GLBasic Precompiler V.7.003 - 3D, NET
Wordcount:3 commands
compiling:
arch:
arm-apple-darwin9-ar: temporary file: No such file or directory
Creating .app for Hello_world
...build the Proejct in: C:\Users\Jordi\Documents\GLBasic\Samples\Basics\XCode on Mac,
   then copy the 'iPhone' binary to the .app directory
success
_______________________________________
*** Finished ***
Elapsed: 4.3 sec. Time: 16:32
Build: 1 succeeded.



Maibe I need a Macintosh...  ;/

(Tried for compile on Vista).
http://litiopixel.blogspot.com
litiopixel.blogspot.com - Desarrollo videojuegos Indie · Pixel-Art · Retroinformática · Electrónica Development Indie Videogames · Pixel-Art · Retrocomputing · Electronic

MrTAToad

Thats okay - its just a message stating that you now need to compile the rest on a Mac...

trucidare

#11
OK here a quick How To.

1.

Compile you favorit Game on Windows with GLBasic. Ignore the Warnings about ranlib and ar.

2.

Copy the XCode Folder to your mac (required because apple license)

Temporary: Open Terminal go to the XCode Folder copied from Windows machine. Then into Lib Folder.
                 type: libtool -arch_only armv6 libPROGRAM.a -o libNEWPROGRAM.a
                 rm -rf libPROGRAM.a
                 mv libNEWPROGRAM.a libPROGRAM.a

3.

Open XCode Project and Set the Application Details for you Game like:

Name: Muh
Company: com.blah.Muh (or something similiar like your Developer Certificate is created for)

4.

Set SDK to 3.0 or 3.1 Device Debug and compile. It will automatically start on the provisioning Phone or Pod if connected.


Please let me know if something unknown or errors happened.

regards
trucidare


@javiero

To compile to Real iPhone hardware you need to have an iPhone Developer Account. There you can create a Certificate for each of your programs. Install it on your host machine and you will able to compile your program for real Hardware.
MacBook Pro 2,2 GHz Core 2 Duo, 4 GB RAM, 160 GB HDD, 8600M GT
Core i3 - 3,07 GHz, 8 GB Ram, 2.5 TB HDD, Geforce GTX 260+ OC

javiero

Quote from: trucidare on 2009-Jul-21
@javiero

To compile to Real iPhone hardware you need to have an iPhone Developer Account. There you can create a Certificate for each of your programs. Install it on your host machine and you will able to compile your program for real Hardware.

Thanks traducidare, my problem is I don't have a certificate.

I need purchase the 100$ developer account for certificate or only with the sdk demo is needed?


trucidare

Please visit the Chat tomorrow i will explain something to you ;)
MacBook Pro 2,2 GHz Core 2 Duo, 4 GB RAM, 160 GB HDD, 8600M GT
Core i3 - 3,07 GHz, 8 GB Ram, 2.5 TB HDD, Geforce GTX 260+ OC

MrTAToad

Hopefully I'll be there too.  :whistle:

Wonder if the toollib error I got was because I hadn't chdir into the correct directly and just passed the full path as the parameters...  Will have to look into that later...