[Ohrrpgce] [ohrrpgce/ohrrpgce] Figure out compile requirements on MacOS Sequoia (15) (Issue #1281)
James Paige
notifications at github.com
Sat Apr 12 08:52:08 PDT 2025
bob-the-hamster left a comment (ohrrpgce/ohrrpgce#1281)
I could not find a way to fix it in that line, but this did help:
```
Index: SConscript
===================================================================
--- SConscript (revision 13880)
+++ SConscript (working copy)
@@ -1299,13 +1299,13 @@
if env.WhereIs('sdl-config'):
commonenv.ParseConfig('sdl-config --cflags')
else:
- commonenv['CFLAGS'] += ["-I", "/Library/Frameworks/SDL.framework/Headers", "-I", FRAMEWORKS_PATH + "/SDL.framework/Headers"]
+ commonenv['CFLAGS'] += ["-I/Library/Frameworks/SDL.framework/Headers", "-I" + FRAMEWORKS_PATH + "/SDL.framework/Headers"]
if 'sdl2' in gfx:
# SDL2 does not have SDLmain
if env.WhereIs('sdl2-config'):
commonenv.ParseConfig('sdl2-config --cflags')
else:
- commonenv['CFLAGS'] += ["-I", "/Library/Frameworks/SDL2.framework/Headers", "-I", FRAMEWORKS_PATH + "/SDL2.framework/Headers"]
+ commonenv['CFLAGS'] += ["-I/Library/Frameworks/SDL2.framework/Headers", "-I" + FRAMEWORKS_PATH + "/SDL2.framework/Headers"]
# if 'sdl' in music:
# # libvorbisfile is linked into SDL_mixer.framework which has been compiled to export its symbols
# commonenv['FBFLAGS'] += ['-d', 'HAVE_VORBISFILE']
```
With that fix, it gets further, to a different interesting error
```
gcc -Wall -Wno-unused-label -Wno-unused-variable -Wno-unused-function -g -m64 -fwrapv -frounding-math -fno-omit-frame-pointer --std=gnu11 -mmacosx-version-min=10.6 -Wno-deprecated-declarations -ffunction-sections -DFBCVERSION=1060 -fdata-sections -I/Users/ohrmacdev/Library/Frameworks/SDL2.framework/Headers -O3 -I/Library/Frameworks/SDL2.framework/Headers -I. -Wno-unused-but-set-variable -Wno-missing-braces -Wno-builtin-requires-header -Wno-incompatible-library-redeclaration -c build/game-allmodex.o.c -o build/game-allmodex.o
gcc -o ohrrpgce-game build/achievements_runtime.rbas.o build/bmod.rbas.o build/menustuf.rbas.o build/moresubs.rbas.o build/savegame.rbas.o build/purchase.rbas.o build/game-achievements.rbas.o build/game-animations.rbas.o build/game-common.rbas.o build/game-loading.rbas.o build/os_sockets.o build/networkutil.o build/os_unix.o build/os_unix2.o build/util.o build/base64.o build/unicode.o build/array.o build/miscc.o build/fb/error.o build/lib/sha1.o build/lib/lodepng.o build/lib/lodepng_gzip.o build/filelayer.o build/globals.o build/lumpfile.o build/vector.o build/os_unix_wm.o build/blit.o build/matrixMath.o build/rasterizer.o build/rotozoom.o build/surface.o build/lib/gif.o build/lib/jo_jpeg.o build/lib/ujpeg.o build/datafiles.o build/game.o build/bmodsubs.o build/scriptcommands.o build/yetmore2.o build/walkabouts.o build/scripting.o build/oldhsinterpreter.o build/pathfinding.o build/game-gfx_sdl2.o build/game-music_sdl2.o build/game-allmodex.o build/game-audiofile.o build/game-backends.o build/game-bam2mid.o build/game-bcommon.o build/game-browse.o build/game-common_menus.o build/game-cmdline.o build/game-menus.o build/game-reload.o build/game-reloadext.o build/game-sliceedit.o build/game-slices.o build/game-specialslices.o build/game-steam.o build/game-thingbrowser.o build/game-plankmenu.o -g -O2 -F /Users/ohrmacdev/Library/Frameworks -mmacosx-version-min=10.6 -Wl,-rpath, at executable_path/../Frameworks -Wl,-no_pie -m64 -Wl,-dead_strip -Wl,-L/Users/ohrmacdev/src/ohrmac/fbcmac/bin/../lib/freebasic/darwin-x86_64 /Users/ohrmacdev/src/ohrmac/fbcmac/bin/../lib/freebasic/darwin-x86_64/fbrt0.o -lfbmt -lstdc++ -lpthread -lncurses -framework SDL2 -framework SDL2 -framework SDL2_mixer -framework Cocoa
ld: warning: dylib (/Users/ohrmacdev/Library/Frameworks/SDL2.framework/SDL2) was built for newer macOS version (10.11) than being linked (10.6)
ld: warning: dylib (/Users/ohrmacdev/Library/Frameworks/SDL2_mixer.framework/SDL2_mixer) was built for newer macOS version (10.11) than being linked (10.6)
Undefined symbols for architecture x86_64:
"ACHIEVEMENTS::IS_PERMANENT()", referenced from:
ACHIEVEMENTS::EVALUATE_TAGS() in achievements_runtime.rbas.o
"ACHIEVEMENTS::ENABLE_DEBUG$", referenced from:
_DEBUG_MENU_FUNCTIONS in game.o
_GAME_SETOPTION in yetmore2.o
"ACHIEVEMENTS::DEFINITIONS_LOAD(FBSTRING&)", referenced from:
_main in game.o
"ACHIEVEMENTS::DEFINITIONS_COUNT()", referenced from:
ACHIEVEMENTS::RUNTIME_RESET() in achievements_runtime.rbas.o
ACHIEVEMENTS::RUNTIME_LOAD(RELOAD::NODE*) in achievements_runtime.rbas.o
"ACHIEVEMENTS::DEFINITIONS_RESET()", referenced from:
_GAME_SETOPTION in yetmore2.o
"ACHIEVEMENTS::GET_DEFINITION_BY_INDEX(int)", referenced from:
ACHIEVEMENTS::EVALUATE_TAGS() in achievements_runtime.rbas.o
ACHIEVEMENTS::RUNTIME_LOAD(RELOAD::NODE*) in achievements_runtime.rbas.o
"ACHIEVEMENTS::ACH_DEBUG(FBSTRING&)", referenced from:
ACHIEVEMENTS::EVALUATE_TAGS() in achievements_runtime.rbas.o
ACHIEVEMENTS::RUNTIME_LOAD(RELOAD::NODE*) in achievements_runtime.rbas.o
ACHIEVEMENTS::RUNTIME_SAVE(RELOAD::NODE*) in achievements_runtime.rbas.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
scons: *** [ohrrpgce-game] Error 1
scons: building terminated because of errors.
Pruned 21 file(s) (12MB) from cache
```
--
Reply to this email directly or view it on GitHub:
https://github.com/ohrrpgce/ohrrpgce/issues/1281#issuecomment-2798883540
You are receiving this because you are subscribed to this thread.
Message ID: <ohrrpgce/ohrrpgce/issues/1281/2798883540 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.motherhamster.org/pipermail/ohrrpgce-motherhamster.org/attachments/20250412/c7bddd0e/attachment.htm>
More information about the Ohrrpgce
mailing list