dev232

dev232

I can't compile on OSX (i installed macports, brew, the libs and compilers etc, the object code compiles, won't link)

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:

apples-Mac-mini:buildforapple r00t$ ./all compileengineonly sdlCompiling - Pastebin.com

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

This is the makefile.inc:

apples-Mac-mini:buildforapple r00t$ apples-Mac-mini:buildforapple r00t$ appl - Pastebin.com

this is the makefile (no extension)

apples-Mac-mini:buildforapple r00t$ apples-Mac-mini:buildforapple r00t$ appl - Pastebin.com

Can someone help? (Please don’t suggest upgrading the OS, nor buying a new mac)

Where Next?

Popular Game Dev topics Top

deadlyzayan
hey there everyone , hope you are all great . i have been a world of warcraft player as long as i can remember and i got this idea of sta...
New
mollyerin
Which operating system should I choose for gaming? I’ve been using Windows since I started, but now I’m wondering about switching to Luni...
New
Intelligent_Chip_641
I published a game with AdMob monetization back in November, and I was making $35 per day. However, two days ago, I received a notificati...
New
gulshan212
Hello this is Gulshan Negi Well, I have developed a program in C++ to print a man (reference taken from here). On the attached site, I a...
New
HuntzUdwn
Hello everyone, I am a Student at CSUDH and was wondering about how to become a game developer. I would like to contact a developer and a...
New
Dhanen
Hi all. New here. I tried do it by myself and searching help in forums but no luck… Hope I can found it here in a specialized forum. My...
New
sir.laksmana_wenk
I’m able to do the “artistic” part of game-development; character designing/modeling, music, environment modeling, etc. However, I don’t...
New
SuperGibaLogan
im working on a game on godot and im using a tutorial to code it however, one of the code in the tutorial im using only works in godot 4...
New
lingo1357
I have developed an initial plan for a simple and addictive physics game using a new engine I’ve learned. While I can envision various ph...
New
lucianoghetti
Hello, I’m a Bachelor Student in Informatics at Ecole Schulz in Geneva. I’m conducting a project on Artificial Intelligence in the Videog...
New

Other popular topics Top

Devtalk
Hello Devtalk World! Please let us know a little about who you are and where you’re from :nerd_face:
New
AstonJ
Or looking forward to? :nerd_face:
New
AstonJ
This looks like a stunning keycap set :orange_heart: A LEGENDARY KEYBOARD LIVES ON When you bought an Apple Macintosh computer in the e...
New
AstonJ
In case anyone else is wondering why Ruby 3 doesn’t show when you do asdf list-all ruby :man_facepalming: do this first: asdf plugin-upd...
New
PragmaticBookshelf
Build highly interactive applications without ever leaving Elixir, the way the experts do. Let LiveView take care of performance, scalabi...
New
Maartz
Hi folks, I don’t know if I saw this here but, here’s a new programming language, called Roc Reminds me a bit of Elm and thus Haskell. ...
New
AstonJ
If you get Can't find emacs in your PATH when trying to install Doom Emacs on your Mac you… just… need to install Emacs first! :lol: bre...
New
New
New
DevotionGeo
I have always used antique keyboards like Cherry MX 1800 or Cherry MX 8100 and almost always have modified the switches in some way, like...
New