Author Topic: Compilation under linux?  (Read 4236 times)

blackelf

  • Posts: 17
  • Turrets: +0/-0
Compilation under linux?
« on: April 06, 2007, 06:38:22 pm »
Hello,

I see that GtkRadiant is for Linux... but what about the build tools? Where to get them? Can I run them on Linux, at least in wine (or DosBox)?

LinuxManMikeC

  • Posts: 125
  • Turrets: +0/-0
Compilation under linux?
« Reply #1 on: April 06, 2007, 08:59:03 pm »
GtkRadiant includes the q3map2 compiler.  Just check out the build menu in Radiant.
b]Embrace your inner penguin 8)
GtkRadiant Wiki (under construction)[/b]

blackelf

  • Posts: 17
  • Turrets: +0/-0
Compilation under linux?
« Reply #2 on: April 06, 2007, 10:38:51 pm »
setup/data/tools/plugins/bitmaps/bobtoolz_merge.bmp ->
install/plugins/bitmaps/bobtoolz_merge.bmp
setup/data/tools/plugins/bitmaps/bobtoolz_poly.bmp ->
install/plugins/bitmaps/bobtoolz_poly.bmp
setup/data/tools/plugins/bitmaps/bobtoolz_treeplanter.bmp ->
install/plugins/bitmaps/bobtoolz_treeplanter.bmp
setup/data/tools/plugins/bitmaps/bobtoolz_turnedge.bmp ->
install/plugins/bitmaps/bobtoolz_turnedge.bmp
setup/data/tools/plugins/bitmaps/bobtoolz_dropent.bmp ->
install/plugins/bitmaps/bobtoolz_dropent.bmp
Traceback (most recent call last):
  File "install.py", line 115, in ?
    copySvn("../msvc_redist", installRoot)
  File "install.py", line 45, in copySvn
    assertMessage(os.path.isdir(source), "failed to find directory: " +
source)
  File "install.py", line 33, in assertMessage
    raise Exception(message)
Exception: failed to find directory: ../msvc_redist

I got the SVN sources, it builded ok, but how to run/install?

When I did python install.py I got the error above
That was AFTER I created a ./games/ directory,
before that I was getting error about missing games directory


I want to install it only local, not system wide.

How to?

--- EDITED ---
Ok I simply removed the line from install.py
the line copySvn("../msvc_redist", installRoot)
and now it does install into directory ./install

But when I run:
cd install
./radiant.x86
it fails with:
radiant/error.cpp:132
Didnt find any valid game file descriptions, aborting

LinuxManMikeC

  • Posts: 125
  • Turrets: +0/-0
Compilation under linux?
« Reply #3 on: April 06, 2007, 11:34:51 pm »
The error you are getting is from some stooge putting Win32 specific code into install.py without checking if the script is running on a Win32 platform.  I just commented it out, will probably come up with a fix later.  You can use my modified install.py.  Just overwrite the current install.py with mine.

Also, make sure you have downloaded the gamepacks you want and put them in ./games .  You can get them from SVN. https://zerowing.idsoftware.com/svn/radiant.gamepacks/
Code: [Select]
svn co https://zerowing.idsoftware.com/svn/radiant.gamepacks/TremulousPack/trunk/ ./games/TremulousPack/

install.py actually has nothing to do with "installing" Radiant on your computer, more like staging everything into 1 directory.
Quote from: "install.py"
Builds the ./install directory.

Copies files from various locations:
./setup/data/tools/
./games/<gamepack>/
./include/version.default is used to generate RADIANT_MAJOR and RADIANT_MINOR


Compiling will put the executables in ./install and then running install.py will put in a bunch of supporting files, like gamepacks and icons.  You then run radiant from ./install/radiant.x86 or you can copy the contents of that directory elsewhere, such as /opt/GtkRadiant.
b]Embrace your inner penguin 8)
GtkRadiant Wiki (under construction)[/b]

LinuxManMikeC

  • Posts: 125
  • Turrets: +0/-0
Compilation under linux?
« Reply #4 on: April 06, 2007, 11:39:20 pm »
Quote from: "blackelf"
--- EDITED ---
Ok I simply removed the line from install.py
the line copySvn("../msvc_redist", installRoot)
and now it does install into directory ./install

There is more than just one Win32 specific line in install.py, use mine from the previous post.
b]Embrace your inner penguin 8)
GtkRadiant Wiki (under construction)[/b]

TheHunted

  • Posts: 2
  • Turrets: +0/-0
Compilation under linux?
« Reply #5 on: May 10, 2007, 01:30:09 am »
Thanks a ton! Everything works perfectly now. This wouldve have taken me forever to figure out.

 Nuts to the MS goons!