Technical support > Mac

Need PPC help

<< < (3/4) > >>

ripclaw:
this one is fixed:  fink does not set $PATH correctly:


--- Quote ---[glendronach:Projects/UFOAI/ufoai_2.2] % make lang && make maps
Making lang
cs.po
/bin/sh: line 1: msgfmt: command not found
da.po
/bin/sh: line 1: msgfmt: command not found
de.po
/bin/sh: line 1: msgfmt: command not found
el.po
/bin/sh: line 1: msgfmt: command not found
en.po
/bin/sh: line 1: msgfmt: command not found
es.po
/bin/sh: line 1: msgfmt: command not found
es_ES.po
/bin/sh: line 1: msgfmt: command not found
est.po
/bin/sh: line 1: msgfmt: command not found
fi.po
/bin/sh: line 1: msgfmt: command not found
fr.po
/bin/sh: line 1: msgfmt: command not found
it.po
/bin/sh: line 1: msgfmt: command not found
ja.po
/bin/sh: line 1: msgfmt: command not found
pl.po
/bin/sh: line 1: msgfmt: command not found
pt_BR.po
/bin/sh: line 1: msgfmt: command not found
ru.po
/bin/sh: line 1: msgfmt: command not found
slo.po
/bin/sh: line 1: msgfmt: command not found
sv.po
/bin/sh: line 1: msgfmt: command not found
th.po
/bin/sh: line 1: msgfmt: command not found
../../ufo2map -nice 19 -extra africa04d.map
---- ufo2map 1.1 ----
...
--- End quote ---

- appearantly msgfmt is not around, but fink with full set of recommendations according to faq is installed.
this looks like something went wrong obviously. compile went through with several warnings, but no bad stuff.

pls help with info on this msgfmt thing.

