Author Topic: Dolphin wii emulator ready to test  (Read 1656 times)

Offline Yue

  • Full Member
  • ***
  • Posts: 95
Dolphin wii emulator ready to test
« on: March 20, 2011, 12:51:01 AM »
Hi, I'm trying to package dolphin emulator, I made the spec file from scratch since i could not find a SRPM:

Code: [Select]
%define name dolphin-emulator
%define version r7348
%define release %mkrel 1

%define major 1
%define libsoil %mklibname soil %{major}
%define libsoildev %mklibname soil %{major} -d

Name: %{name}
Version: %{version}
Release: %{release}
Group: Emulators
License: GPLv2
Source0: %{name}-%{version}.tar.xz
URL: http://www.dolphin-emulator.com/
Summary: Dolphin is a Gamecube and Wii emulator.
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
BuildRequires: subversion
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: libwxgtk2.8-devel
BuildRequires: libgtk+2.0_0-devel
BuildRequires: libCg-devel
BuildRequires: libbluez-devel
BuildRequires: libxrandr2-devel
BuildRequires: libxext6-devel
BuildRequires: libreadline5-devel
BuildRequires: libalsa2-devel
BuildRequires: libglew-devel
BuildRequires: liblzo2_2-devel
BuildRequires: libSDL-devel
BuildRequires: libsfml-system-devel
BuildRequires: libpulseaudio-devel
BuildRequires: libsfml-network-devel
BuildRequires: libgomp-devel
Requires: libwxgtk2.8
Requires: libgtk+2.0_0
Requires: libCg
Requires: libbluez3
Requires: libxrandr2
Requires: libxext6
Requires: libreadline5
Requires: libalsa2
Requires: libglew1.5
Requires: liblzo2_2
Requires: libSDL1.2_0
Requires: libsfml-system1.6
Requires: libpulseaudio0
Requires: libsfml-network1.6
Requires: libgomp1

%description
Dolphin is a Gamecube and Wii emulator. Most games run perfectly or with minor
bugs. Games are playable at HD quality, up to 1080p. Dolphin comes with many
features. Some are even not available on the original Wii gaming console.

  * You can save a running game whenever you want and reload a state.
  * Anti-Aliasing and Anisotropic Filtering makes the games more
    brilliant and realistic. Typically a game looks much better on Dolphin
    than on the original Wii console. Actual quality depends on the graphics card.
  * Play on maximum resolution in high definition up to 1080p. This is a remarkable
    feature the original Wii console lacks of.
  * Connect your Wiimote and Nunchuck to your computer for a better gaming experience.

%package -n %{libsoil}
Summary: SOIL dynamic libraries
Group: System/Libraries
Provides: %{libsoil} = %{major}

%description -n %{libsoil}
SOIL dynamic libraries

%package -n %{libsoildev}
Summary: SOIL header files
Group: Development/C++
Provides: %{libsoildev} = %{major}

%description -n %{libsoildev}
Includes files for developing programs based on libsoil

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

%build
%cmake
%make

%install
rm -fr $RPM_BUILD_ROOT
%makeinstall_std -C build

%post
%update_menus

%postun
%clean_menus

%clean
rm -fr $RPM_BUILD_ROOT

%changelog
* Mon Mar 14 2011 xyz_D <wero.dan at gmail.com> r7345-1pclos2010
-create

Everything goes fine, it preps ok, compiles ok but when trying to link the final binary it fails. This happens only while trying to compile in the RPM environment, if I try to compile as usual it compiles and links ok. Thanks in advance.
« Last Edit: March 24, 2011, 01:03:52 AM by xyz_D »

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Linking issues with dolphin emulator
« Reply #1 on: March 20, 2011, 05:23:22 AM »
I've read through your spec twice. I do not see where you have the menu entry created nor where the symlink is created. Did I miss them?

A couple other things:
Quote
%description
Dolphin is a Gamecube and Wii emulator. Most games run perfectly or with minor
bugs. Games are playable at HD quality, up to 1080p. Dolphin comes with many
features. Some are even not available on the original Wii gaming console.

Should be Dolphin-emulator. Dolphin is a file manager.

Quote
%changelog
* Mon Mar 14 2011 xyz_D <wero.dan at gmail.com> r7345-1pclos2010
-create

There should be a space after the "-" thus making it
Quote
- create

