![]() |
|
Linux build not working - Printable Version +- Dolphin, the GameCube and Wii emulator - Forums (https://forums.dolphin-emu.org) +-- Forum: Dolphin Emulator Discussion and Support (https://forums.dolphin-emu.org/Forum-dolphin-emulator-discussion-and-support) +--- Forum: Development Discussion (https://forums.dolphin-emu.org/Forum-development-discussion) +--- Thread: Linux build not working (/Thread-linux-build-not-working) |
Linux build not working - Dragonlord - 03-14-2010 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' ])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... RE: Linux build not working - Jack Frost - 03-14-2010 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. RE: Linux build not working - Dragonlord - 03-15-2010 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. RE: Linux build not working - Dragonlord - 03-16-2010 BTW... IRC? This emu (emu, not emo guys ) has an IRC channel? Didn't know that... nor the channel itself
RE: Linux build not working - Jack Frost - 03-17-2010 Sure we do, #dolphin-emu on EFnet. RE: Linux build not working - glennric - 05-02-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? RE: Linux build not working - Dragonlord - 05-02-2010 command: Code: scons verbose=no openal=yes install=local shared_lzo=yesoutput: Code: scons: building associated VariantDir targets: Build/Linux-x86_64-releaseRE: Linux build not working - hunterk - 05-06-2010 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.soRE: Linux build not working - Jack Frost - 05-07-2010 You might have to tell it where wiiuse.so is...we build that, its most likely not on your system prior to that. |