[LINUX] 'make' Issue

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

Moderator: ZSNES Mods

Post Reply
thePeterTowers
New Member
Posts: 2
Joined: Fri May 22, 2015 2:48 pm

[LINUX] 'make' Issue

Post by thePeterTowers »

After installing a hell lot of crap, when it's ready to 'make' (and I command my computer to do so), I get the following message:
g++ -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__ -I/usr/local/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -march=native -O3 -fomit-frame-pointer -s -fno-rtti -o tools/fileutil.o -c tools/fileutil.cpp
g++ -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__ -I/usr/local/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -march=native -O3 -fomit-frame-pointer -s -fno-rtti -o tools/strutil.o -c tools/strutil.cpp
In file included from tools/strutil.cpp:22:0:
tools/strutil.h: In static member function ‘static int ci_char_traits::compare(const char*, const char*, size_t)’:
tools/strutil.h:34:96: error: ‘strncasecmp’ was not declared in this scope
static int compare(const char* s1, const char* s2, size_t n) { return strncasecmp( s1, s2, n ); }
^
make: *** [tools/strutil.o] Error 1
pedro@PTorres-VAiO-L:~/Downloads/zsnes_1_51/src$ make
g++ -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__ -I/usr/local/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -march=native -O3 -fomit-frame-pointer -s -fno-rtti -o tools/strutil.o -c tools/strutil.cpp
In file included from tools/strutil.cpp:22:0:
tools/strutil.h: In static member function ‘static int ci_char_traits::compare(const char*, const char*, size_t)’:
tools/strutil.h:34:96: error: ‘strncasecmp’ was not declared in this scope
static int compare(const char* s1, const char* s2, size_t n) { return strncasecmp( s1, s2, n ); }
^
make: *** [tools/strutil.o] Error 1
I do have g++, I'm using Ubuntu 14.04 LTS, trying to install zsnes 1.51. I'm fairly newb to Linux so, please, be kind with me ;)
grinvader
ZSNES Shake Shake Prinny
Posts: 5632
Joined: Wed Jul 28, 2004 4:15 pm
Location: PAL50, dood !

Re: [LINUX] 'make' Issue

Post by grinvader »

Grab a precompiled package, old source has too many issues for a clean compile on modern machines.
皆黙って俺について来い!!

Code: Select all

<jmr> bsnes has the most accurate wiki page but it takes forever to load (or something)
Pantheon: Gideon Zhi | CaitSith2 | Nach | kode54
thePeterTowers
New Member
Posts: 2
Joined: Fri May 22, 2015 2:48 pm

Re: [LINUX] 'make' Issue

Post by thePeterTowers »

Right, thanks, but where can I get one of these? I tried searching for it both here and on Google, but found nothing in here, and no trustable source on Google.
Post Reply