Linux support?
#1
Posted 23 September 2007 - 11:42 AM
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
#3
Posted 23 September 2007 - 11:55 AM
# 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.
#4
Posted 23 September 2007 - 11:56 AM
sparhawk, on Sep 23 2007, 11:54 AM, said:
Ah good. Hopefully the people named can get in touch with me or point me in the right direction :)
All the best,
Tels
#5
Posted 23 September 2007 - 12:32 PM
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
Posted 23 September 2007 - 12:36 PM
greebo, on Sep 23 2007, 12:32 PM, said:
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
#7
Posted 23 September 2007 - 02:18 PM
Tels, on Sep 23 2007, 12:36 PM, said:
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
#9
Posted 23 September 2007 - 03:20 PM
greebo, on Sep 23 2007, 02:37 PM, said:
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
#11
Posted 24 September 2007 - 01:40 AM
#12
Posted 24 September 2007 - 08:52 AM
Crispy, on Sep 24 2007, 01:40 AM, said:
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
#14
Posted 24 September 2007 - 09:33 AM
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
Posted 25 September 2007 - 09:57 AM
greebo, on Sep 24 2007, 09:33 AM, said:
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
#16
Posted 25 September 2007 - 10:48 AM
Tels, on Sep 25 2007, 03:57 PM, 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.
#17
Posted 25 September 2007 - 03:01 PM
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?
#18
Posted 25 September 2007 - 03:10 PM
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.
#19
Posted 25 September 2007 - 03:15 PM
greebo, on May 16 2007, 08:08 PM, said:
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
Posted 25 September 2007 - 04:19 PM
OrbWeaver, on Sep 25 2007, 10:48 AM, said:
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
#21
Posted 05 October 2007 - 05:56 AM
Tels, on Sep 25 2007, 04:19 PM, said:
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
#22
Posted 05 October 2007 - 06:54 AM
Good luck with getting up-and-running again. :)
#23
Posted 05 October 2007 - 12:54 PM
Crispy, on Oct 5 2007, 06:54 AM, said:
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

Sign In
Register
Help

MultiQuote


