PDA

View Full Version : [SOLVED] rpm spec file for Speed Dreams


TheBigRed
23rd June 2010, 05:37 PM
Hi,

have somebody already a rpm spec file for Speed Dreams 1.4.0x (fork from torcs)
an can make available.
the source package is available on http://www.speed-dreams.org

TheBigRed
25th June 2010, 08:20 AM
In the meantime I mad a spec file for speed dreams (quick & dirty without package splitting).

TheBigRed
25th June 2010, 10:32 PM

attached is a a newer version of the spec file, which builds the following packages:

cspeed-dreams-1.4.0-2.fc13.src.rpm
speed-dreams-1.4.0-2.fc13.x86_64.rpm
speed-dreams-robots-base-1.4.0-2.fc13.x86_64.rpm
speed-dreams-data-1.4.0-2.fc13.x86_64.rpm

john3voltas
21st November 2010, 03:31 AM
Greetings,
I'm fairly new to linux and I'm trying to install speed dreams 1.4.0 on my fedora 13 x86_64.
I've installed rpm-build and a bunch of speed dreams dependencies:
# rpmbuild -ba speed-dreams-1.4.0-r2307-2.fc13.spec
error: Failed build dependencies:
libGL-devel is needed by speed-dreams-1.4.0-2.fc13.x86_64
freeglut-devel is needed by speed-dreams-1.4.0-2.fc13.x86_64
plib-devel >= 1.8.3 is needed by speed-dreams-1.4.0-2.fc13.x86_64
libpng-devel is needed by speed-dreams-1.4.0-2.fc13.x86_64
libjpeg-devel is needed by speed-dreams-1.4.0-2.fc13.x86_64
zlib-devel is needed by speed-dreams-1.4.0-2.fc13.x86_64
libXext-devel is needed by speed-dreams-1.4.0-2.fc13.x86_64
libXt-devel is needed by speed-dreams-1.4.0-2.fc13.x86_64
libXi-devel is needed by speed-dreams-1.4.0-2.fc13.x86_64
libXmu-devel is needed by speed-dreams-1.4.0-2.fc13.x86_64
libXxf86vm-devel is needed by speed-dreams-1.4.0-2.fc13.x86_64
libXrandr-devel is needed by speed-dreams-1.4.0-2.fc13.x86_64
libXrender-devel is needed by speed-dreams-1.4.0-2.fc13.x86_64
openal-soft-devel is needed by speed-dreams-1.4.0-2.fc13.x86_64
freealut-devel >= 1.1.0-10 is needed by speed-dreams-1.4.0-2.fc13.x86_64


