Windows CVS downloading?

Just downloaded Vega Strike and need help? Have a question but don't know where to start? Ask here.
szabo
Merchant
Merchant
Posts: 48
Joined: Sun Feb 08, 2004 12:10 am
Contact:

Post by szabo »

Maybe you should run cygwin's setup again, and checkout the latest versions of all the required packages as listed on the howto page (including the latest gcc, etc - and don't forget the latest cygwin1.dll as well). That's what I did and didn't get the kind of error you see.
hellcatv
Developer
Developer
Posts: 3980
Joined: Fri Jan 03, 2003 4:53 am
Location: Stanford, CA
Contact:

Post by hellcatv »

edit configure.in and replace -pthread with -lpthread
not sure who changed the configure.in

updating to an older one could also help
Vega Strike Lead Developer
http://vegastrike.sourceforge.net/
Silverain
Expert Mercenary
Expert Mercenary
Posts: 984
Joined: Thu Aug 07, 2003 5:35 am
Location: Brisbane, Land of Oz
Contact:

Post by Silverain »

szabo,

cygwin downloaded on 6/2/04 so latest anyway. I tried to get all packages (but couldn't find a python devel, only python package; no X11 package so grabbed anything with X11 in description); grabbed glext.h from vega-proj (and new-proj) and gone on my blind way.

hellcatv,

Changed configure.in to lpthread, got rid of those errors.

errors occuring as follows - mostly:

asking if statement about .deps/hard_coded_scripts.Tpo

I then get - In file included from various directories looking for various .h files

../../../src/boost/boost/python/detail/cast.hpp: 19,24,29,34,41,42,49 being syntax errors; 51,53,54,48,57,58,61,62,and 63 confused by earlier error so bailing.

Stupid simple question: I have vegastrike, vega-proj & data4.x all as subdirectories of a directory. Should I have the others as subdirectories of vegastrike?

The now thoroughly lost
Silverain
THOUGHT CRIME! [points finger] THOUGHT CRIME!
hellcatv
Developer
Developer
Posts: 3980
Joined: Fri Jan 03, 2003 4:53 am
Location: Stanford, CA
Contact:

Post by hellcatv »

well things are starting to come together

so the big question is: which compiler are you using

each fails in its own way when trying to compile various versions of boost

you can try
./configure --enable-boost-129
make

if that fails in boost then try
./configure --enable-boost-128
make

one of those two should work for any version of gcc-2.95,2.96,3.1.x,3.2.x,3.3.x
haven't tested other versions...
Vega Strike Lead Developer
http://vegastrike.sourceforge.net/
Silverain
Expert Mercenary
Expert Mercenary
Posts: 984
Joined: Thu Aug 07, 2003 5:35 am
Location: Brisbane, Land of Oz
Contact:

Post by Silverain »

OK, I'm using the latest gcc from cygwin download (3.3.1-3). gcc C compiler, gcc-ada, gcc-g++, gcc-g77, gcc-gpc, gcc-java all installed under cygwin.

Have tried both --enable-boost-128 & 129.

Still get similar errors.

This is what I'm doing:

aclocal
then
autoheader
then
autoconf
then
automake --add-missing --gnu
then
./configure --with-gl-lib-name=opengl32 --withglu-lib-name=glu32 --enable-boost-128 --with-data-dir=d:sandbox/data4.x --with-png-inc=usr/include/libpng (also tried this just now with correct directory location - no change)
then
make

ERRORS!
THOUGHT CRIME! [points finger] THOUGHT CRIME!
hellcatv
Developer
Developer
Posts: 3980
Joined: Fri Jan 03, 2003 4:53 am
Location: Stanford, CA
Contact:

Post by hellcatv »

well you can't get the same errors if you compile with those different flags

the error you pastedis in boost/cast.hpp
but that file is not compiled if you use boost 129
so something's fishy
Vega Strike Lead Developer
http://vegastrike.sourceforge.net/
Silverain
Expert Mercenary
Expert Mercenary
Posts: 984
Joined: Thu Aug 07, 2003 5:35 am
Location: Brisbane, Land of Oz
Contact:

Post by Silverain »

hellcatv wrote:well you can't get the same errors if you compile with those different flags

the error you pastedis in boost/cast.hpp
but that file is not compiled if you use boost 129
so something's fishy
Apologies, didn't read close enough.

Not getting cast.hpp under 129. Getting:

Examples:
In file included from ../../../src/boost129/boost/python/converter/registry.hpp11
from ../../../src/boost129/boost/python/converter/registered.hpp:9
from ../../../src/boost129/boost/python/converter/arg_to_python.hpp:10
from ../../../src/boost129/boost/python/converter/call.hpp:14
from ../../../src/boost129/boost/python/converter/object_core.hpp:11
from ../../../src/boost129/boost/python/converter/object.hpp:9
from ../../../src/python/python_class.h:13,
from hard_coded_scripts.cpp:9:
../../../src/boost129/boost/python/converter/to_python_function_type.hpp:15 error syntax error before '*' token
../../../src/boost129/boost/python/converter/to_python_function_type.hpp:22 error syntax error before '*' token
../../../src/boost129/boost/python/converter/to_python_function_type.hpp:28 error syntax error before '>' token

Repeated similar cycles of the In file included from, with similar boost reference to .hpp - wrap_python, constructor_function, convertible_function, registry,

Error types:
No file or directory (for patchlevel.h, Python.h
PyObject, source were not declared in this scope
template argument 1 is invalid
ISO C++ forbids declaration of 'PyObject' with no type

so, confused by earlier errors, bailing out.

Boost 128 errors

make all-recursive
make[1]: Entering directory '/cygdrive/d/sandbox/vegastrike'
Making all in src-recursive] Error 1
make[2]: Entering directory '/cygdrive/d/sandbox/vegastrike/src'
Making all in cmd-recursive] Error 1
make[3]: Entering direcotyr '/cygdrive/d/sandbox/vegastrike/src/cmd'
Making all in aiError 2
make[4]: Entering directory '/cydrive/d/sandbox/vegastrike/src/cmd/ai'
if g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../../src -I../../../src/boost -pipe -ggdb3 -falign-loops=2 -falign-jumps=2 -falign-functions=2 -DNOMINMAX
-Icygwin/programs/usr/include/libpng12 -DHAVE_AL=1 -DDATA_DIR="d:/sandbox/data4.x" -I/usr/include/python2.2 -DHAVE_PYTHON=1 -DUSE_BOOST_128=1 -pipe -ggdb3 -falign-loops=2 -falign-jumps=2 falign-functions=2 -lpthread -pipe -MT hard_coded_scripts.o -MD -MP -MF ".deps/hard_coded_scripts.Tpo"\
-c -o hard_coded_scripts.o 'test -f 'hard_coded_scripts.cpp' || echo './''hard_coded_scripts.cpp; \
then mv -f '.deps/hard_coded_scripts.Tpo' '.deps/hard_coded_scripts.Po'; \
else rm -f ".deps/hard_coded_scripts.Tpo'; exit 1; \

