[Ohrrpgce] FreeBASIC Mac OS X build

James Paige Bob at HamsterRepublic.com
Fri Oct 8 10:31:43 PDT 2010


> > ...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.

After make clean and manually deleting mac/SDLMain.o
that got rid of those errors, 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/
Undefined symbols:
  "___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)
ld: symbol(s) not found for inferred architecture i386
make[1]: *** [ohrrpgce-game] Error 1

---
James



More information about the Ohrrpgce mailing list