LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-24-2012, 06:02 AM   #1
B-Dog1996
LQ Newbie
 
Registered: Jul 2012
Location: Wiltshire
Distribution: Linux Mint 12 LXDE
Posts: 3

Rep: Reputation: Disabled
Can't compile VBA-Link properly?


First of all, I'm a complete Linux newbie, so I'm not even sure what forum to place this in. If it could go in a better forum, could a mod please move it?

Anyway, I'm experiencing some problems when trying to install VBA Link. I've downloaded the source code from the site and untar-ed it. Then after downloading some other software, I think that I've successfully done the "./configure" bit.

However when I get to the "make" stage, it comes up with a few errors. As I'm not sure what the problem exactly is, I'll just post the whole lot:
Code:
bhavin@Bhavin-PC ~/Emulators/VisualBoyAdvance-1.7.2 $ make
Making all in m4
make[1]: Entering directory `/home/bhavin/Emulators/VisualBoyAdvance-1.7.2/m4'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/bhavin/Emulators/VisualBoyAdvance-1.7.2/m4'
Making all in src
make[1]: Entering directory `/home/bhavin/Emulators/VisualBoyAdvance-1.7.2/src'
Making all in gb
make[2]: Entering directory `/home/bhavin/Emulators/VisualBoyAdvance-1.7.2/src/gb'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/bhavin/Emulators/VisualBoyAdvance-1.7.2/src/gb'
Making all in prof
make[2]: Entering directory `/home/bhavin/Emulators/VisualBoyAdvance-1.7.2/src/prof'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/bhavin/Emulators/VisualBoyAdvance-1.7.2/src/prof'
Making all in i386
make[2]: Entering directory `/home/bhavin/Emulators/VisualBoyAdvance-1.7.2/src/i386'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/bhavin/Emulators/VisualBoyAdvance-1.7.2/src/i386'
Making all in sdl
make[2]: Entering directory `/home/bhavin/Emulators/VisualBoyAdvance-1.7.2/src/sdl'
if g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"VisualBoyAdvance\" -DVERSION=\"1.7.2\" -DYYTEXT_POINTER=1 -DHAVE_LIBZ=1 -DHAVE_LIBPNG=1 -DHAVE_LIBPTHREAD=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_MALLOC_H=1 -DHAVE_STRINGS_H=1 -DHAVE_UNISTD_H=1 -DHAVE_ARPA_INET_H=1 -DHAVE_NETINET_IN_H=1  -I. -I.  -I../../src -DSDL -DSYSCONFDIR=\"/usr/local/etc\"  -fno-exceptions -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -g -O2 -DPROFILING -DMMX -DDEV_VERSION -MT GBA.o -MD -MP -MF ".deps/GBA.Tpo" \
	  -c -o GBA.o `test -f '../GBA.cpp' || echo './'`../GBA.cpp; \
	then mv -f ".deps/GBA.Tpo" ".deps/GBA.Po"; \
	else rm -f ".deps/GBA.Tpo"; exit 1; \
	fi
../GBA.cpp: In function ‘bool CPUWriteMemState(char*, int)’:
../GBA.cpp:677:55: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
../GBA.cpp: In function ‘bool CPUReadMemState(char*, int)’:
../GBA.cpp:820:55: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
../GBA.cpp: In function ‘bool CPUIsZipFile(const char*)’:
../GBA.cpp:1133:32: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
../GBA.cpp: In function ‘bool CPUIsGBAImage(const char*)’:
../GBA.cpp:1148:32: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
../GBA.cpp: In function ‘bool CPUIsGBABios(const char*)’:
../GBA.cpp:1172:32: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
../GBA.cpp: In function ‘bool CPUIsELF(const char*)’:
../GBA.cpp:1192:32: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
../GBA.cpp: In function ‘bool CPUReadGSASnapshot(const char*)’:
../GBA.cpp:931:24: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
../GBA.cpp:934:24: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
../GBA.cpp:936:24: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
../GBA.cpp:938:24: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
../GBA.cpp:941:31: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
../GBA.cpp:945:29: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
make[2]: *** [GBA.o] Error 1
make[2]: Leaving directory `/home/bhavin/Emulators/VisualBoyAdvance-1.7.2/src/sdl'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/bhavin/Emulators/VisualBoyAdvance-1.7.2/src'
make: *** [all-recursive] Error 1
Can anyone work out what's gone wrong or has anyone had this problem before? I hope I managed to explain myself clearly and if you need any extra details, I can provide them.

Thanks in advance.
 
Old 07-24-2012, 07:43 AM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 8,512

Rep: Reputation: 2434Reputation: 2434Reputation: 2434Reputation: 2434Reputation: 2434Reputation: 2434Reputation: 2434Reputation: 2434Reputation: 2434Reputation: 2434Reputation: 2434
it looks like a very old code, and the new compiler does not allow those constructs, so you need to modify makefile, try to add the suggested options to CC (that is -fpermissive, -Wwrite-strings).

I hope it helps
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
kernel 2.6.33.1 does not compile properly sundays211 Linux - Kernel 1 04-24-2010 11:04 PM
D-Link driver not working properly Sordelka Ubuntu 16 12-08-2007 11:49 AM
Qt 3.3.7 wont install properly with Xorg7.1 (binaries missing/compile problems) ICEMANII Linux From Scratch 2 03-27-2007 07:28 PM
Can't compile - GCC/G++ doesn't seem to be properly installed Rexxars Debian 7 03-14-2006 05:46 PM
Help. can't compile kernel module properly 3-1415 Programming 3 06-01-2005 03:56 AM


All times are GMT -5. The time now is 05:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration