Register  |  FAQ  |  Search  |  Memberlist  |  Usergroups  |  Log in 
Reply to topic
  
JsnMtth
Sinner
Sinner

Joined: 31 May 2009
Posts: 363
Location: Fresno, California - United States of America
Reply with quote
chuck_starchaser wrote:
Hmmm....
I'm not sure where unusedsrcs, scalevel, etceteras are supposed to be defined.
The only external library included by al_listen.cpp is <AL/al.h>, and it doesn't define them.
Let me think about it a bit.
In the meantime, could you post your svn info output, and the outputs of ./bootstrap-sh
and ./configure? I have a feeling that the problem is still of incomplete requirements;
otherwise your problem would be common, and it isn't.




src/aldrv/al_globals.h
Code:

#ifndef AL_GLOBALS_H_
#define AL_GLOBALS_H_

/* #undef SOUND_DEBUG */

#ifdef HAVE_AL
#ifdef __APPLE__
#include <al.h>
#else
#include <AL/al.h>
#endif
#include <string>
#include <vector>
class Vector;
struct OurSound{
  ALuint source;
  ALuint buffer;
  Vector pos;
  Vector vel;
  float gain;
  ALboolean looping;
  bool music;
  OurSound(ALuint source, ALuint buffername) {buffer=buffername;pos.Set(0,0,0);vel.Set(0,0,0);gain=1.0f;};
};
extern float scalepos;
extern float scalevel;
template <typename a,typename b,int c> class Hashtable;

extern std::vector <ALuint> unusedsrcs;
extern std::vector<ALuint> buffers;
extern std::vector <OurSound> sounds;
extern Hashtable<std::string, ALuint,127> soundHash;
float AUDDistanceSquared(const int sound);
typedef ALboolean (mp3Loader)(ALuint, ALvoid *, ALint);
extern mp3Loader *alutLoadMP3p;
extern unsigned int maxallowedsingle;
extern unsigned int maxallowedtotal;
extern bool usedoppler;
extern bool usepositional;

char AUDQueryAudability (const int sound, const Vector &pos, const Vector & vel, const float gain);
void AUDAddWatchedPlayed (const int sound, const Vector &pos);
View user's profile Send private message AIM Address Yahoo Messenger
  
chuck_starchaser
SecretOps
SecretOps

Joined: 21 Jun 2007
Posts: 6291
Reply with quote
That looks correct and up-to-date, except I wouldn't use ./configure --with-data-dir=/home/user/pu/priv_pu. I use,
./configure --enable-release --disable-debug
and then put symlinks from pu/bin to vegastrike/'s binaries. But it should work either way, theoretically.
Anyways, right now the problem is the requirements. They must ALL be met.

EDIT:
@jsnmtth: Good catch!
So, why are they undefined??? :-/
EDIT 2:
Wait! Those are not definitions; they are extern declarations.

_________________
WCpedia --The Wing Commander Encyclopedia
WC Nexus forum, the Moonbase Tycho of WC fans.
View user's profile Send private message
  
JsnMtth
Sinner
Sinner

Joined: 31 May 2009
Posts: 363
Location: Fresno, California - United States of America
Reply with quote
That is the only place in the vegastrike code where the string "unusedsrcs" shows up other than in .cpp files. All uses of the "unusedsrcs" happen in the src/aldrv folder.

Code:

