LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-14-2011, 01:19 PM   #1
trademark91
Member
 
Registered: Sep 2009
Distribution: Slackware -current x64
Posts: 372

Rep: Reputation: 74
Enemy Territory: Quake Wars LUA error on slackware 64?


hey all, im running slackware 64 with alien's multilib packages.

I recently bought Enemy Territory: Quake Wars, because they have a linux client for the game. I downloaded their binary, and got the following message when i tried to run it:
Code:
NOTICE: Initial Lua setup failed. Cannot continue.
[hit enter]
I have both lua and tolua++ installed from slackbuilds.org, and even built and installed compat32 packages of both, but for some reason, I still get the same error.

This is particularly upsetting because I paid for the software specifically due to a linux client being released, and now am out the money and can't even play my game.
 
Old 07-14-2011, 01:22 PM   #2
Cultist
Member
 
Registered: Feb 2010
Location: Georgia
Distribution: Slackware64 14.2
Posts: 779

Rep: Reputation: 107Reputation: 107
Is it a 32 bit binary? Have you looked through the manual for a dependency list? If it comes with a native Linux client, a dep list should be in there somewhere.
 
Old 07-14-2011, 01:47 PM   #3
trademark91
Member
 
Registered: Sep 2009
Distribution: Slackware -current x64
Posts: 372

Original Poster
Rep: Reputation: 74
it is indeed a 32 bit binary, after a lot of searching, i still havent found a dep list. running it with linux32 still garners the same error, with or without the compat-32 packages. im going to have to dual boot this one, i fear.
 
Old 07-14-2011, 02:06 PM   #4
Martinus2u
Member
 
Registered: Apr 2010
Distribution: Slackware
Posts: 497

Rep: Reputation: 119Reputation: 119
maybe you could check the required libraries with ldd and use convertpkg-compat32 to create 32bit versions of the missing ones? or use strace? or gdb? just some ideas.
 
Old 07-14-2011, 02:09 PM   #5
trademark91
Member
 
Registered: Sep 2009
Distribution: Slackware -current x64
Posts: 372

Original Poster
Rep: Reputation: 74
i need to get a 32 bit package of lua i think. im downloading the 32 bit slackware dvd to install in a virtual machine so i can build the package.
 
Old 07-14-2011, 02:28 PM   #6
Cultist
Member
 
Registered: Feb 2010
Location: Georgia
Distribution: Slackware64 14.2
Posts: 779

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by trademark91 View Post
i need to get a 32 bit package of lua i think. im downloading the 32 bit slackware dvd to install in a virtual machine so i can build the package.
You can compile the package in 32 bit on your multilib slackware64. Copied from Alien Bob's multilib wiki page:

Quote:
Compiling 32-bit programs
In case you need to compile a 32-bit program (wine and grub are two examples of open source programs that are 32-bit only) you first configure your shell environment by running the command:

Code:
. /etc/profile.d/32dev.sh
Note the 'dot' in front of the filename - that is actually part of the commandline! Running this command changes or creates several environment variables. The effect of this is, that 32-bit versions of binaries are preferred over 64bit binaries when you compile source code - you will be running a 32bit compilation. The effect will last until you logout from your shell.

In this changed environment, you will be able to use standard SlackBuilds to build 32-bit packages for Slackware64. There are two things to keep in mind:

You will have to define the ARCH variable as 'x86_64' even though you are compiling a 32-bit program!
This is related to the triplet of “$ARCH-slackware-linux” which is normally used in the “configure” command. Also, try setting the ARCH to for instance “i486” and you will see that the CFLAGS definition for that architecture will result in gcc errors like ”compiler can not create executables”. This is related to the design of a SlackBuild script. Rather than editing the script and change/remove CFLAGS definitions, you can set the ARCH to “x86_64” and save yourself some time. The real work is being done by the 32dev.sh script.
You will have to edit the SlackBuild if it wants to use 'lib64/' directories for “$ARCH = x86_64”. You have to force it to use 'lib/' directories instead. Usually, this is accomplished by finding a definition like:
Code:
 LIBDIRSUFFIX="64"
and changing this line to

Code:
LIBDIRSUFFIX=""

Last edited by Cultist; 07-14-2011 at 02:31 PM.
 
Old 07-14-2011, 03:02 PM   #7
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-15.0
Posts: 2,670

Rep: Reputation: 1368Reputation: 1368Reputation: 1368Reputation: 1368Reputation: 1368Reputation: 1368Reputation: 1368Reputation: 1368Reputation: 1368Reputation: 1368
Quote:
Originally Posted by trademark91 View Post
i need to get a 32 bit package of lua i think. im downloading the 32 bit slackware dvd to install in a virtual machine so i can build the package.
You can also save some time and use the slacky.eu lua binary package and run covertpkg32 on it
http://repository.slacky.eu/slackwar...t/lua/5.1.4.2/
 
Old 07-14-2011, 04:48 PM   #8
trademark91
Member
 
Registered: Sep 2009
Distribution: Slackware -current x64
Posts: 372

Original Poster
Rep: Reputation: 74
so i built and installed 32 bit compatibility packages of lua, and still get the same error. has anyone gotten this to work on slackware64? i really dont want to dual boot just to play a game.
 
Old 07-14-2011, 06:06 PM   #9
Mike_M
Member
 
Registered: Mar 2011
Location: California
Distribution: Slackware
Posts: 116

Rep: Reputation: 53
Is there a demo of this game available for download so that other people may be able to attempt to assist you? My guess is that the game includes its own Lua, so installing a separate Lua package won't actually help you.
 
Old 07-14-2011, 07:03 PM   #10
trademark91
Member
 
Registered: Sep 2009
Distribution: Slackware -current x64
Posts: 372

Original Poster
Rep: Reputation: 74
I got it installed, but man was it a challenge. turns out the client posted on the official website is out of date, so i went and found the newest version, which installed fine, but wouldnt run due to graphics driver issues. luckily, i remembered a trick i used to use with wine to launch 3d programs:
Code:
LIBGL_DRIVERS_PATH=/usr/lib/xorg/modules/dri
this made the 32 bit program look for the 32 bit graphics drivers, and got it to launch allright.

thanks for helping out with this guys.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
enemy territory quake wars with wine. Hern_28 Linux - Games 8 01-11-2009 11:39 PM
Enemy Territory: Quake Wars doesn't start DaBlade Linux - Games 7 03-11-2008 02:49 AM
LXer: Enemy Territory: Quake Wars LXer Syndicated Linux News 0 01-14-2008 06:40 AM
Enemy Territory: Quake Wars 1.1 Linux demo available subnet_rx Linux - Games 5 11-09-2007 01:49 AM
LXer: Enemy Territory: Quake Wars for Linux LXer Syndicated Linux News 0 10-20-2007 05:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration