source-sdk-2013
source-sdk-2013 copied to clipboard
make: games.mak: No such file or directory
Following the directions on the wiki, I try to build:
mp/src/creategameprojects
cd mp/src
make -f games.mak
Which produces:
macbookair-e28a:src ajf$ make -f games.mak
make: games.mak: No such file or directory
make: *** No rule to make target `games.mak'. Stop.
Looks like it made me an XCode project but no games.mak
. Wonderful! How do I build the game?
The directions are outdated. Build the Xcode project, VPC no longer created Makefiles on OS X.
@yaakov-h I try that, but then get:
The run destination My Mac 64–bit is not valid for Running the scheme 'All'.
The scheme 'All' contains no buildables that can be built for the SDKs supported by the run destination My Mac 64–bit. Make sure your targets all specify SDKs that are supported by this version of Xcode.
In the sidebar on the left, it says "games: 7 targets, missing base SDK". Is there some Xcode project I need? Or is that the Source SDK Base?
It sounds like you're using a version of Xcode that isn't obsolete. :)
In base.xcconfig, change the SDKROOT
line at the bottom to read:
SDKROOT = macosx
That'll build using the 'Mac OS X (latest)' SDK, not the 10.7 "Lion" SDK specifically. Since you don't have the 10.7 SDK it will probably build against the 10.9 SDK, considering that Xcode always ships two SDK versions - latest and previous.
That seemed to work, thank you!
Unfortunately, I now have a new problem! ^^
/Users/ajf/Projects/2014/sourcetest/source-sdk-2013/mp/src/game/client/c_te_decal.cpp:142:50: error: comparison between pointer and integer ('C_BaseEntity *' and 'int')
if ( ( ent = cl_entitylist->GetEnt( entity ) ) == false )
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~
I guess I should just change that to NULL
and it'll compile fine, though.
Yeah, clang gets better and better with warnings and errors in newer versions. You should probably open a pull request with that change so that other people don't have to do the same.
Done: https://github.com/ValveSoftware/source-sdk-2013/pull/257
I'd update the instructions on the wiki, but the email confirmation thing is broken so it's impossible.
Same problem here : |
https://github.com/ValveSoftware/source-sdk-2013/issues/420 It's still a current issue, and I'm on abuntu, help needed.