Directory Structure

Trying to build your own version of Vega Strike and having problems? Unix users, paste your config.log here (stderr output alone is not helpful).
Post Reply
rigelan
Confed Special Operative
Confed Special Operative
Posts: 291
Joined: Sat Jan 28, 2006 2:58 am
Location: Des Moines, Iowa

Directory Structure

Post by rigelan »

I have compiled the current svn vegastrike, and I have the data4.x folder svn downloaded. How do I set up the directory structure in order for it to work. I tried placing the vegastrike binary in the bin folder, and I also did a make install which gave me about 6 different binaries that I installed into the bin folder. But when I try to run it, it just tells me that X refused my connection. So picky.
Zeog
ISO Party Member
ISO Party Member
Posts: 453
Joined: Fri Jun 03, 2005 10:30 am
Location: Europe

Post by Zeog »

I'm no expert on X servers but does a

Code: Select all

xhost +local:
prior to launching VS do the job? (It's only a workaround and has some security issues if other people log in to your computer.)

For me, it works just fine if I compile the SVN VS and create a symbolic link from data4.x directory to vegastrike and vssoundserver executables and run VS from the data4.x directory.
rigelan
Confed Special Operative
Confed Special Operative
Posts: 291
Joined: Sat Jan 28, 2006 2:58 am
Location: Des Moines, Iowa

Post by rigelan »

What do you name that symbolic link?
rigelan
Confed Special Operative
Confed Special Operative
Posts: 291
Joined: Sat Jan 28, 2006 2:58 am
Location: Des Moines, Iowa

Post by rigelan »

I guess it really didn't matter. It worked. Unfortunately, I took both ideas. So I'm not really sure which one worked . . . I won't find out until the computer gets restarted. And then hopefully I'll remember what I did. Thanks, Zeog
andreasj
Merchant
Merchant
Posts: 58
Joined: Mon Oct 03, 2005 9:17 pm

Post by andreasj »

I have the same X permission problem. Can you
tell us what operating system/compiler version
you use?
loki1950
The Shepherd
Posts: 5841
Joined: Fri May 13, 2005 8:37 pm
Location: Ottawa
Contact:

Post by loki1950 »

from an other post Zeog uses Ubantu. which should do till Zeog can responsed.

Enjoy the Choice :)
andreasj
Merchant
Merchant
Posts: 58
Joined: Mon Oct 03, 2005 9:17 pm

Post by andreasj »

Actually I was asking for rigelan's OS and
compiler. According to the forum this problem has
affected Debian, Ubuntu and Gentoo users, and I
still have no clue what could cause it...
rigelan
Confed Special Operative
Confed Special Operative
Posts: 291
Joined: Sat Jan 28, 2006 2:58 am
Location: Des Moines, Iowa

Post by rigelan »

Slackware 10.2
GCC 3.4.5
Xorg 6.9.0
Linux 2.6.14.6
And since I've restarted the computer, it does look it like the xhost command was the ingredient that did the trick.
Zeog
ISO Party Member
ISO Party Member
Posts: 453
Joined: Fri Jun 03, 2005 10:30 am
Location: Europe

Post by Zeog »

Sorry for being away that long... :-)

I'm using Kubuntu Breezy Badger (5.10) but Ubuntu should behave the same since the only difference is the window manager. It comes by default with GCC 4.0.2 and compiling works fine after I installed a lot of dev-libraries (OpenAL, Mesa, some Python stuff I think and everything else that causes ./configure to throw up).

After I downloaded the SVN packages I had the following directory structure:

Code: Select all

whatever
  |
  +--data4.x
  |
  +--vegastrike
  |
  +--music
Then I run the the "vegastrike" directory the following commands to build VS:

Code: Select all

./bootstrap-sh
./configure
./make

Then the "vegastrike" and the "soundserver" executables are in the "vegastrike" directory. Form the "data4.x" directory I issued the commands

Code: Select all

ln -s ../vegastrike/vegastrike
ln -s ../vegastrike/soundserver
which create the links. (A simple copy would also suffice but then I need to copy it again after rebuilding vegastrike.)
I'm running now vegastrike from the data4.x dir. I did this because VS always complained that it couldn't find the data-dir, configuration files or the like so I came up with this and it worked. Before running it for the first time (after logging in) I have do the workaround by setting Xserver permissions with

Code: Select all

xhost +local:
as mentioned above. It isn't a problem for sinlge user machines I presume.
I didn't do a "make install". But this works and is good enough for toying around with VS. :D

Kubuntu/Ubuntu Breezy also uses XOrg 6.something. Could it be that this X permission error occurs only on XOrg machines and not on XFree ones?
andreasj
Merchant
Merchant
Posts: 58
Joined: Mon Oct 03, 2005 9:17 pm

Post by andreasj »

I had the problem both on Debian stable and
Debian testing, with XFree and xorg. By the way,
xhost on single user machines in only safe if X is
not listening on any TCP ports. This is the default
setting for most distros, but you should still check
it (use netstat -l).
rigelan
Confed Special Operative
Confed Special Operative
Posts: 291
Joined: Sat Jan 28, 2006 2:58 am
Location: Des Moines, Iowa

Post by rigelan »

And just a note. This was only a problem with the CVS/SVN versions. I had no issues whatsoever with the 0.4.3 version from early last year.
ace123
Lead Network Developer
Lead Network Developer
Posts: 2560
Joined: Sun Jan 12, 2003 9:13 am
Location: Palo Alto CA
Contact:

Post by ace123 »

Hmm... it seems to be SDL_Init() causing the problem, based on a line-by-line trace in GDB.

I'm going to see what we can do to prevent this... though it appears to be an SDL bug.

My .Xauthority has in fact been getting truncated as well on my computer, though for some reason programs still work without it... I don't understand why.
Post Reply