src/aldrv/al_sound.o: In function `std::vector<unsigned int, std::allocator<unsigned int> >::end() const':
/usr/include/c++/4.4/bits/stl_vector.h:453: undefined reference to `unusedsrcs'
src/aldrv/al_sound.o: In function `AUDReclaimSource':


This is the fist instance of the error. I'm no C++ expert, but the fact that the std library is failing like this suggests that "unusedsrcs" is an object, or other portable datatype. Like a struct maybe?

I'm going to update my build and attempt to re-compile at lunch. If I get a clean build with tlangas's settings, a complete package list would be the next thing to look at.
View user's profile Send private message AIM Address Yahoo Messenger
  
klauss
Enemy of the State
Enemy of the State

Joined: 25 Aug 2007
Posts: 256
Location: LS87, Buenos Aires, Argentina
Reply with quote
I think the problem still has to do with configure not detecting OpenAL.

All those undefined symbols are audio related stuff.

Try to find why AL wasn't detected in config.log - it logs exactly what made it think there was no AL. Configure tends to detect libraries by trying to compile a simple test program using the library with either guessed library paths or taken from pkg-config and the like. So you have too look for the part of config.log that talks about that library, and paste whatever comes next (until it starts talking about another library).

I couldn't find any in the one you posted... is it complete? If so we have major weirdness...

Edit: it should look like this (taken from my config.log)
Code:

configure:15535: checking for openal library
configure:15559: g++ -o conftest     conftest.cpp  -lopenal  >&5
configure:15566: $? = 0
configure:15585: result: yes
configure:15632: checking for AL/al.h
configure:15647: g++ -E  -DHAVE_SDL=1 -DSDL_WINDOWING=1       conftest.cpp
configure:15654: $? = 0
configure:15668: result: yes
configure:15670: checking for al.h
configure:15685: g++ -E  -DHAVE_SDL=1 -DSDL_WINDOWING=1       conftest.cpp
conftest.cpp:116:17: error: al.h: No such file or directory
configure:15692: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "vegastrike"
| #define PACKAGE_TARNAME "vegastrike"
| #define PACKAGE_VERSION "0.4.4"
| #define PACKAGE_STRING "vegastrike 0.4.4"
| #define PACKAGE_BUGREPORT ""
| #define LINUX 1
| #define POSIX 1
| #define UNIX 1
| #define PACKAGE "vegastrike"
| #define VERSION "0.4.4"
| #define HAVE_DIRENT_H 1
| #define STDC_HEADERS 1
   ... lot of cruft ...
| #define HAVE_ISNAN 1
| #define HAVE_ZLIB_H 1
| #define HAVE_SDL_JOYSTICKOPEN 1
| #define HAVE_GLXGETPROCADDRESSARB 1
| /* end confdefs.h.  */
|  #include <al.h>
configure:15706: result: yes
configure:15826: checking AL/alext.h usability
configure:15843: g++ -c    conftest.cpp >&5
In file included from conftest.cpp:149:
/usr/include/AL/alext.h:99: error: typedef 'ALvoid' is initialized (use __typeof__ instead)
/usr/include/AL/alext.h:99: error: 'AL_APIENTRY' was not declared in this scope
/usr/include/AL/alext.h:99: error: 'PFNALBUFFERSUBDATAEXTPROC' was not declared in this scope
configure:15850: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "vegastrike"
| #define PACKAGE_TARNAME "vegastrike"
| #define PACKAGE_VERSION "0.4.4"
| #define PACKAGE_STRING "vegastrike 0.4.4"
| #define PACKAGE_BUGREPORT ""
| #define LINUX 1
| #define POSIX 1
| #define UNIX 1
| #define PACKAGE "vegastrike"
| #define VERSION "0.4.4"
| #define HAVE_DIRENT_H 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_WAIT_H 1
   ... lot of cruft ...
| #define HAVE_ZLIB_H 1
| #define HAVE_SDL_JOYSTICKOPEN 1
| #define HAVE_GLXGETPROCADDRESSARB 1
| /* end confdefs.h.  */
| #include <stdio.h>
| #ifdef HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #ifdef HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #ifdef STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # ifdef HAVE_STDLIB_H
| #  include <stdlib.h>
| # endif
| #endif
| #ifdef HAVE_STRING_H
| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
| #  include <memory.h>
| # endif
| # include <string.h>
| #endif
| #ifdef HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #ifdef HAVE_INTTYPES_H
| # include <inttypes.h>
| #endif
| #ifdef HAVE_STDINT_H
| # include <stdint.h>
| #endif
| #ifdef HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| #include <AL/alext.h>
configure:15864: result: no
configure:15868: checking AL/alext.h presence
configure:15883: g++ -E  conftest.cpp
configure:15890: $? = 0
configure:15904: result: yes
configure:15917: WARNING: AL/alext.h: present but cannot be compiled
configure:15919: WARNING: AL/alext.h:     check for missing prerequisite headers?
configure:15921: WARNING: AL/alext.h: see the Autoconf documentation
configure:15923: WARNING: AL/alext.h:     section "Present But Cannot Be Compiled"
configure:15925: WARNING: AL/alext.h: proceeding with the preprocessor's result
configure:15927: WARNING: AL/alext.h: in the future, the compiler will take precedence
configure:15932: checking for AL/alext.h
configure:15941: result: yes


There it didn't find alext. But it builds.

_________________
Oid mortales, el grito sagrado.
Call me "Menes, lord of Cats"
View user's profile Send private message MSN Messenger ICQ Number
  
jdixon567
Space dust
Space dust

Joined: 08 Feb 2010
Posts: 8
Reply with quote
Hi guys,

I'm trying to get pu working in linux, and managed to compile fine. The problem is when I run ./vegastrike setup it crashes, and I can't set my desired resolution. When I run ./vegastrike I'm stuck in 1280x1024 and the bottom of the screen is cut off so I can't start my game.

Here's the dump I get after running ./vegastrike setup :

Code:

james@wykydtron:~/Games/pu/priv_pu$ ./vegastrike setup
 In path /home/james/Games/pu/vegastrike
Vega Strike 
See http://www.gnu.org/copyleft/gpl.html for license details.

GOT SUBDIR ARG =
Found data in /home/james/Games/pu/priv_pu/
Using /home/james/Games/pu/priv_pu as data directory
Using .pu as the home directory
Found MODDIR = /home/james/Games/pu/priv_pu/mods
USING HOMEDIR : /home/james/.pu As the home directory
CONFIGFILE - Found a config file in home directory, using : /home/james/.pu/vegastrike.config
DATADIR - No datadir specified in config file, using ; /home/james/Games/pu/priv_pu
SIMULATION_ATOM: 0.06
Attempt to call ReadFull on a bad file units.csv
Only read 0 out of -1 bytes of units.csv
!!! ERROR/WARNING VSFile : on ReadFull : Unspecified error (maybe to document in VSFile ?)
running import sys
print sys.path
sys.path = [r"/home/james/Games/pu/priv_pu/modules/builtin",r"/home/james/Games/pu/priv_pu/modules/quests",r"/home/james/Games/pu/priv_pu/modules/missions",r"/home/james/Games/pu/priv_pu/modules/ai",r"/home/james/Games/pu/priv_pu/modules",r"/home/james/Games/pu/priv_pu/bases"]
['/usr/lib/python2.6', '/usr/lib/python2.6/plat-linux2', '/usr/lib/python2.6/lib-tk', '/usr/lib/python2.6/lib-old', '/usr/lib/python2.6/lib-dynload', '/usr/lib/python2.6/dist-packages', '/usr/lib/python2.6/dist-packages/Numeric', '/usr/lib/python2.6/dist-packages/PIL', '/usr/lib/python2.6/dist-packages/gst-0.10', '/usr/lib/pymodules/python2.6', '/usr/lib/python2.6/dist-packages/gtk-2.0', '/usr/lib/pymodules/python2.6/gtk-2.0', '/usr/lib/python2.6/dist-packages/wx-2.8-gtk2-unicode', '/usr/local/lib/python2.6/dist-packages']
testing VS randomrunning import sys
print sys.path
['/home/james/Games/pu/priv_pu/modules/builtin', '/home/james/Games/pu/priv_pu/modules/quests', '/home/james/Games/pu/priv_pu/modules/missions', '/home/james/Games/pu/priv_pu/modules/ai', '/home/james/Games/pu/priv_pu/modules', '/home/james/Games/pu/priv_pu/bases']
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
Setting Screen to w 1280 h 1024 and pitch of 5120 and 32 bpp 4 bytes per pix mode
OpenGL::GL_EXT_compiled_vertex_array unsupported
OpenGL::GL_EXT_multi_draw_arrays supported
OpenGL::Accurate Fog Distance unsupported
OpenGL::Generic Texture Compression supported
OpenGL::S3TC Texture Compression unsupported
OpenGL::Multitexture supported (8 units)
OpenGL::TextureCubeMapExt supported
OpenGL::S3TC Texture Clamp-to-Edge supported
OpenGL::S3TC Texture Clamp-to-Border supported
Note: 'for (li ... )' body is too large/complex to unroll

Error: texture2DLod: undeclared function name.

Fragment Program Error: Failed to compile highend
OpenGL::EXTColorTable unsupported
0 joysticks were found.

The names of the joysticks are:
Transferring 1024x1024 texture, page 0 (eff: 1024x1024 - limited at 65536 - 0 mips), onto name 1 (TEXTURE_2D)
Transferring 1x1 texture, page 0 (eff: 1x1 - limited at 65536 - 0 mips), onto name 2 (TEXTURE_2D)
FactionXML:LoadXML factions.xml
Transferring 256x256 texture, page 0 (eff: 256x256 - limited at 65536 - 0 mips), onto name 3 (TEXTURE_2D)
Transferring 256x256 texture, page 0 (eff: 256x256 - limited at 65536 - 0 mips), onto name 4 (TEXTURE_2D)
Transferring 256x256 texture, page 0 (eff: 256x256 - limited at 65536 - 0 mips), onto name 5 (TEXTURE_2D)
Transferring 256x256 texture, page 0 (eff: 256x256 - limited at 65536 - 0 mips), onto name 6 (TEXTURE_2D)
Transferring 256x256 texture, page 0 (eff: 256x256 - limited at 65536 - 0 mips), onto name 7 (TEXTURE_2D)
Transferring 256x256 texture, page 0 (eff: 256x256 - limited at 65536 - 0 mips), onto name 8 (TEXTURE_2D)
Transferring 256x256 texture, page 0 (eff: 256x256 - limited at 65536 - 0 mips), onto name 9 (TEXTURE_2D)
Transferring 256x256 texture, page 0 (eff: 256x256 - limited at 65536 - 0 mips), onto name 10 (TEXTURE_2D)
Transferring 256x256 texture, page 0 (eff: 256x256 - limited at 65536 - 0 mips), onto name 11 (TEXTURE_2D)
Transferring 256x256 texture, page 0 (eff: 256x256 - limited at 65536 - 0 mips), onto name 12 (TEXTURE_2D)
Transferring 256x256 texture, page 0 (eff: 256x256 - limited at 65536 - 0 mips), onto name 13 (TEXTURE_2D)
Transferring 256x256 texture, page 0 (eff: 256x256 - limited at 65536 - 0 mips), onto name 14 (TEXTURE_2D)
Transferring 256x256 texture, page 0 (eff: 256x256 - limited at 65536 - 0 mips), onto name 15 (TEXTURE_2D)
Transferring 256x256 texture, page 0 (eff: 256x256 - limited at 65536 - 0 mips), onto name 16 (TEXTURE_2D)
Transferring 256x256 texture, page 0 (eff: 256x256 - limited at 65536 - 0 mips), onto name 17 (TEXTURE_2D)
Transferring 256x256 texture, page 0 (eff: 256x256 - limited at 65536 - 0 mips), onto name 18 (TEXTURE_2D)
Transferring 256x256 texture, page 0 (eff: 256x256 - limited at 65536 - 0 mips), onto name 19 (TEXTURE_2D)
Transferring 256x256 texture, page 0 (eff: 256x256 - limited at 65536 - 0 mips), onto name 20 (TEXTURE_2D)
Transferring 256x256 texture, page 0 (eff: 256x256 - limited at 65536 - 0 mips), onto name 21 (TEXTURE_2D)
Transferring 256x256 texture, page 0 (eff: 256x256 - limited at 65536 - 0 mips), onto name 22 (TEXTURE_2D)
Transferring 256x256 texture, page 0 (eff: 256x256 - limited at 65536 - 0 mips), onto name 23 (TEXTURE_2D)
Transferring 256x256 texture, page 0 (eff: 256x256 - limited at 65536 - 0 mips), onto name 24 (TEXTURE_2D)
Transferring 256x256 texture, page 0 (eff: 256x256 - limited at 65536 - 0 mips), onto name 25 (TEXTURE_2D)
Transferring 256x256 texture, page 0 (eff: 256x256 - limited at 65536 - 0 mips), onto name 26 (TEXTURE_2D)
Transferring 256x256 texture, page 0 (eff: 256x256 - limited at 65536 - 0 mips), onto name 27 (TEXTURE_2D)
Transferring 256x256 texture, page 0 (eff: 256x256 - limited at 65536 - 0 mips), onto name 28 (TEXTURE_2D)
Transferring 256x256 texture, page 0 (eff: 256x256 - limited at 65536 - 0 mips), onto name 29 (TEXTURE_2D)
Transferring 256x256 texture, page 0 (eff: 256x256 - limited at 65536 - 0 mips), onto name 30 (TEXTURE_2D)
Transferring 256x256 texture, page 0 (eff: 256x256 - limited at 65536 - 0 mips), onto name 31 (TEXTURE_2D)
Transferring 256x256 texture, page 0 (eff: 256x256 - limited at 65536 - 0 mips), onto name 32 (TEXTURE_2D)
Transferring 256x256 texture, page 0 (eff: 256x256 - limited at 65536 - 0 mips), onto name 33 (TEXTURE_2D)
Transferring 256x256 texture, page 0 (eff: 256x256 - limited at 65536 - 0 mips), onto name 34 (TEXTURE_2D)
Transferring 256x256 texture, page 0 (eff: 256x256 - limited at 65536 - 0 mips), onto name 35 (TEXTURE_2D)
Transferring 256x256 texture, page 0 (eff: 256x256 - limited at 65536 - 0 mips), onto name 36 (TEXTURE_2D)
Transferring 256x256 texture, page 0 (eff: 256x256 - limited at 65536 - 0 mips), onto name 37 (TEXTURE_2D)
Transferring 256x256 texture, page 0 (eff: 256x256 - limited at 65536 - 0 mips), onto name 38 (TEXTURE_2D)
Transferring 256x256 texture, page 0 (eff: 256x256 - limited at 65536 - 0 mips), onto name 39 (TEXTURE_2D)
Transferring 256x256 texture, page 0 (eff: 256x256 - limited at 65536 - 0 mips), onto name 40 (TEXTURE_2D)
Transferring 256x256 texture, page 0 (eff: 256x256 - limited at 65536 - 0 mips), onto name 41 (TEXTURE_2D)
Transferring 256x256 texture, page 0 (eff: 256x256 - limited at 65536 - 0 mips), onto name 42 (TEXTURE_2D)
Transferring 256x256 texture, page 0 (eff: 256x256 - limited at 65536 - 0 mips), onto name 43 (TEXTURE_2D)
Transferring 256x256 texture, page 0 (eff: 256x256 - limited at 65536 - 0 mips), onto name 44 (TEXTURE_2D)
Transferring 256x256 texture, page 0 (eff: 256x256 - limited at 65536 - 0 mips), onto name 45 (TEXTURE_2D)
Transferring 256x256 texture, page 0 (eff: 256x256 - limited at 65536 - 0 mips), onto name 46 (TEXTURE_2D)
Transferring 256x256 texture, page 0 (eff: 256x256 - limited at 65536 - 0 mips), onto name 47 (TEXTURE_2D)
Transferring 256x256 texture, page 0 (eff: 256x256 - limited at 65536 - 0 mips), onto name 48 (TEXTURE_2D)
Transferring 256x256 texture, page 0 (eff: 256x256 - limited at 65536 - 0 mips), onto name 49 (TEXTURE_2D)
Transferring 256x256 texture, page 0 (eff: 256x256 - limited at 65536 - 0 mips), onto name 50 (TEXTURE_2D)
Transferring 256x256 texture, page 0 (eff: 256x256 - limited at 65536 - 0 mips), onto name 51 (TEXTURE_2D)
Transferring 256x256 texture, page 0 (eff: 256x256 - limited at 65536 - 0 mips), onto name 52 (TEXTURE_2D)
Transferring 128x128 texture, page 0 (eff: 128x128 - limited at 65536 - 0 mips), onto name 53 (TEXTURE_2D)
Transferring 128x128 texture, page 0 (eff: 128x128 - limited at 65536 - 0 mips), onto name 54 (TEXTURE_2D)
Transferring 128x128 texture, page 0 (eff: 128x128 - limited at 65536 - 0 mips), onto name 55 (TEXTURE_2D)
Transferring 128x128 texture, page 0 (eff: 128x128 - limited at 65536 - 0 mips), onto name 56 (TEXTURE_2D)
Transferring 128x128 texture, page 0 (eff: 128x128 - limited at 65536 - 0 mips), onto name 57 (TEXTURE_2D)
Transferring 128x128 texture, page 0 (eff: 128x128 - limited at 65536 - 0 mips), onto name 58 (TEXTURE_2D)
Transferring 128x128 texture, page 0 (eff: 128x128 - limited at 65536 - 0 mips), onto name 59 (TEXTURE_2D)
Transferring 128x128 texture, page 0 (eff: 128x128 - limited at 65536 - 0 mips), onto name 60 (TEXTURE_2D)
Transferring 128x128 texture, page 0 (eff: 128x128 - limited at 65536 - 0 mips), onto name 61 (TEXTURE_2D)
Transferring 128x128 texture, page 0 (eff: 128x128 - limited at 65536 - 0 mips), onto name 62 (TEXTURE_2D)
Transferring 128x128 texture, page 0 (eff: 128x128 - limited at 65536 - 0 mips), onto name 63 (TEXTURE_2D)
Transferring 128x128 texture, page 0 (eff: 128x128 - limited at 65536 - 0 mips), onto name 64 (TEXTURE_2D)
Transferring 128x128 texture, page 0 (eff: 128x128 - limited at 65536 - 0 mips), onto name 65 (TEXTURE_2D)
Transferring 128x128 texture, page 0 (eff: 128x128 - limited at 65536 - 0 mips), onto name 66 (TEXTURE_2D)
Transferring 128x128 texture, page 0 (eff: 128x128 - limited at 65536 - 0 mips), onto name 67 (TEXTURE_2D)
Transferring 128x128 texture, page 0 (eff: 128x128 - limited at 65536 - 0 mips), onto name 68 (TEXTURE_2D)
Transferring 128x128 texture, page 0 (eff: 128x128 - limited at 65536 - 0 mips), onto name 69 (TEXTURE_2D)
Transferring 128x128 texture, page 0 (eff: 128x128 - limited at 65536 - 0 mips), onto name 70 (TEXTURE_2D)
Transferring 128x128 texture, page 0 (eff: 128x128 - limited at 65536 - 0 mips), onto name 71 (TEXTURE_2D)
Transferring 128x128 texture, page 0 (eff: 128x128 - limited at 65536 - 0 mips), onto name 72 (TEXTURE_2D)
Transferring 128x128 texture, page 0 (eff: 128x128 - limited at 65536 - 0 mips), onto name 73 (TEXTURE_2D)
Transferring 128x128 texture, page 0 (eff: 128x128 - limited at 65536 - 0 mips), onto name 74 (TEXTURE_2D)
Transferring 128x128 texture, page 0 (eff: 128x128 - limited at 65536 - 0 mips), onto name 75 (TEXTURE_2D)
Transferring 128x128 texture, page 0 (eff: 128x128 - limited at 65536 - 0 mips), onto name 76 (TEXTURE_2D)
Transferring 128x128 texture, page 0 (eff: 128x128 - limited at 65536 - 0 mips), onto name 77 (TEXTURE_2D)
Transferring 128x128 texture, page 0 (eff: 128x128 - limited at 65536 - 0 mips), onto name 78 (TEXTURE_2D)
Transferring 128x128 texture, page 0 (eff: 128x128 - limited at 65536 - 0 mips), onto name 79 (TEXTURE_2D)
Transferring 128x128 texture, page 0 (eff: 128x128 - limited at 65536 - 0 mips), onto name 80 (TEXTURE_2D)
Transferring 128x128 texture, page 0 (eff: 128x128 - limited at 65536 - 0 mips), onto name 81 (TEXTURE_2D)
Transferring 128x128 texture, page 0 (eff: 128x128 - limited at 65536 - 0 mips), onto name 82 (TEXTURE_2D)
Transferring 128x128 texture, page 0 (eff: 128x128 - limited at 65536 - 0 mips), onto name 83 (TEXTURE_2D)
Transferring 128x128 texture, page 0 (eff: 128x128 - limited at 65536 - 0 mips), onto name 84 (TEXTURE_2D)
Transferring 128x128 texture, page 0 (eff: 128x128 - limited at 65536 - 0 mips), onto name 85 (TEXTURE_2D)
Transferring 128x128 texture, page 0 (eff: 128x128 - limited at 65536 - 0 mips), onto name 86 (TEXTURE_2D)
Transferring 128x128 texture, page 0 (eff: 128x128 - limited at 65536 - 0 mips), onto name 87 (TEXTURE_2D)
Transferring 128x128 texture, page 0 (eff: 128x128 - limited at 65536 - 0 mips), onto name 88 (TEXTURE_2D)
Transferring 128x128 texture, page 0 (eff: 128x128 - limited at 65536 - 0 mips), onto name 89 (TEXTURE_2D)
Transferring 128x128 texture, page 0 (eff: 128x128 - limited at 65536 - 0 mips), onto name 90 (TEXTURE_2D)
Transferring 128x128 texture, page 0 (eff: 128x128 - limited at 65536 - 0 mips), onto name 91 (TEXTURE_2D)
Transferring 128x128 texture, page 0 (eff: 128x128 - limited at 65536 - 0 mips), onto name 92 (TEXTURE_2D)
Transferring 128x128 texture, page 0 (eff: 128x128 - limited at 65536 - 0 mips), onto name 93 (TEXTURE_2D)
Transferring 128x128 texture, page 0 (eff: 128x128 - limited at 65536 - 0 mips), onto name 94 (TEXTURE_2D)
Transferring 128x128 texture, page 0 (eff: 128x128 - limited at 65536 - 0 mips), onto name 95 (TEXTURE_2D)
Transferring 128x128 texture, page 0 (eff: 128x128 - limited at 65536 - 0 mips), onto name 96 (TEXTURE_2D)
Transferring 128x128 texture, page 0 (eff: 128x128 - limited at 65536 - 0 mips), onto name 97 (TEXTURE_2D)
Transferring 128x128 texture, page 0 (eff: 128x128 - limited at 65536 - 0 mips), onto name 98 (TEXTURE_2D)
Transferring 128x128 texture, page 0 (eff: 128x128 - limited at 65536 - 0 mips), onto name 99 (TEXTURE_2D)
Transferring 128x128 texture, page 0 (eff: 128x128 - limited at 65536 - 0 mips), onto name 100 (TEXTURE_2D)
Transferring 128x128 texture, page 0 (eff: 128x128 - limited at 65536 - 0 mips), onto name 101 (TEXTURE_2D)
Transferring 128x128 texture, page 0 (eff: 128x128 - limited at 65536 - 0 mips), onto name 102 (TEXTURE_2D)
Transferring 128x128 texture, page 0 (eff: 128x128 - limited at 65536 - 0 mips), onto name 103 (TEXTURE_2D)
Transferring 128x128 texture, page 0 (eff: 128x128 - limited at 65536 - 0 mips), onto name 104 (TEXTURE_2D)
Transferring 128x128 texture, page 0 (eff: 128x128 - limited at 65536 - 0 mips), onto name 105 (TEXTURE_2D)
Transferring 128x128 texture, page 0 (eff: 128x128 - limited at 65536 - 0 mips), onto name 106 (TEXTURE_2D)
Transferring 128x128 texture, page 0 (eff: 128x128 - limited at 65536 - 0 mips), onto name 107 (TEXTURE_2D)
Transferring 128x128 texture, page 0 (eff: 128x128 - limited at 65536 - 0 mips), onto name 108 (TEXTURE_2D)
Transferring 128x128 texture, page 0 (eff: 128x128 - limited at 65536 - 0 mips), onto name 109 (TEXTURE_2D)
Transferring 128x128 texture, page 0 (eff: 128x128 - limited at 65536 - 0 mips), onto name 110 (TEXTURE_2D)
Transferring 128x128 texture, page 0 (eff: 128x128 - limited at 65536 - 0 mips), onto name 111 (TEXTURE_2D)
Transferring 128x128 texture, page 0 (eff: 128x128 - limited at 65536 - 0 mips), onto name 112 (TEXTURE_2D)
Transferring 128x128 texture, page 0 (eff: 128x128 - limited at 65536 - 0 mips), onto name 113 (TEXTURE_2D)
Transferring 128x128 texture, page 0 (eff: 128x128 - limited at 65536 - 0 mips), onto name 114 (TEXTURE_2D)
Transferring 128x128 texture, page 0 (eff: 128x128 - limited at 65536 - 0 mips), onto name 115 (TEXTURE_2D)
Transferring 128x128 texture, page 0 (eff: 128x128 - limited at 65536 - 0 mips), onto name 116 (TEXTURE_2D)
Transferring 128x128 texture, page 0 (eff: 128x128 - limited at 65536 - 0 mips), onto name 117 (TEXTURE_2D)
Transferring 128x128 texture, page 0 (eff: 128x128 - limited at 65536 - 0 mips), onto name 118 (TEXTURE_2D)
Transferring 128x128 texture, page 0 (eff: 128x128 - limited at 65536 - 0 mips), onto name 119 (TEXTURE_2D)
Panic exit - mission file setup not found
AL lib: ALc.c:1368: exit(): closing 1 Device
AL lib: ALc.c:1345: alcCloseDevice(): destroying 1 Context
AL lib: alSource.c:2362: alcDestroyContext(): deleting 20 Source(s)
AL lib: alBuffer.c:1079: exit(): deleting 333 Buffer(s)
james@wykydtron:~/Games/pu/priv_pu$
[/code]
View user's profile Send private message
  
klauss
Enemy of the State
Enemy of the State

Joined: 25 Aug 2007
Posts: 256
Location: LS87, Buenos Aires, Argentina
Reply with quote
jdixon567 wrote:
Hi guys,

I'm trying to get pu working in linux, and managed to compile fine. The problem is when I run ./vegastrike setup it crashes, and I can't set my desired resolution. When I run ./vegastrike I'm stuck in 1280x1024 and the bottom of the screen is cut off so I can't start my game.


You want to run ./vssetup
./vegastrike setup instructs it to go looking for the mission file "missions/setup" - which obviously isn't there.

But you've just given me a nice idea Very Happy - which is OT in this forum.

_________________
Oid mortales, el grito sagrado.
Call me "Menes, lord of Cats"
View user's profile Send private message MSN Messenger ICQ Number
  
jdixon567
Space dust
Space dust

Joined: 08 Feb 2010
Posts: 8
Reply with quote
Awesome thanks! Yeah I tried to use vssetup earlier, but it wasn't there. I think I had to recompile a few times, and the latest compile gave me vssetup.
View user's profile Send private message
  
JsnMtth
Sinner
Sinner

Joined: 31 May 2009
Posts: 363
Location: Fresno, California - United States of America
Reply with quote
I received a normal build...

tlangas: Please post the part of the config.log that has to do with Openal, as was suggested earlier. Also, what processor are you trying to compile on?
View user's profile Send private message AIM Address Yahoo Messenger
  
klauss
Enemy of the State
Enemy of the State

Joined: 25 Aug 2007
Posts: 256
Location: LS87, Buenos Aires, Argentina
Reply with quote
Sorry if this was answered earlier, I quickly grok'd through the thread but I couldn't see...
...@tlangas: did you run bootstrap.sh?

_________________
Oid mortales, el grito sagrado.
Call me "Menes, lord of Cats"
View user's profile Send private message MSN Messenger ICQ Number
  
tlangas
Space Salvage
Space Salvage

Joined: 23 Feb 2010
Posts: 21
Reply with quote
klauss wrote:
Sorry if this was answered earlier, I quickly grok'd through the thread but I couldn't see...
...@tlangas: did you run bootstrap.sh?


Yes I did run bootstrap.sh.

I think the problem still has to do with configure not detecting OpenAL.

All those undefined symbols are audio related stuff.

Try to find why AL wasn't detected in config.log - it logs exactly what made it think there was no AL. Configure tends to detect libraries by trying to compile a simple test program using the library with either guessed library paths or taken from pkg-config and the like. So you have too look for the part of config.log that talks about that library, and paste whatever comes next (until it starts talking about another library).

I couldn't find any in the one you posted... is it complete? If so we have major weirdness...


My config.log file is complete. That is the full output I get. I do think it is a dependency issue but no matter how many times I try aptitude or apt-get will not find the files I am looking for. Are they no longer in the current repositories? If they are, what are the exact lines should I use to find out what I need to install or the latest source repository that does have them?

Like I mentioned earlier, I could not find:
    openal
    openal-devel
    expat-devel ( I could find expat and not expat-devel?)
    libjpeg
    libjpeg-devel
    opengl
    glut
    glut-devel
    libgtk2.0
    libgtk-devel


Are these part of other libraries that I can download?
View user's profile Send private message
  
tlangas
Space Salvage
Space Salvage

Joined: 23 Feb 2010
Posts: 21
Reply with quote
To an earlier post these are the svn lines I used to download. I've pulled them from my history.
Code:
svn co --username username --password password https://svn.wcjunction.com/priv_pu/trunk priv_pu
svn co https://vegastrike.svn.sourceforge.net/svnroot/vegastrike/trunk/vegastrike vegastrike
View user's profile Send private message
  
tlangas
Space Salvage
Space Salvage

Joined: 23 Feb 2010
Posts: 21
Reply with quote
View user's profile Send private message
  
chuck_starchaser
SecretOps
SecretOps

Joined: 21 Jun 2007
Posts: 6291
Reply with quote
That's so odd... Did you try with Synaptic?
I'm relatively new to Linux (about a year), but it seems to me you are missing some key repos from your repo list.
Why would you otherwise find glut, but not glut-devel; openal, but not openal-devel; and so on?
You seem to have an anti-development filter somewhere...

_________________
WCpedia --The Wing Commander Encyclopedia
WC Nexus forum, the Moonbase Tycho of WC fans.
View user's profile Send private message
  
tlangas
Space Salvage
Space Salvage

Joined: 23 Feb 2010
Posts: 21
Reply with quote
Okay I found openal = libalut0 and libalut-dev. I also installed libopenal0a. I did how ever have to manually install it from the Hardy respos for Ubutnu as it was not in the Jaunty list. I'm not sure what one PU looks for so I installed both. You can find libopenal0a at http://packages.ubuntu.com/hardy/i386/libopenal0a/download.

I hope these are the correct libraries for expat. libexpat1 and libexpat1-dev.
Again with libjpeg. libjpeg62 and libjpeg62-dev.
For Opengl I installed libglui2c2 and libglui-dev since I've noticed most of the libraries so for involve glut and C.
And I found libgtk2.0-0 and libgtk2.0-dev.

Tried building it again and it is still craping out on the soundHash.
Code:
/usr/include/c++/4.4/tr1_impl/hashtable_policy.h:754: undefined reference to `soundHash'
View user's profile Send private message
  
