• Login
  • Register
  • Dolphin Forums
  • Home
  • FAQ
  • Download
  • Wiki
  • Code


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Emulator Discussion and Support › Development Discussion v
« Previous 1 ... 84 85 86 87 88 ... 117 Next »

Linux build not working
View New Posts | View Today's Posts

Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
Linux build not working
03-14-2010, 04:05 AM (This post was last modified: 03-15-2010, 04:38 AM by Dragonlord.)
#1
Dragonlord Offline
Member
***
Posts: 57
Threads: 9
Joined: Mar 2009
Tried to build the Linux version as I prefer testing this one than the windows version. The provided SCons script does compile but not link. The build directory is full of .o files as it should be and libraries seem to be build to (but only .a files? WTF?) but there are no plugin libs (no .so files) and no executable (no dolphin-emu* according to the SConscript). Anything special one has to do? Incorrect handling of error messages? There are no compilation errors so it should work.

That said the SCons script is rather messy. Using default targets is not so nice as is not specifying which targets exist.
*removed this point as it is fixed with the next one*
Fixed now the incorrect include path. Everything compiles now but still no executables/libraries are linked. Looks like the SCons script is bugged somewhere. No idea yet what goes wrong.
Forgot to add what cause the problem with the internal libraries.

./Source/Core/VideoCommon/Src/SConscript @ line=48 :
add after
Code:
env_vcommon.Append(CXXFLAGS = [ '-fPIC' ])
line
Code:
env_vcommon.Append(CXXFLAGS = [ '-IExternals' ])

This fixes the SOIL include problem but not the LZO include problem. Since I have that on my system as shared file no error occurred. But I'll try that later.
EDIT: Removed this part. The build problem is due to some missing include path as well as path problems with the global build. See below...
Find
Reply
03-14-2010, 07:44 PM (This post was last modified: 03-14-2010, 08:16 PM by Jack Frost.)
#2
Jack Frost Offline
aka. BhaaL
**********
Developers (Some Administrators and Super Moderators)
Posts: 511
Threads: 3
Joined: Oct 2009
Wow, sure sounds like you know your way around scons. Think you could review the whole scons, and possibly even join us on IRC to talk about it?
Its probably also a good idea to open an Issue on google-code.
Find
Reply
03-15-2010, 04:41 AM
#3
Dragonlord Offline
Member
***
Posts: 57
Threads: 9
Joined: Mar 2009
I'm using SCons for building my game engine, SDK tools and game project. It's one of these complex cases where you have tons of sub-projects (modules/libraries) which have to be compiled and stitched together properly for the final build to work and be installed properly. So from that point of view, yes, I know my way around SCons. From what I've seen so far this project here is way simpler using only one layer of dependencies. The include path can be fixed easily. the problem with the global/local install should be a path problem. I suspect a missing path delimiter somewhere along the way. Concerning the targets it would be good to have a "build" and "install" target. I said earlier they should not be mixed. You find both out in the wild but it's usually better to break them up. The build target is anyways a dependency of the install target so common users can simply issue the install build to get it all.
Find
Reply
03-16-2010, 12:39 PM
#4
Dragonlord Offline
Member
***
Posts: 57
Threads: 9
Joined: Mar 2009
BTW... IRC? This emu (emu, not emo guys Tongue) has an IRC channel? Didn't know that... nor the channel itself Tongue
Find
Reply
03-17-2010, 03:25 AM
#5
Jack Frost Offline
aka. BhaaL
**********
Developers (Some Administrators and Super Moderators)
Posts: 511
Threads: 3
Joined: Oct 2009
Sure we do, #dolphin-emu on EFnet.
Find
Reply
05-02-2010, 07:46 AM
#6
glennric Offline
Developer
**********
Developers (Some Administrators and Super Moderators)
Posts: 127
Threads: 5
Joined: Jan 2010
Can you post the exact scons command that you are trying to use to compile? Also could you post the output errors that you get from scons where the linkage fails?
Find
Reply
05-02-2010, 08:19 AM
#7
Dragonlord Offline
Member
***
Posts: 57
Threads: 9
Joined: Mar 2009
command:
Code:
scons verbose=no openal=yes install=local shared_lzo=yes

