The Dark Mod Forums: Linux support? - The Dark Mod Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Linux support?

#1 User is offline   Tels 

  • Mod hero
  • PipPipPipPipPip
  • Group: Team Member
  • Posts: 8,761
  • Joined: 06-February 05

Post icon  Posted 23 September 2007 - 11:42 AM

Hello,

I have browsed the wiki, searched the forum, but I couldn't find an answer: Is it possible to use the editor under Linux?

Checking out DarkRadiant from SVN worked - I just made the mistake following the instructions on the sourceforge page, and wondering why it took so long - I ended up getting about 2.3 Gigabyte :)

Now I have Doom3, DarkRadiant, and what now? Are there any tutorials for getting stuff to work under Linux? There doesn't seem to be a README or INSTALL file in the source as far as I can see.

I guess darkradiant/trunk/darkradiant is the current branch and I can get rid of everything else. It also seems that "scons" is needed, so I installed that. What now? *puzzled look*

Thanx in advance,

Tels
"Remember: If the game lets you do it, it's not cheating." -- Xarax
0

#2 User is offline   sparhawk 

  • Repository Manager
  • Icon
  • Group: Admin
  • Posts: 21,638
  • Joined: 03-September 04

Posted 23 September 2007 - 11:54 AM

It's definitely possible. Crispy, Orb and some others have more experience in running it under Linux. Proving a linux port is also on our list.
Gerhard
0

#3 User is offline   Tels 

  • Mod hero
  • PipPipPipPipPip
  • Group: Team Member
  • Posts: 8,761
  • Joined: 06-February 05

Posted 23 September 2007 - 11:55 AM

Lets just try scons:

# scons
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
scons: building associated BuildDir targets: build/debug
gpp -o build/debug/plugins/archivezip/plugin.os -c -pipe -DPOSIX -DXWINDOWS -W -Wall -Wcast-align -Wcast-qual -Wno-unused-parameter -Wno-non-virtual-dtor -Wreorder -fPIC -g -D_DEBUG `xml2-config --cflags` -fPIC -Ibuild/debug/radiant -Iradiant -Ibuild/debug/include -Iinclude -Ibuild/debug/libs -Ilibs -Ibuild/debug/include -Iinclude plugins/archivezip/plugin.cpp
include/itextstream.h: In member function ‘virtual int TextInputStream::underflow()
’:
include/itextstream.h:58: error: ‘assert’ was not declared in this scope
scons: *** [build/debug/plugins/archivezip/plugin.
os] Error 1
scons: building terminated because of errors.


The gpp above is actually g plus plus, but the forum server really doesn't like when I insert this :/

So, something seems to be missing, but I have no idea yet what.
"Remember: If the game lets you do it, it's not cheating." -- Xarax
0

#4 User is offline   Tels 

  • Mod hero
  • PipPipPipPipPip
  • Group: Team Member
  • Posts: 8,761
  • Joined: 06-February 05

Posted 23 September 2007 - 11:56 AM

View Postsparhawk, on Sep 23 2007, 11:54 AM, said:

It's definitely possible. Crispy, Orb and some others have more experience in running it under Linux. Proving a linux port is also on our list.


Ah good. Hopefully the people named can get in touch with me or point me in the right direction :)

All the best,

Tels
"Remember: If the game lets you do it, it's not cheating." -- Xarax
0

#5 User is offline   greebo 

  • Lead Coder
  • Icon
  • Group: Root
  • Posts: 13,216
  • Joined: 12-February 06

Posted 23 September 2007 - 12:32 PM

You can use DarkRadiant under Linux just fine, but you'll need to compile from source. For Ubuntu, I assembled this list of needed packages and attached it to the DarkRadiant Compilation Guide. Scons is of course required to compile it too.

As you guessed, the trunk/darkradiant is the branch to use here. The other branches are just for intermediate development steps, some get deleted after a while, some are still there - just ignore them.

#6 User is offline   Tels 

  • Mod hero
  • PipPipPipPipPip
  • Group: Team Member
  • Posts: 8,761
  • Joined: 06-February 05

Post icon  Posted 23 September 2007 - 12:36 PM

View Postgreebo, on Sep 23 2007, 12:32 PM, said:

You can use DarkRadiant under Linux just fine, but you'll need to compile from source. For Ubuntu, I assembled this list of needed packages and attached it to the DarkRadiant Compilation Guide. Scons is of course required to compile it too.

