[ X ]
Installation OpenRA on Gentoo
using ebuild from unofficial repository
Post new topic   Reply to topic Goto page 1, 2, 3, 4, 5, 6  »
View previous topic :: View next topic  
Author Message
ddd
Level: 50



Position: Registered User
Joined: 23 Oct 2010
Posts: 177
Kel: 181  [ Donate ]

Online Status: Offline
PostPosted: Fri Oct 29, 2010 6:42 pm    Post subject: Installation OpenRA on Gentoo Reply with quote

OpenRA was included in portage tree tnx to hasufell. If you want have more fresh ebuilds of openra (aka playtests) you can try to add dr overlay.

To use the dr overlay you need to emerge layman and add that overlay:
Code:
emerge -va layman
echo "source /var/lib/layman/make.conf" >> /etc/make.conf

P.S. For Gentoo installations after 2012-09-09 you should use /etc/portage/make.conf instead of /etc/make.conf.

Code:
nano -w /etc/layman/layman.cfg

Add "http://github.com/cerebrum/dr/raw/master/repo.xml" URL to your remote lists of overlays in layman.cfg like in example below:
Code:
overlays  : http://www.gentoo.org/proj/en/overlays/repositories.xml
            http://github.com/cerebrum/dr/raw/master/repo.xml

Add the dr overlay from the remote list to your locally installed overlays:
Code:
layman -a dr

You can then regularly update to the latest reviewed revision:
Code:
layman -s dr

or alternatively for all your layman overlays:
Code:
layman -S

Then you may emerge OpenRA (game will be compiled from sources on your machine) from that overlay:
Code:
emerge -av openra

Or you may also emerge OpenRA-Bin (binary package wich was compiled by OpenRA team) from that overlay:
Code:
emerge -av openra-bin

(This ebuild only tested on amd64 branch, but you probably may test it on another one.)

If you have problems starting OpenRA on some exotic video card you should try to add cg USE-flag and start the game with the alternative Cg renderer (see the icons in the Games section of the Main menu).
Code:
nano -w /etc/portage/package.use

And add the following string in it for example:
Code:
games-strategy/openra cg


If you have any questions you can ask me in IRC. But I recommend read the following manual first:
Code:
less /usr/share/doc/openra-20121104/README.gentoo.bz2

(Your installed version of the game may differ)

P.S. P.S. The following posts there are outdated except of announcements of the new ebuilds in the end.


Last edited by ddd on Fri Dec 21, 2012 12:41 pm; edited 8 times in total
Back to top
View user's profile Find all posts by ddd Send private message Send e-mail ICQ Number
ddd
Level: 50



Position: Registered User
Joined: 23 Oct 2010
Posts: 177
Kel: 181  [ Donate ]

Online Status: Offline
PostPosted: Sat Nov 06, 2010 2:36 pm  Reply with quote

New ebuild commited, but you probably need to add to FETCHCOMMAND variable in '/etc/make.conf' parameter '--no-check-certificate':
Code:
FETCHCOMMAND="/usr/bin/wget -t 5 -T 60 --passive-ftp --no-check-certificate  -O \"\${DISTDIR}/\${FILE}\" \"\${URI}\""


If you are using app-portage/getdelta, then you probably need to change the following command in '/etc/deltup/getdelta.rc':
Code:
# command to use for downloading
FETCH="/usr/bin/wget -c -t 1 --passive-ftp --no-check-certificate"


P.S. Since Thu Mar 10, 2011 8:44 pm you DOESN'T need to use '--no-check-certificate' option by adding to FETCHCOMMAND variable in '/etc/make.conf' ALREADY! ALL ebuilds are written with EAPI 2 NOW!


Last edited by ddd on Thu Mar 10, 2011 4:59 pm; edited 1 time in total
Back to top
View user's profile Find all posts by ddd Send private message Send e-mail ICQ Number
ddd
Level: 50



Position: Registered User
Joined: 23 Oct 2010
Posts: 177
Kel: 181  [ Donate ]

Online Status: Offline
PostPosted: Sat Nov 06, 2010 8:11 pm  Reply with quote

New ebuild (20101107_alpha_rc1) added.

Use '--no-check-certificate' option for now.
Back to top
View user's profile Find all posts by ddd Send private message Send e-mail ICQ Number
ddd
Level: 50



