Jump to content
The Dark Mod Forums

TDM on FreeBSD


Mr44er

Recommended Posts

Heya all and thanks for this great mod!

I would like to know how you can run TDM on FreeBSD, as I saw a screenshot on FreeBSD in this forum.

My version is 10.1-Release

Linuxemulator is running, the installation went well.

But I get the message

error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory

when I start TDM.

 

The libpng installed from the ports is already on v14.

 

#Edit: the already installed libpng v14 is installed for the freebsd-system, you need the libs (v12) especially for the linuxemulator too! Read next post!

 

On Linux it's running just fine!

Edited by Mr44er
Link to comment
Share on other sites

No problem...good projects need support and I like giving back. It's not much so far, but something. :)

 

Anyway...I still got some error today:

 

 

using ARB_vertex_buffer_object memory
using ARB2 renderSystem
Font fonts/english/stone in size 12 not found, using size 24 instead.
Couldn't stat exe path link /proc/1063/exe
gamex86 - Found SO in EXE path with timestamp of 1423387746 - gamex86.so
gamex86 - Found SO in pak file with timestamp of 1423387746 - /usr/home/mr44er/darkmod/tdm_game02.pk4/gamex86.so
gamex86 - SO in EXE path is newer, ignoring SO in pak file
dlopen 'gamex86.so' failed: gamex86.so: cannot open shared object file: No such file or directory
Regenerated world, staticAllocCount = 0.
Shutting down sound hardware
------ OSS Sound Shutdown ------
close sound device
--------------------------------
idRenderSystem::Shutdown()
I18NLocal: Shutdown.
Sys_Error: couldn't load game dynamic library
About to exit with code 1

 

As I found out, deleting gamex86.so OR running the updater again fixes this, but then I can only start it once. The next time I start TDM the gamex86.so is again in the directory and the start fails with the error message.

 

I think this is a specific TDM thingie, maybe a developer can tell me, why the file is being written in the darkmod-dir, as it is already there in the 'tdm_game02.pk4'.

Link to comment
Share on other sites

It needs to extract the .so file so that it can dlopen() it [i have no idea whether or not it is possible to load a shared library from a memory stream]. However, it is a bit strange that it could find the .so file to perform the timestamp comparison, but can't find it when it needs to perform the dlopen().

I am the bat. The night is mine.

Link to comment
Share on other sites

  • 5 years later...

Hi

I was able to build and start thedarkmod 2.09 on FreeBSD 13 within base clang.

I'm still working on it, but seems missions are downloadable and playable.

 

I'd like to add it to the ports tree eventually

Edited by timp
More info
  • Like 1
  • Haha 1
Link to comment
Share on other sites

I imagine the following problems:

  1. The code in sys/ which is written for Linux probably needs rewriting. That's the hardest part.
  2. Clang might not compile something in TDM. Hopefully it is just a bit of simple fixes.
  3. Third-party libraries are not stored for FreeBSD, but you can perhaps build them via "custom platform" way. Although they can fail to build too...

So I wonder how you handled these parts.

Link to comment
Share on other sites

I don't know if it's still the case but the linux version of TDM version 2.05 would run flawlessly in FreeBSD's 10.0 'linuxulator'.  ie.  FreeBSD's linux compatibility layer.  I do remember having to add a few additional linux emulation libraries (either from c5 or c6 I can't remember) but they were all provided by PCBSD 10.0, just not installed by default.  PCBSD was just a configured for a desktop version of FreeBSD.  The emulation libraries were created from either centos 5 or 6 (I can't remember).  Ultimately updates in TDM and/or PCBSD broke things.  Primarily I recall it being TDM being linked against more modern linux libraries that weren't available.

Soon after the release of 2.08 I attempted to recompile it with the still available centos compatibility libraries.  I had zero trouble compiling the TDM source (on debian or perhaps gentoo I think) but I completely failed in trying to create a centos (anything) install.  It wouldn't install on any VM I tried and it wouldn't install on any real hardware I tried.  Enthusiasm subsequently failed me and I took the easy way out and just played it on a linux box.

FreeBSD 13 is coming soon.  I'll try again with 2.09.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recent Status Updates

    • OrbWeaver

      Does anyone actually use the Normalise button in the Surface inspector? Even after looking at the code I'm not quite sure what it's for.
      · 4 replies
    • Ansome

      Turns out my 15th anniversary mission idea has already been done once or twice before! I've been beaten to the punch once again, but I suppose that's to be expected when there's over 170 FMs out there, eh? I'm not complaining though, I love learning new tricks and taking inspiration from past FMs. Best of luck on your own fan missions!
      · 4 replies
    • The Black Arrow

      I wanna play Doom 3, but fhDoom has much better features than dhewm3, yet fhDoom is old, outdated and probably not supported. Damn!
      Makes me think that TDM engine for Doom 3 itself would actually be perfect.
      · 6 replies
    • Petike the Taffer

      Maybe a bit of advice ? In the FM series I'm preparing, the two main characters have the given names Toby and Agnes (it's the protagonist and deuteragonist, respectively), I've been toying with the idea of giving them family names as well, since many of the FM series have named protagonists who have surnames. Toby's from a family who were usually farriers, though he eventually wound up working as a cobbler (this serves as a daylight "front" for his night time thieving). Would it make sense if the man's popularly accepted family name was Farrier ? It's an existing, though less common English surname, and it directly refers to the profession practiced by his relatives. Your suggestions ?
      · 9 replies
    • nbohr1more

      Looks like the "Reverse April Fools" releases were too well hidden. Darkfate still hasn't acknowledge all the new releases. Did you play any of the new April Fools missions?
      · 5 replies
×
×
  • Create New...