ripclaw:
next thing:  make only seems to use one cpu during make maps.  :(
additional bug: make macinstaller does not check for existing 0*.pk3 files, it just overwrites with new download.

last part fails - why isnt yet obvious to me:

[glendronach:Projects/UFOAI/ufoai_2.2] % make macinstaller
make lang
Making lang
cs.po
1997 translated messages, 9 fuzzy translations, 3 untranslated messages.
da.po
1988 translated messages, 17 fuzzy translations, 4 untranslated messages.
de.po
1956 translated messages, 30 fuzzy translations, 23 untranslated messages.
el.po
1988 translated messages, 17 fuzzy translations, 4 untranslated messages.
en.po
2009 translated messages.
es.po
772 translated messages, 657 fuzzy translations, 580 untranslated messages.
es_ES.po
925 translated messages, 601 fuzzy translations, 483 untranslated messages.
est.po
836 translated messages, 616 fuzzy translations, 557 untranslated messages.
fi.po
428 translated messages, 236 fuzzy translations, 1345 untranslated messages.
fr.po
2008 translated messages.
it.po
1276 translated messages, 411 fuzzy translations, 322 untranslated messages.
ja.po
960 translated messages, 31 fuzzy translations, 1018 untranslated messages.
pl.po
1620 translated messages, 130 fuzzy translations, 259 untranslated messages.
pt_BR.po
1776 translated messages, 259 untranslated messages.
ru.po
1278 translated messages, 416 fuzzy translations, 315 untranslated messages.
slo.po
497 translated messages, 719 fuzzy translations, 793 untranslated messages.
sv.po
1735 translated messages, 81 fuzzy translations, 193 untranslated messages.
th.po
1349 translated messages, 371 fuzzy translations, 289 untranslated messages.
# delete all the maps first - we have to get them precompiled, otherwise multiplayer
# won't work due to mismatching checksums
cd base; ./archives.sh
generating archives

pics and textures...
models...
sound...
music...
maps...
videos...
media...
i18n...
don't include this in the zipfiles - gettext doesn't have support for it
ufos...
base...
...finished
cd base; wget http://mattn.ninex.info/download/0maps.pk3
--19:18:54--  http://mattn.ninex.info/download/0maps.pk3
           => `0maps.pk3.1'
Resolving mattn.ninex.info... done.
Connecting to mattn.ninex.info[62.89.119.2]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 73,888,236 [application/octet-stream]

100%[==================================================================>] 73,888,236   166.53K/s    ETA 00:00

19:26:07 (166.53 KB/s) - `0maps.pk3.1' saved [73888236/73888236]

cd src/ports/macosx/installer; make TARGET_CPU=powerpc
../../../../base/0base.pk3 -> UFOAI.app/base/0base.pk3
../../../../base/0snd.pk3 -> UFOAI.app/base/0snd.pk3
../../../../base/0pics.pk3 -> UFOAI.app/base/0pics.pk3
../../../../base/0music.pk3 -> UFOAI.app/base/0music.pk3
../../../../base/0models.pk3 -> UFOAI.app/base/0models.pk3
../../../../base/0media.pk3 -> UFOAI.app/base/0media.pk3
../../../../base/0maps.pk3 -> UFOAI.app/base/0maps.pk3
../../../../base/0ufos.pk3 -> UFOAI.app/base/0ufos.pk3
Installing /sw/lib/libpng.3.dylib...done
Installing @executable_path/../Frameworks/SDL_ttf.framework/Versions/A/SDL_ttf...done
Installing /sw/lib/libjpeg.62.dylib...done
Installing /sw/lib/libintl.1.dylib...done
Installing /usr/lib/libcurl.4.dylib...done
Installing /sw/lib/libiconv.2.dylib...done
Installing @executable_path/../Frameworks/SDL_mixer.framework/Versions/A/SDL_mixer...done
Installing @executable_path/../Frameworks/SDL.framework/Versions/A/SDL...done
Finalizing ufo...done
Finalizing ufoded...done
Finalizing ufo2map...done
rm: ufoai-2.2.1-macosx-powerpc.dmg: No such file or directory
make[1]: *** [create-dmg] Error 1
make: *** [macinstaller] Error 2
[glendronach:Projects/UFOAI/ufoai_2.2] %

ripclaw:
ok, here`s from build/installer.mk:

macinstaller:
        $(MAKE) lang
        # delete all the maps first - we have to get them precompiled, otherwise
 multiplayer
        # won't work due to mismatching checksums
        cd base; ./archives.sh
        cd base; wget http://mattn.ninex.info/download/0maps.pk3
        cd src/ports/macosx/installer; $(MAKE) TARGET_CPU=$(TARGET_CPU)
        scp src/ports/macosx/installer/ufoai-$(VERSION)-macosx-$(TARGET_CPU).dmg
 ufo:~/public_html/download
        scp src/ports/macosx/installer/ufoai-$(VERSION)-macosx-$(TARGET_CPU).dmg
 mirror:~/public_html

thou shallt not hardcode network transfers in thy make-scripts without proper labeling the stuff.

suggested fix in installer.mk:


macinstaller:
        ## set download variable, curl would overwrite wget.
        URL_MAPPK3=http://mattn.ninex.info/download/0maps.pk3
        DOWNLOADER=`which wget` ; which curl ; if [ $?] ; then DOWNLOADER=`which curl` ; fi
        if [ $"X$(DOWNLOADER)" -eq $"X" ] ; then echo "no download tool installed, install curl or wget" ; exit ; fi
        $(MAKE) lang
        # delete all the maps first - we have to get them precompiled, otherwise multiplayer
        # won't work due to mismatching checksums
        cd base ; ./archives.sh
        cd base ; if [ ! -x 0maps.pk3 ] ; then $(DOWNLOADER) $(URL_MAPPK3)
        cd src/ports/macosx/installer; $(MAKE) TARGET_CPU=$(TARGET_CPU)

copymacinstaller:
        cp src/ports/macosx/installer/ufoai-$(VERSION)-macosx-$(TARGET_CPU).dmg .

uploadmacinstaller:
        scp src/ports/macosx/installer/ufoai-$(VERSION)-macosx-$(TARGET_CPU).dmg
 ufo:~/public_html/download
        scp src/ports/macosx/installer/ufoai-$(VERSION)-macosx-$(TARGET_CPU).dmg
 mirror:~/public_html



last but not least:
[glendronach:Projects/UFOAI/ufoai_2.2] stefan% file src/ports/macosx/installer/*
src/ports/macosx/installer/Makefile:                   ASCII make commands text
src/ports/macosx/installer/UFOAI.app:                  directory
src/ports/macosx/installer/macfixlibs.pl:              perl script text executable
src/ports/macosx/installer/macinstall.sh:              Bourne shell script text executable
src/ports/macosx/installer/ufoai-2.2.1-macosx-:        directory
src/ports/macosx/installer/ufoai-2.2.1-macosx-powerpc: directory

file naming seems F**d up. no wonder it breaks.

ripclaw:
compiled a working binary. where and how to upload ?

Mattn:
we have a universal binary already - doesn't it work (sorry, i haven't followed the whole discussion here)

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version