As you guessed, the trunk/darkradiant is the branch to use here. The other branches are just for intermediate development steps, some get deleted after a while, some are still there - just ignore them.


Thanx, thats exactly what I was looking for. I will see how far I get after installing all this.

All the best,

Tels
"Remember: If the game lets you do it, it's not cheating." -- Xarax
0

#7 User is offline   Tels 

  • Mod hero
  • PipPipPipPipPip
  • Group: Team Member
  • Posts: 8,761
  • Joined: 06-February 05

Posted 23 September 2007 - 02:18 PM

View PostTels, on Sep 23 2007, 12:36 PM, said:

Thanx, thats exactly what I was looking for. I will see how far I get after installing all this.

All the best,

Tels


It seems that include/itextstream.h is missing #include <assert.h>, and after installing all the required libraries and making this modification, it seems to compile now.

So, where do I send the patch in? Is there a mailinglist somewhere? Or someone I need to send the patch to so it can be checked into svn?

All the best,

Tels
"Remember: If the game lets you do it, it's not cheating." -- Xarax
0

#8 User is offline   greebo 

  • Lead Coder
  • Icon
  • Group: Root
  • Posts: 13,216
  • Joined: 12-February 06

Posted 23 September 2007 - 02:37 PM

What environment are you using? I never had to include assert.h anywhere, isn't it provided by the compiler by default?

#9 User is offline   Tels 

  • Mod hero
  • PipPipPipPipPip
  • Group: Team Member
  • Posts: 8,761
  • Joined: 06-February 05

Posted 23 September 2007 - 03:20 PM

View Postgreebo, on Sep 23 2007, 02:37 PM, said:

What environment are you using? I never had to include assert.h anywhere, isn't it provided by the compiler by default?


Good question. I am using g+ + 4.1.0 under Suse 10.1 (GAH! Everytime you use g+ + (without the space), the forum server cries :-)

Using simple "scons" makes it throw up that error about assert, a short googling lead me to some talk about "including assert.h", so I just included it and this fixed it.

At least "man assert" on my system says assert() is a macro defined in assert.h.

Anyway, I will try a release build soon and report tomorrow how far it did go (as it will take a while).

thanx a lot so far,

Tels
"Remember: If the game lets you do it, it's not cheating." -- Xarax
0

#10 User is offline   OrbWeaver 

  • Mod hero
  • PipPipPipPipPip
  • Group: Team Member
  • Posts: 6,313
  • Joined: 31-May 05

Posted 23 September 2007 - 03:22 PM

It's <cassert> not <assert.h> that should be included, anyway I've checked in that change to the source tree since another developer was encountering that issue.
0

#11 User is offline   Crispy 

  • Uber member
  • PipPipPipPip
  • Group: Team Member
  • Posts: 4,992
  • Joined: 07-August 06

Posted 24 September 2007 - 01:40 AM

It seems you're really asking about the editor, not the Mod itself, but just to be clear: Several of us already have the Dark Mod compiled and working under Linux. I even do all my mod development under Linux. There are a few caveats; the lightgem isn't hooked up properly yet, for example; but we hope to have those ironed out before release.
My games | Public Service Announcement: TDM is not set in the Thief universe. The city in which it takes place is not the City from Thief. The player character is not called Garrett. Any person who contradicts these facts will be subjected to disapproving stares.
0

#12 User is offline   Tels 

  • Mod hero
  • PipPipPipPipPip
  • Group: Team Member
  • Posts: 8,761
  • Joined: 06-February 05

Posted 24 September 2007 - 08:52 AM

View PostCrispy, on Sep 24 2007, 01:40 AM, said:

It seems you're really asking about the editor, not the Mod itself, but just to be clear: Several of us already have the Dark Mod compiled and working under Linux. I even do all my mod development under Linux. There are a few caveats; the lightgem isn't hooked up properly yet, for example; but we hope to have those ironed out before release.


Oh, I wouldn't mind about the Mod but as non-member I have only access to the editor - so I figured I start with that and see how far it goes :)

Speaking of that:

