Page 1 of 1

Compilation issues...

Posted: Sun Jan 11, 2009 11:56 am
by cmdreamer

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.


Compilation issues...

Posted: Sun Jan 11, 2009 3:09 pm
by bgK

You have to run "make" after cmake to actually start the compilation.


Compilation issues...

Posted: Sun Jan 11, 2009 9:36 pm
by cmdreamer

You have to run "make" after cmake to actually start the compilation.

 

Ok sorry, edited message so the make command is more visible, actually I did ran make but got that error.

 

Thanks a lot for reading and answering my message. But still get the same error after installing gtkglextmm and gtkglextmm-devel, which were missing in the last cmake run.

 

Any ideas?

 

Best regards.

 


Edit: Finally compiled it without problems, only some "unused variable" and "parenthesis recommendation" messages.

 

What I did was followed Stroustrup's advice on using Null or 0, and changed all NULL's on this files for 0's:

 

/vbam/trunk/src/gba/Globals.cpp


/vbam/trunk/src/gtk/filters.cpp


/vbam/trunk/src/sdl/filters.cpp

 

After that just issued this command: make clean

and then: make

 

And all went ok. Thanks a lot for your time and I'll keep checking the functionality of the emu, best regards.


Compilation issues...

Posted: Mon Jan 12, 2009 2:56 am
by bgK

Revision 848 should fix that, thanks.


Compilation issues...

Posted: Tue Jan 13, 2009 3:29 am
by cmdreamer

I'm happy to help.

 

Now I have a kind of a little problem, if I move the recently compiled emu to another directory I get an error message:

 

Code: Select all

Failed to load glade file `/usr/local/share/vbam/ui/vbam.glade'

 

I think that's because I haven't issued this command: make install

 

But I don't want to install it because I have all the emu's I use on a NTFS partition shared with MSWinXP, is there a way to fix this -without having to install the program-? I need them to be "portable" in the sense that don't need to be installed, just unpacked to a directory an run from there.

 

Thanks in advance.


Compilation issues...

Posted: Tue Jan 13, 2009 3:38 am
by bgK

This is not a good practice on unix systems. Programs are really meant to be installed.

However you can make gvbam work from any folder if you move the files in src/gtk/ui/ and src/gtk/icons/ along with the executable while keeping the same subdirectory hierarchy.


Compilation issues...

Posted: Tue Jan 13, 2009 11:13 am
by cmdreamer

This is not a good practice on unix systems. Programs are really meant to be installed.

However you can make gvbam work from any folder if you move the files in src/gtk/ui/ and src/gtk/icons/ along with the executable while keeping the same subdirectory hierarchy.

 

Thanks for the advice, I do as I said because I tend to mess with the system and have to reinstall very often, that's how I'm learning about Linux.

 

Also thanks for the solution, it worked like a charm!

 

Best regards and sorry for becoming such a pain in the ass. LOL