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

steelx
Hi, I’m looking suggestions for learning Game development with C++ preferably, SDL2. All suggestions are welcomed :slight_smile:
New
ksspeedstar
For about two weeks we have had the problem that Google / Android are rejecting apps for updates with the following statement: We found...
New
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
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
Hipnot
How do I cancel my Fortnite Crew subscription and what happens to my account and previous rewards after I cancel my subscription?
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
sir.laksmana_wenk
Where the protagonist hovers their head towards an item nearby, and the headturn has a movement limit, so it’s not like 360 degree head ...
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
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
Cheeren
Hello. I am developing a game with Unity. I have a problem that I can’t solve. It doesn’t matter if it is 3D or 2D, the edges of the obje...
New

Other popular topics Top

Devtalk
Reading something? Working on something? Planning something? Changing jobs even!? If you’re up for sharing, please let us know what you’...
1033 17470 383
New
malloryerik
Any thoughts on Svelte? Svelte is a radical new approach to building user interfaces. Whereas traditional frameworks like React and Vue...
New
DevotionGeo
I know that these benchmarks might not be the exact picture of real-world scenario, but still I expect a Rust web framework performing a ...
New
axelson
I’ve been really enjoying obsidian.md: It is very snappy (even though it is based on Electron). I love that it is all local by defaul...
New
brentjanderson
Bought the Moonlander mechanical keyboard. Cherry Brown MX switches. Arms and wrists have been hurting enough that it’s time I did someth...
New
New
AstonJ
You might be thinking we should just ask who’s not using VSCode :joy: however there are some new additions in the space that might give V...
New
AstonJ
Continuing the discussion from Thinking about learning Crystal, let’s discuss - I was wondering which languages don’t GC - maybe we can c...
New
mafinar
This is going to be a long an frequently posted thread. While talking to a friend of mine who has taken data structure and algorithm cou...
New
PragmaticBookshelf
Build efficient applications that exploit the unique benefits of a pure functional language, learning from an engineer who uses Haskell t...
New