I tried just installing SDL_mixer on homebrew to see if it was just a
dependency missing on my machine but no joy.
I then tried getting around it by downloading SDL_mixer ( https://github.com/libsdl-org/SDL_mixer) manually and placing
'include/SDL_mixer.h' in the 'include' folder of the repo but that just
throws a load of dependency errors (slight progress I guess)
If you're using xcode, I haven't managed to get things working with homebrew, but if you instead download each as a dmg framework, you can get it to build. see attached screenshots - download to your framework dir then link the framework dirs in linked frameworks. in saying that I've still got some issue when i get past the menu screen after build and I think it is SDL related (game terminates). I think this might be library versions - I have a m1 chip and I wonder if the libraries are built only for intel chipset... not sure at this stage.
Attached are screenshots of all i needed to do to get it to build
Hi Stefan. After downloading the frameworks and setting them up in the dirs, I overcame some of the errors, but still the build fails on some unfound symbols...
Not sure about ttf ones but make sure you have sdl_ttf
other errors are likely due to xcode not being up to date and not having all the files, you need to add them to the project like the campaign ai. ill push my xcode project back so you can see otherwise
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
i'd say its all just about adding missing files to the xcode project - the file would have been pulled off git but isn't referenced in the project so you need to manually add the missing ones. I remember i had to do that as well
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I managed to fix the first 3 when I realised that although I'd added the frameworks to the search paths, they also needed to be added to Build Phases (in the Link Binary With Libraries section). The other 4 still remain though:
I managed to fix the first 3 when I realised that although I'd added the
frameworks to the search paths, they also needed to be added to Build
Phases (in the Link Binary With Libraries section). The other 4 still
remain though
Update: my bad, I was confusing TTFFont with the SDL2_TTF framework. I just needed to include the FileClasses/TTFFont.cpp in the compile sources and it worked. Build succeeded!
Ok, fixed CampaignAIPlayer and Random errors by adding the corresponding .cpp files to Compile Sources. Still getting the TTFFont error. Have added the SDL2_TTF framework to "Compile Sources", "Link Binary With Libraries", and "Copy Frameworks into .app bundle" but still no joy.
Last edit: Chris Astles 2023-01-12
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've still got some issue when i get past the menu screen after build and I think it is SDL related (game terminates). I think this might be library versions - I have a m1 chip and I wonder if the libraries are built only for intel chipset... not sure at this stage.
Are you referring to the game starting ok but crashing whenever you start an actual mission? That is the behaviour I'm getting. I have an Intel chip so this rules out it being an M1 problem...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I tried just installing SDL_mixer on homebrew to see if it was just a
dependency missing on my machine but no joy.
I then tried getting around it by downloading SDL_mixer (
https://github.com/libsdl-org/SDL_mixer) manually and placing
'include/SDL_mixer.h' in the 'include' folder of the repo but that just
throws a load of dependency errors (slight progress I guess)
If you're using xcode, I haven't managed to get things working with homebrew, but if you instead download each as a dmg framework, you can get it to build. see attached screenshots - download to your framework dir then link the framework dirs in linked frameworks. in saying that I've still got some issue when i get past the menu screen after build and I think it is SDL related (game terminates). I think this might be library versions - I have a m1 chip and I wonder if the libraries are built only for intel chipset... not sure at this stage.
Attached are screenshots of all i needed to do to get it to build
UPDATE - sorry on opening the dmg I see the frameworks inside, please ignore the below
Thanks for your reply, Stefan. Could you please advise where to find it as a dmg framework? I can see as dmg but not framework.
https://www.libsdl.org/projects/SDL_mixer/release/?C=M;O=D
Last edit: Chris Astles 2023-01-04
Hi Stefan. After downloading the frameworks and setting them up in the dirs, I overcame some of the errors, but still the build fails on some unfound symbols...
Not sure about ttf ones but make sure you have sdl_ttf
other errors are likely due to xcode not being up to date and not having all the files, you need to add them to the project like the campaign ai. ill push my xcode project back so you can see otherwise
i'd say its all just about adding missing files to the xcode project - the file would have been pulled off git but isn't referenced in the project so you need to manually add the missing ones. I remember i had to do that as well
I managed to fix the first 3 when I realised that although I'd added the frameworks to the search paths, they also needed to be added to Build Phases (in the Link Binary With Libraries section). The other 4 still remain though:
seems weird because I can't see any line in PlayerFactory which uses this constructor
equally weird because a constructor with that signature is present in CampaignAIPlayer.h
I tried adding
#include <misc/Random.h>
to Game.cpp but still no joy.I have no idea...
Last edit: Chris Astles 2023-01-10
add the cpp campaign AI file to the xcode project
On Wed, 11 Jan 2023 at 04:28, Chris Astles chrissya@users.sourceforge.net
wrote:
Update: my bad, I was confusing TTFFont with the SDL2_TTF framework. I just needed to include the FileClasses/TTFFont.cpp in the compile sources and it worked. Build succeeded!
Ok, fixed
CampaignAIPlayer
andRandom
errors by adding the corresponding .cpp files to Compile Sources. Still getting theTTFFont
error. Have added the SDL2_TTF framework to "Compile Sources", "Link Binary With Libraries", and "Copy Frameworks into .app bundle" but still no joy.Last edit: Chris Astles 2023-01-12
Are you referring to the game starting ok but crashing whenever you start an actual mission? That is the behaviour I'm getting. I have an Intel chip so this rules out it being an M1 problem...
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x7ff802b3800e __pthread_kill + 10
1 libsystem_pthread.dylib 0x7ff802b6e1ff pthread_kill + 263
2 libsystem_c.dylib 0x7ff802ab9d24 abort + 123
3 libsystem_c.dylib 0x7ff802ab90cb __assert_rtn + 314
4 Metal 0x7ff80b5ec244 MTLReportFailure.cold.1 + 43
5 Metal 0x7ff80b5d6705 MTLReportFailure + 529
6 Metal 0x7ff80b5e5a55 -[_MTLCommandBuffer presentDrawable:] + 228
7 AppleIntelKBLGraphicsMTLDriver 0x7ffa0ebff5f3 -[MTLIGAccelCommandBuffer presentDrawable:] + 105
8 SDL2 0x10c865419 0x10c84e000 + 95257
9 SDL2 0x10c90c6f6 0x10c84e000 + 780022
10 Dune Legacy 0x10c33bc50 0x10c285000 + 748624
11 Dune Legacy 0x10c47ef24 0x10c285000 + 2072356
12 Dune Legacy 0x10c43bc33 0x10c285000 + 1797171
13 Dune Legacy 0x10c358ef7 0x10c285000 + 868087
14 Dune Legacy 0x10c35391e 0x10c285000 + 846110
15 Dune Legacy 0x10c34769e 0x10c285000 + 796318
16 Dune Legacy 0x10c3913fe 0x10c285000 + 1098750
17 Dune Legacy 0x10c420872 0x10c285000 + 1685618
18 Dune Legacy 0x10c42069b 0x10c285000 + 1685147
19 Dune Legacy 0x10c405cf1 0x10c285000 + 1576177
20 Dune Legacy 0x10c358ef7 0x10c285000 + 868087
21 Dune Legacy 0x10c35391e 0x10c285000 + 846110
22 Dune Legacy 0x10c34769e 0x10c285000 + 796318
23 Dune Legacy 0x10c3913fe 0x10c285000 + 1098750
24 Dune Legacy 0x10c420872 0x10c285000 + 1685618
25 Dune Legacy 0x10c42069b 0x10c285000 + 1685147
26 Dune Legacy 0x10c3a9c51 0x10c285000 + 1199185
27 dyld 0x11672d51e start + 462
Got the same issue and it also create many problems with browser too. Some of my files from browsers are corrupt and because of this other language websites like λ©μ΄μ μΉ΄μ§λ Έ are not opening in browser.
Last edit: Charles Husman 2023-02-21