Page 1 of 1

Compiling for OS X

PostPosted: Mon Apr 07, 2014 4:00 pm
by Skylab
Hey. I'm having issues compiling for OS X and hope that you can help me with the process. I'm getting errors typing in automake. Here are the errors http://pastebin.com/4JzSudpH . Not sure what I need to do now. It's not creating the Make file at all thus Make doesn't work.

Re: Compiling for OS X

PostPosted: Mon Apr 07, 2014 4:28 pm
by Skylab
The solution to this was to add
Code: Select all
AUTOMAKE_OPTIONS = subdir-objects

to the top of Makefile.am.

Which seems to resolve using Make in command line although it ends with other errors. Building on xcode gets these errors
Code: Select all
make: *** No targets specified and no makefile found.  Stop.
Command /usr/bin/make failed with exit code 2

Re: Compiling for OS X

PostPosted: Mon Apr 07, 2014 6:20 pm
by admin
OK the github was just updated with xcodeproj file, so you can open that up in xcode and it will work easily. You also need to get the SDL frameworks.

Re: Compiling for OS X

PostPosted: Mon Apr 07, 2014 7:32 pm
by Skylab
Whoa, you rule! Thank you for that.
The project seems to be missing a file called zSILENCER-Info.plist. Any ideas?

Re: Compiling for OS X

PostPosted: Mon Apr 07, 2014 11:23 pm
by admin
Forgot about that one, oops. I added it all to the git should be good to go.

Re: Compiling for OS X

PostPosted: Tue Apr 08, 2014 12:12 am
by Skylab
Got another LLVM error it seems

Code: Select all
clang: error: no such file or directory: '/Users/vskylabv/Desktop/silencer/cocoawrapper.mm'
clang: error: no input files
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1

Re: Compiling for OS X

PostPosted: Tue Apr 08, 2014 3:54 am
by admin
OK cocoawrapper.mm added, thanks for letting me know about all these missing files from the git.

Re: Compiling for OS X

PostPosted: Tue Apr 08, 2014 1:22 pm
by Skylab
We're super close!

Code: Select all
error: /Users/vskylabv/Desktop/silencer/zSILENCER/icon.icns: No such file or directory

Re: Compiling for OS X

PostPosted: Tue Apr 08, 2014 3:58 pm
by admin
OK, now this one doesn't make sense because icon.icns IS in the github, maybe you can trying to download it from github.com manually and just copy it to there.

Re: Compiling for OS X

PostPosted: Tue Apr 08, 2014 10:16 pm
by Skylab
Build successful! Sweet. As for the icon.icns file, it was trying to find it inside zSILENCER/icon.icns when it was in the root directory. By placing icon.icns inside a new folder called zSILENCER/icon.icns it worked.