Emulator Issues #5028
closedCannot build on GNU/Linux (Fedora 16 64bit)
0%
Description
I'm trying to create a RPM package for dolphin-emu in Fedora 16 x86_64.
I have every build dependency installed from Fedora and RPMFusion repos:
git
cmake-fedora
gcc-c++
wxGTK-devel
SDL-devel
Cg
bluez-libs-devel
readline-devel
alsa-lib-devel
pulseaudio-libs-devel
libao-devel
openal-soft-devel
ffmpeg-devel
glew-devel
lzo-devel
portaudio-devel
To compile I run this script barely autogenerated by some Fedora macros:
mkdir Build && cd Build
CFLAGS="${CFLAGS:--O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 \
-fexceptions -fstack-protector --param=ssp-buffer-size=4 \
-m64 -mtune=generic}"
export CFLAGS
CXXFLAGS="${CXXFLAGS:--O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 \
-fexceptions -fstack-protector --param=ssp-buffer-size=4 \
-m64 -mtune=generic}"
export CXXFLAGS
FFLAGS="${FFLAGS:--O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 \
-fexceptions -fstack-protector --param=ssp-buffer-size=4 \
-m64 -mtune=generic}"
export FFLAGS
/usr/bin/cmake \
-DCMAKE_VERBOSE_MAKEFILE=ON \
-DCMAKE_INSTALL_PREFIX:PATH=/usr \
-DCMAKE_INSTALL_LIBDIR:PATH=/usr/lib64 \
-DINCLUDE_INSTALL_DIR:PATH=/usr/include \
-DLIB_INSTALL_DIR:PATH=/usr/lib64 \
-DSYSCONF_INSTALL_DIR:PATH=/etc \
-DSHARE_INSTALL_PREFIX:PATH=/usr/share \
-DLIB_SUFFIX=64 \
-DBUILD_SHARED_LIBS:BOOL=ON ..
make -j3
It fails with lots of undefined references.
I attached the full output, I think it can help.
Thanks a lot in advance.
Updated by delroth almost 13 years ago
- Status changed from New to Questionable
Probably due to ccache usage. Use g++ directly without ccache.
Updated by yajo.sk8 almost 13 years ago
Try installing libsfml-dev
I did not find it in the Fedora repos. Besides, in http://code.google.com/p/dolphin-emu/wiki/Linux_Build says:
libsfml-dev (optional, if not found will be built statically)
Probably due to ccache usage. Use g++ directly without ccache.
Sorry but I'm not used to c++ programming/compiling. How do I do this?
Thanks.
Updated by Anonymous almost 13 years ago
I don't understand why you are setting CXFLAGS etc. etc. before the cmake command - How exactly are you creating the RPM - are you writing a spec file? If so, can you build normally in fedora 16? - I would start by making a spec file that closely approximates the commands you use to build dolphin from the command line. I have a little experience of building the pcsx2 rpm for fedora - but I got a LOT of help from the rpm building section on fedora forums - have you posted there yet?
Good luck with the RPM :)
Updated by yajo.sk8 almost 13 years ago
Yes, I'm writing a spec file. I tried to use the %cmake macro, which creates all the above.
You were right, using a simpler cmake statement worked. Thanks for all and sorry for the not-bug.
Maybe when I finish the spec it can be of the developers' interest?
Updated by nakeee almost 13 years ago
- Status changed from Questionable to Invalid
You can post in the forum suggestion people to use your spec file to build rpms for fedora. Or even better get it into the fedora repository. I don't see what we as devs can do about it. If you had a cmake rule to generate rpm from a spec.in file we could probably submit it to the repository though.
Updated by Anonymous almost 13 years ago
Yes, getting stuff into the fedora rpmfusion repository is quite a long process - you need to apply for sponsorship and review and on and on - I haven't been brave enough to try this yet with pcsx2 fedora rpm - so perhaps if the dolphin rpm could be available from the repository at the dolphin-emu googlecode, it would be a good way to get it out there.
Once the rpm is done, you can build for other Fedora versions than Fedora 16 x86_64 using "mock" - it will be best to do this anyway as it will make a clean build :)
Updated by awyatt almost 13 years ago
Is the spec file available somewhere, it would be handy to have.
Updated by yajo.sk8 almost 13 years ago
Sorry, I made it but forgot to push it. Where should I do it?
Updated by NeoBrainX almost 13 years ago
I'm not an expert in that regard, but what do you need a spec file for anyway? You can use CPack as well to create an RPM with much less effort...
Updated by yajo.sk8 almost 13 years ago
Well I'm no expert also, as I did not know about CPack. What I know is that I have a working Fedora SPEC, so if you want it, I can push it to the repo. Just tell me where. I'm sorry but I cannot help with CPack.
Updated by cxl9261995 over 12 years ago
RPMFusion is currently working on packaging dolphin-emu: https://bugzilla.rpmfusion.org/show_bug.cgi?id=2098
If spec files are to be added to source code, I think theirs would be the most appropriate, since Dolphin depends on packages in RPMFusion anyway :)