PDA

View Full Version : Gens Emulator installation help



SanyuMiyazaki
7th June 2010, 04:34 PM
Okay, I'm trying to install the Gens Emulator on F12. I extracted the tar.gz file, and then ran the ./configure command. However, when I run it, I get this.


checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets ${MAKE}... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether gcc and cc understand -c and -o together... yes
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking dependency style of g++... none
checking for strerror in -lcposix... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sdl-config... no
checking for SDL - version >= 1.1.3... no
*** The sdl-config script installed by SDL could not be found
*** If SDL was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the SDL_CONFIG environment variable to the
*** full path to sdl-config.
configure: error: *** SDL version 1.1.3 not found!

Does anyoene know how to fix this problem? I tried looking for it on Google, but it led me to a link on the Unbuntu forums.

skolnick
7th June 2010, 04:45 PM
Sure, you need to install the SDL-devel RPM. It's in fedora's repos. To install it run this as root:


yum install SDL-devel

Regards.

Camberwell
7th June 2010, 04:46 PM
try yum install gens

SanyuMiyazaki
7th June 2010, 07:55 PM
I did that, and it installed fine!

Then Gens disappointed because the screen was pretty small compared to the size of the window. So I decided to install Gens/GS Release 7 instead... but since there's no RPM file for it, I have to install it through a .tar.gz file.

Now I'm getting another error when installing it.


checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking dependency style of gcc... gcc3
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl.exe... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking dependency style of g++... none
checking for gawk... (cached) gawk
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking whether gcc and cc understand -c and -o together... yes
checking how to run the C preprocessor... gcc -E
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking for ranlib... ranlib
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking the maximum length of command line arguments... 1966080
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... (cached) ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking whether we are using the GNU C++ compiler... (cached) no
checking whether g++ accepts -g... (cached) no
checking dependency style of g++... (cached) none
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for gcc option to accept ISO C99... -std=gnu99
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for X11... yes
checking for pkg-config... /usr/bin/pkg-config
checking for GTK+ - version >= 2.4.0... yes (version 2.18.9)
checking for sdl-config... /usr/bin/sdl-config
checking for SDL - version >= 1.1.3... yes
checking for nasm... /usr/bin/nasm
checking for OpenGL support... yes
checking for system zlib... yes
checking for system libpng... yes
checking if libpng should be linked at compile time... yes
checking for gcc -fvisibility-inlines-hidden support... yes
checking for hash table type... configure: error: Could not find a usable hash table implementation.


Does anyone know how to fix this, or if there's a RPM file for the version of Gens/GS I'm trying to install?

(If you couldn't tell, I'm a complete noob at Linux... :( )

skolnick
7th June 2010, 08:22 PM
I am trying to build an RPM of Gens/GS. I will build it using CentOS (it's the only 32 bit platform I have) but it should work on Fedora. I'll post here if I am successful at creating it.

Regards.

SanyuMiyazaki
7th June 2010, 08:25 PM
skolnick, you are my new best friend!! Thank you about a thousand times! And then add another three hundred for good measure.

PabloTwo
7th June 2010, 09:15 PM
From the gens-2.15.5 version spec file:

BASH:~/-> cat rpmbuild/SPECS/gens.spec | grep BuildRequires
BuildRequires: gtk2-devel >= 2.4.0
BuildRequires: SDL-devel >= 1.1.3
BuildRequires: libglade2-devel
BuildRequires: nasm >= 0.98.37
BuildRequires: ImageMagick
BuildRequires: desktop-file-utils
Make sure you have all those packages installed if you want to keep attempting to compile/install the newer version yourself.

---------- Post added at 04:15 PM CDT ---------- Previous post was at 03:50 PM CDT ----------

Install these as well:

ImageMagick-c++
libsigc++20
compat-libstdc++-33
libstdc++
compat-gcc-34-c++
gcc-c++
compat-libstdc++-296

skolnick
7th June 2010, 09:41 PM
Hi!

OK, I managed to create a working RPM of Gens/GS R7 for Fedora12. I tested it on a 64bit Fedora 12 and it worked fine, I'm pretty sure it will also work on Fedora 12 i686 (32 bits). The link to the RPM is here:


http://pwp.etb.net.co/gpulido/rpms/gens-gs-r7-1.f12.gapf.i686.rpm

It has lots of dependencies, to install it, just change to the folder where you downloaded the RPM and run this command (as root):


yum localinstall --nogpgcheck gens-gs-r7-1.f12.gapf.i686.rpm

If you have any issues, please tell me.

Regards.

SanyuMiyazaki
7th June 2010, 10:08 PM
The first extension is incorrect. It just needs to be http://

skolnick
7th June 2010, 11:08 PM
The first extension is incorrect. It just needs to be http://

Thanks, link corrected. Did the RPM work?

Regards.

SanyuMiyazaki
7th June 2010, 11:15 PM
Yeah, but some of the plugins are missing.

skolnick
7th June 2010, 11:18 PM
Which plugins are missing? maybe it's something easy to fix.

SanyuMiyazaki
7th June 2010, 11:34 PM
blargg ntsc, game genie, IPS patcher , sgens, vdp layer options, hq2x, hq3x, and hq4x

skolnick
7th June 2010, 11:59 PM
Strange, I seem to have all of those plugins working. Please tell me which distro you are using and also post the output of this command:


ls -l /usr/lib/mdp/mdp_*

Regards.

SanyuMiyazaki
8th June 2010, 12:02 AM
I actually figured out the problem. It was basically SELinux trying to reject the plugins.

skolnick
8th June 2010, 05:19 AM
Good to read it finally worked.

Regards.

DannyKitty
17th August 2010, 09:08 AM
The package works but it should not depend on libfreetype-freeworld. I prefer not to install that package because I think fonts actually look better with the freetype that comes with Fedora. (I used --nodeps to install it on Fedora 13 32-bit)

skolnick
18th August 2010, 04:09 AM
Hi!

Thanks for your comments. Unfortunately, that RPM was not generated from source code, but from a precompiled binary created for slackware. To create dependencies I just ran "ldd gens" and included all the dependencies that I got that way. I'm sorry if they are too much. However, I corrected the dependencies and created a new RPM, from source code instead of the precompiled binary, here are the links:



RPM: http://pwp.etb.net.co/gpulido/rpms/gens-gs-r7-1.f12.gapf.i386.rpm
SRPM: http://pwp.etb.net.co/gpulido/rpms/gens-gs-r7-1.f12.gapf.src.rpm
SPEC: http://pwp.etb.net.co/gpulido/rpms/gens-gs.compile.f12.gapf.spec

However, bear this in mind:

1. This RPM was created on Fedora 12 x86, not Fedora 13
2. It will not work on x86_64, since AFAIK, Gens-gs will not compile on 64 bits, only 32 bits.
3. The binary was compiled on a laptop with nVidia video card, and ldd reports dependancy on some nvidia libraries. No clue if it will sork on ATI/Intel/other video cards, since all my PCs have nvidia cards.

Regards.