Position: Registered User
Joined: 23 Oct 2010
Posts: 177
Kel: 181  [ Donate ]

Online Status: Offline
PostPosted: Sun Nov 21, 2010 3:14 pm  Reply with quote

I can't install OpenRA. New (20101121-2) version of OpenRA have the following bug:
Code:
...
Installing OpenRA to /var/tmp/portage/games-strategy/openra-20101121_alpha_rc1-r1/image//usr/local/share/openra
cp: omitting directory `mods/cnc/bits'
cp: omitting directory `mods/cnc/chrome'
cp: omitting directory `mods/cnc/maps'
cp: omitting directory `mods/cnc/packages'
cp: omitting directory `mods/cnc/rules'
cp: omitting directory `mods/cnc/sequences'
cp: omitting directory `mods/cnc/tilesets'
cp: omitting directory `mods/cnc/uibits'
make: [install] Error 1 (ignored)
cp: omitting directory `mods/ra/bits'
cp: omitting directory `mods/ra/chrome'
cp: omitting directory `mods/ra/maps'
cp: omitting directory `mods/ra/packages'
cp: omitting directory `mods/ra/rules'
cp: omitting directory `mods/ra/tilesets'
cp: omitting directory `mods/ra/uibits'
make: [install] Error 1 (ignored)
cp: cannot stat `shaders': No such file or directory
make: *** [install] Error 1

It looks like you guys either forgave to exclude the following line from your Makefile:155
Code:
 @cp -r shaders $(INSTALL_DIR)

or forgave to add 'shaders' path to new release package.
Back to top
View user's profile Find all posts by ddd Send private message Send e-mail ICQ Number
ddd
Level: 50



Position: Registered User
Joined: 23 Oct 2010
Posts: 177
Kel: 181  [ Donate ]

Online Status: Offline
PostPosted: Sun Nov 21, 2010 3:52 pm  Reply with quote

It looks like you forgave also to exclude the following line:
Code:
Makefile:158
@$(INSTALL_PROGRAM) thirdparty/WindowsBase.dll $(INSTALL_DIR)

After exclusion of that 2 lines, I tried to execute OpenRA and it crashed with the following exception log:
Code:
xor@ddd /usr/local/share/openra $ mono OpenRA.Game.exe Game.Mods=ra
Loading settings file /home/xor/OpenRA/settings.yaml
Using Gl renderer

