ComSer Forum
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
September 03, 2010, 08:02:37 AM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search:
Advanced search
Thank you for visiting the ComSer forum, you will be concidered in our future award for most amazing visitors of the century at the ComSer forum.
8079
Posts in
701
Topics by
852
Members
Latest Member:
marcusforeman
ComSer Forum
Gusanos Forum
Gusanos Support
Compile error
0 Members and 5 Guests are viewing this topic.
« previous
next »
Pages:
[
1
]
2
Author
Topic: Compile error (Read 2722 times)
Daedalus
Jr. Member
Karma: 0
Offline
Posts: 4
Compile error
«
on:
January 12, 2006, 05:38:25 PM »
When I try to compile Gusanos (I'm not sure what version; I CVSed it as per
this guide
) from source on Linux, I get the following error:
daedalus@Hades:~/.programs/Gusanos$ sudo scons no-parser=1
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
g++ -Wl,--export-dynamic -o bin/posix/gusanos Goop/.build/posix/release/animators.o Goop/.build/posix/release/base_action.o Goop/.build/posix/release/base_animator.o Goop/.build/posix/release/base_object.o Goop/.build/posix/release/base_player.o Goop/.build/posix/release/base_worm.o Goop/.build/posix/release/client.o Goop/.build/posix/release/detect_event.o Goop/.build/posix/release/distortion.o Goop/.build/posix/release/encoding.o Goop/.build/posix/release/events.o Goop/.build/posix/release/exp_type.o Goop/.build/posix/release/explosion.o Goop/.build/posix/release/font.o Goop/.build/posix/release/game.o Goop/.build/posix/release/game_actions.o Goop/.build/posix/release/gconsole.o Goop/.build/posix/release/gfx.o Goop/.build/posix/release/glua.o Goop/.build/posix/release/gusanos.o Goop/.build/posix/release/hash_table.o Goop/.build/posix/release/keyboard.o Goop/.build/posix/release/keys.o Goop/.build/posix/release/level.o Goop/.build/posix/release/level_effect.o Goop/.build/posix/release/material.o Goop/.build/posix/release/menu.o Goop/.build/posix/release/mouse.o Goop/.build/posix/release/net_worm.o Goop/.build/posix/release/network.o Goop/.build/posix/release/ninjarope.o Goop/.build/posix/release/noise_line.o Goop/.build/posix/release/objects_list.o Goop/.build/posix/release/parser.o Goop/.build/posix/release/part_type.o Goop/.build/posix/release/particle.o Goop/.build/posix/release/player.o Goop/.build/posix/release/player_ai.o Goop/.build/posix/release/player_input.o Goop/.build/posix/release/player_options.o Goop/.build/posix/release/posspd_replicator.o Goop/.build/posix/release/proxy_player.o Goop/.build/posix/release/resource_base.o Goop/.build/posix/release/resource_list.o Goop/.build/posix/release/script.o Goop/.build/posix/release/server.o Goop/.build/posix/release/sfx.o Goop/.build/posix/release/simple_particle.o Goop/.build/posix/release/sound.o Goop/.build/posix/release/sound1d.o Goop/.build/posix/release/sprite.o Goop/.build/posix/release/sprite_set.o Goop/.build/posix/release/stl_str_replicator.o Goop/.build/posix/release/timer_event.o Goop/.build/posix/release/vector_repliactor.o Goop/.build/posix/release/viewport.o Goop/.build/posix/release/weapon.o Goop/.build/posix/release/weapon_type.o Goop/.build/posix/release/worm.o Goop/lua/.build/posix/release/bindings-game.o Goop/lua/.build/posix/release/bindings-gfx.o Goop/lua/.build/posix/release/bindings-math.o Goop/lua/.build/posix/release/bindings-network.o Goop/lua/.build/posix/release/bindings-objects.o Goop/lua/.build/posix/release/bindings-resources.o Goop/lua/.build/posix/release/bindings.o Goop/blitters/.build/posix/release/add.o Goop/blitters/.build/posix/release/add_simd.o Goop/blitters/.build/posix/release/blend.o Goop/blitters/.build/posix/release/blend_simd.o Goop/blitters/.build/posix/release/mult.o Goop/blitters/.build/posix/release/mult_simd.o Goop/loaders/.build/posix/release/gusanos.o Goop/loaders/.build/posix/release/liero.o Goop/loaders/.build/posix/release/lierox.o Goop/loaders/.build/posix/release/losp.o -Llib/posix/release -Llib/posix -L/usr/local/lib -lomfggui -lomfghttp -lomfgconsole -lomfgscript -lglua -lloadpng -lomfgutil -lalleg-4.2.0 -lalleg_unsharable -lboost_filesystem-gcc -lboost_signals-gcc -lfmod -lpng12 -lzoidcom -lz
Goop/.build/posix/release/level.o: In function `Level::think()':
Goop/level.cpp:210: undefined reference to `Level::WaterSkipFactor'
collect2: ld returned 1 exit status
scons: *** [bin/posix/gusanos] Error 1
scons: building terminated because of errors.
«
Last Edit: January 12, 2006, 05:41:56 PM by Daedalus
»
Logged
setrodox
I am NOT pink!
Hero Member
Karma: 34
Offline
Posts: 336
Re: Compile error
«
Reply #1 on:
January 12, 2006, 11:32:41 PM »
Pils had the same problem, don't know what causes it, but changing line 211 in Goop/level.cpp from
Code:
if ( rnd() > WaterSkipFactor )
to
Code:
if ( rnd() > 0.05f )
solved that problem.
that does the same thing as WaterSkipFactor isn't a variable but a constant with that value
Logged
PINK!
RepTail
Jr. Member
Karma: 0
Offline
Posts: 3
Re: Compile error
«
Reply #2 on:
January 20, 2006, 09:38:29 AM »
I've got this error, when compilling:
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
g++ -pipe -Wall -Wno-reorder -O3 -g -DNDEBUG -fomit-frame-pointer -IOmfgScript -Ihttp -Iloadpng -Ilua51 -IConsole -IGUI -IUtility -IOmfgScript -I/usr/local/include/zoidcom -I/usr/include/fmod -I/usr/local/include/boost-1_33_1 -c -o OmfgScript/.build/posix/release/omfg_script.o OmfgScript/omfg_script.cpp
OmfgScript/omfg_script.cpp: In member function `void OmfgScript::Parameters::addParam(const std::string&, std::auto_ptr<OmfgScript::TokenBase>, Location)':
OmfgScript/omfg_script.cpp:94: warning: comparison between signed and unsigned integer expressions
OmfgScript/omfg_script.cpp: In member function `void OmfgScript::Parameters::addParam(std::auto_ptr<OmfgScript::TokenBase>, Location)':
OmfgScript/omfg_script.cpp:119: warning: comparison between signed and unsigned integer expressions
OmfgScript/omfg_script.cpp: At global scope:
OmfgScript/omfg_script.cpp:519: error: expected template-name before '<' token
OmfgScript/omfg_script.cpp:519: error: expected `{' before '<' token
OmfgScript/omfg_script.cpp:519: error: expected unqualified-id before '<' token
OmfgScript/omfg_script.cpp:519: error: expected `,' or `;' before '<' token
OmfgScript/omfg_script.cpp:699: error: incomplete type `OmfgScript::ParserImpl' used in nested name specifier
OmfgScript/omfg_script.cpp:699: error: incomplete type `OmfgScript::ParserImpl' used in nested name specifier
OmfgScript/omfg_script.cpp:699: error: template argument 1 is invalid
OmfgScript/omfg_script.cpp:699: error: template argument 2 is invalid
OmfgScript/omfg_script.cpp:699: error: ISO C++ forbids declaration of `const_iterator' with no type
OmfgScript/omfg_script.cpp:699: error: expected `;' before "Iter"
OmfgScript/omfg_script.cpp:700: error: expected `)' before "i_"
OmfgScript/omfg_script.cpp:705: error: `Iter' does not name a type
OmfgScript/omfg_script.cpp:706: error: `Iter' does not name a type
OmfgScript/omfg_script.cpp: In member function `OmfgScript::Parser::EventIter& OmfgScript::Parser::EventIter::operator++()':
OmfgScript/omfg_script.cpp:719: error: 'struct OmfgScript::EventData' has no member named 'i'
OmfgScript/omfg_script.cpp: In member function `OmfgScript::Parser::EventIter::operator bool()':
OmfgScript/omfg_script.cpp:725: error: 'struct OmfgScript::EventData' has no member named 'i'
OmfgScript/omfg_script.cpp:725: error: 'struct OmfgScript::EventData' has no member named 'end'
OmfgScript/omfg_script.cpp: In member function `int OmfgScript::Parser::EventIter::type()':
OmfgScript/omfg_script.cpp:730: error: 'struct OmfgScript::EventData' has no member named 'i'
OmfgScript/omfg_script.cpp: In member function `const std::vector<OmfgScript::TokenBase*, std::allocator<OmfgScript::TokenBase*> >& OmfgScript::Parser::EventIter::params()':
OmfgScript/omfg_script.cpp:735: error: 'struct OmfgScript::EventData' has no member named 'i'
OmfgScript/omfg_script.cpp: In member function `std::vector<BaseAction*, std::allocator<BaseAction*> >& OmfgScript::Parser::EventIter::actions()':
OmfgScript/omfg_script.cpp:740: error: 'struct OmfgScript::EventData' has no member named 'i'
OmfgScript/omfg_script.cpp: In constructor `OmfgScript::Parser::EventIter::EventIter(OmfgScript::Parser&)':
OmfgScript/omfg_script.cpp:744: error: invalid use of undefined type `struct OmfgScript::ParserImpl'
OmfgScript/omfg_script.h:34: error: forward declaration of `struct OmfgScript::ParserImpl'
OmfgScript/omfg_script.cpp:744: error: invalid use of undefined type `struct OmfgScript::ParserImpl'
OmfgScript/omfg_script.h:34: error: forward declaration of `struct OmfgScript::ParserImpl'
OmfgScript/omfg_script.cpp:744: error: new initializer expression list treated as compound expression
OmfgScript/omfg_script.cpp: In constructor `OmfgScript::Parser::Parser(std::istream&, OmfgScript::ActionFactory&, const std::string&)':
OmfgScript/omfg_script.cpp:752: error: invalid use of undefined type `struct OmfgScript::ParserImpl'
OmfgScript/omfg_script.h:34: error: forward declaration of `struct OmfgScript::ParserImpl'
OmfgScript/omfg_script.cpp: In destructor `OmfgScript::Parser::~Parser()':
OmfgScript/omfg_script.cpp:758: warning: possible problem detected in invocation of delete operator:
OmfgScript/omfg_script.cpp:758: warning: invalid use of undefined type `struct OmfgScript::ParserImpl'
OmfgScript/omfg_script.h:34: warning: forward declaration of `struct OmfgScript::ParserImpl'
OmfgScript/omfg_script.cpp:758: note: neither the destructor nor the class-specific operator delete will be called, even if they are declared when the class is defined.
OmfgScript/omfg_script.cpp: In member function `OmfgScript::ParamProxy OmfgScript::Parser::addEvent(const std::string&, int, int)':
OmfgScript/omfg_script.cpp:764: error: invalid use of undefined type `struct OmfgScript::ParserImpl'
OmfgScript/omfg_script.h:34: error: forward declaration of `struct OmfgScript::ParserImpl'
OmfgScript/omfg_script.cpp: In member function `OmfgScript::TokenBase* OmfgScript::Parser::getProperty(const std::string&)':
OmfgScript/omfg_script.cpp:803: error: invalid use of undefined type `struct OmfgScript::ParserImpl'
OmfgScript/omfg_script.h:34: error: forward declaration of `struct OmfgScript::ParserImpl'
OmfgScript/omfg_script.cpp: In member function `OmfgScript::TokenBase* OmfgScript::Parser::getProperty(const std::string&, const std::string&)':
OmfgScript/omfg_script.cpp:809: error: invalid use of undefined type `struct OmfgScript::ParserImpl'
OmfgScript/omfg_script.h:34: error: forward declaration of `struct OmfgScript::ParserImpl'
OmfgScript/omfg_script.cpp:810: error: invalid use of undefined type `struct OmfgScript::ParserImpl'
OmfgScript/omfg_script.h:34: error: forward declaration of `struct OmfgScript::ParserImpl'
OmfgScript/omfg_script.cpp: In member function `bool OmfgScript::Parser::run()':
OmfgScript/omfg_script.cpp:816: error: invalid use of undefined type `struct OmfgScript::ParserImpl'
OmfgScript/omfg_script.h:34: error: forward declaration of `struct OmfgScript::ParserImpl'
OmfgScript/omfg_script.cpp:817: error: invalid use of undefined type `struct OmfgScript::ParserImpl'
OmfgScript/omfg_script.h:34: error: forward declaration of `struct OmfgScript::ParserImpl'
OmfgScript/omfg_script.cpp: In member function `bool OmfgScript::Parser::incomplete()':
OmfgScript/omfg_script.cpp:822: error: invalid use of undefined type `struct OmfgScript::ParserImpl'
OmfgScript/omfg_script.h:34: error: forward declaration of `struct OmfgScript::ParserImpl'
OmfgScript/omfg_script.cpp: In member function `void OmfgScript::Parser::error(const std::string&)':
OmfgScript/omfg_script.cpp:827: error: invalid use of undefined type `struct OmfgScript::ParserImpl'
OmfgScript/omfg_script.h:34: error: forward declaration of `struct OmfgScript::ParserImpl'
OmfgScript/omfg_script.cpp: In member function `unsigned int OmfgScript::Parser::getCRC()':
OmfgScript/omfg_script.cpp:832: error: invalid use of undefined type `struct OmfgScript::ParserImpl'
OmfgScript/omfg_script.h:34: error: forward declaration of `struct OmfgScript::ParserImpl'
scons: *** [OmfgScript/.build/posix/release/omfg_script.o] Error 1
scons: building terminated because of errors
Logged
setrodox
I am NOT pink!
Hero Member
Karma: 34
Offline
Posts: 336
Re: Compile error
«
Reply #3 on:
January 20, 2006, 09:59:13 AM »
maybe your version of gcc is too old. try "gcc --version". i am using 4.0.3. 3.4.x should also work. 3.3.x wont work!
Logged
PINK!
Gliptic
Gusanos Team
Veteran Member
Karma: 8
Offline
Posts: 208
Re: Compile error
«
Reply #4 on:
January 21, 2006, 06:52:42 AM »
You're trying to rebuild the parsers. To do that you need the program re2c. If you don't have that, get omfg_script_parser.h from CVS and run scons with no-parsers=1 .
«
Last Edit: January 21, 2006, 06:53:28 AM by Gliptic
»
Logged
setrodox
I am NOT pink!
Hero Member
Karma: 34
Offline
Posts: 336
Re: Compile error
«
Reply #5 on:
January 21, 2006, 07:09:21 AM »
ah, right, i haven't seen the OmfgScript parts
maybe it would be better if the SConstruct file only tries to build parser if parser=1, instead of the other way round?
Logged
PINK!
RepTail
Jr. Member
Karma: 0
Offline
Posts: 3
Re: Compile error
«
Reply #6 on:
January 27, 2006, 05:09:54 AM »
scons doesn't detect fmod (it's installed in the system)
Logged
setrodox
I am NOT pink!
Hero Member
Karma: 34
Offline
Posts: 336
Re: Compile error
«
Reply #7 on:
January 27, 2006, 06:16:00 AM »
which version are you using? if it's not 3.74 you have to symlink it to fmod.so
Logged
PINK!
RepTail
Jr. Member
Karma: 0
Offline
Posts: 3
Re: Compile error
«
Reply #8 on:
January 27, 2006, 07:12:48 AM »
thx, now it works:D
Logged
Daedalus
Jr. Member
Karma: 0
Offline
Posts: 4
Re: Compile error
«
Reply #9 on:
January 30, 2006, 03:49:48 PM »
I've fixed line 211 in Goop.cpp, and now scons works and Gusanos compiles, although with a
huge
number of warnings. However, when I try and run it from the console, it says "Segmentation fault", and that's it.
Logged
basara
Administrator
Historic Member
Karma: 31
Offline
Posts: 840
Re: Compile error
«
Reply #10 on:
January 30, 2006, 07:26:00 PM »
did you remeber to download the data and place it where it should?
Logged
Daedalus
Jr. Member
Karma: 0
Offline
Posts: 4
Re: Compile error
«
Reply #11 on:
January 30, 2006, 09:00:55 PM »
I didn't, but now I have, and it does exactly the same thing.
Logged
B_Lizzard
Jr. Member
Karma: 0
Offline
Posts: 7
Re: Compile error
«
Reply #12 on:
February 01, 2006, 02:50:03 AM »
I have a *small* problem too:
Code:
g++ -pipe -Wall -Wno-reorder -O3 -g -DNDEBUG -fomit-frame-pointer -IGoop -Ihttp -Iloadpng -Ilua51 -IConsole -IGUI -IUtility -IOmfgScript -I/usr/local/include/zoidcom -I/usr/include -c -o Goop/.build/posix/release/gfx.o Goop/gfx.cpp
Goop/gfx.cpp: In member function 'void Gfx::registerInConsole()':
Goop/gfx.cpp:237: error: 'GFX_XDGA' was not declared in this scope
Goop/gfx.cpp:238: error: 'GFX_XDGA2' was not declared in this scope
Goop/gfx.cpp: In member function 'int Gfx::getGraphicsDriver()':
Goop/gfx.cpp:604: error: 'GFX_XDGA' was not declared in this scope
Goop/gfx.cpp:604: error: 'GFX_XDGA_FULLSCREEN' was not declared in this scope
Goop/gfx.cpp:605: error: 'GFX_XDGA2' was not declared in this scope
Goop/gfx.cpp:606: error: 'GFX_XWINDOWS_FULLSCREEN' was not declared in this scope
Goop/gfx.cpp:620: error: 'GFX_XDGA' was not declared in this scope
Goop/gfx.cpp:621: error: 'GFX_XDGA2' was not declared in this scope
scons: *** [Goop/.build/posix/release/gfx.o] Error 1
scons: building terminated because of errors.
Seems to be something with Zoidcom (But what has zoidcom have to do with gfx?)
Help?
Logged
setrodox
I am NOT pink!
Hero Member
Karma: 34
Offline
Posts: 336
Re: Compile error
«
Reply #13 on:
February 01, 2006, 02:58:11 AM »
hasn't got anything to do with zoidcom, more with allegro, maybe you are using a too old version of allegro?
Logged
PINK!
Gliptic
Gusanos Team
Veteran Member
Karma: 8
Offline
Posts: 208
Re: Compile error
«
Reply #14 on:
February 01, 2006, 05:23:08 AM »
Gusanos needs allegro 4.2, but you must have a really old version to not have those defines.
Logged
Pages:
[
1
]
2
« previous
next »
Jump to:
Please select a destination:
-----------------------------
News
-----------------------------
=> ComSer News
=> Power Magazine
-----------------------------
ComSer General
-----------------------------
=> ComSer General
=> Liero Wiki
=> Dr. Darka's Linux Centre
=> Off Topic
-----------------------------
Liero forum
-----------------------------
=> Liero Discussions
-----------------------------
Gusanos Forum
-----------------------------
=> Gusanos News
=> Gusanos Support
=> Gusanos Modding
=> Gusanos Development
Loading...