Problem compiling

Get help with installing and running the Cafu Engine here. This forum is also for general questions and discussion of all aspects regarding the Cafu Engine.
Post Reply
Kagarrache
Posts: 2
Joined: 2011-06-23, 22:12

Problem compiling

Post by Kagarrache » 2011-06-23, 22:25

Hi! This project looks really promising, and I'd like to try it, but I'm getting this compiling error:

Code: Select all

...
g++ -o Libs/build/linux2/g++/release/Models/Loader.o -c -O3 -funsigned-char -Wall -Werror -Wno-char-subscripts -fno-strict-aliasing -DNDEBUG -DSCONS_BUILD_DIR=build/linux2/g++/release -ILibs -IExtLibs -IExtLibs/lua/src -IExtLibs/lwo -IExtLibs/jpeg Libs/Models/Loader.cpp
Libs/Models/Loader.cpp: In member function 'void ModelLoaderT::RemoveUnusedVertices(CafuModelT::MeshT&)':
Libs/Models/Loader.cpp:143:43: error: unused variable 'Weights' [-Werror=unused-variable]
Libs/Models/Loader.cpp: In member function 'void ModelLoaderT::RemoveUnusedWeights(CafuModelT::MeshT&)':
Libs/Models/Loader.cpp:183:43: error: unused variable 'Triangles' [-Werror=unused-variable]
cc1plus: all warnings being treated as errors

scons: *** [Libs/build/linux2/g++/release/Models/Loader.o] Error 1
scons: building terminated because of errors.
Hope someone can help me. Thanks in advance.
User avatar
Carsten
Site Admin
Posts: 2169
Joined: 2004-08-19, 13:46
Location: Germany
Contact:

Re: Problem compiling

Post by Carsten » 2011-06-24, 00:02

Hi Kagarrache,
welcome to the Cafu forums! :welcome:
Kagarrache wrote:Hi! This project looks really promising, and I'd like to try it, but I'm getting this compiling error:
Oh. An oversight in recently submitted code.
I've just fixed the problem - please svn update to SVN head, then try again. :up:

Thanks for reporting this!
Best regards,
Carsten
Kagarrache
Posts: 2
Joined: 2011-06-23, 22:12

Re: Problem compiling

Post by Kagarrache » 2011-06-24, 02:21

Thank you very much for your time and effords.

Now I'm getting this:

Code: Select all

g++ -o Libs/build/linux2/g++/release/MaterialSystem/Expression.o -c -O3 -funsigned-char -Wall -Werror -Wno-char-subscripts -fno-strict-aliasing -DNDEBUG -DSCONS_BUILD_DIR=build/linux2/g++/release -ILibs -IExtLibs Libs/MaterialSystem/Expression.cpp
g++ -o Libs/build/linux2/g++/release/MaterialSystem/MapComposition.o -c -O3 -funsigned-char -Wall -Werror -Wno-char-subscripts -fno-strict-aliasing -DNDEBUG -DSCONS_BUILD_DIR=build/linux2/g++/release -ILibs -IExtLibs Libs/MaterialSystem/MapComposition.cpp
g++ -o Libs/build/linux2/g++/release/MaterialSystem/Material.o -c -O3 -funsigned-char -Wall -Werror -Wno-char-subscripts -fno-strict-aliasing -DNDEBUG -DSCONS_BUILD_DIR=build/linux2/g++/release -ILibs -IExtLibs Libs/MaterialSystem/Material.cpp
Libs/MaterialSystem/Material.cpp: In member function 'void MaterialT::Save(std::ostream&) const':
Libs/MaterialSystem/Material.cpp:516:42: error: uninitialized const 'ExpSym' [-fpermissive]
Libs/MaterialSystem/Expression.hpp:84:12: note: 'const struct ExpressionT::SymbolsT' has no user-provided default constructor
scons: *** [Libs/build/linux2/g++/release/MaterialSystem/Material.o] Error 1
scons: building terminated because of errors.
Greetings.
User avatar
Carsten
Site Admin
Posts: 2169
Joined: 2004-08-19, 13:46
Location: Germany
Contact:

Re: Problem compiling

Post by Carsten » 2011-06-24, 23:38

Hi Kagarrache,
Kagarrache wrote:

Code: Select all

Libs/MaterialSystem/Material.cpp: In member function 'void MaterialT::Save(std::ostream&) const':
Libs/MaterialSystem/Material.cpp:516:42: error: uninitialized const 'ExpSym' [-fpermissive]
Libs/MaterialSystem/Expression.hpp:84:12: note: 'const struct ExpressionT::SymbolsT' has no user-provided default constructor
scons: *** [Libs/build/linux2/g++/release/MaterialSystem/Material.o] Error 1
scons: building terminated because of errors.
Btw., which OS and compiler do you use?

I cannot see the problem here using Ubuntu 11.04 with GCC 4.5.2 (and thus I suspect that it is specific to GCC 4.6+), but I tried and committed a fix anyway: Please run svn update again and retry. :up:
Best regards,
Carsten
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests