I just tried to compile GZDoom on a Mac and ran into some problems that the .pk3 files were not built.
Looking into the dependencies tab I noticed that for all 4 of them the relationship to the 'ZDoom' project is wrong. Not ZDoom depends on the PK3s, but the PK3s depend on ZDoom.
Compile on XCode - project dependencies not correct
Moderator: GZDoom Developers
Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
Re: Compile on XCode - project dependencies not correct
Works fine for me. What's the target are you building?
Re: Compile on XCode - project dependencies not correct
I build zdoom -> My Mac. But this will not build the PK3's, only the rest. I had to manally rebuild every single one of then, and when I looked at the dependencies it listed zdoom as a dependency of each PK3, but the PK3s were not listed as a dependency of zdoom.
The project was freshly created using CMake version 3.9.6.
The project was freshly created using CMake version 3.9.6.
Re: Compile on XCode - project dependencies not correct
You need to build ALL_BUILD target, it is set by default. If you want to debug GZDoom you can select executable (application bundle to be precise) for this scheme.
Please note that CMake dependency chain is cross-platform. Despite being potentially quite simple to fix I guess nobody is interest in changing this. The reason is testing such change is pain in a butt.
Please note that CMake dependency chain is cross-platform. Despite being potentially quite simple to fix I guess nobody is interest in changing this. The reason is testing such change is pain in a butt.
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49230
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: Compile on XCode - project dependencies not correct
This had me stumped as well the first time I compiled on Mac. It's too bad that CMake's scripting language is this obtuse but I also do not want to touch it.
Re: Compile on XCode - project dependencies not correct
It looks like pk3s depend on GZDoom target because of its executable path, to place files in the same directory. Probably it's good idea to leave everything as is.