chuck_starchaser
SecretOps
SecretOps

Joined: 21 Jun 2007
Posts: 6291
Reply with quote
Hmm... soundHash is defined in aldrv/al_globals.cpp...
Code:
~/vs/repo/trunk/vegastrike/src$ grep -R soundHash ./*
..........................
./aldrv/al_globals.cpp:Hashtable< std::string, ALuint, 127 >soundHash;
................

Why doesn't it find it? Weird...
What's it linking there? Vegastrike or vegaserver?
Have you svn up'ed recently? There's been a lot of fixes and updates in the last couple of days.
After svn up, I'd make clean, ./bootstrap-sh, then, and this is new,
./configure --enable-release --disable-debug --with-boost=system
But you'll have to make sure you have the boost 1.40 libraries installed, including -dev's.
Then make.
In the meantime, I'll see if I can figure out what could be wrong with soundHash.

_________________
WCpedia --The Wing Commander Encyclopedia
WC Nexus forum, the Moonbase Tycho of WC fans.
View user's profile Send private message
  
tlangas
Space Salvage
Space Salvage

Joined: 23 Feb 2010
Posts: 21
Reply with quote
I just did a svn and got all the updates. I then ran:
Code:
cd vegastrike
./bootstrap-sh
./configure --enable-release --disable-debug --with-boost=system
make


I now have a new error.
Code:

make
make  all-am
make[1]: Entering directory `/home/user/pu/vegastrike'
depbase=`echo src/networking/lowlevel/netui.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
   g++ -DHAVE_CONFIG_H -I.   -I/usr/include -DBOOST_PYTHON_NO_PY_SIGNATURES     -DHAVE_SDL=1 -DSDL_WINDOWING=1      -DHAVE_AL=1   -DHAVE_OGG  -DHAVE_FFMPEG  -I/usr/include/python2.6 -DHAVE_PYTHON=1    -I./src   -pipe -O2 -ffast-math  -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -pthread -MT src/networking/lowlevel/netui.o -MD -MP -MF $depbase.Tpo -c -o src/networking/lowlevel/netui.o src/networking/lowlevel/netui.cpp &&\
   mv -f $depbase.Tpo $depbase.Po
In file included from src/networking/lowlevel/netui.h:25,
                 from src/networking/lowlevel/netui.cpp:5:
src/networking/lowlevel/vsnet_socket.h:22:32: error: boost/shared_ptr.hpp: No such file or directory
In file included from src/networking/lowlevel/vsnet_socket.h:27,
                 from src/networking/lowlevel/netui.h:25,
                 from src/networking/lowlevel/netui.cpp:5:
src/networking/lowlevel/vsnet_socketset.h:32:30: error: boost/weak_ptr.hpp: No such file or directory
In file included from src/networking/lowlevel/vsnet_socketset.h:39,
                 from src/networking/lowlevel/vsnet_socket.h:27,
                 from src/networking/lowlevel/netui.h:25,
                 from src/networking/lowlevel/netui.cpp:5:
src/networking/lowlevel/vsnet_debug.h:4:29: error: boost/version.hpp: No such file or directory
In file included from src/networking/lowlevel/vsnet_socket.h:28,
                 from src/networking/lowlevel/netui.h:25,
                 from src/networking/lowlevel/netui.cpp:5:
src/networking/lowlevel/packetmem.h:10:34: error: boost/shared_array.hpp: No such file or directory
In file included from src/networking/lowlevel/vsnet_socket.h:27,
                 from src/networking/lowlevel/netui.h:25,
                 from src/networking/lowlevel/netui.cpp:5:
src/networking/lowlevel/vsnet_socketset.h:77: error: ‘boost’ has not been declared
src/networking/lowlevel/vsnet_socketset.h:77: error: ISO C++ forbids declaration of ‘weak_ptr’ with no type
src/networking/lowlevel/vsnet_socketset.h:77: error: expected ‘;’ before ‘<’ token
src/networking/lowlevel/vsnet_socketset.h:78: error: ‘boost’ has not been declared
src/networking/lowlevel/vsnet_socketset.h:78: error: ISO C++ forbids declaration of ‘weak_ptr’ with no type
src/networking/lowlevel/vsnet_socketset.h:78: error: expected ‘;’ before ‘<’ token
src/networking/lowlevel/vsnet_socketset.h:83: error: ‘boost’ has not been declared
src/networking/lowlevel/vsnet_socketset.h:83: error: expected ‘,’ or ‘...’ before ‘<’ token
src/networking/lowlevel/vsnet_socketset.h:84: error: ‘boost’ has not been declared
src/networking/lowlevel/vsnet_socketset.h:84: error: expected ‘,’ or ‘...’ before ‘<’ token
src/networking/lowlevel/vsnet_socketset.h:84: error: ‘bool SocketSet::addDownloadManager(int)’ cannot be overloaded
src/networking/lowlevel/vsnet_socketset.h:83: error: with ‘bool SocketSet::addDownloadManager(int)’
In file included from src/networking/lowlevel/vsnet_socket.h:28,
                 from src/networking/lowlevel/netui.h:25,
                 from src/networking/lowlevel/netui.cpp:5:
src/networking/lowlevel/packetmem.h:25: error: ‘boost’ has not been declared
src/networking/lowlevel/packetmem.h:25: error: ISO C++ forbids declaration of ‘shared_array’ with no type
src/networking/lowlevel/packetmem.h:25: error: typedef name may not be a nested-name-specifier
src/networking/lowlevel/packetmem.h:25: error: expected ‘;’ before ‘<’ token
src/networking/lowlevel/packetmem.h:27: error: ‘ptr’ does not name a type
In file included from src/networking/lowlevel/netui.h:25,
                 from src/networking/lowlevel/netui.cpp:5:
src/networking/lowlevel/vsnet_socket.h:36: error: ‘boost’ has not been declared
src/networking/lowlevel/vsnet_socket.h:36: error: ISO C++ forbids declaration of ‘shared_ptr’ with no type
src/networking/lowlevel/vsnet_socket.h:36: error: typedef name may not be a nested-name-specifier
src/networking/lowlevel/vsnet_socket.h:36: error: expected ‘;’ before ‘<’ token
src/networking/lowlevel/vsnet_socket.h:38: error: ‘ptr’ does not name a type
make[1]: *** [src/networking/lowlevel/netui.o] Error 1
make[1]: Leaving directory `/home/user/pu/vegastrike'
make: *** [all] Error 2
View user's profile Send private message
  
chuck_starchaser
SecretOps
SecretOps

Joined: 21 Jun 2007
Posts: 6291
Reply with quote
Same problem as before; compiling with boost = system is a bit easier and faster, but like I said you need to
install boost 1.40 first. Fire up Synaptic, type "boost 1.40", then go through the list and mark everything that's
boost 1.40 -related for installation, hit Apply; then try the build again.

_________________
WCpedia --The Wing Commander Encyclopedia
WC Nexus forum, the Moonbase Tycho of WC fans.
View user's profile Send private message
  
tlangas
Space Salvage
Space Salvage

Joined: 23 Feb 2010
Posts: 21
Reply with quote
Thanks for the clarification about installing boost with Synaptic. I thought it was part of the installer. Everything now installed and started to work. When I run it I get:
Code:
terminate called after throwing an instance of '__impl::InvalidParameters'
  what():  Cannot load texture file "blue.png"


Thanks for all your hard work helping getting this to work this far. I hope I'm just missing a simple symbolic link.
View user's profile Send private message
  
chuck_starchaser
SecretOps
SecretOps

Joined: 21 Jun 2007
Posts: 6291
Reply with quote
Hurray! This is much better.

This blue.png is a mystery, tho; never heard that one.
It should be under <pu_folder>/textures.
It's a tiny texture, 2x2, 50% red, 50% green, 100% blue, and 50% alpha.
Used as a substitute for a normalmap, when a normalmap is not supplied.

See if you have it there, first. If not, try to svn up; if yes, then something
else is wrong.

_________________
WCpedia --The Wing Commander Encyclopedia
WC Nexus forum, the Moonbase Tycho of WC fans.
View user's profile Send private message
  
klauss
Enemy of the State
Enemy of the State

Joined: 25 Aug 2007
Posts: 256
Location: LS87, Buenos Aires, Argentina
Reply with quote
Hadn't you changed blue.png by gray.png or something like that?

_________________
Oid mortales, el grito sagrado.
Call me "Menes, lord of Cats"
View user's profile Send private message MSN Messenger ICQ Number
  
gorbalad
Enlisted Pilot
Enlisted Pilot

Joined: 17 Mar 2008
Posts: 2769
Location: Vienna, Austria Timezone: GMT+1 in winter, +2 in summer
Reply with quote
blue.PNG would also cause errors just in linux, due to the case(in)sensitivity stuff...

_________________
Ceterum Censeo...
View user's profile Send private message
  
chuck_starchaser
SecretOps
SecretOps

Joined: 21 Jun 2007
Posts: 6291
Reply with quote
klauss wrote:
Hadn't you changed blue.png by gray.png or something like that?

In vegastrike; not in PU, yet.
((BTW, Klauss, did you have a look at Ticket #15?))

Oh, wait!; you're right. Dammit! I totally forgot he's compiling from svn.
No, wait!; the techniques and shaders are in the /data side of the repo; he's only using
the /vegastrike side of sourceforge svn to compile from.
Or...
Would there be a new "<blue/gray/whatever>.png" hard-coded somewhere?
Heck, even if there was it would work, because we DO have a blue.png under /textures.

Tlangas, could you post your stderr.txt?

_________________
WCpedia --The Wing Commander Encyclopedia
WC Nexus forum, the Moonbase Tycho of WC fans.
View user's profile Send private message
  
chuck_starchaser
SecretOps
SecretOps

Joined: 21 Jun 2007
Posts: 6291
Reply with quote
My deepest apollogies!

I checked my svn status and found I had blue.png, as well as grey_metal.png, un-committed.
I've committed them now, r499; but wait!; DON'T svn up yet... I've also accidentally committed
a shader that was experimental --NOT WORKING--, and I don't know the svn command to
revert it to the previous version. Trying to figure it out...

For now, what you can do is go to your /textures folder, and svn up from there.
--i.e.:
cd /textures
svn up


((How is it that nobody else had a problem with blue.png?))

_________________
WCpedia --The Wing Commander Encyclopedia
WC Nexus forum, the Moonbase Tycho of WC fans.
View user's profile Send private message
  
klauss
Enemy of the State
Enemy of the State

Joined: 25 Aug 2007
Posts: 256
Location: LS87, Buenos Aires, Argentina
Reply with quote
@chuck:

svn up -rPREV <file>

EDIT: sorry, that only fetches the file, but won't mark it dirty. You want

svn merge -rHEAD:PREV <file>

Wink

_________________
Oid mortales, el grito sagrado.
Call me "Menes, lord of Cats"
View user's profile Send private message MSN Messenger ICQ Number
  
chuck_starchaser
SecretOps
SecretOps

Joined: 21 Jun 2007
Posts: 6291
Reply with quote
Thanks, Klauss; that worked like a charm.
The highend.fp at r498 was not too good, either, unfortunately; --too much ambient light; not sure where it comes from, though I did find
a *2 in the env map function, and took it out. Good enough for now, I say; better than having a broken shader; and we should have
new binaries soon.

So, Tlangas, you can svn up priv/trunk normally, now. r500

((Should we buy a bottle of champagne, r.e. "500"? Very Happy))

EDIT:
OT:
Good changes to vegastrike's highend.fp, Klauss; thanks! Can't wait to move it over here.
/OT

_________________
WCpedia --The Wing Commander Encyclopedia
WC Nexus forum, the Moonbase Tycho of WC fans.
View user's profile Send private message
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 4 of 5  

  
  
 Reply to topic