Author Topic: V7 BETA and iphone build error  (Read 6623 times)

Offline codegit

  • Dr. Type
  • ****
  • Posts: 270
    • View Profile
V7 BETA and iphone build error
« on: 2009-Jul-21 »
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
« Last Edit: 2009-Jul-21 by codegit »
------------------------------------------
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

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10675
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: V7 BETA and iphone build error
« Reply #1 on: 2009-Jul-21 »
I think you need to run libtool -arch_only armv6 libPROGRAM.a -o libNEWPROGRAM.a

Offline codegit

  • Dr. Type
  • ****
  • Posts: 270
    • View Profile
Re: V7 BETA and iphone build error
« Reply #2 on: 2009-Jul-21 »
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

  • Guest
Re: V7 BETA and iphone build error
« Reply #3 on: 2009-Jul-21 »
I tried that, but unfortunately I get :

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

Offline codegit

  • Dr. Type
  • ****
  • Posts: 270
    • View Profile
Re: V7 BETA and iphone build error
« Reply #4 on: 2009-Jul-21 »
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

Offline javiero

  • Mc. Print
  • *
  • Posts: 40
    • View Profile
Re: V7 BETA and iphone build error
« Reply #5 on: 2009-Jul-21 »
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.

Offline javiero

  • Mc. Print
  • *
  • Posts: 40
    • View Profile
Re: V7 BETA and iphone build error
« Reply #6 on: 2009-Jul-21 »
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?

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10675
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: V7 BETA and iphone build error
« Reply #7 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.


Offline javiero

  • Mc. Print
  • *
  • Posts: 40
    • View Profile
Re: V7 BETA and iphone build error
« Reply #8 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:

Offline Hark0

  • Prof. Inline
  • *****
  • Posts: 1020
  • Geek Developer
    • View Profile
    • LitioPixel - Desarrollo de videojuegos con GLBasic | Videogame development with GLBasic
Re: V7 BETA and iphone build error
« Reply #9 on: 2009-Jul-21 »
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

  • Guest
Re: V7 BETA and iphone build error
« Reply #10 on: 2009-Jul-21 »
Thats okay - its just a message stating that you now need to compile the rest on a Mac...

Offline trucidare

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 1377
  • Bachelor of Fail
    • View Profile
Re: V7 BETA and iphone build error
« Reply #11 on: 2009-Jul-21 »
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.
« Last Edit: 2009-Jul-21 by trucidare »
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

Offline javiero

  • Mc. Print
  • *
  • Posts: 40
    • View Profile
Re: V7 BETA and iphone build error
« Reply #12 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?


Offline trucidare

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 1377
  • Bachelor of Fail
    • View Profile
Re: V7 BETA and iphone build error
« Reply #13 on: 2009-Jul-21 »
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

  • Guest
Re: V7 BETA and iphone build error
« Reply #14 on: 2009-Jul-21 »
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...