then starts the in file included from ../../../src/networking/const.h, src/vsfilesystem.h, src/easydom, src/cmd/script/mission.h, src/cmd/script/flightgroup, src/cmd/unit-generic
from hard_coded_scripts.cpp:2:
../../../src/posh.h:341:1: warning: 'POSH_OS_STRING' redefined
../../../src/python/python_class.h:3:20: Python.h: No such file or directory
In file included from boost/boost/python/objects.hpp and src/python/python_class.h
then wrap_python.hpp patchlevel.h no file
../../../src/boost/boost/python/detail/wrap_python.hpp:53?1? warning: "HAVE_STRERROR" redefined.
and so on.

cast.hpp errors syntax error before '*' token
missing ';' before right brace
ISO C++ forbids defining types within return type
semicolon missing after delcaration of 'struct downcast<t>'
declaration of template 'template<class T> int downcast<...>'
etc and so on

confused by earlier errors, bailing out.

That clarify my errors?
Also, does cygwin record these anywhere - its a pain typing it out but I can't find it anywhere.
THOUGHT CRIME! [points finger] THOUGHT CRIME!
hellcatv
Developer
Developer
Posts: 3980
Joined: Fri Jan 03, 2003 4:53 am
Location: Stanford, CA
Contact:

Post by hellcatv »

you need python devel package which provides Python.h
this should fix your boost 128 problems and maybe even the 129 problems
:-)
without python.h this ain't gonna work :-P

go to python.org
they have Python2.2 devel package which has all the headers
and it looks like you have the .a file already
so if you get the headers from the source tarball you prolly don't even need to biuld python
Vega Strike Lead Developer
http://vegastrike.sourceforge.net/
Silverain
Expert Mercenary
Expert Mercenary
Posts: 984
Joined: Thu Aug 07, 2003 5:35 am
Location: Brisbane, Land of Oz
Contact:

Post by Silverain »

Ah, somehow I thought this was the case. Wiki says need python-devel but I couldn't see it anyway on the cygwin download.

Will do.
THOUGHT CRIME! [points finger] THOUGHT CRIME!
pontiac
Elite
Elite
Posts: 1454
Joined: Sun Jan 12, 2003 6:24 pm
Location: Far out in the uncharted backwaters of the unfashionable end of the western spiral arm of the Galaxy
Contact:

Post by pontiac »

Silverain
Expert Mercenary
Expert Mercenary
Posts: 984
Joined: Thu Aug 07, 2003 5:35 am
Location: Brisbane, Land of Oz
Contact:

Post by Silverain »

hellcatv,

If all I'm needing is python.h and patchlevel.h, they were installed to usr/include/python2.3 via the python package. So it needs them elsewhere?

szarbo,

You're using cygwin aren't you? If so, did you install it only recently? What did you install (since you can get vs to compile - maybe I'm missing some additional package that does the trick).
THOUGHT CRIME! [points finger] THOUGHT CRIME!
Post Reply