[Ohrrpgce] FreeBASIC Mac OS X build

Ralph Versteegen teeemcee at gmail.com
Fri Oct 8 10:13:26 PDT 2010


On 9 October 2010 06:05, James Paige <Bob at hamsterrepublic.com> wrote:
> On Sat, Oct 09, 2010 at 05:58:58AM +1300, Ralph Versteegen wrote:
>> On 9 October 2010 05:57, James Paige <Bob at hamsterrepublic.com> wrote:
>> > On Sat, Oct 09, 2010 at 05:49:53AM +1300, Ralph Versteegen wrote:
>> >> On 9 October 2010 05:46, James Paige <Bob at hamsterrepublic.com> wrote:
>> >> > On Fri, Oct 08, 2010 at 08:34:28AM -0700, James Paige wrote:
>> >> >>
>> >> >> Oh! I had not realized that you had uploaded that file! *testing now*
>> >> >> Woo! Works perfectly!
>> >> >
>> >> > fbc works fine now, but the Makefile is still not completing.
>> >> >
>> >> > make[1]: *** No rule to make target `mac/SDLMain.o', needed by
>> >> > `ohrrpgce-game'.  Stop.
>> >> >
>> >> > ---
>> >> > James Paige
>> >>
>> >> I edited the rule for that after last testing it on a Mac. Try changing
>> >>
>> >> %.o: mac/%.m
>> >>       $(CC) -c $< -o $@ $(CFLAGS)
>> >>
>> >> back to
>> >>
>> >> %.o: %.m
>> >>       $(CC) -c $< -o $@ $(CFLAGS)
>> >
>> > Cool, that fixed that. Now it gets as far as the linking phase, where it
>> > says:
>> >
>> >
>> > Linking Game...
>> > fbc -lang deprecated -x ohrrpgce-game -m game -mt -g -exx -entry
>> > SDL_main -Wl -macosx_version_min,10.4 -d IS_GAME  game.o bmod.o
>> > bmodsubs.o menustuf.o moresubs.o yetmore.o yetmore2.o savegame.o
>> > hsinterpreter.o   blit.o base64.o gfx_fb.o gfx_sdl.o music_sdl.o
>> > sdl_lumprwops.o allmodex.o backends.o lumpfile.o compat.o bam2mid.o
>> > common.o browse.o util.o loading.o reload.o reloadext.o slices.o
>> > mac/SDLMain.o -p /usr/lib/ -l fbgfx -Wl -framework,SDL_mixer -Wl
>> > -framework,SDL -Wl -framework,Cocoa -Wl
>> > -F/Users/james/Library/Frameworks/
>> > ld: library not found for -lfbgfx
>> > make[1]: *** [ohrrpgce-game] Error 1
>> >
>> > ---
>> > James
>>
>> Oh, gfx_fb is one of the backends in config.mak by default. Change
>> that to just sdl.
>
> Of course! Silly me.
>
> ...but now
>
> Linking Game...
> fbc -lang deprecated -x ohrrpgce-game -m game -mt -g -exx -entry
> SDL_main -Wl -macosx_version_min,10.4 -d IS_GAME  game.o bmod.o
> bmodsubs.o menustuf.o moresubs.o yetmore.o yetmore2.o savegame.o
> hsinterpreter.o   blit.o base64.o gfx_sdl.o music_sdl.o sdl_lumprwops.o
> allmodex.o backends.o lumpfile.o compat.o bam2mid.o common.o browse.o
> util.o loading.o reload.o reloadext.o slices.o mac/SDLMain.o -p
> /usr/lib/  -Wl -framework,SDL_mixer -Wl -framework,SDL -Wl
> -framework,Cocoa -Wl -F/Users/james/Library/Frameworks/
> ld: warning: in blit.o, file was built for unsupported file format which
> is not the architecture being linked (i386)
> ld: warning: in base64.o, file was built for unsupported file format
> which is not the architecture being linked (i386)
> ld: warning: in mac/SDLMain.o, file was built for unsupported file
> format which is not the architecture being linked (i386)
> Undefined symbols:
>  "_get_sys_err_string", referenced from:
>      _UPDATERECORDLENGTH in common.o
>  "_smoothzoomblit_8_to_8bit", referenced from:
>      _gfx_sdl_showpage in gfx_sdl.o
>  "_blitohrscaled", referenced from:
>      __Z10FRAME_DRAWP5FRAMEP9PALETTE16iiiiS0_ in allmodex.o
>  "_blitohr", referenced from:
>      _DRAWOHR in allmodex.o
>  "___divdi3", referenced from:
>      _LOADSCRIPT in moresubs.o
>      _UPDATERECORDLENGTH in common.o
>      _UPGRADE in common.o
>      _LOADTILEMAPS in loading.o
>      _LOAD_MAP_POS_SAVE_OFFSET in loading.o
>      _fb_FileTellEx in libfbmt.a(libfb_file_tell.o)
>  "_main", referenced from:
>      __start in crt1.o
>     (maybe you meant: _SDL_main)
>  "_base64_encode_alloc", referenced from:
>      __ZN6RELOAD11MEMORYUSAGEEPNS_3DOCE in reload.o
> ld: symbol(s) not found for inferred architecture i386
> make[1]: *** [ohrrpgce-game] Error 1

Simply change
CC=gcc
to
CC=gcc -m32
and run make clean before attempted to rebuild.



More information about the Ohrrpgce mailing list