Author Topic: Building tremded on linux (x86_64) (OT?)  (Read 5571 times)

PartyTyr

  • Posts: 3
  • Turrets: +0/-0
Building tremded on linux (x86_64) (OT?)
« on: February 03, 2008, 08:06:22 pm »
Hello,

I am trying to build tremded to make small mod of my own.

I'm on Ubuntu (amd64).

The problem is, the game builds, but the .qvm files are not created (instead there are .so files - like game.so).
And the new tremded binary is anyway using the old .qvm's (from tremulous-data - base/something.pk3) so the game play is not alerted.

So, how to either
  • make the server use game.so etc instead looking for game.qvm
  • how to build *.qvm

As for building .qvm's apparently there is some tool q3lcc needed, which doesnt seem trivial to install on linux (esp. 64 bit) so is there a way to use .so's instead?
« Last Edit: February 03, 2008, 08:09:25 pm by PartyTyr »

Thorn

  • Guest
Re: Building tremded on linux (x86_64) (OT?)
« Reply #1 on: February 03, 2008, 08:08:49 pm »
As far as i know, Tremded reads .so files perfectly. You were checking the build/blah/vm/   folder, right?

kevlarman

  • Posts: 2737
  • Turrets: +291/-295
Re: Building tremded on linux (x86_64) (OT?)
« Reply #2 on: February 03, 2008, 08:14:18 pm »
Hello,

I am trying to build tremded to make small mod of my own.

I'm on Ubuntu (amd64).

The problem is, the game builds, but the .qvm files are not created (instead there are .so files - like game.so).
And the new tremded binary is anyway using the old .qvm's (from tremulous-data - base/something.pk3) so the game play is not alerted.

So, how to either
  • make the server use game.so etc instead looking for game.qvm
  • how to build *.qvm

As for building .qvm's apparently there is some tool q3lcc needed, which doesnt seem trivial to install on linux (esp. 64 bit) so is there a way to use .so's instead?
q3lcc is in the source tree, unless you downloaded the source from debian/ubuntu (which you shouldn't, the 1.1 source is useless for running a server), which revision are you building from?
Quote from: Asvarox link=topic=8622.msg169333#msg169333
Ok let's plan it out. Asva, you are nub, go sit on rets, I will build, you two go feed like hell, you go pwn their asses, and everyone else camp in the hallway, roger?
the dretch bites.
-----
|..d| #
|.@.-##
-----

Rocinante

  • Posts: 642
  • Turrets: +252/-668
    • My Homepage
Re: Building tremded on linux (x86_64) (OT?)
« Reply #3 on: February 03, 2008, 08:15:50 pm »
The downside with .so files is that you can't change them on the fly - requires a server restart (while a qvm can be swapped out mid game and will load the new one on the next map).

q3lcc, I thought, was compiled when you run 'make' - at the very least I never installed it myself anywhere, and it's always been there when make needed it for that step.  But it could be that it doesn't compile on x86_64 platforms, I'll admit to my ignorance of the details.  Did you make sure to edit the top-level Makefile and tell it to build a QVM?

Pre-posting edit: Damn you kevlarman with your fast fingers.  Oh well my post still applies too :P
}MG{Mercenaries Guild
"On my ship, the Rocinante, wheeling through the galaxies, headed for the heart of Cygnus, headlong into mystery." -- Rush, "Cygnus X-1"

PartyTyr

  • Posts: 3
  • Turrets: +0/-0
Re: Building tremded on linux (x86_64) (OT?)
« Reply #4 on: February 03, 2008, 08:31:55 pm »
Yes, Im using debian/ubuntu sources.

What is the url of official, "vanilla" tremulous sources?
Or an SVN prefferably?

Rocinante

  • Posts: 642
  • Turrets: +252/-668
    • My Homepage
Re: Building tremded on linux (x86_64) (OT?)
« Reply #5 on: February 03, 2008, 09:16:51 pm »
svn://svn.icculus.org/tremulous/trunk

You'll want to look around at some other sources of information to figure out what version you want; if you try to compile $HEAD you'll probably get unusable output for most things you'd want to do, and there's backport patches around which can be applied to various revisions to get 1.1-compatible output.

Best idea is probably to get the revision of a popular QVM already existing (such as Lakitu7's) and work from there, starting with the backport patch used to make it 1.1 friendly.
}MG{Mercenaries Guild
"On my ship, the Rocinante, wheeling through the galaxies, headed for the heart of Cygnus, headlong into mystery." -- Rush, "Cygnus X-1"

Undeference

  • Tremulous Developers
  • *
  • Posts: 1254
  • Turrets: +122/-45
Re: Building tremded on linux (x86_64) (OT?)
« Reply #6 on: February 05, 2008, 03:25:22 am »
The downside with .so files is that you can't change them on the fly
So I keep seeing, but I've never had a problem with that. Admittedly, I haven't tried it on everything out there or with an older tremded.

</off-topic>
Need help? Ask intelligently. Please share solutions you find.

Thats what we need, helpful players, not more powerful admins.