Author Topic: 11.171 Not compiling for MAC  (Read 1974 times)

Offline jfroco

  • Mc. Print
  • *
  • Posts: 2
    • View Profile
11.171 Not compiling for MAC
« on: 2012-Sep-16 »
Hi,

I can't compile for Mac OS X

11.171
_______________________________________
Code: GLBasic [Select]
*** Configuration: OS-X_X86 ***
precompiling:
GPC - GLBasic Precompiler V.10.070 SN:XXXXXXXXX - 3D, NET
Wordcount:1004 commands
compile+link:
/cygdrive/r/Compiler/platform/Mac/Bin/../libexec/gcc/i686-apple-darwin9/4.0.1/ld: Undefined symbols:
__Z12gf_jpeg_readPKcPiS1_S1_PPh
__Z13gf_write_jpegPKcPKhii
_png_create_info_struct
_png_create_read_struct
_png_create_write_struct
_png_destroy_read_struct
_png_destroy_write_struct
_png_read_end
_png_read_image
_png_read_info
_png_read_update_info
_png_set_IHDR
_png_set_bKGD
_png_set_error_fn
_png_set_expand
_png_set_packing
_png_set_read_fn
_png_set_strip_16
_png_set_write_fn
_png_write_end
_png_write_image
_png_write_info
*** FATAL ERROR - Please post this output in the forum
_______________________________________
*** Finished ***
Elapsed: 5.0 sec. Time: 02:09
Build: 0 succeeded.
*** 1 FAILED ***

It works in 10.202
Code: GLBasic [Select]
_______________________________________
*** Configuration: OS-X_X86 ***
precompiling:
GPC - GLBasic Precompiler V.10.104 SN:XXXXXXXXX - 3D, NET
Wordcount:1004 commands
compile+link:
cygwin warning:
  MS-DOS style path detected: C:\Users\jfroco\Documents\GLBasic\GLBasic\FPS02\MacIcon.icns
  Preferred POSIX equivalent is: /cygdrive/c/Users/jfroco/Documents/GLBasic/GLBasic/FPS02/MacIcon.icns
  CYGWIN environment variable option "nodosfilewarning" turns off this warning.
  Consult the user's guide for more details about POSIX paths:
    http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
Using icns type 'ic09' (ARGB) for 'C:\Users\jfroco\Documents\GLBasic\GLBasic\FPS02\tmpMacIcon.png'
Saved icns file to C:\Users\jfroco\Documents\GLBasic\GLBasic\FPS02\MacIcon.icns
Creating .app for FPS02
run: "R:\Tools\Icons.exe" "C:\Users\jfroco\Documents\GLBasic\GLBasic\FPS02\icon.png" /MACOSX
success
_______________________________________
*** Finished ***
Elapsed: 9.3 sec. Time: 02:09
Build: 1 succeeded.

Also I don't understand why the version 11 has an older precompiler than version 10. Is there something wrong with my installation?

Thank you

MrTAToad

  • Guest
Re: 11.171 Not compiling for MAC
« Reply #1 on: 2012-Sep-16 »
Looks like a few things are missing from the library files :)

Offline spacefractal

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 3690
    • View Profile
    • Space Fractal
Re: 11.171 Not compiling for MAC
« Reply #2 on: 2012-Sep-16 »
yep, its look like its a missing lib component.

its libpng_uni.a from Compiler\platform\Mac\OSX\Lib that is missing. if I copy that from previous v11 version, then its will compile and the game launch fine.

So this is a simple bug.

[attachment deleted by admin]
« Last Edit: 2012-Sep-16 by spacefractal »
Greedy Mouse - Karma Miwa - Spot Race - CatchOut - Android Extras - is on a vacation trip, home before end of few days in jan.

Offline jfroco

  • Mc. Print
  • *
  • Posts: 2
    • View Profile
Re: 11.171 Not compiling for MAC
« Reply #3 on: 2012-Sep-16 »
Hi,

Thank you, I copy the libpng_uni.a file and the project compiled... unfortunately GLBasic is not copying the resources (images and music) to \distribute\MacOSX\<NAMe>.app\Contents\Resources\Media

So I had to copy manually from the build made using GLBASIC 10.

I tested in a MacBook Pro and the game freezes after a couple of seconds :( I just realized that the 10.0 version also freezes.

Before going deeper. Is there anybody having the same issue with resources\Media?

Best regards