Author Topic: Linux doesnt like square's q2kicker script  (Read 11559 times)

Offline VaeVictis

  • i was -1 because you fucking suck
  • Brobdingnagian Member
  • *
  • Posts: 4498
    • View Profile
  • Rated:
Linux doesnt like square's q2kicker script
« on: February 11, 2011, 04:20:19 PM »
so... im on #! linux right now :) quite like it really...

got xchat pre-installed, got amsn soon as i was up and running... nice nice...

download the q2kicker cause i know squarehimself wrote a linux installer script in it...

bash ./aprq2.sh

returned

Code: [Select]
aprq2.sh: line 8: !DOCTYPE: No such file or directory
aprq2.sh: line 9: syntax error near unexpected token `newline'
aprq2.sh: line 9: `  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'

xD damn
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus

Offline DEMOn

  • Full Member
  • ***
  • Posts: 141
    • View Profile
  • Rated:
Re: Linux doesnt like square's q2kicker script
« Reply #1 on: February 11, 2011, 07:11:16 PM »
His repo is borked.


Code: [Select]
#!/bin/bash

# Q2 Kicker helper v1.0
#
# Written by SquareHimself
# WTFPL :: http://en.wikipedia.org/wiki/WTFPL
#
# Thank you to jdolan for his patches to aprq2.
# Please visit his site at http://jdolan.dyndns.org
#
# Also, thank you to Jehar for providing both the
# kicker, hosting, tastyspleen.tv, etc...
#
# TODO: - Allow for choosing cleancode over aprq2's DLL
# - Use CleanQ2 instead of AprQ2
#

### This script must be run in a terminal.
[ -t 0 ] || exit 1

### Let's make some functions for a cleaner procedure later.
function FetchSources {
mkdir /tmp/aprq2
cd /tmp/aprq2
svn co svn://jdolan.dyndns.org/aprq2/trunk
if [ -e "/tmp/aprq2/trunk/Makefile" ]; then
echo "==> Sources acquired."
else
echo "==> Sources were not downloaded. Aborting."
exit 1
fi
}

### These menus... <3
function MusicOption {
MUSICP="MPD XMMS No"
select choice in $MUSICP; do
if [ "$choice" = "MPD" ]; then
sed -i 's/BUILD_MPD=NO/BUILD_MPD=YES/g' /tmp/aprq2/trunk/Makefile
echo "==> Selecting MPD."
return
elif [ "$choice" = "XMMS" ]; then
sed -i 's/BUILD_XMMS=NO/BUILD_XMMS=YES/g' /tmp/aprq2/trunk/Makefile
echo "==> Selecting XMMS."
return
else
echo "==> Not enabling MPD or XMMS support."
return
fi
done
}

function OpenALOption {
CHOICES="Yes No"
select choice in $CHOICES; do
if [ "$choice" = "Yes" ]; then
echo "==> Enabling OpenAL support."
return
else
sed -i 's/BUILD_OPENAL=YES/BUILD_OPENAL=NO/g' /tmp/aprq2/Makefile
echo "==> Not enabling OpenAL."
return
fi
done
}

function MakeBin {
cd /tmp/aprq2/trunk
make

### This shit gets messy, but it works.
if [ -e "/tmp/aprq2/trunk/releasei386/aq2" ]; then
echo "==> Build was successful."
echo "==> Installing binary as /usr/bin/quake2"
mkdir -p /home/$USER/.quake2/baseq2
mv /tmp/aprq2/trunk/releasei386/aq2 /home/$USER/.quake2

if [ '$UID' == '0' ]; then
echo "#\!/bin/sh\nexec /home/\$USER/.quake2/aq2 +set basedir /home/\$USER/.quake2 \$*" > /usr/bin/quake2
chmod +x /usr/bin/quake2
else
echo "==> Need root for this..."

if [ -x `which sudo` ]; then
echo "==> Found sudo. Invokes twice to create, then make executable."
echo "exec /home/\$USER/.quake2/aq2 +set basedir /home/\$USER/.quake2 \$*" | sudo tee -a /usr/bin/quake2 && sudo chmod +x /usr/bin/quake2
sudo -k
else
"==> Using su."
su -c 'echo "exec /home/\$USER/.quake2/aq2 +set basedir /home/\$USER/.quake2 \$*" > /usr/bin/quake2 && chmod +x /usr/bin/quake2'
fi

fi

if [ -e "/usr/bin/quake2" ]; then
echo "==> Binary installed."
mv /tmp/aprq2/trunk/releasei386/gamei386.so /home/$USER/.quake2/baseq2
mv /tmp/aprq2/trunk/baseq2/pics /home/$USER/.quake2/baseq2
else
echo "==> Had trouble installing the binary. :("
exit 1
fi

else
echo "###################################"
echo "There was a problem with the build!"
echo "###################################"
exit 1
fi
}

