Troubleshooting: Building ZSNES

General area for talk about ZSNES. The best place to ask for related questions as well as troubleshooting.

Moderator: ZSNES Mods

Post Reply
userD7
New Member
Posts: 1
Joined: Fri Mar 04, 2016 3:42 pm

Troubleshooting: Building ZSNES

Post by userD7 »

Hello and good morning,

Hello,

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:

Code: Select all

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

Code: Select all

$./configure
$make
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.
odditude
Official tech support dood
Posts: 2118
Joined: Wed Jan 25, 2006 7:57 am

Re: Troubleshooting: Building ZSNES

Post by odditude »

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:

Code: Select all

int main(int argc, const char *const *const argv)
Why yes, my shift key *IS* broken.
Post Reply