build/release/libs/libgtkutil.a(clipboard.
o):(.data.rel.ro._ZTV17BufferInputStream[
vtable for BufferInputStream]+0x30): undefined reference to `std::basic_streambuf<char,
 std::char_traits<char> >::seekoff(long long, std::_Ios_Seekdir, std::_Ios_Openmode)'
collect2: ld returned 1 exit status
scons: *** [build/release/darkradiant] Error 1
scons: building terminated because of errors.


As far as I can see all the relevant libs are installed, so that error puzzles me. Since I am unfamiliar with scons, will have to dig a bit to see what lib could be missing. Does that ring any bell with someone familiar with linux?

PS: This is a 64bit environment, although most of the 32bit libs are also installed. However, I have no idea on wether scons attempts a 64bit or 32bit build - hopefully it leaves a log or something telling me what it attempts to build.

All the best,

Tels
"Remember: If the game lets you do it, it's not cheating." -- Xarax
0

#13 User is offline   OrbWeaver 

  • Mod hero
  • PipPipPipPipPip
  • Group: Team Member
  • Posts: 6,313
  • Joined: 31-May 05

Posted 24 September 2007 - 09:30 AM

That "long" stuff gives a vague impression of a 64-bit issue, but I know absolutely nothing about 64-bit coding so I couldn't say for sure. I have certainly never seen that error myself.
0

#14 User is offline   greebo 

  • Lead Coder
  • Icon
  • Group: Root
  • Posts: 13,216
  • Joined: 12-February 06

Posted 24 September 2007 - 09:33 AM

The error suggests that the STL implementation is missing, but I assume google can give you some clues on what's missing.

Whether the build is 64 or 32 bits depends on your compiler installation. I had a 64-bit DarkRadiant build working on my AMD64 Ubuntu a few months ago, so it should work.

Maybe there are some gcc 64 bit libraries missing? I can't remember but maybe I installed something like that additionally to the packages mentioned on the wiki. Sorry that I'm not much of a help here, I haven't installed Linux on my laptop yet.

#15 User is offline   Tels 

  • Mod hero
  • PipPipPipPipPip
  • Group: Team Member
  • Posts: 8,761
  • Joined: 06-February 05

Posted 25 September 2007 - 09:57 AM

View Postgreebo, on Sep 24 2007, 09:33 AM, said:

The error suggests that the STL implementation is missing, but I assume google can give you some clues on what's missing.

Whether the build is 64 or 32 bits depends on your compiler installation. I had a 64-bit DarkRadiant build working on my AMD64 Ubuntu a few months ago, so it should work.

Maybe there are some gcc 64 bit libraries missing? I can't remember but maybe I installed something like that additionally to the packages mentioned on the wiki. Sorry that I'm not much of a help here, I haven't installed Linux on my laptop yet.


The STL should be installed, but I am still trying to figure out whats exactly the problem is. Google wasn't that enlightening so far. (I generally only have the 64bit versions of everything installed, with only a few 32bit compat libraries).

In related news, I noticed a lot of compiler warnings, should I created patches to silence them? And if, where should I send them?

All the best,

Tels
"Remember: If the game lets you do it, it's not cheating." -- Xarax
0

#16 User is offline   OrbWeaver 

  • Mod hero
  • PipPipPipPipPip
  • Group: Team Member
  • Posts: 6,313
  • Joined: 31-May 05

Posted 25 September 2007 - 10:48 AM

View PostTels, on Sep 25 2007, 03:57 PM, said:

In related news, I noticed a lot of compiler warnings, should I created patches to silence them? And if, where should I send them?


Assuming that by "silence" you mean "fix the code" rather than "disable the warning", you are welcome to send patches to either me or Greebo in a PM or through the forum. If you wanted to get more involved in development you could be set up as a contributor and have access to the coding forums as well.
0

#17 User is offline   Thed D Domark 

  • Newbie
  • Pip
  • Group: Member
  • Posts: 1
  • Joined: 25-September 07

Post icon  Posted 25 September 2007 - 03:01 PM

Bit ot, but >>
just dl'd dark radiant sources via subversion and
started compile with command scons BUILD="release".
I get an error almost immediately with message:

scons: Reading SConscript files ...
Command line: BUILD="release"
scons: done reading SConscript files.
scons: Building targets ...
scons: building associated BuildDir targets: build/release
scons: *** [Errno 21] Is a directory: '/usr/src/darkradiant2/darkradiant/libs/ string'
scons: building terminated because of errors.

How can I fix this problem/error?
0

#18 User is offline   OrbWeaver 

  • Mod hero
  • PipPipPipPipPip
  • Group: Team Member
  • Posts: 6,313
  • Joined: 31-May 05

Posted 25 September 2007 - 03:10 PM

That error happens with the newer version of Scons (0.97 I think), with 0.96 it does not occur. I think Greebo had a fix which involved changing the SConscript, but I can't remember what it was.

Maybe it is not such a good idea having a directory "string" in the include path, when <string> is also a standard include name. It should probably be called "stringutil" or similar.
0

#19 User is offline   greebo 

  • Lead Coder
  • Icon
  • Group: Root
  • Posts: 13,216
  • Joined: 12-February 06

Posted 25 September 2007 - 03:15 PM

Yes, that's some scons weirdness. I could fix it this way:

View Postgreebo, on May 16 2007, 08:08 PM, said:

@scons: I encountered that issue as well and could resolve it by adding a
module_env.Dir('libs/string'
)

at the module_env = g_env.Copy() statement to force scons somehow into this. If you're building on an AMD64 it's also necessary to add the -fPIC position-independent code switch as standard, otherwise the linker will throw up.


#20 User is offline   Tels 

  • Mod hero
  • PipPipPipPipPip
  • Group: Team Member
  • Posts: 8,761
  • Joined: 06-February 05

Posted 25 September 2007 - 04:19 PM

View PostOrbWeaver, on Sep 25 2007, 10:48 AM, said:

Assuming that by "silence" you mean "fix the code" rather than "disable the warning", you are welcome to send patches to either me or Greebo in a PM or through the forum. If you wanted to get more involved in development you could be set up as a contributor and have access to the coding forums as well.


Of course, "silence" means either "fix the problem" or tell the bloody compiler "there is no problem", as appropriate :) For now, I am trying to get it to compile first :)

Bed time now, I will get back tomorrow.

All the best,

Tels
"Remember: If the game lets you do it, it's not cheating." -- Xarax
0

#21 User is offline   Tels 

  • Mod hero
  • PipPipPipPipPip
  • Group: Team Member
  • Posts: 8,761
  • Joined: 06-February 05

Post icon  Posted 05 October 2007 - 05:56 AM

View PostTels, on Sep 25 2007, 04:19 PM, said:

Bed time now, I will get back tomorrow.


Bah, empty threats! :ph34r:

In the meantime my computer suffered a CPU update (failed due to missing BIOS support for the shiny new dual-core :( ), a rescue BIOS update, that failed, a power-failure while trying to backup data, corrupting the ReiserFS in my original encrypted install :angry:, an intermidiate windows installation on a third HD just to update the BIOS, an finally updated BIOS, a memory stick failure, leaving my system with only one GB, and finally three Kubuntu 64 bit installations until I got it working properly with encryption. :wacko:

Apart from half the main memory missing, all is well now system-wise. :D

Right now Adept pulls down all the required packages for compiling DarkRadiant, and I still need to install Doom 3, import all my email, and do tons of system tweaks.

So, it might take a while longer until I report back for duty :)

Thanx for your patience,

Tels
"Remember: If the game lets you do it, it's not cheating." -- Xarax
0

#22 User is offline   Crispy 

  • Uber member
  • PipPipPipPip
  • Group: Team Member
  • Posts: 4,992
  • Joined: 07-August 06

Posted 05 October 2007 - 06:54 AM

Urk! How annoying. I hope you didn't lose any important data.

Good luck with getting up-and-running again. :)
My games | Public Service Announcement: TDM is not set in the Thief universe. The city in which it takes place is not the City from Thief. The player character is not called Garrett. Any person who contradicts these facts will be subjected to disapproving stares.
0

#23 User is offline   Tels 

  • Mod hero
  • PipPipPipPipPip
  • Group: Team Member
  • Posts: 8,761
  • Joined: 06-February 05

Posted 05 October 2007 - 12:54 PM

View PostCrispy, on Oct 5 2007, 06:54 AM, said:

Urk! How annoying. I hope you didn't lose any important data.

Good luck with getting up-and-running again. :)


Got the email, the pgp-key, the photos, my firefox data, guess the rest wasn't important :) But then, maybe I can repair my old partition and access the rest of the data.

Related good news:

scons: done building targets.


Yeah! (But you should have warned me that it takes a small cluster to finish the compile in under one day....)

Now I just need to figure out how to install Doom 3 under Kubuntu...

http://modetwo.net/d...wtopic=6572& hl=

All the best,

Tels
"Remember: If the game lets you do it, it's not cheating." -- Xarax
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users