Dolphin, the GameCube and Wii emulator - Forums

Full Version: Dolphin build woes
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I built Dolphin r3543 on Windows Vista using Visual C++ earlier today, but for some reason the DirectX9 video plugin does not work. I have the DirectX SDK installed and the OpenGL plugin works fine. Any ideas on why this could be happening? And while I'm on the topic, does the DirectX plugin even offer better performance that the OpenGL plugin?

Also, I just tried building the same revision under Linux, but I get this error:
Code:
[matt@arch dolphin]$ scons                                                                
scons: Reading SConscript files ...                                                      
Checking for pkg-config version > 0.15.0... (cached) yes                                  
Checking for sdl lib version > 1.0.0... (cached) yes                                      
Checking for bluez... (cached)                                                            
Using pkg-config for bluez... (cached) yes                                                
Checking for ao... (cached)                                                              
Using pkg-config for ao... (cached) yes                                                  
Checking for openal... (cached)                                                          
Using pkg-config for openal... (cached) no                                                
Looking for lib openal... (cached) no                                                    
Checking for portaudio... (cached)                                                        
Using pkg-config for portaudio... (cached) no                                            
Looking for lib portaudio... (cached) no                                                  
Checking for sfml-network... (cached)                                                    
Using pkg-config for sfml-network... (cached) no                                          
Looking for lib sfml-network... (cached) no                                              
Checking for x11... (cached)                                                              
Using pkg-config for x11... (cached) yes                                                  
Checking for wxWidgets >= 2.8... (cached) yes                                            
Checking for GL... (cached)                                                              
Using pkg-config for gl... (cached) yes                                                  
Checking for GLU... (cached)                                                              
Using pkg-config for glu... (cached) yes                                                  
Checking for Cg... (cached)                                                              
Using pkg-config for cg... (cached) no                                                    
Looking for lib Cg... (cached) yes
Checking for CgGL... (cached)
Using pkg-config for cggl... (cached) no
Looking for lib CgGL... (cached) yes
Checking for GLEW... (cached)
Using pkg-config for glew... (cached) no
Looking for lib GLEW... (cached) yes
Checking for xxf86vm... (cached)
Using pkg-config for xxf86vm... (cached) yes
Plugin_PadSimpleEvnt Doesn't work without testgl
scons: done reading SConscript files.
scons: Building targets ...
scons: building associated VariantDir targets: Build/Linux-i686-release
Linking Binary/Linux-i686/Dolphin
Build/Linux-i686-release/libs/libcommon.a(Thread.o): In function `Common::SyncInterlockedIncrement(int*)':
Thread.cpp:(.text+0x822): undefined reference to `__sync_add_and_fetch_4'
Build/Linux-i686-release/libs/libcommon.a(Thread.o): In function `Common::SyncInterlockedExchangeAdd(int*, int)':
Thread.cpp:(.text+0x84c): undefined reference to `__sync_add_and_fetch_4'
collect2: ld returned 1 exit status
scons: *** [Binary/Linux-i686/Dolphin] Error 1
scons: building terminated because of errors.


This is the build output from a second build attempt, so the rest of the build messages are not there. Thanks in advance for any help.
You may not care about Direct3D plugin, main development now goes on OpenGL one Smile
It never worked after revision 25XX

gcp111

You may want to try the latest version if you want to compile on Linux, since it gets broken often.
Thanks guys, I'll just stick with the OpenGL plugin then. I fixed my Linux build problem; it tuns out I needed to add '-march=i686' to the compile flags for scons in the SConstruct file. This might be a distribution specific issue. Also, how do I build an x64 binary in Visual C++? If I set the build setting to Release x64 it skips all the builds, doesn't compile anything, yet it gives no errors.

gcp111

(06-27-2009, 10:34 AM)Matt Wrote: [ -> ]If I set the build setting to Release x64 it skips all the builds, doesn't compile anything, yet it gives no errors.

Did you hit Rebuild All? Just build probably won't do anything.
Hmm, it seems that I'm missing the x64 libraries entriely; on the VC++ directories settings screen Win32 is the only platform available. I'm going to try reinstalling VC++ and see if that fixes it.

gcp111

(06-27-2009, 12:25 PM)Matt Wrote: [ -> ]Hmm, it seems that I'm missing the x64 libraries entriely; on the VC++ directories settings screen Win32 is the only platform available. I'm going to try reinstalling VC++ and see if that fixes it.

Yeah. If that doesn't work, just install the Platform SDK, which will install X64 build tools. Smile
I just had the exact same problem, i'm already getting the sdk stuff.
Had i known i had to download 2gb in stuff to compile dolphin...

gcp111

(06-28-2009, 06:52 AM)CacoFFF Wrote: [ -> ]I just had the exact same problem, i'm already getting the sdk stuff.
Had i known i had to download 2gb in stuff to compile dolphin...

That's why I wish it would compile with MinGW. (I never liked Microsoft compilers, you know why.) Hell, I don't even know if it does already... there are no instructions. Tongue
Pages: 1 2