Compile on XCode - project dependencies not correct

Bugs that have been investigated and resolved somehow.

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.
Post Reply
Kotti
Posts: 86
Joined: Tue Dec 27, 2016 4:08 am

Compile on XCode - project dependencies not correct

Post by Kotti »

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.
_mental_
 
 
Posts: 3820
Joined: Sun Aug 07, 2011 4:32 am

Re: Compile on XCode - project dependencies not correct

Post by _mental_ »

Works fine for me. What's the target are you building?
Kotti
Posts: 86
Joined: Tue Dec 27, 2016 4:08 am

Re: Compile on XCode - project dependencies not correct

Post by Kotti »

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.
_mental_
 
 
Posts: 3820
Joined: Sun Aug 07, 2011 4:32 am

Re: Compile on XCode - project dependencies not correct

Post by _mental_ »

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.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49230
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Compile on XCode - project dependencies not correct

Post by Graf Zahl »

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.
_mental_
 
 
Posts: 3820
Joined: Sun Aug 07, 2011 4:32 am

Re: Compile on XCode - project dependencies not correct

Post by _mental_ »

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.
Post Reply

Return to “Closed Bugs [GZDoom]”