Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

dev232

macrumors newbie
Original poster
Jun 28, 2022
2
3
Installed Mac Ports on OSX High Sierra

> sudo port install gcc11 libsdl2 openssl glfw libsdl2_gfx libsdl2_image libsdl2_mixer libsdl2_net libsdl2_ttf

and added the libs to the compile options: and that made the object code finally compile and not error out:

> CPUOPTIMIZATIONS?=-fcommon -fno-math-errno -ffinite-math-only -fno-rounding-math -fno-signaling-nans -fno-trapping-math -D_THREAD_SAFE -I/opt/local/include/SDL2 -L/opt/local/lib -lSDL2

But it won't produce a binary:

Build more but didn't link:
> "_volume", referenced from:
> _M_Draw in menu.o
> _M_Menu_Options_AdjustSliders in menu.o
> ld: symbol(s) not found for architecture x86_64
> clang: error: linker command failed with exit code 1 (use -v to see invocation)
> make[2]: *** [darkplaces-sdl] Error 1
> make[1]: *** [bin-debug] Error 2
> make: *** [sdl-debug] Error 2

Errors:
> pastebin.com/QwM2D7xh

Won't link and won't thusly create the binary.

This is the makefile.inc:

> pastebin.com/GPkifHGn

this is the makefile (no extension)

> pastebin.com/TP7rJCLP

Can someone help? (Please don't suggest upgrading the OS, nor buying a new mac)
 
Are your SDL installation installed to the paths references in the makefile?

  1. SDLCONFIG_MACOSXCFLAGS=-I/Library/Frameworks/SDL.framework/Headers -I$(HOME)/Library/Frameworks/SDL.framework/Headers
  2. SDLCONFIG_MACOSXLIBS=-F$(HOME)/Library/Frameworks/ -framework SDL -framework Cocoa $(SDLCONFIG_MACOSXCFLAGS)
  3. SDLCONFIG_MACOSXSTATICLIBS=-F$(HOME)/Library/Frameworks/ -framework SDL -framework Cocoa $(SDLCONFIG_MACOSXCFLAGS)
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.