LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Enemy Territory: Quake Wars LUA error on slackware 64? (https://www.linuxquestions.org/questions/slackware-14/enemy-territory-quake-wars-lua-error-on-slackware-64-a-891759/)

trademark91 07-14-2011 01:19 PM

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.

Cultist 07-14-2011 01:22 PM

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.

trademark91 07-14-2011 01:47 PM

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.

Martinus2u 07-14-2011 02:06 PM

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.

trademark91 07-14-2011 02:09 PM

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.

Cultist 07-14-2011 02:28 PM

Quote:

Originally Posted by trademark91 (Post 4415023)
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=""


Daedra 07-14-2011 03:02 PM

Quote:

Originally Posted by trademark91 (Post 4415023)
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/

trademark91 07-14-2011 04:48 PM

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.

Mike_M 07-14-2011 06:06 PM

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.

trademark91 07-14-2011 07:03 PM

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.


All times are GMT -5. The time now is 04:01 PM.