source-sdk-2013 icon indicating copy to clipboard operation
source-sdk-2013 copied to clipboard

make: games.mak: No such file or directory

Open hikari-no-yume opened this issue 10 years ago • 9 comments

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?

hikari-no-yume avatar Apr 12 '14 22:04 hikari-no-yume

The directions are outdated. Build the Xcode project, VPC no longer created Makefiles on OS X.

yaakov-h avatar Apr 13 '14 03:04 yaakov-h

@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?

hikari-no-yume avatar Apr 13 '14 16:04 hikari-no-yume

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.

yaakov-h avatar Apr 14 '14 00:04 yaakov-h

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.

hikari-no-yume avatar Apr 14 '14 01:04 hikari-no-yume

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.

yaakov-h avatar Apr 14 '14 01:04 yaakov-h

Done: https://github.com/ValveSoftware/source-sdk-2013/pull/257

hikari-no-yume avatar Apr 14 '14 01:04 hikari-no-yume

I'd update the instructions on the wiki, but the email confirmation thing is broken so it's impossible.

hikari-no-yume avatar Apr 14 '14 13:04 hikari-no-yume

Same problem here : |

Hugo01 avatar Jul 08 '14 14:07 Hugo01

https://github.com/ValveSoftware/source-sdk-2013/issues/420 It's still a current issue, and I'm on abuntu, help needed.

Ethorbit avatar Apr 27 '17 07:04 Ethorbit