Dolphin, the GameCube and Wii emulator - Forums

Full Version: cant compile r5820 in linux
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I just checked out r5820 from svn in linux and am having trouble compiling it.

If I use regular 'scons verbose=1' I get:

Code:
g++ -o Build/Linux-i686-release/Externals/MemcardManager/src/mcmMain.o -c -fvisibility-inlines-hidden -fno-exceptions -fno-strict-aliasing -msse2 -fPIC -O3 -fomit-frame-pointer -Wall -Wwrite-strings -Wshadow -Wpointer-arith -Wpacked -Wno-conversion -pthread -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DGCC_HASCLASSVISIBILITY -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_REENTRANT -ISource/Core/Common/Src -ISource/Core/DiscIO/Src -ISource/PluginSpecs -ISource/Core/Core/Src -ISource/Core/DebuggerWX/Src -IExternals/Bochs_disasm -IExternals/Lua -IExternals/WiiUseSrc/Src -ISource/Core/VideoCommon/Src -ISource/Core/InputCommon/Src -ISource/Core/InputUICommon/Src -ISource/Core/AudioCommon/Src -ISource/Core/DebuggerUICommon/Src -ISource/Core/DolphinWX/Src -ISource/Core/DSPCore/Src -I/usr/include/SDL -IExternals/LZO -IExternals/SOIL -I/usr/lib/wx/include/base-unicode-release-2.8 -I/usr/include/wx-2.8 -I/usr/include/alsa -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/local/include -I/usr/local/include/drm Externals/MemcardManager/src/mcmMain.cpp
In file included from /usr/include/wx-2.8/wx/window.h:23,
                 from /usr/include/wx-2.8/wx/sizer.h:17,
                 from Source/Core/DolphinWX/Src/MemcardManager.h:22,
                 from Externals/MemcardManager/src/MCMmain.h:9,
                 from Externals/MemcardManager/src/mcmMain.cpp:17:
/usr/include/wx-2.8/wx/cursor.h: In constructor 'wxBusyCursorSuspender::wxBusyCursorSuspender()':
/usr/include/wx-2.8/wx/cursor.h:65: error: 'wxIsBusy' was not declared in this scope
/usr/include/wx-2.8/wx/cursor.h:67: error: 'wxBusyCursor' has not been declared
/usr/include/wx-2.8/wx/cursor.h:67: error: 'wxSetCursor' was not declared in this scope
... more errors ...

If I use 'scons nowx=true' I get
Code:
g++ -o Build/Linux-i686-release/Source/Core/DolphinWX/Src/MainNoGUI.o -c -fvisibility-inlines-hidden -fno-exceptions -fno-strict-aliasing -msse2 -fPIC -O3 -fomit-frame-pointer -Wall -Wwrite-strings -Wshadow -Wpointer-arith -Wpacked -Wno-conversion -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DGCC_HASCLASSVISIBILITY -D_GNU_SOURCE=1 -D_REENTRANT -ISource/Core/Common/Src -ISource/Core/DiscIO/Src -ISource/PluginSpecs -ISource/Core/Core/Src -ISource/Core/DebuggerWX/Src -IExternals/Bochs_disasm -IExternals/Lua -IExternals/WiiUseSrc/Src -ISource/Core/VideoCommon/Src -ISource/Core/InputCommon/Src -ISource/Core/InputUICommon/Src -ISource/Core/AudioCommon/Src -ISource/Core/DebuggerUICommon/Src -ISource/Core/DolphinWX/Src -ISource/Core/DSPCore/Src -I/usr/include/SDL -IExternals/LZO -IExternals/SOIL -I/usr/include/alsa -I/usr/local/include -I/usr/local/include/drm Source/Core/DolphinWX/Src/MainNoGUI.cpp
Source/Core/DolphinWX/Src/MainNoGUI.cpp: In function 'int main(int, char**)':
Source/Core/DolphinWX/Src/MainNoGUI.cpp:382: error: 'EventHandler' has not been declared
Source/Core/DolphinWX/Src/MainNoGUI.cpp:405: error: 'EventHandler' has not been declared
scons: *** [Build/Linux-i686-release/Source/Core/DolphinWX/Src/MainNoGUI.o] Error 1

I couldn't find in the code where EventHandler is defined. I tried to add #define wxUSE_GUI 1, Source/Core/DolphinWX/Src/MemcardManager.h but that lead to more wx errors (like wxUSE_PNG, etc.).

I noticed there is a wx directory in Externals, am I supposed to be using that?
Nevermind, I fixed my own issues. I had to install wxgtk and some other stuff, basically I just read the thread on this page

http://code.google.com/p/dolphin-emu/wik...pendencies