function PatchHTTP {
cd /tmp/aprq2/trunk
wget "http://github.com/squarehimself/q2kicker/raw/master/files.patch"
wget "http://github.com/squarehimself/q2kicker/raw/master/cl_http.patch"
patch -p1 < files.patch
patch -p1 < cl_http.patch
cd /tmp/aprq2/trunk/qcommon
wget "http://github.com/squarehimself/q2kicker/raw/master/files.h"
}

function ExtraFiles {
YESORNO="Yes No"
select choice in $YESORNO; do
if [ "$choice" = "Yes" ]; then
echo "==> Downloading kicker package"
cd /tmp/aprq2
wget "http://tastyspleen.tv/q2k/q2kicker_current.zip"
echo
echo "==> Extracting and stuff..."
unzip q2kicker_current.zip
mv /tmp/aprq2/q2kicker/baseq2/* /home/$USER/.quake2/baseq2
mv /tmp/aprq2/q2kicker/NEW\ PLAYERS\ READ\ THIS.txt /home/$USER/.quake2
rm /home/$USER/.quake2/baseq2/gamex86.dll
return
else
cd /home/$USER/.quake2
wget "http://tastyspleen.tv/q2k/q2kicker/NEW%20PLAYERS%20READ%20THIS.txt"
cd /home/$USER/.quake2/baseq2
wget "http://tastyspleen.tv/q2k/q2kicker/baseq2/autoexec.cfg"
wget "http://tastyspleen.tv/q2k/q2kicker/baseq2/address.cfg"
return
fi
done
}

function PNGPatch {
echo "==> Do we need to patch for libpng14?"
YNUn="Yes No Unsure"
select choice in $YNUn; do
if [ "$choice" = "Unsure" ]; then
echo "Not applying the patch, but you should learn how to check package versions."
echo "If the build fails, this could be why."
return
elif [ "$choice" = "Yes" ]; then
echo "==> Patching for libpng14"
cd /tmp/aprq2/trunk
wget "http://github.com/squarehimself/q2kicker/raw/master/pngpatch.patch"
patch -p0 < pngpatch.patch
return
else
echo "==> Not patching for libpng14."
return
fi
done
}

function JPEGPatch {
echo "==> Do we need to patch for libjpeg8?"
YesNoU="Yes No Unsure"
select choice in $YesNoU; do
if [ "$choice" = "Unsure" ]; then
echo "Not applying the patch, but you should learn how to check package versions."
echo "If the build fails, this could be why."
return
elif [ "$choice" = "Yes" ]; then
echo "==> Patching for libjpeg8"
cd /tmp/aprq2/trunk
wget "http://github.com/squarehimself/q2kicker/raw/master/jpegpatch.patch"
patch -p0 < jpegpatch.patch
return
else
echo "==> Not patching for libjpeg8."
return
fi
done
}


if [ -e `which svn` ]; then
echo "==> Fetching sources from svn..."
FetchSources
echo

echo "==> Would you like to enable MPD or XMMS support?"
MusicOption
echo

echo """==> What about OpenAL sound?
(Usually better, needs OpenAL installed and enabled in your .cfg)"""
OpenALOption
echo

echo "==> Applying HTTP downloading patch..."
PatchHTTP
echo

PNGPatch
echo

JPEGPatch
echo

echo "==> Starting the build..."
MakeBin
echo

echo """==> Would you like to use the game files included with the kicker?
(Say yes here unless you've purchased quake2.)"""
ExtraFiles
echo

echo "==> Cleaning up..."
rm -rf /tmp/aprq2
echo """
If everything was successful, your extra pak files go in ~/.quake2/baseq2
and you can run 'quake2' from your run prompt or console.
The binary is installed to /usr/bin/quake2, as a reminder.
There is a readme in ~/.quake2 explaining the baseq2
directory and all of the optional stuff you can do in
there. I strongly suggest reading this file immediately
and becoming very familiar with the contents, because
this file outlines everything you need to know to get
quake2 set up and going.

If you have any problems, feel free to contact Square or Jehar on IRC.
server: irc.globalgamers.net
channel: #tastycast"""
else
echo "This script requires svn. Please install subversion and try again."
fi
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus

Offline VaeVictis

  • i was -1 because you fucking suck
  • Brobdingnagian Member
  • *
  • Posts: 4498
    • View Profile
  • Rated:
Re: Linux doesnt like square's q2kicker script
« Reply #2 on: February 11, 2011, 07:58:55 PM »
so.... run that instead? lol

or what?
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus

l0ckp1ck

  • Guest
Re: Linux doesnt like square's q2kicker script
« Reply #3 on: February 12, 2011, 12:15:42 AM »
i still reckon linux is still not user friendly to people who have been using windows for most of their computing days. And from what i have read its a shitload of trouble running modern games on linux aswell, even the maker of some distros say that linux was not meant to be for gaming and admit windows is better for gaming, although in the same breath they want linux to go mainstream and knock windows off its perch. But you have to ask yourself linux is free right? then why aren't companies and the millions of other windows users flocking to use this OS? it's because it is not user freindly and its not familiar to people either. i mean yeah there are alot of linux users, even i tried it at one stage but until they develop it more and it becomes alot more familiar, easy to use i am not going to bother
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus

Offline reaper

  • Opulent Member
  • *
  • Posts: 2872
  • Nice night for a walk, eh? - Nice night for a walk
    • View Profile
  • Rated:
Re: Linux doesnt like square's q2kicker script
« Reply #4 on: February 12, 2011, 12:33:44 AM »
I agree, try to setup email on Linux, you have to do a lot you shouldn't, and the same goes for a lot of functionality.  Doesn't mean it's still not awesome.
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus
VaeVictus "reaper is a lying sack of shit and ragequit then had, probably slugs, come alias and beat me, wasnt even the same person playing OBVIOUSLY, accuracies basicly doubled, and strategy

Offline VaeVictis

  • i was -1 because you fucking suck
  • Brobdingnagian Member
  • *
  • Posts: 4498
    • View Profile
  • Rated:
Re: Linux doesnt like square's q2kicker script
« Reply #5 on: February 12, 2011, 12:35:43 AM »
dont comment on linux when you dont know much about it :/

do you have any idea the amount of companies that use linux? did you know linux runs on devices you probably use every day?

linux is not all anti-user friendly... ubuntu is so user friendly it makes me wanna gouge my eyes out with a spork :/ id rather run crunchbang like i have been lately and do everything by command line

there is two reasons people dont think linux is user friendly... 1. it lacks support, windows has all the support in the world, thats why games are made for windows and all that bullshit, and 2. its because people dont know it... people are comfortable with "program files" "c:" "documents and settings" where linux users are comfortable with "sda1" "/" "~" "usr" "etc" "bin"

the biggest reasons people end up hating linux for... arent even problems of the operating system...

not meant to be a thread about linux, its meant to be a thread about square's broken script >_> which isnt a fault with linux, its a fault with square's broken script

if you dont like linux dont run it
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus

Offline reaper

  • Opulent Member
  • *
  • Posts: 2872
  • Nice night for a walk, eh? - Nice night for a walk
    • View Profile
  • Rated:
Re: Linux doesnt like square's q2kicker script
« Reply #6 on: February 12, 2011, 01:48:16 AM »
stick to quake 2 on certain maps Vae.

A little about the email, email components are broken down in Linux, one package to do security/TLS, one to delivery mail to mailboxes, one to send email to other email servers (MDA,MTA,MUA), one for SPAM, one for anti-virus.  Yes I think it sucks big time that there's no nice interface, and these things aren't abstracted, with an option for configuration.  It's nice for things to be modular, and for each thing to do what it does right, but nothing says you can't do both.  There are a couple packages like qmailrocks that fall short, and they're few and far between.  Microsoft does this all for you, and the end result is the same.  I"m sure you knew all this though.  I'm also sure some people love the Linux email, to each his own.
« Last Edit: February 12, 2011, 01:51:51 AM by reaper »
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus
VaeVictus "reaper is a lying sack of shit and ragequit then had, probably slugs, come alias and beat me, wasnt even the same person playing OBVIOUSLY, accuracies basicly doubled, and strategy

Offline quadz

  • Loquaciously Multiloquent Member
  • ****
  • Posts: 5352
    • View Profile
  • Rated:
Re: Linux doesnt like square's q2kicker script
« Reply #7 on: February 12, 2011, 04:05:15 AM »
i still reckon linux is still not user friendly

As the saying goes, "UNIX is user-friendly. It's just picky about who its friends are."


 :heart:

  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus
"He knew all the tricks, dramatic irony, metaphor, bathos, puns, parody, litotes and... satire. He was vicious."

Offline VaeVictis

  • i was -1 because you fucking suck
  • Brobdingnagian Member
  • *
  • Posts: 4498
    • View Profile
  • Rated:
Re: Linux doesnt like square's q2kicker script
« Reply #8 on: February 12, 2011, 01:47:29 PM »
soo.... i ran THAT script instead, idk if its any different i didnt go through it line by line >_>

returned different error though

Code: [Select]
mkdir: cannot create directory `/tmp/aprq2': File exists
aprq2.sh: line 25: svn: command not found
==> Sources were not downloaded. Aborting.

thats the second time running it, so i assume thats the cause of the mkdir error, but the other two lines showed up on the first pass along with a different first one that didnt show up on the second go for some reason :/ i closed the terminal afterwards though cause i didnt think to post it til after i closed the terminal *facepalm* think it was something about the sources though
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus

Offline VaeVictis

  • i was -1 because you fucking suck
  • Brobdingnagian Member
  • *
  • Posts: 4498
    • View Profile
  • Rated:
Re: Linux doesnt like square's q2kicker script
« Reply #9 on: February 12, 2011, 01:50:46 PM »
stick to quake 2 on certain maps Vae.

and on that note... lets see... youve ragequit vs me on pretty much everything except dm1 and dm3... and i beat you on dm1 last time we played it... maybe YOU should stop only playing q2 on certain maps :) a dm1 and dm3 only noob is even more
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus

Offline VaeVictis

  • i was -1 because you fucking suck
  • Brobdingnagian Member
  • *
  • Posts: 4498
    • View Profile
  • Rated:
Re: Linux doesnt like square's q2kicker script
« Reply #10 on: February 12, 2011, 02:33:53 PM »
Code: [Select]
==> Starting the build...
make targets BUILDDIR=releasex86_64 CFLAGS="-funsigned-char -pipe -DC_ONLY -DWITH_XMMS `glib-config --cflags` -DUSE_CURL -DUSE_SDL -DUSE_OPENAL -Wall -O2 -DNDEBUG"
/bin/sh: glib-config: not found
make[1]: Entering directory `/tmp/aprq2/trunk'
gcc -funsigned-char -pipe -DC_ONLY -DWITH_XMMS  -DUSE_CURL -DUSE_SDL -DUSE_OPENAL -Wall -O2 -DNDEBUG -DGL_QUAKE -o releasex86_64/q2glx/cl_cin.o -c client/cl_cin.c
In file included from client/../qcommon/qcommon.h:23,
                 from client/ref.h:23,
                 from client/client.h:24,
                 from client/cl_cin.c:20:
client/../qcommon/../game/q_shared.h:33:19: error: zlib.h: No such file or directory
In file included from client/cl_cin.c:20:
client/client.h:36:23: error: curl/curl.h: No such file or directory
In file included from client/cl_cin.c:20:
client/client.h:111: error: expected specifier-qualifier-list before ‘CURL’
make[1]: *** [releasex86_64/q2glx/cl_cin.o] Error 1
make[1]: Leaving directory `/tmp/aprq2/trunk'
make: *** [release] Error 2
###################################
There was a problem with the build!
###################################

i hate this script :/
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus

Offline quadz

  • Loquaciously Multiloquent Member
  • ****
  • Posts: 5352
    • View Profile
  • Rated:
Re: Linux doesnt like square's q2kicker script
« Reply #11 on: February 12, 2011, 02:47:41 PM »
I don't recall which distro you're on.  Assuming for the moment debian or ubuntu (or something with the 'apt' package manager.)

aprq2.sh: line 25: svn: command not found
==> Sources were not downloaded. Aborting.

sudo apt-get install subversion


make targets BUILDDIR=releasex86_64 CFLAGS="-funsigned-char -pipe -DC_ONLY -DWITH_XMMS `glib-config --cflags`
/bin/sh: glib-config: not found

# possibly the following, not sure:

sudo apt-get install xmms2-dev


client/../qcommon/../game/q_shared.h:33:19: error: zlib.h: No such file or directory
client/client.h:36:23: error: curl/curl.h: No such file or directory

sudo apt-get install zlib1g-dev libcurl4-openssl-dev



Basically you have some unmet dependencies, and will need to install some devel packages like the above.  If you're not on debian/ubuntu, then you'll need to find the equivalents to the above for your distro.


Hope this helps,

quadz

  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus
"He knew all the tricks, dramatic irony, metaphor, bathos, puns, parody, litotes and... satire. He was vicious."

Offline VaeVictis

  • i was -1 because you fucking suck
  • Brobdingnagian Member
  • *
  • Posts: 4498
    • View Profile
  • Rated:
Re: Linux doesnt like square's q2kicker script
« Reply #12 on: February 12, 2011, 03:33:41 PM »
i was on crunchbang lol ill try that later... got tired of wine being broken so i booted into windows lol :)

crunchbang is debian based, uses openbox instead of gnome and its pretty light weight and a very nice little distro... except it took me like an hour to install my video card drivers >_>
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus

Offline VaeVictis

  • i was -1 because you fucking suck
  • Brobdingnagian Member
  • *
  • Posts: 4498
    • View Profile
  • Rated:
Re: Linux doesnt like square's q2kicker script
« Reply #13 on: February 12, 2011, 07:18:41 PM »
welllll installing those dependencies helped :) went farther in the build... BUT

started erroring out about half way through :/ was kicking up warnings before this, but this is where it started kicking errors

EDIT: really dont know much about installing programs by building from a script :( but this is really a pain in the ass... should just use a main stream distro, would probably be easier

Code: [Select]

ref_gl/qgl.h:29: warning: type defaults to ‘int’ in declaration of ‘GLchar’
ref_gl/qgl.h:29: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
ref_gl/qgl.h:110: error: expected ‘)’ before ‘func’
ref_gl/qgl.h:111: error: expected ‘)’ before ‘i’
ref_gl/qgl.h:112: error: expected ‘)’ before ‘mode’
ref_gl/qgl.h:113: error: expected ‘)’ before ‘target’
ref_gl/qgl.h:114: error: expected ‘)’ before ‘sfactor’
ref_gl/qgl.h:115: error: expected ‘)’ before ‘mask’
ref_gl/qgl.h:116: error: expected ‘)’ before ‘red’
ref_gl/qgl.h:117: error: expected ‘)’ before ‘depth’
ref_gl/qgl.h:118: error: expected ‘)’ before ‘s’
ref_gl/qgl.h:119: error: expected ‘)’ before ‘plane’
ref_gl/qgl.h:120: error: expected ‘)’ before ‘red’
ref_gl/qgl.h:121: warning: type defaults to ‘int’ in declaration of ‘GLfloat’
ref_gl/qgl.h:121: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
ref_gl/qgl.h:122: warning: type defaults to ‘int’ in declaration of ‘GLubyte’
ref_gl/qgl.h:122: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
ref_gl/qgl.h:123: error: expected ‘)’ before ‘red’
ref_gl/qgl.h:124: warning: type defaults to ‘int’ in declaration of ‘GLfloat’
ref_gl/qgl.h:124: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
ref_gl/qgl.h:125: warning: type defaults to ‘int’ in declaration of ‘GLubyte’
ref_gl/qgl.h:125: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
ref_gl/qgl.h:126: error: expected ‘)’ before ‘red’
ref_gl/qgl.h:127: error: expected ‘)’ before ‘size’
ref_gl/qgl.h:128: error: expected ‘)’ before ‘mode’
ref_gl/qgl.h:129: error: expected ‘)’ before ‘n’
ref_gl/qgl.h:130: error: expected ‘)’ before ‘func’
ref_gl/qgl.h:131: error: expected ‘)’ before ‘flag’
ref_gl/qgl.h:132: error: expected ‘)’ before ‘zNear’
ref_gl/qgl.h:133: error: expected ‘)’ before ‘cap’
ref_gl/qgl.h:134: error: expected ‘)’ before ‘array’
ref_gl/qgl.h:135: error: expected ‘)’ before ‘mode’
ref_gl/qgl.h:136: error: expected ‘)’ before ‘mode’
ref_gl/qgl.h:137: error: expected ‘)’ before ‘cap’
ref_gl/qgl.h:138: error: expected ‘)’ before ‘array’
ref_gl/qgl.h:142: error: expected ‘)’ before ‘mode’
ref_gl/qgl.h:143: error: expected declaration specifiers or ‘...’ before ‘*’ token
ref_gl/qgl.h:143: warning: type defaults to ‘int’ in declaration of ‘GLenum’
ref_gl/qgl.h:143: error: ‘GLenum’ declared as function returning a function
ref_gl/qgl.h:144: error: expected ‘)’ before ‘pname’
ref_gl/qgl.h:145: error: expected ‘)’ before ‘pname’
ref_gl/qgl.h:146: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
ref_gl/qgl.h:148: warning: type defaults to ‘int’ in declaration of ‘GLfloat’
ref_gl/qgl.h:148: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
ref_gl/qgl.h:149: error: expected ‘)’ before ‘mode’
ref_gl/qgl.h:150: error: expected ‘)’ before ‘type’
ref_gl/qgl.h:151: error: expected ‘)’ before ‘left’
ref_gl/qgl.h:152: error: expected ‘)’ before ‘face’
ref_gl/qgl.h:153: error: expected ‘)’ before ‘factor’
ref_gl/qgl.h:154: error: expected ‘)’ before ‘x’
ref_gl/qgl.h:155: error: expected ‘)’ before ‘x’
ref_gl/qgl.h:156: error: expected ‘)’ before ‘mode’
ref_gl/qgl.h:157: error: expected ‘)’ before ‘func’
ref_gl/qgl.h:158: error: expected ‘)’ before ‘mask’
ref_gl/qgl.h:159: error: expected ‘)’ before ‘fail’
ref_gl/qgl.h:160: error: expected ‘)’ before ‘s’
ref_gl/qgl.h:161: error: expected ‘)’ before ‘size’
ref_gl/qgl.h:163: error: expected ‘)’ before ‘target’
ref_gl/qgl.h:167: error: expected ‘)’ before ‘target’
In file included from ref_gl/gl_local.h:54,
                 from ref_gl/gl_draw.c:23:
ref_gl/qgl.h:168: error: expected ‘)’ before ‘target’
ref_gl/qgl.h:169: error: expected ‘)’ before ‘target’
ref_gl/qgl.h:170: error: expected ‘)’ before ‘target’
ref_gl/qgl.h:171: error: expected ‘)’ before ‘x’
ref_gl/qgl.h:172: error: expected ‘)’ before ‘x’
ref_gl/qgl.h:173: warning: type defaults to ‘int’ in declaration of ‘GLfloat’
ref_gl/qgl.h:173: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
ref_gl/qgl.h:174: error: expected ‘)’ before ‘size’
ref_gl/qgl.h:175: error: expected ‘)’ before ‘x’
ref_gl/qgl.h:176: error: expected ‘)’ before ‘x’
ref_gl/qgl.h:177: error: expected ‘)’ before ‘angle’
ref_gl/qgl.h:178: error: expected ‘)’ before ‘s’
ref_gl/qgl.h:179: error: expected ‘)’ before ‘mode’
ref_gl/qgl.h:180: error: expected ‘)’ before ‘size’
ref_gl/qgl.h:181: error: expected ‘)’ before ‘pname’
ref_gl/qgl.h:182: error: expected ‘)’ before ‘pname’
ref_gl/qgl.h:183: error: expected ‘)’ before ‘pname’
ref_gl/qgl.h:184: error: expected ‘)’ before ‘pname’
ref_gl/qgl.h:185: error: expected ‘)’ before ‘n’
ref_gl/qgl.h:186: error: expected ‘)’ before ‘target’
ref_gl/qgl.h:187: error: expected ‘)’ before ‘target’
ref_gl/qgl.h:188: error: expected ‘)’ before ‘target’
ref_gl/qgl.h:189: warning: type defaults to ‘int’ in declaration of ‘GLfloat’
ref_gl/qgl.h:189: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
ref_gl/qgl.h:190: error: expected ‘)’ before ‘x’
ref_gl/qgl.h:193: error: expected ‘)’ before ‘factor’
ref_gl/qgl.h:194: error: expected ‘)’ before ‘width’
ref_gl/qgl.h:206: warning: parameter names (without types) in function declaration
ref_gl/qgl.h:207: warning: parameter names (without types) in function declaration
ref_gl/qgl.h:208: warning: parameter names (without types) in function declaration
ref_gl/qgl.h:209: error: expected ‘)’ before ‘const’
ref_gl/qgl.h:210: error: expected ‘)’ before ‘param’
ref_gl/qgl.h:211: error: expected ‘)’ before ‘param’
ref_gl/qgl.h:212: warning: parameter names (without types) in function declaration
ref_gl/qgl.h:213: error: expected ‘)’ before ‘*’ token
ref_gl/qgl.h:214: warning: parameter names (without types) in function declaration
In file included from ref_gl/gl_draw.c:23:
ref_gl/gl_local.h:297: error: expected ‘)’ before ‘value’
ref_gl/gl_draw.c: In function ‘Draw_InitLocal’:
ref_gl/gl_draw.c:61: warning: implicit declaration of function ‘qglTexParameteri’
ref_gl/gl_draw.c:61: error: ‘GL_TEXTURE_2D’ undeclared (first use in this function)
ref_gl/gl_draw.c:61: error: (Each undeclared identifier is reported only once
ref_gl/gl_draw.c:61: error: for each function it appears in.)
ref_gl/gl_draw.c:61: error: ‘GL_TEXTURE_MIN_FILTER’ undeclared (first use in this function)
ref_gl/gl_draw.c:61: error: ‘GL_NEAREST’ undeclared (first use in this function)
ref_gl/gl_draw.c:62: error: ‘GL_TEXTURE_MAG_FILTER’ undeclared (first use in this function)
ref_gl/gl_draw.c: In function ‘Draw_Char’:
ref_gl/gl_draw.c:116: warning: implicit declaration of function ‘qglDisable’
ref_gl/gl_draw.c:116: error: ‘GL_ALPHA_TEST’ undeclared (first use in this function)
ref_gl/gl_draw.c:117: warning: implicit declaration of function ‘qglEnable’
ref_gl/gl_draw.c:117: error: ‘GL_BLEND’ undeclared (first use in this function)
ref_gl/gl_draw.c:118: warning: implicit declaration of function ‘GL_TexEnv’
ref_gl/gl_draw.c:118: error: ‘GL_MODULATE’ undeclared (first use in this function)
ref_gl/gl_draw.c:122: warning: implicit declaration of function ‘qglBegin’
ref_gl/gl_draw.c:122: error: ‘GL_QUADS’ undeclared (first use in this function)
ref_gl/gl_draw.c:126: warning: implicit declaration of function ‘qglColor4fv’
ref_gl/gl_draw.c:127: warning: implicit declaration of function ‘qglTexCoord2f’
ref_gl/gl_draw.c:127: warning: implicit declaration of function ‘qglVertex2i’
ref_gl/gl_draw.c:140: error: ‘GL_REPLACE’ undeclared (first use in this function)
ref_gl/gl_draw.c: In function ‘Draw_String’:
ref_gl/gl_draw.c:154: error: ‘GL_ALPHA_TEST’ undeclared (first use in this function)
ref_gl/gl_draw.c:155: error: ‘GL_BLEND’ undeclared (first use in this function)
ref_gl/gl_draw.c:156: error: ‘GL_MODULATE’ undeclared (first use in this function)
ref_gl/gl_draw.c:159: error: ‘GL_QUADS’ undeclared (first use in this function)
ref_gl/gl_draw.c:202: error: ‘GL_REPLACE’ undeclared (first use in this function)
ref_gl/gl_draw.c: In function ‘DrawCString’:
ref_gl/gl_draw.c:218: error: ‘GL_ALPHA_TEST’ undeclared (first use in this function)
ref_gl/gl_draw.c:219: error: ‘GL_BLEND’ undeclared (first use in this function)
ref_gl/gl_draw.c:220: error: ‘GL_MODULATE’ undeclared (first use in this function)
ref_gl/gl_draw.c:223: error: ‘GL_QUADS’ undeclared (first use in this function)
ref_gl/gl_draw.c:272: error: ‘GL_REPLACE’ undeclared (first use in this function)
ref_gl/gl_draw.c: In function ‘Draw_ScaledPic’:
ref_gl/gl_draw.c:341: error: ‘GL_BLEND’ undeclared (first use in this function)
ref_gl/gl_draw.c:342: error: ‘GL_ALPHA_TEST’ undeclared (first use in this function)
ref_gl/gl_draw.c:350: error: ‘GL_MODULATE’ undeclared (first use in this function)
ref_gl/gl_draw.c:351: warning: implicit declaration of function ‘qglColor4f’
ref_gl/gl_draw.c:355: error: ‘GL_QUADS’ undeclared (first use in this function)
ref_gl/gl_draw.c:373: error: ‘GL_REPLACE’ undeclared (first use in this function)
ref_gl/gl_draw.c: In function ‘Draw_StretchPic’:
ref_gl/gl_draw.c:404: error: ‘GL_ALPHA_TEST’ undeclared (first use in this function)
ref_gl/gl_draw.c:405: error: ‘GL_BLEND’ undeclared (first use in this function)
ref_gl/gl_draw.c:406: error: ‘GL_MODULATE’ undeclared (first use in this function)
ref_gl/gl_draw.c:417: error: ‘GL_QUADS’ undeclared (first use in this function)
ref_gl/gl_draw.c:430: error: ‘GL_REPLACE’ undeclared (first use in this function)
ref_gl/gl_draw.c: In function ‘Draw_Pic’:
ref_gl/gl_draw.c:460: error: ‘GL_ALPHA_TEST’ undeclared (first use in this function)
ref_gl/gl_draw.c:461: error: ‘GL_BLEND’ undeclared (first use in this function)
ref_gl/gl_draw.c:462: error: ‘GL_MODULATE’ undeclared (first use in this function)
ref_gl/gl_draw.c:473: error: ‘GL_QUADS’ undeclared (first use in this function)
ref_gl/gl_draw.c:486: error: ‘GL_REPLACE’ undeclared (first use in this function)
ref_gl/gl_draw.c: In function ‘Draw_TileClear’:
ref_gl/gl_draw.c:515: error: ‘GL_ALPHA_TEST’ undeclared (first use in this function)
ref_gl/gl_draw.c:518: error: ‘GL_QUADS’ undeclared (first use in this function)
ref_gl/gl_draw.c: In function ‘Draw_Fill’:
ref_gl/gl_draw.c:543: error: ‘GL_TEXTURE_2D’ undeclared (first use in this function)
ref_gl/gl_draw.c:545: warning: implicit declaration of function ‘qglColor3ubv’
ref_gl/gl_draw.c:547: error: ‘GL_QUADS’ undeclared (first use in this function)
ref_gl/gl_draw.c:555: warning: implicit declaration of function ‘qglColor3fv’
ref_gl/gl_draw.c: In function ‘Draw_FadeScreen’:
ref_gl/gl_draw.c:569: error: ‘GL_BLEND’ undeclared (first use in this function)
ref_gl/gl_draw.c:570: error: ‘GL_TEXTURE_2D’ undeclared (first use in this function)
ref_gl/gl_draw.c:572: error: ‘GL_QUADS’ undeclared (first use in this function)
ref_gl/gl_draw.c: In function ‘Draw_StretchRaw’:
ref_gl/gl_draw.c:640: warning: implicit declaration of function ‘qglBindTexture’
ref_gl/gl_draw.c:640: error: ‘GL_TEXTURE_2D’ undeclared (first use in this function)
ref_gl/gl_draw.c:641: warning: implicit declaration of function ‘qglTexImage2D’
ref_gl/gl_draw.c:641: error: ‘GL_RGBA’ undeclared (first use in this function)
ref_gl/gl_draw.c:641: error: ‘GL_UNSIGNED_BYTE’ undeclared (first use in this function)
ref_gl/gl_draw.c:643: error: ‘GL_TEXTURE_MIN_FILTER’ undeclared (first use in this function)
ref_gl/gl_draw.c:643: error: ‘GL_LINEAR’ undeclared (first use in this function)
ref_gl/gl_draw.c:644: error: ‘GL_TEXTURE_MAG_FILTER’ undeclared (first use in this function)
ref_gl/gl_draw.c:647: error: ‘GL_ALPHA_TEST’ undeclared (first use in this function)
ref_gl/gl_draw.c:649: error: ‘GL_QUADS’ undeclared (first use in this function)
make[1]: *** [releasex86_64/q2glx/gl_draw.o] Error 1
make[1]: Leaving directory `/tmp/aprq2/trunk'
make: *** [release] Error 2
###################################
There was a problem with the build!
###################################
« Last Edit: February 12, 2011, 07:20:36 PM by VaeVictis »
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus

Offline QwazyWabbit

  • Carpal Tunnel Member
  • ******
  • Posts: 1371
    • View Profile
  • Rated:
Re: Linux doesnt like square's q2kicker script
« Reply #14 on: February 12, 2011, 07:26:54 PM »
Linux is user friendly. Yeah right.

Now you are past the script problems and into the aprq2 sources and ports.
You probably won't be able to build ref_gl without Open_GL support for that distro.
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus

 

El Box de Shoutamente

Last 10 Shouts:

 

Costigan_Q2

November 11, 2024, 06:41:06 AM
"Stay cozy folks.

Everything is gonna be fine."

There'll be no excuses for having TDS after January 20th, there'll be no excuses AT ALL!!!
 

|iR|Focalor

November 06, 2024, 03:28:50 AM
 

RailWolf

November 05, 2024, 03:13:44 PM
Nice :)

Tom Servo

November 04, 2024, 05:05:24 PM
The Joe Rogan Experience episode 223 that dropped a couple hours ago with Musk, they're talking about Quake lol.
 

Costigan_Q2

November 04, 2024, 03:37:55 PM
Stay cozy folks.

Everything is gonna be fine.
 

|iR|Focalor

October 31, 2024, 08:56:37 PM
 

Costigan_Q2

October 17, 2024, 06:31:53 PM
Not activated your account yet?

Activate it now! join in the fun!

Tom Servo

October 11, 2024, 03:35:36 PM
HAHAHAHAHAHA
 

|iR|Focalor

October 10, 2024, 12:19:41 PM
I don't worship the devil. Jesus is Lord, friend. He died for your sins. He will forgive you if you just ask.
 

rikwad

October 09, 2024, 07:57:21 PM
Sorry, I couldn't resist my inner asshole.

Show 50 latest
Welcome, Guest. Please login or register.
November 13, 2024, 09:03:41 PM

Login with username, password and session length