Unhandled Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidProgramException: Unsupported GPU. OpenRA requires the GL_ARB_vertex_shader and GL_ARB_fragment_shader extensions.
  at OpenRA.Renderer.Glsl.GraphicsDevice..ctor (Int32 width, Int32 height, WindowMode window, Boolean vsync) [0x00000] in <filename unknown>:0
  at (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke (object,object[],System.Exception&)
  at System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
  --- End of inner exception stack trace ---
  at System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
  at System.Reflection.MonoCMethod.Invoke (BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
  at System.Reflection.ConstructorInfo.Invoke (System.Object[] parameters) [0x00000] in <filename unknown>:0
  at OpenRA.Graphics.Renderer.CreateDevice (System.Reflection.Assembly rendererDll, Int32 width, Int32 height, WindowMode window, Boolean vsync) [0x00000] in <filename unknown>:0
  at OpenRA.Graphics.Renderer.Initialize (WindowMode windowMode) [0x00000] in <filename unknown>:0
  at OpenRA.Game.Initialize (OpenRA.Arguments args) [0x00000] in <filename unknown>:0
  at OpenRA.Program.Run (System.String[] args) [0x00000] in <filename unknown>:0
  at OpenRA.Program.Main (System.String[] args) [0x00000] in <filename unknown>:0

But I have GeForce 7600 GS PCI-E card. Maybe I need to try with cg toolkit or try to install something else package instead of media-gfx/nvidia-cg-toolkit?
Back to top
View user's profile Find all posts by ddd Send private message Send e-mail ICQ Number
ddd
Level: 50



Position: Registered User
Joined: 23 Oct 2010
Posts: 177
Kel: 181  [ Donate ]

Online Status: Offline
PostPosted: Sun Nov 21, 2010 4:23 pm  Reply with quote

BTW, how to execute OpenRA with alternative old renderer (through nvidia-cg-toolkit)?
Back to top
View user's profile Find all posts by ddd Send private message Send e-mail ICQ Number
ddd
Level: 50



Position: Registered User
Joined: 23 Oct 2010
Posts: 177
Kel: 181  [ Donate ]

Online Status: Offline
PostPosted: Sun Nov 21, 2010 5:13 pm  Reply with quote

OK, I have just tried to exec the following:
Code:
xor@ddd /usr/local/share/openra $ mono --debug OpenRA.Game.exe Game.Mods=ra Graphics.Renderer=Cg
Loading settings file /home/xor/OpenRA/settings.yaml
Using Cg renderer

Unhandled Exception: System.IO.FileNotFoundException: File not found: cg/world-shp.fx
File name: 'cg/world-shp.fx'
  at OpenRA.FileFormats.FileSystem.Open (System.String filename) [0x00000] in <filename unknown>:0
  at OpenRA.Renderer.Cg.Shader..ctor (OpenRA.Renderer.Cg.GraphicsDevice dev, System.String name) [0x00000] in <filename unknown>:0
  at OpenRA.Renderer.Cg.GraphicsDevice.CreateShader (System.String name) [0x00000] in <filename unknown>:0
  at OpenRA.Graphics.Renderer..ctor () [0x00000] in <filename unknown>:0
  at OpenRA.Game.Initialize (OpenRA.Arguments args) [0x00000] in <filename unknown>:0
  at OpenRA.Program.Run (System.String[] args) [0x00000] in <filename unknown>:0
  at OpenRA.Program.Main (System.String[] args) [0x00000] in <filename unknown>:0

cp -r shaders from previous package to openra folder also doesn't help.
Back to top
View user's profile Find all posts by ddd Send private message Send e-mail ICQ Number
chrisf
Level: 52


Position: Moderator
Joined: 06 Sep 2010
Posts: 242
Kel: 255  [ Donate ]

Online Status: Offline
PostPosted: Sun Nov 21, 2010 7:14 pm  Reply with quote

Looks like someone has fouled up the linux package builds.

There should be `cg` and `glsl` directories containing appropriate shaders, in the main OpenRA directory. The old `shaders` directory is dead.
Back to top
View user's profile Find all posts by chrisf Send private message Send e-mail ICQ Number
beedee
Level: 49



Position: Moderator
Joined: 06 Sep 2010
Posts: 94
Kel: 95  [ Donate ]

Online Status: Offline
PostPosted: Sun Nov 21, 2010 7:34 pm  Reply with quote

Due to the new packaging system, the Makefile install target has probably bitrotted. I'll fix it for the next release.
Back to top
View user's profile Find all posts by beedee Send private message Visit poster's website ICQ Number
ddd
Level: 50



Position: Registered User
Joined: 23 Oct 2010
Posts: 177
Kel: 181  [ Donate ]

Online Status: Offline
PostPosted: Sun Nov 21, 2010 9:47 pm  Reply with quote

I'm sorry guys, it looks like I also forgot to restart after updating my x11-drivers/nvidia-drivers to 260.19.21. So, the exception log from the post http://www.sleipnirstuff.com/forum/viewtopic.php?f=82&p=278457#278457 isn't valid. There is the following exception log with new Gl Renderer now:
Code:
xor@ddd /usr/local/share/openra $ mono OpenRA.Game.exe Game.Mods=ra
Loading settings file /home/xor/OpenRA/settings.yaml
Using Gl renderer

Unhandled Exception: System.IO.FileNotFoundException: File not found: glsl/world-shp.vert
File name: 'glsl/world-shp.vert'
  at OpenRA.FileFormats.FileSystem.Open (System.String filename) [0x00000] in <filename unknown>:0
  at OpenRA.Renderer.Glsl.Shader..ctor (OpenRA.Renderer.Glsl.GraphicsDevice dev, System.String type) [0x00000] in <filename unknown>:0
  at OpenRA.Renderer.Glsl.GraphicsDevice.CreateShader (System.String name) [0x00000] in <filename unknown>:0
  at OpenRA.Graphics.Renderer..ctor () [0x00000] in <filename unknown>:0
  at OpenRA.Game.Initialize (OpenRA.Arguments args) [0x00000] in <filename unknown>:0
  at OpenRA.Program.Run (System.String[] args) [0x00000] in <filename unknown>:0
  at OpenRA.Program.Main (System.String[] args) [0x00000] in <filename unknown>:0

So, I try to extract 'glsl' and 'cg' paths from other packages (debian, 4ex.), and then I'll post the final result to you.
Back to top
View user's profile Find all posts by ddd Send private message Send e-mail ICQ Number
beedee
Level: 49



Position: Moderator
Joined: 06 Sep 2010
Posts: 94
Kel: 95  [ Donate ]

Online Status: Offline
PostPosted: Sun Nov 21, 2010 10:09 pm  Reply with quote

Don't be in to much of a rush. We're going to push a new release today that fixes the Makefile and gives saner OpenGL error messages.
Back to top
View user's profile Find all posts by beedee Send private message Visit poster's website ICQ Number
ddd
Level: 50



Position: Registered User
Joined: 23 Oct 2010
Posts: 177
Kel: 181  [ Donate ]

Online Status: Offline
PostPosted: Sun Nov 21, 2010 10:11 pm  Reply with quote

Well, guys, It looks like after extracting 'glsl' and 'cg' folders into openra everything works fine now:
Code:
xor@ddd /usr/local/share/openra $ mono OpenRA.Game.exe Game.Mods=ra
Loading settings file /home/xor/OpenRA/settings.yaml
Using Gl renderer
Available mods:
        cnc: C&C (a0001)
        ra: Red Alert (a0001)
Loading mods: ra

Code:
xor@ddd /usr/local/share/openra $ mono OpenRA.Game.exe Game.Mods=ra Graphics.Renderer=Cg
Loading settings file /home/xor/OpenRA/settings.yaml
Using Cg renderer
Available mods:
        cnc: C&C (a0001)
        ra: Red Alert (a0001)
Loading mods: ra
xor@ddd /usr/local/share/openra $
Back to top
View user's profile Find all posts by ddd Send private message Send e-mail ICQ Number
ddd
Level: 50



Position: Registered User
Joined: 23 Oct 2010
Posts: 177
Kel: 181  [ Donate ]

Online Status: Offline
PostPosted: Thu Dec 02, 2010 5:07 pm  Reply with quote

New ebuild (20101202_alpha_rc1) added.

Use '--no-check-certificate' option for now.

Updates:

• Added USE flags: cg, cnc, ra.
'cg': Enable support of old renderer through NVidia Cg (maybe needed 4 odd videcards);
'ra': Download & Install RA mod packages from internet (automatically);
'cnc': Download & Install C&C mod packages from internet (automatically);
(Better install manually full packs with all music & other from game .iso downloaded from original RA website)

• Tao deps (.dll and .config) installs automatically with inst_tao_deps.sh script
• Added game menu .desktop's & icons
• Added servers list link info
Back to top
View user's profile Find all posts by ddd Send private message Send e-mail ICQ Number
ddd
Level: 50



Position: Registered User
Joined: 23 Oct 2010
Posts: 177
Kel: 181  [ Donate ]

Online Status: Offline
PostPosted: Wed Dec 08, 2010 2:29 pm  Reply with quote

New ebuild (20101202_alpha_rc1-r1) added.

Use '--no-check-certificate' option for now.

Updates:

• Gl renderer parameters were added explicitly to .desktop icons to fix previously saving Cg parameters exclusively in settings.yaml
• Some info in postinst were rewritten.
Back to top
View user's profile Find all posts by ddd Send private message Send e-mail ICQ Number
ddd
Level: 50



Position: Registered User
Joined: 23 Oct 2010
Posts: 177
Kel: 181  [ Donate ]

Online Status: Offline
PostPosted: Thu Dec 23, 2010 4:00 pm  Reply with quote

New ebuild (openra-20101220_alpha_rc1-r2) added for test version 1220-3.

Use '--no-check-certificate' option for now.

Updates:

• Excluded video_cards_nvidia USE flag for cg renderer (nvidia-cg-toolkit isn't for nvidia cards only).
Back to top
View user's profile Find all posts by ddd Send private message Send e-mail ICQ Number
Display posts from previous:   
Post new topic   Reply to topic Goto page 1, 2, 3, 4, 5, 6  »