View unanswered posts | View active topics It is currently Sun May 31, 2020 4:55 pm

Reply to topic  [ 2 posts ] 
Troubleshooting: Building ZSNES 
Author Message
New Member

Joined: Fri Mar 04, 2016 3:42 pm
Posts: 1
Reply with quote
Post Troubleshooting: Building ZSNES
Hello and good morning,


This is a request for assistance regarding an error I receive when attempting to build ZSNES 1.51 from its source code.

Platform: Mac OSX El Capitan version 10.11.03
Dependency Report:
ZSNES v1.51

SDL support                   Version 1.2.15
NASM support                  NASM version 2.11.08 compiled on Nov 26 2015
zlib support                  Version 1.2.5
PNG support                   Disabled, library not found
OpenGL support                Yes
JMA support                   Yes
ZSNES debugger                Enabled

What I have tried

First attempt

clang: warning: the clang compiler does not support '-fno-unit-at-a-time'
tools/depbuild.cpp:186:5: error: first parameter of 'main' (argument count) must be of type 'int'
int main(size_t argc, const char *const *const argv)
1 error generated.
make: *** [tools/depbuild] Error 1

Your assistance is greatly appreciated.

Fri Mar 04, 2016 4:04 pm
Official tech support dood

Joined: Wed Jan 25, 2006 7:57 am
Posts: 2102
Reply with quote
Post Re: Troubleshooting: Building ZSNES
this is not the first error you're going to run into, and not recognizing the solution indicates that you do not have the experience to work your way through the process. zsnes is a complicated beast; i do not suggest trying to build it yourself.

that being said, to resolve that specific error, you'd have to change the declaration of main on that line in that file to use a type of int for argc, as such:
int main(int argc, const char *const *const argv)

Why yes, my shift key *IS* broken.

Sat Mar 05, 2016 4:32 pm
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 0 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software.