Fedora Linux Support Community & Resources Center
  #1  
Old 23rd June 2010, 05:37 PM
TheBigRed Offline
Registered User
 
Join Date: Mar 2008
Location: Germany
Posts: 225
linuxfedorafirefox
rpm spec file for Speed Dreams

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
Reply With Quote
  #2  
Old 25th June 2010, 08:20 AM
TheBigRed Offline
Registered User
 
Join Date: Mar 2008
Location: Germany
Posts: 225
windows_xp_2003firefox
Re: rpm spec file for Speed Dreams

In the meantime I mad a spec file for speed dreams (quick & dirty without package splitting).
Attached Files
File Type: spec speed-dreams-1.4.0-r2307-1.fc13.spec (4.2 KB, 146 views)

Last edited by TheBigRed; 25th June 2010 at 08:35 AM.
Reply With Quote
  #3  
Old 25th June 2010, 10:32 PM
TheBigRed Offline
Registered User
 
Join Date: Mar 2008
Location: Germany
Posts: 225
linuxfedorafirefox
Re: rpm spec file for Speed Dreams

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
Attached Files
File Type: spec speed-dreams-1.4.0-r2307-2.fc13.spec (4.7 KB, 138 views)
Reply With Quote
  #4  
Old 21st November 2010, 03:31 AM
john3voltas Offline
Registered User
 
Join Date: Nov 2010
Posts: 4
linuxfirefox
Re: rpm spec file for Speed Dreams

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:
Code:
# 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:
Code:
# 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
Reply With Quote
  #5  
Old 21st November 2010, 04:17 AM
Seve's Avatar
Seve Offline
Retired Community Manager
 
Join Date: Oct 2004
Location: The GTA, Ontario, Canada
Age: 54
Posts: 12,376
linuxfirefox
Re: rpm spec file for Speed Dreams

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.
__________________
Registered Linux User: #384977
.................................................. ............
See the Links below for more Help and those much wanted extras ... :)
Reply With Quote
  #6  
Old 21st November 2010, 04:52 AM
john3voltas Offline
Registered User
 
Join Date: Nov 2010
Posts: 4
linuxfirefox
Re: rpm spec file for Speed Dreams

Excellent tip, man, it worked.
Thanks
Reply With Quote
  #7  
Old 22nd November 2010, 07:13 AM
john3voltas Offline
Registered User
 
Join Date: Nov 2010
Posts: 4
linuxfirefox
Re: rpm spec file for Speed Dreams

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
Reply With Quote
  #8  
Old 23rd November 2010, 06:28 AM
Seve's Avatar
Seve Offline
Retired Community Manager
 
Join Date: Oct 2004
Location: The GTA, Ontario, Canada
Age: 54
Posts: 12,376
linuxfirefox
Re: rpm spec file for Speed Dreams

Quote:
Originally Posted by john3voltas View Post
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/...tml/RPM_Guide/
__________________
Registered Linux User: #384977
.................................................. ............
See the Links below for more Help and those much wanted extras ... :)
Reply With Quote
  #9  
Old 11th October 2011, 10:10 PM
TheBigRed Offline
Registered User
 
Join Date: Mar 2008
Location: Germany
Posts: 225
linuxfirefox
Re: rpm spec file for Speed Dreams

Hi,

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

Code:
%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 ?

Last edited by TheBigRed; 13th October 2011 at 02:59 PM.
Reply With Quote
  #10  
Old 11th October 2011, 10:13 PM
TheBigRed Offline
Registered User
 
Join Date: Mar 2008
Location: Germany
Posts: 225
linuxfirefox
Re: rpm spec file for Speed Dreams

This are the messages from console:

Code:
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
Reply With Quote
  #11  
Old 13th October 2011, 02:13 PM
TheBigRed Offline
Registered User
 
Join Date: Mar 2008
Location: Germany
Posts: 225
windows_xp_2003firefox
Re: rpm spec file for Speed Dreams

The rpm package contains the shared library simuv2.1.so, but the libsolid.so is missing

Code:
[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
Code:
[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.
Reply With Quote
  #12  
Old 14th October 2011, 02:36 PM
TheBigRed Offline
Registered User
 
Join Date: Mar 2008
Location: Germany
Posts: 225
linuxfirefox
Re:new rpm spec file for Speed Dreams 2.0.0, please test

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
Attached Files
File Type: desktop speed-dreams-2.desktop (225 Bytes, 64 views)
File Type: spec speed-dreams.spec (4.7 KB, 70 views)

Last edited by TheBigRed; 22nd October 2011 at 04:23 PM. Reason: newer version of rpm spec file
Reply With Quote
  #13  
Old 16th October 2011, 03:21 PM
semiRocket Offline
Registered User
 
Join Date: Oct 2011
Posts: 9
linuxopera
Re: new rpm spec file for Speed Dreams 2.0.0, please test

Quote:
Originally Posted by TheBigRed View Post
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:
Code:
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:
Code:
+ 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?

Last edited by semiRocket; 16th October 2011 at 03:23 PM.
Reply With Quote
  #14  
Old 16th October 2011, 07:05 PM
TheBigRed Offline
Registered User
 
Join Date: Mar 2008
Location: Germany
Posts: 225
linuxfirefox
Re: rpm spec file for Speed Dreams

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, and the seperate *.desktop-file her.

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
Code:
%__arch_install_post /usr/lib/rpm/check-rpaths /usr/lib/rpm/check-buildroot
and log off/ log in again.
Reply With Quote
  #15  
Old 17th October 2011, 01:26 AM
semiRocket Offline
Registered User
 
Join Date: Oct 2011
Posts: 9
linuxopera
Smile Re: rpm spec file for Speed Dreams

Hi,

have done the following, followed by Log Out / Log In process
Code:
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


Code:
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
Code:
yum install cmake
new problems:

Code:
+ 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/'
Code:
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!

Code:
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
Reply With Quote
Reply

Tags
dreams, file, rpm, spec, speed

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
rpm spec file macro help FunkyRes Programming & Packaging 1 14th September 2008 02:36 PM
Create own rpm - need help with spec file den23513 Using Fedora 2 6th July 2008 08:25 PM
Wireless dreams Silvine Hardware & Laptops 9 6th February 2007 06:41 AM
building a SPEC file jim Programming & Packaging 5 2nd October 2005 09:40 PM
About the spec file in emacs-21.4-2.src.rpm AlaxMAX Using Fedora 2 19th April 2005 08:41 AM


Current GMT-time: 04:42 (Saturday, 25-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat