LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Can't compile VBA-Link properly? (https://www.linuxquestions.org/questions/linux-newbie-8/cant-compile-vba-link-properly-4175418371/)

B-Dog1996 07-24-2012 06:02 AM

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.

pan64 07-24-2012 07:43 AM

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


All times are GMT -5. The time now is 06:48 AM.