Can you tell me what's the command to build dolphin with NoGUI ?
I tried:
#scons nogui
#scons nowx
But both commands don't work.
Did you try to edit your "~/Library/Application Support/Dolphin/User/Config/Dolphin.ini" file ? There you can enable Dual Core for improved performance.
However I couldn't find any config file to set the windows size or Full-Screen mode. It would be nice to have the NoGUI version, since I've programmed in Cocoa before I could write a frontend for dolphin-nogui.....
(07-23-2009, 08:34 AM)schpatz Wrote: [ -> ]@gilcel
I'm not having a problem compiling Dolphin. Actually, that works, and more to the point, I got the NoGui version compiling as well. The main problem I'm trying to overcome is the graphics issues. Looking at the YouTube video of someone running SMS on OS X, I figured there's got to be some way to improve my build.
I'm running 10.5.7, with the latest XCode.
There are a couple of changes that need to be made in several files. I think when the logging changed (?) there were some misses on the NoGui version.
I've attached a diff of code base. Some of it can be ignored (since I assume it's not a problem for you), namely the File related code, and perhaps the wii use changes. I'd look mostly at the SConstruct files and the DolphinNoGui.cpp
Oh, and to build the NoGui version is
scons nowx=yes
Ah, here's the YouTube video of
SMS on OS X. On my build, I don't see the Game title after the opening cut-scene (which I can't skip at them moment since the KB plugin doesn't seem to be working). I'm not sure what is wrong in my build...
Yeah, once I get to the title screen, I can't do anything because the KB plugin doesn't work at all. That is why I stopped the video after I got to the title screen. It isn't just your build schpatz. It will be the same on everyone else's too. Unless you have a gamepad, you are kinda stuck at the moment just like me.
I have tried some other games including F-Zero GX (PAL) which doesn't seem to work even though it says it does on the compatibility list. The initial Nintendo Sega screen comes up, but then a warning message appears saying "read from invalid memory region (0x23801ce0)".
Legend of Zelda Wind Waker works fine as far as I can tell. Same with Pokemon Colosseum. Tried Twlight Princess for the GC and the Wii health and safety message comes up at the start which I don't get. Of course, I can't press A so I can't go any further.
Mario Kart Double Dash gets to the part where Lakitu is holding the fish on his rod, but then the screen just goes blank. No intro sequence nothing.
Thanks for your SConstruct script...however I didn't find out how to fix these compile errors:
If I invoke "scons nowx=yes" I get some errors:
1. A first fix is to add #include "LogManager.h" after the #include "PluginManger.h" to avoid having a compliation error (with LogManager). This works.
2. It then stops with the following error:
Archiving Build/Darwin-i386-release/libs/libdebugger_ui_util.a
ar: no archive members specified
scons: *** [Build/Darwin-i386-release/libs/libdebugger_ui_util.a] Error 1
Did you have the same problem ? If yes, how did you fix it ?
thanks
(07-24-2009, 05:42 AM)schpatz Wrote: [ -> ]There are a couple of changes that need to be made in several files. I think when the logging changed (?) there were some misses on the NoGui version.
I've attached a diff of code base. Some of it can be ignored (since I assume it's not a problem for you), namely the File related code, and perhaps the wii use changes. I'd look mostly at the SConstruct files and the DolphinNoGui.cpp
Oh, and to build the NoGui version is
scons nowx=yes
Ah, here's the YouTube video of SMS on OS X. On my build, I don't see the Game title after the opening cut-scene (which I can't skip at them moment since the KB plugin doesn't seem to be working). I'm not sure what is wrong in my build...
(07-24-2009, 06:36 PM)gilcel Wrote: [ -> ]Thanks for your SConstruct script...however I didn't find out how to fix these compile errors:
If I invoke "scons nowx=yes" I get some errors:
1. A first fix is to add #include "LogManager.h" after the #include "PluginManger.h" to avoid having a compliation error (with LogManager). This works.
2. It then stops with the following error:
Archiving Build/Darwin-i386-release/libs/libdebugger_ui_util.a
ar: no archive members specified
scons: *** [Build/Darwin-i386-release/libs/libdebugger_ui_util.a] Error 1
Did you have the same problem ? If yes, how did you fix it ?
thanks
I did get that error. The changes I made to the SConstruct files fixed that. They are including the debugger_ui_util library, which is only built with WX, in some of the packages. Also, there a tabbing issue in the DebuggerUICommon SConscript file which attempts to make the library, even though it ignore compiling the code.
Once you do get it working, you will have to build the version with the GUI first, then without, otherwise all the plugins aren't built.
latest revision (r3889) doesn't compile, fails with the following error:
Quote:Source/Core/Common/Src/Atomic_GCC.h: In function 'void Common::AtomicAdd(volatile u32&, u32)':
Source/Core/Common/Src/Atomic_GCC.h:41: error: '__sync_add_and_fetch' was not declared in this scope
Source/Core/Common/Src/Atomic_GCC.h: In function 'void Common::AtomicIncrement(volatile u32&)':
Source/Core/Common/Src/Atomic_GCC.h:45: error: '__sync_add_and_fetch' was not declared in this scope
Source/Core/Common/Src/Atomic_GCC.h: In function 'u32 Common::AtomicLoadAcquire(volatile u32&)':
Source/Core/Common/Src/Atomic_GCC.h:52: error: '__sync_synchronize' was not declared in this scope
Source/Core/Common/Src/Atomic_GCC.h: In function 'void Common::AtomicStoreRelease(volatile u32&, u32)':
Source/Core/Common/Src/Atomic_GCC.h:60: error: '__sync_lock_test_and_set' was not declared in this scope
scons: *** [Build/Darwin-i386-release/Source/Core/Core/Src/HW/CommandProcessor.o] Error 1
scons: building terminated because of errors.
any ideas?
The error that you have has been discussed here before:
To compile the atomic libraries of Dolphin you need to use "gcc-4.2" and "g++-4.2". The 4.2 version of gcc comes with Apple XCode 3.1.3 which you can download freely at
http://connect.apple.com
After installing XCode 3.1.3 you need to modify at the root of the dolphin source dir the file "SConstruct" and find the lines with "gcc" & g++ and replace them with gcc-4.2 and g++-4.2:
To change "SConstruct" so that Mac OS X should use gcc-4.2 just add the following lines of code after line 123 (after the line with "vars.AddVariables()....")
if sys.platform == 'darwin':
vars.AddVariables(
('CC', 'The c compiler', 'gcc-4.2'),
('CXX', 'The c++ compiler', 'g++-4.2') )
Or download and use the attached "SConstruct" file from comment 8 here:
http://code.google.com/p/dolphin-emu/issues/detail?id=1141&sort=-id#c8
After relaunching "scons" again it will stop again with OpenAlStream.o error:
This is due to a bad header linking (the one from openal library on your Mac OS X system).
We fix it by just linking it to the dolphin-emu's openal headers in "Externals" library. It's easy: just change line 30 and 32
Source/Core/AudioCommon/Src/OpenALStream.h from
elif defined(__APPLE__)
#include "openal/al.h"
#include "openal/alc.h"
to:
elif defined(__APPLE__)
#include "../../../../Externals/OpenAL/include/al.h"
#include "../../../../Externals/OpenAL/include/alc.h"
hope this helps!
(07-27-2009, 11:59 AM)bmxer55 Wrote: [ -> ]latest revision (r3889) doesn't compile, fails with the following error:
Quote:Source/Core/Common/Src/Atomic_GCC.h: In function 'void Common::AtomicAdd(volatile u32&, u32)':
Source/Core/Common/Src/Atomic_GCC.h:41: error: '__sync_add_and_fetch' was not declared in this scope
Source/Core/Common/Src/Atomic_GCC.h: In function 'void Common::AtomicIncrement(volatile u32&)':
Source/Core/Common/Src/Atomic_GCC.h:45: error: '__sync_add_and_fetch' was not declared in this scope
Source/Core/Common/Src/Atomic_GCC.h: In function 'u32 Common::AtomicLoadAcquire(volatile u32&)':
Source/Core/Common/Src/Atomic_GCC.h:52: error: '__sync_synchronize' was not declared in this scope
Source/Core/Common/Src/Atomic_GCC.h: In function 'void Common::AtomicStoreRelease(volatile u32&, u32)':
Source/Core/Common/Src/Atomic_GCC.h:60: error: '__sync_lock_test_and_set' was not declared in this scope
scons: *** [Build/Darwin-i386-release/Source/Core/Core/Src/HW/CommandProcessor.o] Error 1
scons: building terminated because of errors.
any ideas?
has anyone gotten to build after rev 3880
on my mac everything seems to build fine until it tries to compile MainNogui
here are the errors I get
Code:
Source/Core/DolphinWX/Src/MainNoGUI.cpp: In function 'int appleMain(int, char**)':
Source/Core/DolphinWX/Src/MainNoGUI.cpp:217: error: 'logManager' was not declared in this scope
Source/Core/DolphinWX/Src/MainNoGUI.cpp:217: error: 'LogManager' was not declared in this scope
Source/Core/DolphinWX/Src/MainNoGUI.cpp:217: error: expected primary-expression before ')' token
Source/Core/DolphinWX/Src/MainNoGUI.cpp:217: error: expected `;' before 'CPluginManager'
scons: *** [Build/Darwin-i386-release/Source/Core/DolphinWX/Src/MainNoGUI.o] Error 1
scons: building terminated because of errors.
I get these same errors whether compiling with nowx=yes or not.
I compiled 3891M just fine on OS X: I just get this error if I use "scons nowx=yes".
Maybe you need to checkout (redownload) the latest dolphin-svn again (but first rename your "dolphin-emu-read-only" directory to "dolphin-emu-read-only.old"
in case you need your old setup).
Anyway you just need to edit "Source/Core/DolphinWX/Src/MainNoGUI
.cpp and add at line 47 (after #include "PluginManager.h"):
#include "LogManager.h"
to avoid having a compliation error with LogManager.
(07-27-2009, 10:21 PM)g-man_emu-gamer Wrote: [ -> ]has anyone gotten to build after rev 3880
on my mac everything seems to build fine until it tries to compile MainNogui
here are the errors I get
Code:
Source/Core/DolphinWX/Src/MainNoGUI.cpp: In function 'int appleMain(int, char**)':
Source/Core/DolphinWX/Src/MainNoGUI.cpp:217: error: 'logManager' was not declared in this scope
Source/Core/DolphinWX/Src/MainNoGUI.cpp:217: error: 'LogManager' was not declared in this scope
Source/Core/DolphinWX/Src/MainNoGUI.cpp:217: error: expected primary-expression before ')' token
Source/Core/DolphinWX/Src/MainNoGUI.cpp:217: error: expected `;' before 'CPluginManager'
scons: *** [Build/Darwin-i386-release/Source/Core/DolphinWX/Src/MainNoGUI.o] Error 1
scons: building terminated because of errors.
I get these same errors whether compiling with nowx=yes or not.
(07-27-2009, 05:14 PM)gilcel Wrote: [ -> ]The error that you have has been discussed here before:
To compile the atomic libraries of Dolphin you need to use "gcc-4.2" and "g++-4.2". The 4.2 version of gcc comes with Apple XCode 3.1.3 which you can download freely at http://connect.apple.com
Thanks, worked like a charm, i think that little bit of info you provided should be committed to svn, especially the gcc-4.2/g++-4.2 part.