But then I get this error message:
# rpmbuild -ba speed-dreams-1.4.0-r2307-2.fc13.spec
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.tjx1Zm
+ umask 022
+ cd /root/rpmbuild/BUILD
+ cd /root/rpmbuild/BUILD
+ rm -rf speed-dreams-1.4.0-src
+ /usr/bin/bzip2 -dc /root/rpmbuild/SOURCES/speed-dreams-1.4.0-r2307-src.tar.bz2
+ /bin/tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd speed-dreams-1.4.0-src
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.E6HtzB
+ umask 022
+ cd /root/rpmbuild/BUILD
+ cd speed-dreams-1.4.0-src
+ CFLAGS='-O2 -g'
+ export CFLAGS
+ CXXFLAGS='-O2 -g'
+ export CXXFLAGS
+ FFLAGS='-O2 -g'
+ export FFLAGS
+ ./configure --host=x86_64-unknown-linux-gnu --build=x86_64-unknown-linux-gnu --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info
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 x86_64-unknown-linux-gnu-gcc... no
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 for style of include used by make... GNU
checking dependency style of gcc... none
checking how to run the C preprocessor... gcc -E
checking for x86_64-unknown-linux-gnu-g++... no
checking for x86_64-unknown-linux-gnu-c++... no
checking for x86_64-unknown-linux-gnu-gpp... no
checking for x86_64-unknown-linux-gnu-aCC... no
checking for x86_64-unknown-linux-gnu-CC... no
checking for x86_64-unknown-linux-gnu-cxx... no
checking for x86_64-unknown-linux-gnu-cc++... no
checking for x86_64-unknown-linux-gnu-cl.exe... no
checking for x86_64-unknown-linux-gnu-FCC... no
checking for x86_64-unknown-linux-gnu-KCC... no
checking for x86_64-unknown-linux-gnu-RCC... no
checking for x86_64-unknown-linux-gnu-xlC_r... no
checking for x86_64-unknown-linux-gnu-xlC... no
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 x86_64-unknown-linux-gnu-ranlib... no
checking for ranlib... ranlib
checking how to run the C++ preprocessor... /lib/cpp
configure: error: in `/root/rpmbuild/BUILD/speed-dreams-1.4.0-src':
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
error: Bad exit status from /var/tmp/rpm-tmp.E6HtzB (%build)


RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.E6HtzB (%build)


I hope someone can give me a hand with this issue.
Thanks in advance.
Cheers

Seve
21st November 2010, 04:17 AM
Try the following from a terminal logged in as root, using the exact syntax including the quotes

yum groupinstall "Development Tools"

This will install gcc-c++ among a few other handy packages used in compiling most software.

Then give your compilation another whirl.

john3voltas
21st November 2010, 04:52 AM
Excellent tip, man, it worked.
Thanks :)

john3voltas
22nd November 2010, 07:13 AM
The spec-file worked perfectly.
It helped me create 4 rpm-files:
speed-dreams-1.4.0-2.fc13.x86_64.rpm
speed-dreams-data-1.4.0-2.fc13.x86_64.rpm
speed-dreams-debuginfo-1.4.0-2.fc13.x86_64.rpm
speed-dreams-robots-base-1.4.0-2.fc13.x86_64.rpm
My understanding is that it built/compiled all those files from the source.file that I had downloaded 1st.
My question is: could I had compiled without the spec-file? Or it was only needed if I wanted to create rpm-files?
Cheers

PS: please be nice, I'm a linux newbie ;)

Seve
23rd November 2010, 06:28 AM
My understanding is that it built/compiled all those files from the source.file that I had downloaded 1st.
My question is: could I had compiled without the spec-file? Or it was only needed if I wanted to create rpm-files?

Yes, you could have compiled the software exclusive of using the rpm .spec file.
Usually there is a README or INSTALL txt file etc. included with instructions for compilation and installation using the source code.

You can google for information regarding installing software from source in linux for more reading.

You can read about Fedora's rpm package management here:
http://docs.fedoraproject.org/en-US/Fedora_Draft_Documentation/0.1/html/RPM_Guide/

TheBigRed
11th October 2011, 10:10 PM
Hi,

i tried to build a rpm spec file for the new available speed-dreams-2.0.0-b1_r3937 beta version.

%define _pkgbuilddir %{_builddir}/%{name}_%{version}
%define real_ver b1-r3937
%define pkg_name speed-dreams-2

# bzip2 package
# http://sourceforge.net/projects/speed-dreams/files/2.0.0/speed-dreams-2.0.0-b1-r3937-src.tar.7z/download
# file-roller speed-dreams-2.0.0-b1-r3937-src.tar.7z
# bzip2 file-roller speed-dreams-2.0.0-b1-r3937-src.tar


Summary: The Open Racing Car Simulator
Name: speed-dreams
Version: 2.0.0
Release: b1_r3937.1%{?dist}
License: GPLv2+
Group: Amusements/Games
URL: http://www.speed-dreams.org
Source0: http://de.sourceforge.jp/projects/sfnet_speed-dreams/downloads/%{version}/speed-dreams-%{version}-b1-r3937-src.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
Requires: opengl-games-utils
BuildRequires: libGL-devel, freeglut-devel, plib-devel >= 1.8.3
BuildRequires: libpng-devel, libjpeg-devel, zlib-devel
BuildRequires: desktop-file-utils
BuildRequires: libXext-devel, libXt-devel, libXi-devel, libXmu-devel
BuildRequires: libXxf86vm-devel, libXrandr-devel, libXrender-devel
BuildRequires: openal-soft-devel freealut-devel >= 1.1.0-10
BuildRequires: enet-devel >= 1.2

%description
Speed-Dreams is a 3D racing cars simulator using OpenGL. A Fork of TORCS. The goal is to have
programmed robots drivers racing against each others. You can also drive
yourself with either a wheel, keyboard or mouse.

%package robots-base
Summary: The Open Racing Car Simulator additional dirt tracks
Group: Amusements/Games
Requires: speed-dreams

%description robots-base
Speed Dreams is a 3D racing cars simulator using OpenGL. A Fork of TORCS. The goal is to have
programmed robots drivers racing against each others. You can also drive
yourself with either a wheel, keyboard or mouse.

This package contains additional tracks for the game.

%package devel
Summary: The Open Racing Car Simulator additional oval tracks
Group: Amusements/Games
Requires: speed-dreams

%description devel
Summary: The Open Racing Car Simulator additional oval tracks
Group: Amusements/Games
Requires: speed-dreams

%description devel
Speed Dreams is a 3D racing cars simulator using OpenGL. The goal is to have
programmed robots drivers racing against each others. You can also drive
yourself with either a wheel, keyboard or mouse.

This package contains the development files for the game.

%prep
%setup -q -n %{name}-%{version}-%{real_ver}-src

%build
%cmake . -DCMAKE_INSTALL_PREFIX:PATH="%{_prefix}" \
-DCMAKE_BUILD_TYPE:STRING=Release \
-DOPTION_OFFICIAL_ONLY:BOOL=ON
make %{?_smp_mflags}

%install
%{__rm} -rf %{buildroot}
%{__make} install DESTDIR=%{buildroot}


# Icon for the desktop file
%{__install} -D -p -m 0644 data/data/icons/icon.png %{buildroot}%{_datadir}/pixmaps/%{name}.png

#%{__install} -dm 755 %{buildroot}%{_libdir}/%{name}/drivers/simplix

%{__install} -dm 755 %{buildroot}%{_datadir}/pixmaps
%{__install} -D -p -m 755 data/data/img/*.png %{buildroot}%{_datadir}/pixmaps

%{__install} -dm 755 %{buildroot}%{_datadir}/games/%{name}
%{__install} -D -p -m 755 data/data/icons/icon.* %{buildroot}%{_datadir}/games/%{name}

#%{__install} -dm 755 %{buildroot}%{_libdir}/games/%{name}/modules
#%{__install} -D -p -m 755 src/modules/simu/simuv2.1/SOLID-2.0/src/libsolid.so %{buildroot}%{_libdir}/games/%{pkg_name}/modules/


%{__cat} > %{name}.desktop << EOF
[Desktop Entry]
Name=speed-dreams
Comment=The Open Racing Car Simulator
Exec=/usr/games/speed-dreams-2
Icon=/usr/share/games/speed-dreams/icon.png
Terminal=false
Type=Application
Encoding=UTF-8
Categories=Game;Simulation;
EOF

%{__mkdir_p} %{buildroot}%{_datadir}/applications
desktop-file-install \
--vendor "" \
--dir %{buildroot}%{_datadir}/applications \
%{name}.desktop

# We need this for proper automatic stripping to take place (still in 1.3.0)
find %{buildroot}%{_libdir}/games/ -name '*.so' | xargs %{__chmod} +x

# remove cmake files
find $RPM_BUILD_ROOT -type f -name "*.cmake" -exec rm -f {} ';'


%clean
%{__rm} -rf %{buildroot}


%files
# Directory default mode of 0755 is MANDATORY, since installed dirs are 0777
%defattr(-,root,root,0755)
%doc COPYING.txt README.txt
%{_datadir}/games/%{pkg_name}/*.txt
#%{_libdir}/games/%{pkg_name}/modules/libsolid.so

/usr/games/*
%{_libdir}/games/%{pkg_name}/drivers/kilo2008/*
%{_libdir}/games/%{pkg_name}/drivers/human/*
%{_libdir}/games/%{pkg_name}/drivers/simplix*
%{_libdir}/games/%{pkg_name}/drivers/usr*
%{_libdir}/games/%{pkg_name}/lib/*
%{_libdir}/games/%{pkg_name}/modules/graphic/*.so
%{_libdir}/games/%{pkg_name}/modules/simu/*.so
%{_libdir}/games/%{pkg_name}/modules/telemetry/*.so
%{_libdir}/games/%{pkg_name}/modules/track/*.so
%{_libdir}/games/%{pkg_name}/modules/userinterface/*.so

%{_datadir}/pixmaps/*.png
%{_datadir}/games/%{name}/icon.*


%files robots-base
%defattr(-,root,root,-)
# data packages, installs tracks, car models, fonts ...
%{_datadir}/applications/%{name}.desktop
%dir %{_datadir}/games/%{name}/
%{_datadir}/games/%{pkg_name}/categories/*
%{_datadir}/games/%{pkg_name}/cars/*
%{_datadir}/games/%{pkg_name}/config/*
%{_datadir}/games/%{pkg_name}/data/*
#%{_datadir}/games/%{pkg_name}/drivers/*
%{_datadir}/games/%{pkg_name}/tracks/*
%{_datadir}/games/%{pkg_name}/credits.xml
%{_datadir}/games/%{pkg_name}/version.xml
%{_datadir}/games/%{pkg_name}/drivers/human/*
%{_datadir}/games/%{pkg_name}/drivers/kilo2008/*
%{_datadir}/games/%{pkg_name}/drivers/simplix/*
%{_datadir}/games/%{pkg_name}/drivers/simplix_36GP/*
%{_datadir}/games/%{pkg_name}/drivers/simplix_ls1/*
%{_datadir}/games/%{pkg_name}/drivers/simplix_ls2/*
%{_datadir}/games/%{pkg_name}/drivers/simplix_mp5/*
%{_datadir}/games/%{pkg_name}/drivers/simplix_sc/*
%{_datadir}/games/%{pkg_name}/drivers/simplix_trb1/*
%{_datadir}/games/%{pkg_name}/drivers/usr_36GP/*
%{_datadir}/games/%{pkg_name}/drivers/usr_ls1/*
%{_datadir}/games/%{pkg_name}/drivers/usr_ls2/*
%{_datadir}/games/%{pkg_name}/drivers/usr_sc/*
%{_datadir}/games/%{pkg_name}/drivers/usr_trb1/*


%files devel
%defattr(-,root,root,-)
%{_includedir}/%{pkg_name}/*


%changelog


The rpm was build without problems, but if i want to start a quick race with
/usr/games/speed-dreams-2 the race it selve didn't starts.

Can someone help ?

TheBigRed
11th October 2011, 10:13 PM
This are the messages from console:

00:03:02.710 Info Quick Race now in EVENT_INIT state
00:03:02.710 Info Starting new event (Quick Race session)
00:03:02.710 Trace Loaded /usr/share/games/speed-dreams-2/data/menu/loadingscreen.xml (0x19c3dd0)
00:03:02.756 Trace Failed to load "/home/martin/.speed-dreams-2//drivers/usr_sc/usr_sc.xml" (fopen failed)
00:03:02.756 Trace Loaded drivers/usr_sc/usr_sc.xml (0x2f5aa60)
00:03:02.757 Debug Driver usr_sc#1 supported-feature mask : 0x00
00:03:02.757 Trace Failed to load "/home/martin/.speed-dreams-2//drivers/usr_sc/usr_sc.xml" (fopen failed)
00:03:02.757 Trace Loaded drivers/usr_sc/usr_sc.xml (0x2e5cb40)
00:03:02.757 Debug Driver usr_sc#3 supported-feature mask : 0x00
00:03:02.757 Trace Failed to load "/home/martin/.speed-dreams-2//drivers/usr_sc/usr_sc.xml" (fopen failed)
00:03:02.758 Trace Loaded drivers/usr_sc/usr_sc.xml (0x2e5cbb0)
00:03:02.758 Debug Driver usr_sc#5 supported-feature mask : 0x00
00:03:02.758 Trace Failed to load "/home/martin/.speed-dreams-2//drivers/usr_sc/usr_sc.xml" (fopen failed)
00:03:02.758 Trace Loaded drivers/usr_sc/usr_sc.xml (0x1a45e20)
00:03:02.758 Debug Driver usr_sc#7 supported-feature mask : 0x00
00:03:02.759 Trace Failed to load "/home/martin/.speed-dreams-2//drivers/usr_sc/usr_sc.xml" (fopen failed)
00:03:02.759 Trace Loaded drivers/usr_sc/usr_sc.xml (0x2e5cbf0)
00:03:02.759 Debug Driver usr_sc#9 supported-feature mask : 0x00
00:03:02.759 Trace Loaded /home/martin/.speed-dreams-2//drivers/human/human.xml (0x1a45de0)
00:03:02.759 Debug Driver human#1 supported-feature mask : 0x06
00:03:02.759 Trace Race supported-feature mask : 0x00
00:03:02.776 Trace Loaded tracks/circuit/forza/forza.xml (0x1c590d0)
00:03:02.777 Debug Number of lights: 0
00:03:02.788 Info PitEntry: pit entry
00:03:02.788 Info PitExit: pit exit
00:03:02.788 Info PitStart: pit start
00:03:02.788 Info PitBuildingStart: pit start
00:03:02.789 Info PitEnd: pit end
00:03:02.789 Info track4:: Pit style: 1
00:03:02.789 Trace Loading Forza track
00:03:02.790 Info Weather : Using user defined rain (0) and ground water (0) + user defined clouds (2) settings
00:03:02.790 Trace Loaded data/tracks/physics.xml (0x2fc1c20)
00:03:02.790 Debug ReTrackUpdate : water = 0, wetness = 0.00, wet/dry mu = 0.6500
00:03:02.790 Debug ReTrackUpdate : kFriction | kRollRes | Surface :
00:03:02.790 Debug 1.0000 | 0.0120 | b-pits
00:03:02.790 Debug 1.0000 | 0.0200 | roadside
00:03:02.790 Debug 1.0000 | 0.0010 | tire-wall
00:03:02.790 Debug 1.1000 | 0.0200 | curb-l
00:03:02.790 Debug 1.0000 | 0.0600 | tar-sand
00:03:02.790 Debug 0.6000 | 0.1200 | sand
00:03:02.790 Debug 1.0000 | 0.0400 | tar-grass3-l
00:03:02.790 Debug 1.0000 | 0.0400 | tar-grass3-r
00:03:02.790 Debug 0.0000 | 0.0010 | m-wall
00:03:02.790 Debug 1.1000 | 0.0200 | bcurb
00:03:02.790 Debug 0.4000 | 0.0800 | bgrass
00:03:02.790 Debug 1.1000 | 0.0120 | rroad
00:03:02.790 Trace by A. Sumner (5784 m long, 11 m wide) ...
00:03:02.792 Info ++++++++++++ Track ++++++++++++
00:03:02.792 Info Name = Forza
00:03:02.792 Info Authors = A. Sumner
00:03:02.792 Info Filename = tracks/circuit/forza/forza.xml
00:03:02.792 Info NSeg = 1509
00:03:02.792 Info Version = 4
00:03:02.792 Info Length = 5784.097168 m
00:03:02.792 Info Width = 11.000000 m
00:03:02.792 Info XSize = 2335.495117 m
00:03:02.792 Info YSize = 1193.454834 m
00:03:02.792 Info ZSize = 34.415035 m
00:03:02.792 Info Pits = present on track side
00:03:02.792 Info TimeOfDay= 15:00:00
00:03:02.792 Info Sun asc. = 75.0 d
00:03:02.792 Info Clouds = 2 (0=none, 1=few, 2=scarce, 3=many, 4=full)
00:03:02.792 Info Rain = 0 (0=none, 1=little, 2=medium, 3=heavy)
00:03:02.792 Info Water = 0 (0=none, 1=some, 2=more, 3=swampy)
00:03:02.792 Info Quick Race now in PRE_RACE state
00:03:02.792 Info Quick Race now in RACE_START state
00:03:02.792 Info Starting Quick Race Quick Race session at Forza
00:03:02.792 Trace Preparing Starting Grid ...
00:03:02.794 Trace Starting grid in the order of the driver list
00:03:02.795 Trace Loading physics engine (simuv2.1) ...
00:03:02.797 Error Failed to load library /usr/lib64/games/speed-dreams-2/modules/simu/simuv2.1.so (libsolid.so: cannot open shared object file: No such file or directory)
00:03:02.797 Error Race engine error (see above messages)
00:03:02.797 Info Quick Race now in ERROR state
00:03:02.797 Info Quick Race now in CONFIG state
00:03:02.798 Trace Loaded /usr/share/games/speed-dreams-2/data/menu/racemanmenu.xml (0x2fc2d80)
00:03:02.818 Trace Entering Race Manager menu
00:03:02.880 Debug Added competitor Arne Fischer (Boxer 96) (usr_sc#1)
00:03:02.880 Debug Added competitor Jackie Graham (Spirit 300) (usr_sc#3)
00:03:02.880 Debug Added competitor Tony Davies (Cavallo 360) (usr_sc#5)
00:03:02.880 Debug Added competitor Mark Duncan (FMC GT4) (usr_sc#7)
00:03:02.880 Debug Added competitor Stefan Larsson (Lynx 220) (usr_sc#9)
00:03:02.880 Debug Added competitor Player (Lynx 220) (human#1)
00:10:38.799 Trace Quitting GFUI event loop.
00:10:38.799 Info Cleaning up race engine.
00:10:38.804 Trace Module /usr/lib64/games/speed-dreams-2/modules/track/track.so unloaded
00:10:38.804 Info Shutting down race engine.
00:10:38.805 Trace Module /usr/lib64/games/speed-dreams-2/modules/userinterface/legacymenu.so unloaded
00:10:38.805 Info Exiting normally from Speed Dreams.
00:10:38.805 Trace Shutting down screen.
00:10:38.824 Info Validating new screen specs (test was successful).
00:10:38.825 Trace Wrote /home/martin/.speed-dreams-2/config/screen.xml (0xb5a650)
00:10:38.825 Debug Shutting down gaming framework.

the lib simuv2.1.so exits
# ll /usr/lib64/games/speed-dreams-2/modules/simu/simuv2.1.so
-rwxr-xr-x 1 root root 373769 11. Okt 22:38 /usr/lib64/games/speed-dreams-2/modules/simu/simuv2.1.so
# chmod 777 /usr/lib64/games/speed-dreams-2/modules/simu/simuv2.1.so

TheBigRed
13th October 2011, 02:13 PM
The rpm package contains the shared library simuv2.1.so, but the libsolid.so is missing

[root@fc16 speed-dreams-2.0.0-b1-r3937-src]# rpm -ql speed-dreams |grep simuv
/usr/lib/games/speed-dreams-2/modules/simu/simuv2.1.so
/usr/lib/games/speed-dreams-2/modules/simu/simuv2.so
/usr/lib/games/speed-dreams-2/modules/simu/simuv3.so

[root@fc16 speed-dreams-2.0.0-b1-r3937-src]# ldd /usr/lib/games/speed-dreams-2/modules/simu/simuv2.1.so
linux-gate.so.1 => (0x0085c000)
libtgf.so => /usr/lib/games/speed-dreams-2/lib/libtgf.so (0x00f43000)
librobottools.so => /usr/lib/games/speed-dreams-2/lib/librobottools.so (0x00a5b000)
libsolid.so => not found
libtxml.so => /usr/lib/games/speed-dreams-2/lib/libtxml.so (0x009d4000)
libSDL-1.2.so.0 => /usr/lib/libSDL-1.2.so.0 (0x00110000)
libpthread.so.0 => /lib/libpthread.so.0 (0x00875000)
libplibsg.so.1.8.5 => /usr/lib/libplibsg.so.1.8.5 (0x007c0000)
libplibul.so.1.8.5 => /usr/lib/libplibul.so.1.8.5 (0x00268000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x0026d000)
libm.so.6 => /lib/libm.so.6 (0x00dbd000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00e26000)
libc.so.6 => /lib/libc.so.6 (0x00358000)
libdl.so.2 => /lib/libdl.so.2 (0x001b2000)
/lib/ld-linux.so.2 (0x00f08000)


How should the link path look.

TheBigRed
14th October 2011, 02:36 PM
Hi,

a nother try, with a new spec file for speed-dreams.
please test this spec file and give response.

mv speed-dream.desktop ~/rpmbuild/SOURCES

semiRocket
16th October 2011, 03:21 PM
Hi,

a nother try, with a new spec file for speed-dreams.
please test this spec file and give response.
Only tested 32bit version.

Just tried to build rpm using your spec file.

Have done following steps:
yum groupinstall "Development Tools"
yum install libGL-devel freeglut-devel plib-devel libpng-devel libjpeg-devel zlib-devel libXext-devel libXt-devel libXi-devel libXmu-devel libXxf86vm-devel libXrandr-devel libXrender-devel openal-soft-devel freealut-devel enet-devel
curl -C - -O http://garr.dl.sourceforge.net/project/speed-dreams/2.0.0/speed-dreams-2.0.0-b1-r3937-src.tar.7z
yum install p7zip
7za -e speed-dreams-2.0.0-b1-r3937-src.tar.7z
bzip2 -z speed-dreams-2.0.0-b1-r3937-src.tar
mv speed-dreams-2.0.0-b1-r3937-src.tar.bz2 ~/rpmbuild/SOURCES/
rpmbuild -ba speed-dreams-2.0.0-b1-r3937-2.fc15.spec


And its giving me following errors:
+ cd speed-dreams-2.0.0-b1-r3937-src
+ LANG=C
+ export LANG
+ unset DISPLAY
+ %cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_BUILD_TYPE:STRING=Release -DOPTION_OFFICIAL_ONLY:BOOL=ON
/var/tmp/rpm-tmp.pHH3rK: line 32: fg: no job control
error: Bad exit status from /var/tmp/rpm-tmp.pHH3rK (%build)


RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.pHH3rK (%build)


~/rpmbuild/BUILD/speed-dreams-2.0.0-b1-r3937-src seems to be extracted correctly 1.1 GB



Also does anyone knows if there exist speed dreams 2 packages for download?
Why there aren't fedora packages in speed-dreams.org or speed dreams in fedora repositories? :confused:

TheBigRed
16th October 2011, 07:05 PM
please use the following spec file
modified from: Sun Oct 16 2011 Mario Blättermann <mariobl@fedoraproject.org> 2.0.0-b1-r3937-3
The spec-file is available her (http://mariobl.fedorapeople.org/Packages/speed-dreams/speed-dreams.spec), and the seperate *.desktop-file her (http://mariobl.fedorapeople.org/Packages/speed-dreams/speed-dreams.desktop).

Please note due a rpath-check problem, its necessary to switch off the rpath checker in ~/.rpmmacros

simply add the following line at the end of the file .rpmmacros
%__arch_install_post /usr/lib/rpm/check-rpaths /usr/lib/rpm/check-buildroot
and log off/ log in again.

semiRocket
17th October 2011, 01:26 AM
Hi,

have done the following, followed by Log Out / Log In process
echo "%__arch_install_post /usr/lib/rpm/check-rpaths /usr/lib/rpm/check-buildroot" >> ~/.rpmmacros

but I still get the same build error. Does the build process require root account, because I'm building it using regular account.

Used your new spec, noticed that is looking for 7z archive now :)


Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.adn8Hk
+ umask 022
+ cd /home/$USER/rpmbuild/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ cd speed-dreams-2.0.0-b1-r3937-src
+ %cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_BUILD_TYPE:STRING=Release -DOPTION_OFFICIAL_ONLY:BOOL=ON
/var/tmp/rpm-tmp.adn8Hk: line 32: fg: no job control
error: Bad exit status from /var/tmp/rpm-tmp.adn8Hk (%build)


RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.adn8Hk (%build)

---------- Post added at 02:26 AM ---------- Previous post was at 12:18 AM ----------

I was missing cmake :doh:
yum install cmake

new problems:

+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.Es3Tnw
+ umask 022
+ cd /home/$USER/rpmbuild/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ cd speed-dreams-2.0.0-b1-r3937-src
+ CFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables'
+ export CFLAGS
+ CXXFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables'
+ export CXXFLAGS
+ FFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables'
+ export FFLAGS
+ /usr/bin/cmake -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_INSTALL_LIBDIR:PATH=/usr/lib -DINCLUDE_INSTALL_DIR:PATH=/usr/include -DLIB_INSTALL_DIR:PATH=/usr/lib -DSYSCONF_INSTALL_DIR:PATH=/etc -DSHARE_INSTALL_PREFIX:PATH=/usr/share -DBUILD_SHARED_LIBS:BOOL=ON -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_BUILD_TYPE:STRING=Release -DOPTION_OFFICIAL_ONLY:BOOL=ON
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/lib/ccache/gcc
-- Check for working C compiler: /usr/lib/ccache/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/lib/ccache/c++
-- Check for working CXX compiler: /usr/lib/ccache/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Looking for include files HAVE_INTTYPES_H
-- Looking for include files HAVE_INTTYPES_H - found
-- Looking for include files HAVE_MEMORY_H
-- Looking for include files HAVE_MEMORY_H - found
-- Looking for include files HAVE_STDINT_H
-- Looking for include files HAVE_STDINT_H - found
-- Looking for include files HAVE_STDLIB_H
-- Looking for include files HAVE_STDLIB_H - found
-- Looking for include files HAVE_STRINGS_H
-- Looking for include files HAVE_STRINGS_H - found
-- Looking for include files HAVE_STRING_H
-- Looking for include files HAVE_STRING_H - found
-- Looking for include files HAVE_SYS_STAT_H
-- Looking for include files HAVE_SYS_STAT_H - found
-- Looking for include files HAVE_SYS_TYPES_H
-- Looking for include files HAVE_SYS_TYPES_H - found
-- Looking for include files HAVE_UNISTD_H
-- Looking for include files HAVE_UNISTD_H - found
-- Looking for strndup
-- Looking for strndup - found
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib/libX11.so
-- Looking for sin in m
-- Looking for sin in m - found
-- Looking for XShmCreateImage in Xext
-- Looking for XShmCreateImage in Xext - found
-- Looking for IceSetIOErrorHandler in ICE
-- Looking for IceSetIOErrorHandler in ICE - found
-- Looking for SmsSetErrorHandler in SM
-- Looking for SmsSetErrorHandler in SM - found
-- Looking for XtDisplay in Xt
-- Looking for XtDisplay in Xt - found
-- Looking for XOpenDevice in Xi
-- Looking for XOpenDevice in Xi - found
-- Looking for XmuSimpleErrorHandler in Xmu
-- Looking for XmuSimpleErrorHandler in Xmu - found
-- Looking for XF86VidModeSetViewPort in Xxf86vm
-- Looking for XF86VidModeSetViewPort in Xxf86vm - found
-- Looking for XRenderSetSubpixelOrder in Xrender
-- Looking for XRenderSetSubpixelOrder in Xrender - found
-- Looking for XRRQueryVersion in Xrandr
-- Looking for XRRQueryVersion in Xrandr - found
-- Looking for dlopen in dl
-- Looking for dlopen in dl - found
-- Looking for PLib - found (/usr/lib/libplibsg.so)
-- Looking for library plib/ul - found
-- Looking for library plib/js - found
-- Looking for library plib/sg - found
-- Looking for library plib/sl - found
-- Looking for library plib/ssg - found
-- Looking for library plib/ssgaux - found
-- Found OpenAL: /usr/lib/libopenal.so
-- Looking for library OpenAL - found
-- Looking for library ENET - found
-- Found OpenGL: /usr/lib/libGL.so
-- Looking for library OpenGL - found
-- Looking for library OpenGL/GLU - found
-- Looking for libraries X11 - found
-- Found ZLIB: /usr/include (found version "1.2.5")
-- Looking for library Zlib - found
-- Found PNG: /usr/lib/libpng.so
-- Looking for library PNG - found
-- Looking for include files CMAKE_HAVE_PTHREAD_H
-- Looking for include files CMAKE_HAVE_PTHREAD_H - found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Looking for library SDL - NOT found
CMake Error at cmake/macros.cmake:727 (MESSAGE):
Cannot find SDL header files
Call Stack (most recent call first):
src/libs/tgf/CMakeLists.txt:5 (ADD_SDL_INCLUDEDIR)


-- Configuring incomplete, errors occurred!
error: Bad exit status from /var/tmp/rpm-tmp.Es3Tnw (%build)


RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.Es3Tnw (%build)

So I needed to install SDL-devel package also.

Also following error sugested that I need to 'mv speed-dreams.desktop ~/rpmbuild/SOURCES/'
Error on file "/home/$USER/rpmbuild/SOURCES/speed-dreams.desktop": No such file or directory

After that I got rpath errors so I tried removing previously created ~/.rpmmacros with 'rm ~/.rpmmacros'

SUCCESS! :dance:

Wrote: /home/$USER/rpmbuild/SRPMS/speed-dreams-2.0.0-b1_r3937.2.fc15.src.rpm
Wrote: /home/$USER/rpmbuild/RPMS/i686/speed-dreams-2.0.0-b1_r3937.2.fc15.i686.rpm
Wrote: /home/$USER/rpmbuild/RPMS/i686/speed-dreams-robots-base-2.0.0-b1_r3937.2.fc15.i686.rpm
Wrote: /home/$USER/rpmbuild/RPMS/i686/speed-dreams-devel-2.0.0-b1_r3937.2.fc15.i686.rpm
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.12Brts
+ umask 022
+ cd /home/$USER/rpmbuild/BUILD
+ /bin/rm -rf /home/$USER/rpmbuild/BUILDROOT/speed-dreams-2.0.0-b1_r3937.2.fc15.i386
+ exit 0

semiRocket
18th October 2011, 04:50 AM
This are the messages from console:

the lib simuv2.1.so exits
# ll /usr/lib64/games/speed-dreams-2/modules/simu/simuv2.1.so
-rwxr-xr-x 1 root root 373769 11. Okt 22:38 /usr/lib64/games/speed-dreams-2/modules/simu/simuv2.1.so
# chmod 777 /usr/lib64/games/speed-dreams-2/modules/simu/simuv2.1.so

I see what you mean, I'm getting the same error when I try to tun a race.


Tried coping simuv2.1.so from this package http://www.jklm.no/packages/community/i686/speed-dreams/ and game worked, also I noticed there is a great difference in file size if that is relevant somehow?

-rwxr-xr-x. 1 root root 178424 Oct 4 22:30 simuv2.1.so
-rwxr-xr-x. 1 root root 328797 Oct 17 01:54 simuv2.1.so.orig
-rwxr-xr-x. 1 root root 327636 Oct 17 01:54 simuv2.so
-rwxr-xr-x. 1 root root 624303 Oct 17 01:54 simuv3.so

TheBigRed
19th October 2011, 10:15 AM
I see what you mean, I'm getting the same error when I try to tun a race.


Tried coping simuv2.1.so from this package http://www.jklm.no/packages/community/i686/speed-dreams/ and game worked, also I noticed there is a great difference in file size if that is relevant somehow?

-rwxr-xr-x. 1 root root 178424 Oct 4 22:30 simuv2.1.so
-rwxr-xr-x. 1 root root 328797 Oct 17 01:54 simuv2.1.so.orig
-rwxr-xr-x. 1 root root 327636 Oct 17 01:54 simuv2.so
-rwxr-xr-x. 1 root root 624303 Oct 17 01:54 simuv3.so

there is a known problem with simuv2.1.so, because it has libsolid.so as dependency.
occurs only on fedora not on ubunty, and that is the reason why the simuv2.1 lib is
bigger than on archlinux or ubuntu.

leigh123linux
19th October 2011, 12:03 PM
there is a known problem with simuv2.1.so, because it has libsolid.so as dependency.
occurs only on fedora not on ubunty, and that is the reason why the simuv2.1 lib is
bigger than on archlinux or ubuntu.


It is more likely that you have a missing build requirement (redhat-rpm-config), without it I believe the rpm is not stripped of the debuginfo .

TheBigRed
19th October 2011, 02:02 PM
It is more likely that you have a missing build requirement (redhat-rpm-config), without it I believe the rpm is not stripped of the debuginfo .

The following parameter should be added to the cmake line (for building
w/o debug information), but not tested.
--
-DOPTION_DEBUG:STRING=OFF
--

---------- Post added at 03:02 PM ---------- Previous post was at 02:47 PM ----------

I see what you mean, I'm getting the same error when I try to tun a race.


Tried coping simuv2.1.so from this package http://www.jklm.no/packages/community/i686/speed-dreams/ and game worked, also I noticed there is a great difference in file size if that is relevant somehow?

-rwxr-xr-x. 1 root root 178424 Oct 4 22:30 simuv2.1.so
-rwxr-xr-x. 1 root root 328797 Oct 17 01:54 simuv2.1.so.orig
-rwxr-xr-x. 1 root root 327636 Oct 17 01:54 simuv2.so
-rwxr-xr-x. 1 root root 624303 Oct 17 01:54 simuv3.so

please use the last spec file from:
http://forums.fedoraforum.org/showpost.php?p=1519745&postcount=12

semiRocket
21st October 2011, 07:55 PM
Your last change works for me!

[root@00-25-22-b5-7b-09 simu]# ls -l
total 1256
-rwxr-xr-x. 1 root root 328721 Oct 21 20:18 simuv2.1.so
-rwxr-xr-x. 1 root root 325401 Oct 21 20:18 simuv2.so
-rwxr-xr-x. 1 root root 624029 Oct 21 20:18 simuv3.so


It think there could be some issues with the speed-dreams.desktop. Name of the file could overwrite previous version speed dreams installation? Maybe name it like all other files e.g. speed-dreams-2.desktop

Also

[Desktop Entry]
Name=speed-dreams

I'm suggesting more user friendly name for this entry, because it appears under menu. Maybe
Name=Speed Dreams 2

TheBigRed
22nd October 2011, 04:24 PM
Your last change works for me!

[root@00-25-22-b5-7b-09 simu]# ls -l
total 1256
-rwxr-xr-x. 1 root root 328721 Oct 21 20:18 simuv2.1.so
-rwxr-xr-x. 1 root root 325401 Oct 21 20:18 simuv2.so
-rwxr-xr-x. 1 root root 624029 Oct 21 20:18 simuv3.so


It think there could be some issues with the speed-dreams.desktop. Name of the file could overwrite previous version speed dreams installation? Maybe name it like all other files e.g. speed-dreams-2.desktop

Also

[Desktop Entry]
Name=speed-dreams

I'm suggesting more user friendly name for this entry, because it appears under menu. Maybe
Name=Speed Dreams 2

Thanks, done.

TheBigRed
19th January 2012, 08:12 PM
Hi,

attached are the RPM SPEC File for speed-dreams-2.0.0-rc1_r4420.5.fc16

speed-dreams.spec (http://www.sendspace.com/file/6x6c65)
speed-dreams.desktop (http://www.sendspace.com/file/if1iqt)

please test it and give feedback.

PabloTwo
19th January 2012, 09:24 PM
I haven't tried building this package, but one small suggestion: You could eliminate the need for Source10: speed-dreams.desktop from the spec file, and the .desktop file itself by just creating the speed-dreams.desktop file from within the spec file itself. It's really easy to do. Here's an example from one of my spec files.. goes in the %install section:
mkdir -p $RPM_BUILD_ROOT%{_desktopdir}
cat > $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop << EOF
[Desktop Entry]
Name=Evolvotron
Comment=Interactive generative art software
Exec=%{name}
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=Graphics;
EOF

desktop-file-validate $RPM_BUILD_ROOT%{_desktopdir}/evolvotron.desktop

TheBigRed
20th January 2012, 07:41 AM
The creating of a *desktop-file with the cat command is possible but for Fedora unusual. Mach prefer an extra text file and bind them as a source*.

semiRocket
20th January 2012, 09:30 PM
Hi

bash-4.2$ rpm -q speed-dreams-2.0.0-rc1_r4420.5.fc16.i686
speed-dreams-2.0.0-rc1_r4420.5.fc16.i686
bash-4.2$ rpm -q speed-dreams-robots-base-2.0.0-rc1_r4420.5.fc16.i686
speed-dreams-robots-base-2.0.0-rc1_r4420.5.fc16.i686
bash-4.2$ /usr/games/speed-dreams-2
/usr/games/speed-dreams-2: error while loading shared libraries: libtgf.so: cannot open shared object file: No such file or directory

[root@00-25-22-b5-7b-09 i686]# find /usr -name libtgf.so
/usr/lib/games/speed-dreams-2/lib/libtgf.so

TheBigRed
20th January 2012, 11:01 PM
Hi,

attached are a new RPM SPEC File for speed-dreams-2.0.0-rc1_r4420.9.fc16

speed-dreams.spec (http://www.sendspace.com/file/nnt4s3)
speed-dreams-2.desktop (http://www.sendspace.com/file/sb84lm)
speed-dreams-2.conf (http://www.sendspace.com/file/0na1ip)

PabloTwo
21st January 2012, 12:43 AM
Your link above titled "speed-dreams-2.dekstop" downloads the speed-dreams.spec file.

semiRocket
21st January 2012, 12:56 PM
Hi,

I get the same error as before

bash-4.2$ rpm -q speed-dreams-robots-base-2.0.0-rc1_r4420.6.fc16.i686
speed-dreams-robots-base-2.0.0-rc1_r4420.6.fc16.i686
bash-4.2$ rpm -q speed-dreams-2.0.0-rc1_r4420.6.fc16.i686
speed-dreams-2.0.0-rc1_r4420.6.fc16.i686
bash-4.2$ /usr/games/speed-dreams-2
/usr/games/speed-dreams-2: error while loading shared libraries: libtgf.so: cannot open shared object file: No such file or directory

TheBigRed
21st January 2012, 02:02 PM
Hi,

I get the same error as before

bash-4.2$ rpm -q speed-dreams-robots-base-2.0.0-rc1_r4420.6.fc16.i686
speed-dreams-robots-base-2.0.0-rc1_r4420.6.fc16.i686
bash-4.2$ rpm -q speed-dreams-2.0.0-rc1_r4420.6.fc16.i686
speed-dreams-2.0.0-rc1_r4420.6.fc16.i686
bash-4.2$ /usr/games/speed-dreams-2
/usr/games/speed-dreams-2: error while loading shared libraries: libtgf.so: cannot open shared object file: No such file or directory

please run ldconfig in a terminal window

ldconfig -v |grep speed-dreams-2

on a 64bit system it returns:
/usr/lib64/games/speed-dreams-2/lib:

on a 32bit system:
/usr/lib/games/speed-dreams-2/lib:

---------- Post added at 03:02 PM ---------- Previous post was at 03:01 PM ----------

Your link above titled "speed-dreams-2.dekstop" downloads the speed-dreams.spec file.

thanks, link corrected.

semiRocket
21st January 2012, 11:08 PM
Hi,

bash-4.2$ ldconfig -v |grep speed-dreams-2
ldconfig: Can't stat /usr/lib64/games/speed-dreams-2/lib: No such file or directory
/usr/lib/games/speed-dreams-2/lib:
ldconfig: Can't create temporary cache file /etc/ld.so.cache~: Permission denied

EDIT:
I've logged out/in and now when I type /usr/games/speed-dreams-2 the game runs ok.

---------- Post added 22nd January 2012 at 12:08 AM ---------- Previous post was 21st January 2012 at 03:51 PM ----------

Figured it out...

I have to enter ldconfig as root, then the game runs, otherwise it gives error of missing libtgf.so.

After reboot I have to repeat the process again.

TheBigRed
27th January 2012, 08:10 PM
Hi,

attached are a new RPM SPEC File for speed-dreams-2.0.0-0.1.rc1_r4420.17.fc16.x86_64

speed-dreams.spec (http://www.sendspace.com/file/oncv67)
speed-dreams-2.desktop (http://www.sendspace.com/file/m4kicy)
speed-dreams-2.conf (http://www.sendspace.com/file/xm0hk7)

TheBigRed
9th April 2012, 02:44 PM
Hi,

attached are a new RPM SPEC File for speed-dreams-2.0.0-0.1.rc2_r4687.21.fc16.x86_64

speed-dreams.spec (http://www.sendspace.com/file/g8sd98)
speed-dreams.desktop (http://www.sendspace.com/file/azhud0)

TheBigRed
16th June 2012, 07:30 PM
Building SD2.0.0 binaries for Fedora 16/17/18

A description is now available on the speed dreams homepage (http://dev.speed-dreams.org/Martin/index.html)

TheBigRed
22nd August 2012, 03:58 PM
speed-dreams is now available in the Fedora stable repo and can be tested and installed with the following command:

# su -c 'yum install speed-dreams'

It's also available for fc16, fc17, fc18 and fc19

since you have installed it, maybe you could also fire-up the thing and give some karma on Bohdi (https://admin.fedoraproject.org/updates/FEDORA-2012-12602/speed-dreams-2.1.0-11.trunk_r4810.fc17)?