Compilation issues...
Hi, I'm new at SVN compiling so I downloaded the trunk directory (rev. 847) and tried to compile VBA-M myself.
I'm using Linux Fedora 9, Gnome 2.22.3, P4 2.8 GHz, 1.5 GB of RAM.
Â
I unpacked the archive and started compilation with the command: "cmake CMakeLists.txt" and after it I got this:
Â
Code: Select all
[Carlos@localhost trunk]$ cmake CMakeLists.txt
-- Found assembler: /usr/bin/nasm
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Loaded CMakeASMInformation - ASM support is still experimental, please report issues
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found ZLIB: /usr/lib/libz.so
-- Found PNG: /usr/lib/libpng.so
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib/libX11.so
-- Looking for include files CMAKE_HAVE_PTHREAD_H
-- Looking for include files CMAKE_HAVE_PTHREAD_H - found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- checking for module 'gtkmm-2.4'
-- found gtkmm-2.4, version 2.12.7
-- checking for module 'glibmm-2.4'
-- found glibmm-2.4, version 2.16.4
-- checking for module 'giomm-2.4'
-- found giomm-2.4, version 2.16.4
-- checking for module 'libglademm-2.4'
-- found libglademm-2.4, version 2.6.6
-- checking for module 'xv'
-- found xv, version 1.0.3
-- checking for module 'gtkglextmm-x11-1.2'
-- package 'gtkglextmm-x11-1.2' not found
-- Configuring done
-- Generating done
-- Build files have been written to: /home/Carlos/Download/trunk
Â
Code: Select all
[Carlos@localhost trunk]$ make
Scanning dependencies of target vbamcore
[ 1%] Building CXX object CMakeFiles/vbamcore.dir/src/Util.o
[ 2%] Building CXX object CMakeFiles/vbamcore.dir/src/common/Patch.o
[ 3%] Building C object CMakeFiles/vbamcore.dir/src/common/memgzio.o
[ 5%] Building CXX object CMakeFiles/vbamcore.dir/src/gba/agbprint.o
[ 6%] Building CXX object CMakeFiles/vbamcore.dir/src/gba/bios.o
[ 7%] Building CXX object CMakeFiles/vbamcore.dir/src/gba/Cheats.o
/home/Carlos/Download/trunk/src/gba/Cheats.cpp: In function ‘int cheatsCheckKeys(u32, u32)’:
/home/Carlos/Download/trunk/src/gba/Cheats.cpp:914: warning: suggest parentheses around && within ||
/home/Carlos/Download/trunk/src/gba/Cheats.cpp:922: warning: suggest parentheses around && within ||
/home/Carlos/Download/trunk/src/gba/Cheats.cpp:930: warning: suggest parentheses around && within ||
/home/Carlos/Download/trunk/src/gba/Cheats.cpp:938: warning: suggest parentheses around + or - in operand of &
/home/Carlos/Download/trunk/src/gba/Cheats.cpp:942: warning: suggest parentheses around + or - in operand of &
/home/Carlos/Download/trunk/src/gba/Cheats.cpp:946: warning: suggest parentheses around + or - in operand of &
/home/Carlos/Download/trunk/src/gba/Cheats.cpp: In function ‘void cheatsReadGameSkip(void*, int)’:
/home/Carlos/Download/trunk/src/gba/Cheats.cpp:2681: warning: unused variable ‘firstCodeBreaker’
[ 9%] Building CXX object CMakeFiles/vbamcore.dir/src/gba/EEprom.o
[ 10%] Building CXX object CMakeFiles/vbamcore.dir/src/gba/Flash.o
[ 11%] Building CXX object CMakeFiles/vbamcore.dir/src/gba/GBA.o
[ 12%] Building CXX object CMakeFiles/vbamcore.dir/src/gba/GBAGfx.o
[ 14%] Building CXX object CMakeFiles/vbamcore.dir/src/gba/GBA-thumb.o
[ 15%] Building CXX object CMakeFiles/vbamcore.dir/src/gba/GBA-arm.o
/home/Carlos/Download/trunk/src/gba/GBA-arm.cpp: In function ‘void arm110(u32)’:
/home/Carlos/Download/trunk/src/gba/GBA-arm.cpp:1188: warning: unused variable ‘dest’
/home/Carlos/Download/trunk/src/gba/GBA-arm.cpp: In function ‘void arm111(u32)’:
/home/Carlos/Download/trunk/src/gba/GBA-arm.cpp:1188: warning: unused variable ‘dest’
/home/Carlos/Download/trunk/src/gba/GBA-arm.cpp: In function ‘void arm112(u32)’:
/home/Carlos/Download/trunk/src/gba/GBA-arm.cpp:1188: warning: unused variable ‘dest’
/home/Carlos/Download/trunk/src/gba/GBA-arm.cpp: In function ‘void arm113(u32)’:
/home/Carlos/Download/trunk/src/gba/GBA-arm.cpp:1188: warning: unused variable ‘dest’
/home/Carlos/Download/trunk/src/gba/GBA-arm.cpp: In function ‘void arm114(u32)’:
/home/Carlos/Download/trunk/src/gba/GBA-arm.cpp:1188: warning: unused variable ‘dest’
/home/Carlos/Download/trunk/src/gba/GBA-arm.cpp: In function ‘void arm115(u32)’:
/home/Carlos/Download/trunk/src/gba/GBA-arm.cpp:1188: warning: unused variable ‘dest’
/home/Carlos/Download/trunk/src/gba/GBA-arm.cpp: In function ‘void arm116(u32)’:
/home/Carlos/Download/trunk/src/gba/GBA-arm.cpp:1188: warning: unused variable ‘dest’
/home/Carlos/Download/trunk/src/gba/GBA-arm.cpp: In function ‘void arm117(u32)’:
/home/Carlos/Download/trunk/src/gba/GBA-arm.cpp:1188: warning: unused variable ‘dest’
/home/Carlos/Download/trunk/src/gba/GBA-arm.cpp: In function ‘void arm310(u32)’:
/home/Carlos/Download/trunk/src/gba/GBA-arm.cpp:1188: warning: unused variable ‘dest’
/home/Carlos/Download/trunk/src/gba/GBA-arm.cpp: In function ‘void arm130(u32)’:
/home/Carlos/Download/trunk/src/gba/GBA-arm.cpp:1191: warning: unused variable ‘dest’
/home/Carlos/Download/trunk/src/gba/GBA-arm.cpp: In function ‘void arm131(u32)’:
/home/Carlos/Download/trunk/src/gba/GBA-arm.cpp:1191: warning: unused variable ‘dest’
/home/Carlos/Download/trunk/src/gba/GBA-arm.cpp: In function ‘void arm132(u32)’:
/home/Carlos/Download/trunk/src/gba/GBA-arm.cpp:1191: warning: unused variable ‘dest’
/home/Carlos/Download/trunk/src/gba/GBA-arm.cpp: In function ‘void arm133(u32)’:
/home/Carlos/Download/trunk/src/gba/GBA-arm.cpp:1191: warning: unused variable ‘dest’
/home/Carlos/Download/trunk/src/gba/GBA-arm.cpp: In function ‘void arm134(u32)’:
/home/Carlos/Download/trunk/src/gba/GBA-arm.cpp:1191: warning: unused variable ‘dest’
/home/Carlos/Download/trunk/src/gba/GBA-arm.cpp: In function ‘void arm135(u32)’:
/home/Carlos/Download/trunk/src/gba/GBA-arm.cpp:1191: warning: unused variable ‘dest’
/home/Carlos/Download/trunk/src/gba/GBA-arm.cpp: In function ‘void arm136(u32)’:
/home/Carlos/Download/trunk/src/gba/GBA-arm.cpp:1191: warning: unused variable ‘dest’
/home/Carlos/Download/trunk/src/gba/GBA-arm.cpp: In function ‘void arm137(u32)’:
/home/Carlos/Download/trunk/src/gba/GBA-arm.cpp:1191: warning: unused variable ‘dest’
/home/Carlos/Download/trunk/src/gba/GBA-arm.cpp: In function ‘void arm330(u32)’:
/home/Carlos/Download/trunk/src/gba/GBA-arm.cpp:1191: warning: unused variable ‘dest’
/home/Carlos/Download/trunk/src/gba/GBA-arm.cpp: In function ‘void arm150(u32)’:
/home/Carlos/Download/trunk/src/gba/GBA-arm.cpp:1194: warning: unused variable ‘dest’
/home/Carlos/Download/trunk/src/gba/GBA-arm.cpp: In function ‘void arm151(u32)’:
/home/Carlos/Download/trunk/src/gba/GBA-arm.cpp:1194: warning: unused variable ‘dest’
/home/Carlos/Download/trunk/src/gba/GBA-arm.cpp: In function ‘void arm152(u32)’:
/home/Carlos/Download/trunk/src/gba/GBA-arm.cpp:1194: warning: unused variable ‘dest’
/home/Carlos/Download/trunk/src/gba/GBA-arm.cpp: In function ‘void arm153(u32)’:
/home/Carlos/Download/trunk/src/gba/GBA-arm.cpp:1194: warning: unused variable ‘dest’
/home/Carlos/Download/trunk/src/gba/GBA-arm.cpp: In function ‘void arm154(u32)’:
/home/Carlos/Download/trunk/src/gba/GBA-arm.cpp:1194: warning: unused variable ‘dest’
/home/Carlos/Download/trunk/src/gba/GBA-arm.cpp: In function ‘void arm155(u32)’:
/home/Carlos/Download/trunk/src/gba/GBA-arm.cpp:1194: warning: unused variable ‘dest’
/home/Carlos/Download/trunk/src/gba/GBA-arm.cpp: In function ‘void arm156(u32)’:
/home/Carlos/Download/trunk/src/gba/GBA-arm.cpp:1194: warning: unused variable ‘dest’
/home/Carlos/Download/trunk/src/gba/GBA-arm.cpp: In function ‘void arm157(u32)’:
/home/Carlos/Download/trunk/src/gba/GBA-arm.cpp:1194: warning: unused variable ‘dest’
/home/Carlos/Download/trunk/src/gba/GBA-arm.cpp: In function ‘void arm350(u32)’:
/home/Carlos/Download/trunk/src/gba/GBA-arm.cpp:1194: warning: unused variable ‘dest’
/home/Carlos/Download/trunk/src/gba/GBA-arm.cpp: In function ‘void arm170(u32)’:
/home/Carlos/Download/trunk/src/gba/GBA-arm.cpp:1197: warning: unused variable ‘dest’
/home/Carlos/Download/trunk/src/gba/GBA-arm.cpp: In function ‘void arm171(u32)’:
/home/Carlos/Download/trunk/src/gba/GBA-arm.cpp:1197: warning: unused variable ‘dest’
/home/Carlos/Download/trunk/src/gba/GBA-arm.cpp: In function ‘void arm172(u32)’:
/home/Carlos/Download/trunk/src/gba/GBA-arm.cpp:1197: warning: unused variable ‘dest’
/home/Carlos/Download/trunk/src/gba/GBA-arm.cpp: In function ‘void arm173(u32)’:
/home/Carlos/Download/trunk/src/gba/GBA-arm.cpp:1197: warning: unused variable ‘dest’
/home/Carlos/Download/trunk/src/gba/GBA-arm.cpp: In function ‘void arm174(u32)’:
/home/Carlos/Download/trunk/src/gba/GBA-arm.cpp:1197: warning: unused variable ‘dest’
/home/Carlos/Download/trunk/src/gba/GBA-arm.cpp: In function ‘void arm175(u32)’:
/home/Carlos/Download/trunk/src/gba/GBA-arm.cpp:1197: warning: unused variable ‘dest’
/home/Carlos/Download/trunk/src/gba/GBA-arm.cpp: In function ‘void arm176(u32)’:
/home/Carlos/Download/trunk/src/gba/GBA-arm.cpp:1197: warning: unused variable ‘dest’
/home/Carlos/Download/trunk/src/gba/GBA-arm.cpp: In function ‘void arm177(u32)’:
/home/Carlos/Download/trunk/src/gba/GBA-arm.cpp:1197: warning: unused variable ‘dest’
/home/Carlos/Download/trunk/src/gba/GBA-arm.cpp: In function ‘void arm370(u32)’:
/home/Carlos/Download/trunk/src/gba/GBA-arm.cpp:1197: warning: unused variable ‘dest’
/home/Carlos/Download/trunk/src/gba/GBA-arm.cpp: In function ‘void arm009(u32)’:
/home/Carlos/Download/trunk/src/gba/GBA-arm.cpp:1266: warning: unused variable ‘acc’
/home/Carlos/Download/trunk/src/gba/GBA-arm.cpp: In function ‘void arm019(u32)’:
/home/Carlos/Download/trunk/src/gba/GBA-arm.cpp:1268: warning: unused variable ‘acc’
[ 16%] Building CXX object CMakeFiles/vbamcore.dir/src/gba/Globals.o
/home/Carlos/Download/trunk/src/gba/Globals.cpp:43: error: ‘NULL’ was not declared in this scope
/home/Carlos/Download/trunk/src/gba/Globals.cpp:44: error: ‘NULL’ was not declared in this scope
/home/Carlos/Download/trunk/src/gba/Globals.cpp:45: error: ‘NULL’ was not declared in this scope
/home/Carlos/Download/trunk/src/gba/Globals.cpp:46: error: ‘NULL’ was not declared in this scope
/home/Carlos/Download/trunk/src/gba/Globals.cpp:47: error: ‘NULL’ was not declared in this scope
/home/Carlos/Download/trunk/src/gba/Globals.cpp:48: error: ‘NULL’ was not declared in this scope
/home/Carlos/Download/trunk/src/gba/Globals.cpp:49: error: ‘NULL’ was not declared in this scope
/home/Carlos/Download/trunk/src/gba/Globals.cpp:50: error: ‘NULL’ was not declared in this scope
/home/Carlos/Download/trunk/src/gba/Globals.cpp:51: error: ‘NULL’ was not declared in this scope
make[2]: *** [CMakeFiles/vbamcore.dir/src/gba/Globals.o] Error 1
make[1]: *** [CMakeFiles/vbamcore.dir/all] Error 2
make: *** [all] Error 2
[Carlos@localhost trunk]$
Â
As I said before I'm kind a new on this stuff so I'm asking for help, hope someone can point me to the right direction.
Â
BTW and not related with this issue, I also tried to compile GVBA (the gui one) but no luck, so I'm actually using the command version of VBA, which is really bad in the sense of useabilty.
Â
Thanks in advance.