output:
Code:
scons: building associated VariantDir targets: Build/Linux-x86_64-release
Compiling Build/Linux-x86_64-release/Source/Core/VideoCommon/Src/BPMemory.o
Compiling Build/Linux-x86_64-release/Source/Core/VideoCommon/Src/BPStructs.o
Compiling Build/Linux-x86_64-release/Source/Core/VideoCommon/Src/CPMemory.o
Compiling Build/Linux-x86_64-release/Source/Core/VideoCommon/Src/CommandProcessor.o
Compiling Build/Linux-x86_64-release/Source/Core/VideoCommon/Src/Fifo.o
Compiling Build/Linux-x86_64-release/Source/Core/VideoCommon/Src/HiresTextures.o
Source/Core/VideoCommon/Src/HiresTextures.cpp:24:23: error: SOIL/SOIL.h: No such file or directory
Source/Core/VideoCommon/Src/HiresTextures.cpp: In function 'void HiresTextures::Init(const char*)':
Source/Core/VideoCommon/Src/HiresTextures.cpp:40: warning: unused variable 'bCheckedDir'
Source/Core/VideoCommon/Src/HiresTextures.cpp: In function 'PC_TexFormat HiresTextures::GetHiresTex(const char*, int*, int*, int, u8*)':
Source/Core/VideoCommon/Src/HiresTextures.cpp:115: error: 'SOIL_LOAD_RGBA' was not declared in this scope
Source/Core/VideoCommon/Src/HiresTextures.cpp:115: error: 'SOIL_load_image' was not declared in this scope
Source/Core/VideoCommon/Src/HiresTextures.cpp:120: error: 'SOIL_free_image_data' was not declared in this scope
Source/Core/VideoCommon/Src/HiresTextures.cpp:127: error: 'SOIL_free_image_data' was not declared in this scope
Source/Core/VideoCommon/Src/HiresTextures.cpp:156: error: 'SOIL_free_image_data' was not declared in this scope
scons: *** [Build/Linux-x86_64-release/Source/Core/VideoCommon/Src/HiresTextures.o] Error 1
scons: building terminated because of errors.
As one can see from that output the header file is not found because on my system SOIL is not installed. To use the included SOIL the -I line is required with which compilation works without a problem.
Find
Reply
05-06-2010, 06:53 AM
#8
hunterk
Unregistered
 
Let me know if this is too much of a threadjack and I'll just go make a new thread:

I'm trying to get Dolphin to build using pbuilder (on Ubuntu 9.10 64-bit) with the eventual goal of distributing builds through my Launchpad PPA, which uses an automated build farm that behaves similarly to pbuilder. Everything builds and links fine until scons fails with an ld error 'cannot find -lwiiuse' (I only included a little bit of the build log, but I can supply more if needed):
Code:
Linking shared debian/dolphin-emu/tmp/buildd/dolphin-emu-2.0.5435/Binary/Linux-x86_64/plugins/libPlugin_GCPadNew.so
Linking shared debian/dolphin-emu/tmp/buildd/dolphin-emu-2.0.5435/Binary/Linux-x86_64/plugins/libPlugin_VideoOGL.so
Linking shared debian/dolphin-emu/tmp/buildd/dolphin-emu-2.0.5435/Binary/Linux-x86_64/plugins/libPlugin_VideoSoftware.so
Linking shared debian/dolphin-emu/tmp/buildd/dolphin-emu-2.0.5435/Binary/Linux-x86_64/plugins/libPlugin_Wiimote.so
/usr/bin/ld: cannot find -lwiiuse
collect2: ld returned 1 exit status
scons: *** [debian/dolphin-emu/tmp/buildd/dolphin-emu-2.0.5435/Binary/Linux-x86_64/plugins/libPlugin_Wiimote.so] Error 1
scons: building terminated because of errors.
is this something you guys have seen before?
Reply
05-07-2010, 01:46 AM
#9
Jack Frost Offline
aka. BhaaL
**********
Developers (Some Administrators and Super Moderators)
Posts: 511
Threads: 3
Joined: Oct 2009
You might have to tell it where wiiuse.so is...we build that, its most likely not on your system prior to that.
Find
Reply
« Next Oldest | Next Newest »


  • View a Printable Version
  • Subscribe to this thread
Forum Jump:


Users browsing this thread: 1 Guest(s)



Powered By MyBB | Theme by Fragma

Linear Mode
Threaded Mode