project-navigation
Personal tools

Author Topic: Problem with making a Mac universal binary  (Read 13212 times)

Offline Dorzak

  • Rookie
  • ***
  • Posts: 45
    • View Profile
Re: Problem with making a Mac universal binary
« Reply #15 on: September 07, 2009, 07:12:16 am »
And 10.6 can't get libSDL working yet.

Offline keybounce

  • Sergeant
  • *****
  • Posts: 330
    • View Profile
Re: Problem with making a Mac universal binary
« Reply #16 on: September 17, 2009, 05:25:31 am »
http://gtk-osx.org/ has prebuilt gtk2 / cario / glib frameworks.

They are i386 only. Gaarr.

I'm beginning to think that this won't build universal, but will have separate ppc and x86 programs.

===
So macport can't build universal. Prebuilt frameworks are not universal. http://sourceforge.net/apps/trac/gtk-osx/wiki/Build contains a port of Gtk2, but it doesn't say that it builds universal, and requires you to use a custom build harness to make programs -- for example,
Quote
And you have a reasonably complete GTK+ installation ready for you to build the application that interests you.

Code: [Select]
$ jhbuild build gimp

Let me see if I can get a ppc-only build.

(Again: Can we please get --disable-radiant back into the configure script?)

Offline geever

  • Project Coder
  • PHALANX Commander
  • ***
  • Posts: 2561
    • View Profile
Re: Problem with making a Mac universal binary
« Reply #17 on: September 17, 2009, 07:36:06 am »
(Again: Can we please get --disable-radiant back into the configure script?)

I don't think it was removed, maybe renamed to --disable-uforadiant.

-geever

Offline keybounce

  • Sergeant
  • *****
  • Posts: 330
    • View Profile
Re: Problem with making a Mac universal binary
« Reply #18 on: September 18, 2009, 05:37:25 am »
Ok, then I've got a universal. Built! No gtk mess at all. But no radiant.

Crashes on a skimish. What is the "debugging log" option again?

Offline keybounce

  • Sergeant
  • *****
  • Posts: 330
    • View Profile
Re: Problem with making a Mac universal binary
« Reply #19 on: September 18, 2009, 05:53:45 pm »
With radiant disabled, make macinstaller fails with the following at the end:

cp -v ../../../../base/0shaders.pk3 UFOAI.app/base/0shaders.pk3
../../../../base/0shaders.pk3 -> UFOAI.app/base/0shaders.pk3
cp -v ../../../../base/0videos.pk3 UFOAI.app/base/0videos.pk3
../../../../base/0videos.pk3 -> UFOAI.app/base/0videos.pk3
Installing UFOAI.app/Contents/Libraries/libjpeg.62.dylib...done
Installing UFOAI.app/Contents/Libraries/libtheora.0.dylib...done
Installing UFOAI.app/Contents/Libraries/libogg.0.dylib...done
Installing UFOAI.app/Contents/Libraries/libSDL_mixer-1.2.0.dylib...done
Installing UFOAI.app/Contents/Libraries/libSDL-1.2.0.dylib...done
Installing UFOAI.app/Contents/Libraries/libpng12.0.dylib...done
Installing UFOAI.app/Contents/Libraries/libiconv.2.dylib...done
Installing UFOAI.app/Contents/Libraries/libfreetype.6.dylib...done
Installing UFOAI.app/Contents/Libraries/libvorbis.0.dylib...done
Installing UFOAI.app/Contents/Libraries/libz.1.dylib...done
Installing UFOAI.app/Contents/Libraries/libcurl.4.dylib...done
Installing UFOAI.app/Contents/Libraries/libSDL_ttf-2.0.0.dylib...done
Installing UFOAI.app/Contents/Libraries/libintl.8.dylib...done
Finalizing ufo...Finalizing ufoded...Finalizing ufo2map...done
........................................................................
created: /Users/Michael/Documents/Development/ufoai/trunk/src/ports/macosx/installer/ufoai-2.3-dev-macosx-universal.dmg
cp: ../../../../radiant/uforadiant: No such file or directory
make[1]: *** [copybinaries-uforadiant] Error 1
make: *** [macinstaller] Error 2
stbmac:trunk Michael$

Now, even if I had radiant, it would be trying to copy it _AFTER_ building the dmg. Kinda pointless.

Revision 26252

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: Problem with making a Mac universal binary
« Reply #20 on: September 19, 2009, 12:37:34 am »
nope - as it would build another dmg for radiant

Offline keybounce

  • Sergeant
  • *****
  • Posts: 330
    • View Profile
Re: Problem with making a Mac universal binary
« Reply #21 on: September 19, 2009, 01:43:51 am »
Oh, so it's not one DMG with both programs, it's two separate DMG's.

Offline Dorzak

  • Rookie
  • ***
  • Posts: 45
    • View Profile
Re: Problem with making a Mac universal binary
« Reply #22 on: September 19, 2009, 07:29:09 am »
Got it to build as i386, but it didn't include the languages.

No language options when looking at options.

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: Problem with making a Mac universal binary
« Reply #23 on: September 19, 2009, 08:43:00 am »
the problem here is in main.cpp:443

Code: [Select]
  bindtextdomain(GETTEXT_PACKAGE, "i18n");

it's not searching the mo files at the correct location. Can you upload the dmg somewhere?

maybe one can work around it by providing a suitable PKGDATADIR (via ./configure --datadir=/path/to/dmg) - i'm just not sure which path would be the correct one. how are other packages handling this that are providing gettext support?

Offline Dorzak

  • Rookie
  • ***
  • Posts: 45
    • View Profile
Re: Problem with making a Mac universal binary
« Reply #24 on: September 22, 2009, 08:59:30 am »


maybe one can work around it by providing a suitable PKGDATADIR (via ./configure --datadir=/path/to/dmg) - i'm just not sure which path would be the correct one. how are other packages handling this that are providing gettext support?

I worked around it by
"Show Package Contents" on the UFOAI.app on the one with the broken Campaign start you uploaded with the UFO Radiant.   

Copied the language files within there into the app from the DMG I made on my wife's computer.

Couldn't do it within the DMG, had to do it after copying the app out of the DMG.

Throwing the zip file with languages up somewhere and the i386 DMG I made.  Will let you know when it is uploaded.