Offline Yue

  • Full Member
  • ***
  • Posts: 95
Re: Linking issues with dolphin emulator
« Reply #2 on: March 20, 2011, 01:33:29 PM »
Quote
I've read through your spec twice. I do not see where you have the menu entry created nor where the symlink is created. Did I miss them?
I wanted to try and compile it first, then fine-tune it.

Quote
Should be Dolphin-emulator. Dolphin is a file manager.
Sorry, forgot that. :-\ I'll change it right this instant.

Quote
There should be a space after the "-" thus making it
Will also change that right now.

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Linking issues with dolphin emulator
« Reply #3 on: March 20, 2011, 01:39:19 PM »
Quote
I've read through your spec twice. I do not see where you have the menu entry created nor where the symlink is created. Did I miss them?
I wanted to try and compile it first, then fine-tune it.

As it is in the title of your thread asking for help with it, and as you posted your spec file, it seemed reasonable to look for it

Quote
Quote
Should be Dolphin-emulator. Dolphin is a file manager.
Sorry, forgot that. :-\ I'll change it right this instant.

Quote
There should be a space after the "-" thus making it
Will also change that right now.

 :) It's the little things that matter often enough.

Offline Yue

  • Full Member
  • ***
  • Posts: 95
Re: Linking issues with dolphin emulator
« Reply #4 on: March 20, 2011, 07:08:10 PM »
Thank you. Another issue I forgot to mention: Dolphin-emulator does not have a stable release, it's all pulled from their SVN. My question is, is it ok to package this software? I've tested it and found it to be quite stable, but I'd like to know what the experienced packagers think.

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Linking issues with dolphin emulator
« Reply #5 on: March 21, 2011, 01:55:38 AM »
If you want other packagers to test your package, you need to provide a link to download your SRPM. Dropbox can be used for this. Also, modify your first post to change the title to something like "dolphin emulator ready to test."

Offline Yue

  • Full Member
  • ***
  • Posts: 95
Re: Linking issues with dolphin emulator
« Reply #6 on: March 21, 2011, 01:44:44 PM »
I found the problem. Dolphin-emulator refuses to link when using the %cmake macro, but if I replace it with "cmake -DCMAKE_INSTALL_PREFIX=%{_prefix}" it builds ok. Is it ok to use this instead of the macro?

Offline Texstar

  • Administrator
  • Super Villain
  • *****
  • Posts: 12525
Re: Linking issues with dolphin emulator
« Reply #7 on: March 21, 2011, 01:48:05 PM »
I found the problem. Dolphin-emulator refuses to link when using the %cmake macro, but if I replace it with "cmake -DCMAKE_INSTALL_PREFIX=%{_prefix}" it builds ok. Is it ok to use this instead of the macro?

Yes of course.

Thanks to everyone who donates. You keep the servers running.

Offline Yue

  • Full Member
  • ***
  • Posts: 95
Re: Linking issues with dolphin emulator
« Reply #8 on: March 21, 2011, 03:52:50 PM »
At long last it builds the rpms! *tears of joy*.

Here is the SRPM and here is the binary rpm. Some features are disabled and there are still no menu entries. you can start the emulator by issuing "dolphin-emu" in konsole. Please test them and report any bugs. Thank you. :)

EDIT: For those wondering why no menu entries yet, I've been unable to find the icon in the sources  :-[
« Last Edit: March 21, 2011, 04:03:57 PM by xyz_D »

Offline Crow

  • Hero Member
  • *****
  • Posts: 8770
  • OBJECTS IN MIRROR... ARE LOSING
Re: Dolphin wii emulator ready to test
« Reply #9 on: March 26, 2011, 12:18:27 AM »
Maybe this:



Devs modified image
« Last Edit: March 26, 2011, 12:24:10 AM by Crow »
I shall pass this way but once;
any good therefore that I can do,
or any kindness that I can show
let me not defer nor neglect it,
for I shall not pass this way again.

Linux User #330412

Offline coffeetime

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3426
  • Send me an Angel
Re: Dolphin wii emulator ready to test
« Reply #10 on: March 26, 2011, 05:21:36 AM »
Or this ;D




   
« Last Edit: March 26, 2011, 05:25:05 AM by coffeetime »
PCLinuxOS e17 Club member/e17 video/Wifi problems?
those who complain rarely read. those who read rarely complain