Problem Building in SCL 7

27 views
Skip to first unread message

Armando Marques Sobrinho

unread,
Oct 11, 2016, 9:41:50 PM10/11/16
to animata
I try to build the source in a Scientific Linux 7 machine with a 4.7.0 kernel and gcc 4.8.5 and and took several errors the result of my console is  follow:


root@localhost [/home/usuario/opt/animata] # scons
scons
: Reading SConscript files ...

scons
: warning: BuildDir() and the build_dir keyword have been deprecated;
   
use VariantDir() and the variant_dir keyword instead.
File "/home/usuario/opt/animata/SConstruct", line 17, in <module>
Checking for C++ library m... (cached) yes
Checking for C++ library pthread... (cached) yes
Checking for C++ library fltk... (cached) yes
Checking for C++ library X11... (cached) yes
Checking for C++ library GL... (cached) yes
Checking for C++ library GLU... (cached) yes
scons
: done reading SConscript files.
scons
: Building targets ...
g
++ -o build/Bone.o -c -Wall -Wno-unknown-pragmas -Wno-long-long -pedantic -Wno-format -DTIXML_USE_STL -DOSC_HOST_LITTLE_ENDIAN -DANIMATA_MAJOR_VERSION=0 -DANIMATA_MINOR_VERSION=003 -Wno-variadic-macros -ggdb2 -O0 -DDEBUG=1 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_THREAD_SAFE -D_REENTRANT -I/usr/include -Ibuild/libs -Isrc/libs -Ibuild/libs/tinyxml -Isrc/libs/tinyxml -Ibuild/libs/oscpack -Isrc/libs/oscpack -I/usr/include/freetype2 src/Bone.cpp
In file included from src/Face.h:28:0,
                 
from src/Mesh.h:30,
                 
from src/animata.h:45,
                 
from src/Bone.cpp:30:
src
/Texture.h:73:69: error: conflicting declaration 'unsigned char* d'
   
Texture(const char *filename, int w, int h, int d, unsigned char* d, int reuseResource = 0);
                                                                     
^
src
/Texture.h:73:51: error: 'd' has a previous declaration as 'int d'
   
Texture(const char *filename, int w, int h, int d, unsigned char* d, int reuseResource = 0);
                                                   
^
In file included from src/Mesh.h:33:0,
                 
from src/animata.h:45,
                 
from src/Bone.cpp:30:
src
/Drawable.h:28:7: error: using typedef-name 'Drawable' after 'class'
 
class Drawable
       
^
In file included from /usr/include/FL/Xutf8.h:24:0,
                 
from /usr/include/FL/fl_utf8.h:64,
                 
from /usr/include/FL/Fl.H:30,
                 
from src/animata.h:42,
                 
from src/Bone.cpp:30:
/usr/include/X11/X.h:97:13: note: 'Drawable' has a previous declaration here
 
typedef XID Drawable;
             
^
In file included from src/animata.h:45:0,
                 
from src/Bone.cpp:30:
src
/Mesh.h:37:1: error: expected class-name before '{' token
 
{
 
^
In file included from src/animata.h:46:0,
                 
from src/Bone.cpp:30:
src
/Skeleton.h:36:1: error: expected class-name before '{' token
 
{
 
^
In file included from src/TextureManager.h:29:0,
                 
from src/Selection.h:38,
                 
from src/animata.h:47,
                 
from src/Bone.cpp:30:
src
/ImageBox.h:40:17: error: 'PATH_MAX' was not declared in this scope
   
char filename[PATH_MAX+1];
                 
^
src
/ImageBox.h: In member function 'char* ImageBox::getFilename()':
src
/ImageBox.h:52:39: error: 'filename' was not declared in this scope
   
inline char *getFilename() { return filename; }
                                       
^
In file included from src/Bone.cpp:30:0:
src
/animata.h: At global scope:
src
/animata.h:205:17: error: 'PATH_MAX' was not declared in this scope
   
char filename[PATH_MAX+1]; ///< filename of scene
                 
^
src
/animata.h: In member function 'const char* AnimataWindow::getFilename()':
src
/animata.h:214:49: error: 'filename' was not declared in this scope
   
inline const char *getFilename(void) { return filename; }
                                                 
^
In file included from src/animataUI.h:35:0,
                 
from src/Bone.cpp:31:
src
/libs/FLU/Flu_Tree_Browser.h: At global scope:
src
/libs/FLU/Flu_Tree_Browser.h:222:15: error: 'void Flu_Tree_Browser::color(unsigned int)' cannot be overloaded
   
inline void color( unsigned c )
               
^
src
/libs/FLU/Flu_Tree_Browser.h:218:15: error: with 'void Flu_Tree_Browser::color(Fl_Color)'
   
inline void color( Fl_Color c )
               
^
src
/libs/FLU/Flu_Tree_Browser.h:498:15: error: 'void Flu_Tree_Browser::selection_color(unsigned int)' cannot be overloaded
   
inline void selection_color( unsigned c )
               
^
src
/libs/FLU/Flu_Tree_Browser.h:494:15: error: with 'void Flu_Tree_Browser::selection_color(Fl_Color)'
   
inline void selection_color( Fl_Color c )
               
^
src
/libs/FLU/Flu_Tree_Browser.h: In member function 'unsigned int Flu_Tree_Browser::Node::remove(const char*)':
src
/libs/FLU/Flu_Tree_Browser.h:1081:64: error: cast from 'Flu_Tree_Browser::Node*' to 'unsigned int' loses precision [-fpermissive]
 
{ return( (unsigned int)modify( fullpath, REMOVE, tree->rdata ) ); }
                                                               
^
scons
: *** [build/Bone.o] Error 1
scons
: building terminated because of errors.


Someone can help-me, I really need to install this tool

thank's in advance!

Peace







Reply all
Reply to author
Forward
0 new messages