Find the answer to your Linux question:
Results 1 to 3 of 3
I've tried to install the library GLT from GLT - OpenGL C++ Toolkit - Download but I've some problems: Code: gabriele@GB:~/Scrivania/glt$ make Entering /home/gabriele/Scrivania/glt/src Entering /home/gabriele/Scrivania/glt/src/glt Compiling buffer.cpp In file ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Aug 2010
    Posts
    23

    problems installing glt


    I've tried to install the library GLT from
    GLT - OpenGL C++ Toolkit - Download
    but I've some problems:
    Code:
    gabriele@GB:~/Scrivania/glt$ make
    Entering  /home/gabriele/Scrivania/glt/src
    Entering  /home/gabriele/Scrivania/glt/src/glt
    Compiling  buffer.cpp               
    In file included from buffer.cpp:1:
    buffer.h: In member function ‘GltFrameBufferZ<DepthType, GlDepthType>& GltFrameBufferZ<DepthType, GlDepthType>::operator=(const DepthType&)’:
    buffer.h:182: error: ‘_width’ was not declared in this scope
    buffer.h:182: error: ‘_height’ was not declared in this scope
    buffer.h:182: error: ‘_pixels’ was not declared in this scope
    buffer.h:184: error: ‘_x’ was not declared in this scope
    buffer.h:185: error: ‘_y’ was not declared in this scope
    buffer.h:188: error: ‘_size’ was not declared in this scope
    buffer.h:196: error: ‘_size’ was not declared in this scope
    buffer.h:197: error: ‘_pixels’ was not declared in this scope
    make[2]: *** [buffer.o] Errore 1
    Leaving   /home/gabriele/Scrivania/glt/src/glt
    Entering  /home/gabriele/Scrivania/glt/src/misc
    Entering  /home/gabriele/Scrivania/glt/src/misc/internal
    Updating   libglt.a
    Leaving   /home/gabriele/Scrivania/glt/src/misc/internal
    Makedepend compress.cpp             
    Compiling  compress.cpp             
    compress.cpp: In function ‘const byte* const getHeader(const char*, uint32&, uint32&, uint32&, uint32&)’:
    compress.cpp:105: error: ‘strlen’ was not declared in this scope
    compress.cpp: In function ‘bool compress(std::string&, const std::string&)’:
    compress.cpp:152: error: ‘memcpy’ was not declared in this scope
    compress.cpp: In function ‘bool decompress(std::string&, const std::string&)’:
    compress.cpp:184: error: ‘memcpy’ was not declared in this scope
    compress.cpp: In function ‘bool decompress(std::string&, const void*)’:
    compress.cpp:233: error: ‘memcpy’ was not declared in this scope
    compress.cpp: In function ‘bool compressZLib(std::string&, const std::string&, int)’:
    compress.cpp:323: error: ‘memcpy’ was not declared in this scope
    make[2]: *** [compress.o] Errore 1
    Leaving   /home/gabriele/Scrivania/glt/src/misc
    Entering  /home/gabriele/Scrivania/glt/src/math
    Compiling  path.cpp                 
    path.cpp: In constructor ‘GltPath3DHelix::GltPath3DHelix(const Vector&, const Vector&, real, real, real)’:
    path.cpp:54: error: ‘matrixRotate’ was not declared in this scope
    make[2]: *** [path.o] Errore 1
    Leaving   /home/gabriele/Scrivania/glt/src/math
    Entering  /home/gabriele/Scrivania/glt/src/mesh
    Compiling  read3dsb.cpp             
    read3dsb.cpp: In function ‘chunkID readChunk(std::istream&, chunkSize&)’:
    read3dsb.cpp:77: warning: dereferencing type-punned pointer will break strict-aliasing rules
    read3dsb.cpp:78: warning: dereferencing type-punned pointer will break strict-aliasing rules
    read3dsb.cpp: In function ‘char* readString(std::istream&)’:
    read3dsb.cpp:113: error: ‘strcpy’ was not declared in this scope
    read3dsb.cpp: In function ‘void readObject(std::istream&, chunkSize)’:
    read3dsb.cpp:190: error: ‘strlen’ was not declared in this scope
    read3dsb.cpp: In function ‘void readMesh(std::istream&, chunkSize, char*)’:
    read3dsb.cpp:261: warning: dereferencing type-punned pointer will break strict-aliasing rules
    read3dsb.cpp:262: warning: dereferencing type-punned pointer will break strict-aliasing rules
    read3dsb.cpp:263: warning: dereferencing type-punned pointer will break strict-aliasing rules
    read3dsb.cpp:291: warning: dereferencing type-punned pointer will break strict-aliasing rules
    read3dsb.cpp:292: warning: dereferencing type-punned pointer will break strict-aliasing rules
    read3dsb.cpp:293: warning: dereferencing type-punned pointer will break strict-aliasing rules
    make[2]: *** [read3dsb.o] Errore 1
    Leaving   /home/gabriele/Scrivania/glt/src/mesh
    Entering  /home/gabriele/Scrivania/glt/src/node
    Compiling  blend.cpp                
    In file included from ../../src/node/shape.h:42,
                     from ../../src/node/shapes.h:34,
                     from blend.h:35,
                     from blend.cpp:1:
    ../../src/node/fields.h: In member function ‘void GltFields::add(T*, int, const std::string&)’:
    ../../src/node/fields.h:115: error: there are no arguments to ‘sprintf’ that depend on a template parameter, so a declaration of ‘sprintf’ must be available
    ../../src/node/fields.h:115: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
    make[2]: *** [blend.o] Errore 1
    Leaving   /home/gabriele/Scrivania/glt/src/node
    Entering  /home/gabriele/Scrivania/glt/src/glutm
    Compiling  main.cpp                 
    main.cpp: In function ‘int main(int, char**)’:
    main.cpp:53: error: ‘EXIT_SUCCESS’ was not declared in this scope
    make[2]: *** [main.o] Errore 1
    Leaving   /home/gabriele/Scrivania/glt/src/glutm
    Entering  /home/gabriele/Scrivania/glt/src/fonts
    Updating   libglt.a
    Leaving   /home/gabriele/Scrivania/glt/src/fonts
    Entering  /home/gabriele/Scrivania/glt/src/zlib
    Updating   libz.a
    Leaving   /home/gabriele/Scrivania/glt/src/zlib
    Entering  /home/gabriele/Scrivania/glt/src/unifont
    Updating   libglt.a
    Leaving   /home/gabriele/Scrivania/glt/src/unifont
    Entering  /home/gabriele/Scrivania/glt/src/png
    Updating   libpng.a
    Leaving   /home/gabriele/Scrivania/glt/src/png
    Skipping  /home/gabriele/Scrivania/glt/src/csg
    Entering  /home/gabriele/Scrivania/glt/src/glui
    Updating   libglui.a
    Leaving   /home/gabriele/Scrivania/glt/src/glui
    Skipping  /home/gabriele/Scrivania/glt/src/prc
    Entering  /home/gabriele/Scrivania/glt/src/program
    Entering  /home/gabriele/Scrivania/glt/src/program/test
    Compiling  random.cpp               
    In file included from random.cpp:1:
    ../../../src/math/random.h: In member function ‘Matrix GltRandomOrientation<R>::rand() const’:
    ../../../src/math/random.h:419: error: there are no arguments to ‘matrixOrient’ that depend on a template parameter, so a declaration of ‘matrixOrient’ must be available
    ../../../src/math/random.h:419: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
    random.cpp: In function ‘int main(int, char**)’:
    random.cpp:62: error: ‘EXIT_SUCCESS’ was not declared in this scope
    make[3]: *** [random.o] Errore 1
    Leaving   /home/gabriele/Scrivania/glt/src/program/test
    Entering  /home/gabriele/Scrivania/glt/src/program/example
    Entering  /home/gabriele/Scrivania/glt/src/program/example/examiner
    Compiling  main.cpp                 
    In file included from ../../../../src/glutm/glut.h:38,
                     from ../../../../src/glutm/window.h:34,
                     from ../../../../src/glutm/winexam.h:33,
                     from main.cpp:24:
    ../../../../src/GL/glut.h:156:1: warning: "APIENTRY" redefined
    In file included from ../../../../src/glt/gl.h:54,
                     from ../../../../src/glutm/glut.h:35,
                     from ../../../../src/glutm/window.h:34,
                     from ../../../../src/glutm/winexam.h:33,
                     from main.cpp:24:
    /usr/include/GL/gl.h:111:1: warning: this is the location of the previous definition
    In file included from ../../../../src/node/shape.h:42,
                     from ../../../../src/glutm/shape.h:35,
                     from main.cpp:26:
    ../../../../src/node/fields.h: In member function ‘void GltFields::add(T*, int, const std::string&)’:
    ../../../../src/node/fields.h:115: error: there are no arguments to ‘sprintf’ that depend on a template parameter, so a declaration of ‘sprintf’ must be available
    ../../../../src/node/fields.h:115: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
    main.cpp: In member function ‘virtual void ExaminerDemo::OnOpen()’:
    main.cpp:94: error: ‘matrixRotate’ was not declared in this scope
    main.cpp: In member function ‘virtual void ExaminerDemo::OnTick()’:
    main.cpp:119: error: ‘matrixRotate’ was not declared in this scope
    make[4]: *** [main.o] Errore 1
    Leaving   /home/gabriele/Scrivania/glt/src/program/example/examiner
    Entering  /home/gabriele/Scrivania/glt/src/program/example/font
    Compiling  main.cpp                 
    In file included from ../../../../src/glutm/glut.h:38,
                     from ../../../../src/glutm/window.h:34,
                     from main.cpp:24:
    ../../../../src/GL/glut.h:156:1: warning: "APIENTRY" redefined
    In file included from ../../../../src/glt/gl.h:54,
                     from ../../../../src/glutm/glut.h:35,
                     from ../../../../src/glutm/window.h:34,
                     from main.cpp:24:
    /usr/include/GL/gl.h:111:1: warning: this is the location of the previous definition
    In file included from ../../../../src/node/shape.h:42,
                     from main.cpp:36:
    ../../../../src/node/fields.h: In member function ‘void GltFields::add(T*, int, const std::string&)’:
    ../../../../src/node/fields.h:115: error: there are no arguments to ‘sprintf’ that depend on a template parameter, so a declaration of ‘sprintf’ must be available
    ../../../../src/node/fields.h:115: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
    make[4]: *** [main.o] Errore 1
    Leaving   /home/gabriele/Scrivania/glt/src/program/example/font
    Entering  /home/gabriele/Scrivania/glt/src/program/example/fractal
    Compiling  main.cpp                 
    In file included from ../../../../src/glutm/glut.h:38,
                     from ../../../../src/glutm/window.h:34,
                     from ../../../../src/glutm/winexam.h:33,
                     from main.cpp:25:
    ../../../../src/GL/glut.h:156:1: warning: "APIENTRY" redefined
    In file included from ../../../../src/glt/gl.h:54,
                     from ../../../../src/glutm/glut.h:35,
                     from ../../../../src/glutm/window.h:34,
                     from ../../../../src/glutm/winexam.h:33,
                     from main.cpp:25:
    /usr/include/GL/gl.h:111:1: warning: this is the location of the previous definition
    In file included from ../../../../src/node/shape.h:42,
                     from ../../../../src/node/shapes.h:34,
                     from main.cpp:35:
    ../../../../src/node/fields.h: In member function ‘void GltFields::add(T*, int, const std::string&)’:
    ../../../../src/node/fields.h:115: error: there are no arguments to ‘sprintf’ that depend on a template parameter, so a declaration of ‘sprintf’ must be available
    ../../../../src/node/fields.h:115: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
    make[4]: *** [main.o] Errore 1
    Leaving   /home/gabriele/Scrivania/glt/src/program/example/fractal
    Entering  /home/gabriele/Scrivania/glt/src/program/example/march
    Compiling  main.cpp                 
    In file included from ../../../../src/glutm/glut.h:38,
                     from ../../../../src/glutm/window.h:34,
                     from ../../../../src/glutm/winexam.h:33,
                     from main.cpp:24:
    ../../../../src/GL/glut.h:156:1: warning: "APIENTRY" redefined
    In file included from ../../../../src/glt/gl.h:54,
                     from ../../../../src/glutm/glut.h:35,
                     from ../../../../src/glutm/window.h:34,
                     from ../../../../src/glutm/winexam.h:33,
                     from main.cpp:24:
    /usr/include/GL/gl.h:111:1: warning: this is the location of the previous definition
    In file included from ../../../../src/node/shape.h:42,
                     from ../../../../src/node/shapes.h:34,
                     from ../../../../src/node/text.h:40,
                     from main.cpp:41:
    ../../../../src/node/fields.h: In member function ‘void GltFields::add(T*, int, const std::string&)’:
    ../../../../src/node/fields.h:115: error: there are no arguments to ‘sprintf’ that depend on a template parameter, so a declaration of ‘sprintf’ must be available
    ../../../../src/node/fields.h:115: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
    main.cpp: In member function ‘virtual void MarchingCubesDemo::OnTick()’:
    main.cpp:193: error: ‘matrixRotate’ was not declared in this scope
    make[4]: *** [main.o] Errore 1
    Leaving   /home/gabriele/Scrivania/glt/src/program/example/march
    Entering  /home/gabriele/Scrivania/glt/src/program/example/note
    Compiling  playback.cpp             
    playback.cpp: In member function ‘unsigned int GltPlayback::tick()’:
    playback.cpp:139: warning: comparison between signed and unsigned integer expressions
    playback.cpp: In member function ‘void GltPlayback::copy(void*, int)’:
    playback.cpp:161: error: ‘memset’ was not declared in this scope
    playback.cpp:162: warning: comparison between signed and unsigned integer expressions
    playback.cpp:162: error: ‘memcpy’ was not declared in this scope
    make[4]: *** [playback.o] Errore 1
    Leaving   /home/gabriele/Scrivania/glt/src/program/example/note
    Entering  /home/gabriele/Scrivania/glt/src/program/example/plasma
    Compiling  main.cpp                 
    In file included from ../../../../src/glutm/glut.h:38,
                     from ../../../../src/glutm/window.h:34,
                     from ../../../../src/glutm/winexam.h:33,
                     from main.cpp:24:
    ../../../../src/GL/glut.h:156:1: warning: "APIENTRY" redefined
    In file included from ../../../../src/glt/gl.h:54,
                     from ../../../../src/glutm/glut.h:35,
                     from ../../../../src/glutm/window.h:34,
                     from ../../../../src/glutm/winexam.h:33,
                     from main.cpp:24:
    /usr/include/GL/gl.h:111:1: warning: this is the location of the previous definition
    In file included from ../../../../src/node/shape.h:42,
                     from ../../../../src/glutm/shape.h:35,
                     from main.cpp:25:
    ../../../../src/node/fields.h: In member function ‘void GltFields::add(T*, int, const std::string&)’:
    ../../../../src/node/fields.h:115: error: there are no arguments to ‘sprintf’ that depend on a template parameter, so a declaration of ‘sprintf’ must be available
    ../../../../src/node/fields.h:115: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
    In file included from main.cpp:44:
    ../../../../src/math/random.h: In member function ‘Matrix GltRandomOrientation<R>::rand() const’:
    ../../../../src/math/random.h:419: error: there are no arguments to ‘matrixOrient’ that depend on a template parameter, so a declaration of ‘matrixOrient’ must be available
    main.cpp: In member function ‘virtual void GltPlasmaWindow::OnOpen()’:
    main.cpp:158: error: ‘matrixScale’ was not declared in this scope
    main.cpp: In member function ‘virtual void GltPlasmaWindow::OnDisplay()’:
    main.cpp:199: warning: comparison between signed and unsigned integer expressions
    main.cpp:201: error: ‘rand’ was not declared in this scope
    main.cpp: In static member function ‘static void GltPlasmaWindow::plasmaLineSubdivide(std::vector<Vector, std::allocator<Vector> >&, GltRandomLCG&, real)’:
    main.cpp:295: warning: comparison between signed and unsigned integer expressions
    In file included from main.cpp:44:
    ../../../../src/math/random.h: In member function ‘Matrix GltRandomOrientation<R>::rand() const [with R = GltRandomLFSRMix]’:
    main.cpp:167:   instantiated from here
    ../../../../src/math/random.h:419: error: ‘matrixOrient’ was not declared in this scope
    make[4]: *** [main.o] Errore 1
    Leaving   /home/gabriele/Scrivania/glt/src/program/example/plasma
    Entering  /home/gabriele/Scrivania/glt/src/program/example/rand
    Compiling  main.cpp                 
    In file included from ../../../../src/glutm/glut.h:38,
                     from ../../../../src/glutm/window.h:34,
                     from ../../../../src/glutm/winexam.h:33,
                     from main.cpp:24:
    ../../../../src/GL/glut.h:156:1: warning: "APIENTRY" redefined
    In file included from ../../../../src/glt/gl.h:54,
                     from ../../../../src/glutm/glut.h:35,
                     from ../../../../src/glutm/window.h:34,
                     from ../../../../src/glutm/winexam.h:33,
                     from main.cpp:24:
    /usr/include/GL/gl.h:111:1: warning: this is the location of the previous definition
    In file included from ../../../../src/node/shape.h:42,
                     from ../../../../src/node/shapes.h:34,
                     from ../../../../src/node/text.h:40,
                     from main.cpp:30:
    ../../../../src/node/fields.h: In member function ‘void GltFields::add(T*, int, const std::string&)’:
    ../../../../src/node/fields.h:115: error: there are no arguments to ‘sprintf’ that depend on a template parameter, so a declaration of ‘sprintf’ must be available
    ../../../../src/node/fields.h:115: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
    In file included from main.cpp:33:
    ../../../../src/math/random.h: In member function ‘Matrix GltRandomOrientation<R>::rand() const’:
    ../../../../src/math/random.h:419: error: there are no arguments to ‘matrixOrient’ that depend on a template parameter, so a declaration of ‘matrixOrient’ must be available
    make[4]: *** [main.o] Errore 1
    Leaving   /home/gabriele/Scrivania/glt/src/program/example/rand
    Entering  /home/gabriele/Scrivania/glt/src/program/example/skybox
    Compiling  main.cpp                 
    In file included from ../../../../src/glutm/glut.h:38,
                     from ../../../../src/glutm/window.h:34,
                     from ../../../../src/glutm/winexam.h:33,
                     from main.cpp:2:
    ../../../../src/GL/glut.h:156:1: warning: "APIENTRY" redefined
    In file included from ../../../../src/glt/gl.h:54,
                     from ../../../../src/glutm/glut.h:35,
                     from ../../../../src/glutm/window.h:34,
                     from ../../../../src/glutm/winexam.h:33,
                     from main.cpp:2:
    /usr/include/GL/gl.h:111:1: warning: this is the location of the previous definition
    In file included from ../../../../src/node/shape.h:42,
                     from ../../../../src/node/shapes.h:34,
                     from ../../../../src/node/skybox.h:33,
                     from main.cpp:4:
    ../../../../src/node/fields.h: In member function ‘void GltFields::add(T*, int, const std::string&)’:
    ../../../../src/node/fields.h:115: error: there are no arguments to ‘sprintf’ that depend on a template parameter, so a declaration of ‘sprintf’ must be available
    ../../../../src/node/fields.h:115: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
    main.cpp: In constructor ‘SkyBoxWindow::SkyBoxWindow(int, int, int, int)’:
    main.cpp:36: warning: ‘SkyBoxWindow::_current’ will be initialized after
    main.cpp:35: warning:   ‘bool SkyBoxWindow::_showWire’
    main.cpp:41: warning:   when initialized here
    make[4]: *** [main.o] Errore 1
    Leaving   /home/gabriele/Scrivania/glt/src/program/example/skybox
    Entering  /home/gabriele/Scrivania/glt/src/program/example/texture
    Compiling  main.cpp                 
    In file included from ../../../../src/glutm/glut.h:38,
                     from main.cpp:23:
    ../../../../src/GL/glut.h:156:1: warning: "APIENTRY" redefined
    In file included from ../../../../src/glt/gl.h:54,
                     from ../../../../src/glutm/glut.h:35,
                     from main.cpp:23:
    /usr/include/GL/gl.h:111:1: warning: this is the location of the previous definition
    In file included from ../../../../src/node/shape.h:42,
                     from ../../../../src/node/shapes.h:34,
                     from ../../../../src/node/tiled.h:37,
                     from main.cpp:35:
    ../../../../src/node/fields.h: In member function ‘void GltFields::add(T*, int, const std::string&)’:
    ../../../../src/node/fields.h:115: error: there are no arguments to ‘sprintf’ that depend on a template parameter, so a declaration of ‘sprintf’ must be available
    ../../../../src/node/fields.h:115: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
    main.cpp: In member function ‘virtual void GlutWindowTextureDemo::OnDisplay()’:
    main.cpp:152: error: ‘matrixRotate’ was not declared in this scope
    make[4]: *** [main.o] Errore 1
    Leaving   /home/gabriele/Scrivania/glt/src/program/example/texture
    Entering  /home/gabriele/Scrivania/glt/src/program/example/unifonte
    Compiling  main.cpp                 
    In file included from ../../../../src/glutm/glut.h:38,
                     from ../../../../src/glutm/window.h:34,
                     from main.cpp:25:
    ../../../../src/GL/glut.h:156:1: warning: "APIENTRY" redefined
    In file included from ../../../../src/glt/gl.h:54,
                     from ../../../../src/glutm/glut.h:35,
                     from ../../../../src/glutm/window.h:34,
                     from main.cpp:25:
    /usr/include/GL/gl.h:111:1: warning: this is the location of the previous definition
    In file included from ../../../../src/node/shape.h:42,
                     from ../../../../src/node/shapes.h:34,
                     from ../../../../src/node/text.h:40,
                     from main.cpp:31:
    ../../../../src/node/fields.h: In member function ‘void GltFields::add(T*, int, const std::string&)’:
    ../../../../src/node/fields.h:115: error: there are no arguments to ‘sprintf’ that depend on a template parameter, so a declaration of ‘sprintf’ must be available
    ../../../../src/node/fields.h:115: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
    main.cpp: In constructor ‘GlutWindowUnicodeFontDemo::GlutWindowUnicodeFontDemo(const std::string&, int, int, int, int, unsigned int)’:
    main.cpp:148: warning: ‘GlutWindowUnicodeFontDemo::_columns’ will be initialized after
    main.cpp:143: warning:   ‘bool GlutWindowUnicodeFontDemo::_browse’
    main.cpp:164: warning:   when initialized here
    main.cpp:144: warning: ‘GlutWindowUnicodeFontDemo::_update’ will be initialized after
    main.cpp:138: warning:   ‘GltTextOverlay GlutWindowUnicodeFontDemo::_info’
    main.cpp:164: warning:   when initialized here
    make[4]: *** [main.o] Errore 1
    Leaving   /home/gabriele/Scrivania/glt/src/program/example/unifonte
    Leaving   /home/gabriele/Scrivania/glt/src/program/example
    Entering  /home/gabriele/Scrivania/glt/src/program/util
    Compiling  bin2src.cpp              
    bin2src.cpp: In function ‘int main(int, char**)’:
    bin2src.cpp:83: error: ‘EXIT_FAILURE’ was not declared in this scope
    bin2src.cpp:122: error: ‘EXIT_SUCCESS’ was not declared in this scope
    bin2src.cpp:122: error: ‘EXIT_FAILURE’ was not declared in this scope
    bin2src.cpp:130: error: ‘EXIT_SUCCESS’ was not declared in this scope
    bin2src.cpp:130: error: ‘EXIT_FAILURE’ was not declared in this scope
    bin2src.cpp:136: error: ‘EXIT_SUCCESS’ was not declared in this scope
    bin2src.cpp:136: error: ‘EXIT_FAILURE’ was not declared in this scope
    bin2src.cpp:186: error: ‘EXIT_SUCCESS’ was not declared in this scope
    bin2src.cpp: In function ‘bool ufont2src(std::ostream&, std::string&)’:
    bin2src.cpp:228: error: ‘memset’ was not declared in this scope
    bin2src.cpp:243: warning: operation on ‘p’ may be undefined
    bin2src.cpp:243: warning: operation on ‘p’ may be undefined
    bin2src.cpp:243: warning: operation on ‘p’ may be undefined
    bin2src.cpp:267: error: ‘memcpy’ was not declared in this scope
    bin2src.cpp:231: warning: unused variable ‘i’
    make[3]: *** [bin2src.o] Errore 1
    Leaving   /home/gabriele/Scrivania/glt/src/program/util
    Skipping  /home/gabriele/Scrivania/glt/src/program/csg
    Skipping  /home/gabriele/Scrivania/glt/src/program/grips
    Entering  /home/gabriele/Scrivania/glt/src/program/glui
    Linking    example1
    /usr/bin/ld: cannot find -lXmu
    collect2: ld returned 1 exit status
    Linking    example2
    /usr/bin/ld: cannot find -lXmu
    collect2: ld returned 1 exit status
    Linking    example3
    /usr/bin/ld: cannot find -lXmu
    collect2: ld returned 1 exit status
    Linking    example4
    /usr/bin/ld: cannot find -lXmu
    collect2: ld returned 1 exit status
    Linking    example5
    /usr/bin/ld: cannot find -lXmu
    collect2: ld returned 1 exit status
    Leaving   /home/gabriele/Scrivania/glt/src/program/glui
    Skipping  /home/gabriele/Scrivania/glt/src/program/gltZpr
    Entering  /home/gabriele/Scrivania/glt/src/program/gltVrml
    Compiling  vrmlview.cpp             
    In file included from ../../../src/glutm/glut.h:38,
                     from vrmlview.h:32,
                     from vrmlview.cpp:23:
    ../../../src/GL/glut.h:156:1: warning: "APIENTRY" redefined
    In file included from ../../../src/glt/gl.h:54,
                     from ../../../src/glutm/glut.h:35,
                     from vrmlview.h:32,
                     from vrmlview.cpp:23:
    /usr/include/GL/gl.h:111:1: warning: this is the location of the previous definition
    In file included from ../../../src/node/shape.h:42,
                     from ../../../src/node/dlist.h:35,
                     from vrmlview.h:43,
                     from vrmlview.cpp:23:
    ../../../src/node/fields.h: In member function ‘void GltFields::add(T*, int, const std::string&)’:
    ../../../src/node/fields.h:115: error: there are no arguments to ‘sprintf’ that depend on a template parameter, so a declaration of ‘sprintf’ must be available
    ../../../src/node/fields.h:115: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
    vrmlview.cpp: In constructor ‘GlutVrmlViewer::GlutVrmlViewer(const std::string&, int, int, int, int, unsigned int)’:
    vrmlview.cpp:72: error: ‘matrixTranslate’ was not declared in this scope
    vrmlview.cpp:77: error: ‘matrixScale’ was not declared in this scope
    make[3]: *** [vrmlview.o] Errore 1
    Leaving   /home/gabriele/Scrivania/glt/src/program/gltVrml
    Entering  /home/gabriele/Scrivania/glt/src/program/gltChaos
    Compiling  chaos.cpp                
    In file included from chaos.h:28,
                     from chaos.cpp:1:
    ../../../src/math/random.h: In member function ‘Matrix GltRandomOrientation<R>::rand() const’:
    ../../../src/math/random.h:419: error: there are no arguments to ‘matrixOrient’ that depend on a template parameter, so a declaration of ‘matrixOrient’ must be available
    ../../../src/math/random.h:419: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
    chaos.cpp: In member function ‘void ChaosSystem::draw(uint32)’:
    chaos.cpp:176: warning: comparison between signed and unsigned integer expressions
    chaos.cpp: In member function ‘ChaosSystem& ChaosSystem::operator=(const ChaosSystem&)’:
    chaos.cpp:190: error: ‘memcpy’ was not declared in this scope
    make[3]: *** [chaos.o] Errore 1
    Leaving   /home/gabriele/Scrivania/glt/src/program/gltChaos
    Entering  /home/gabriele/Scrivania/glt/src/program/gltLife
    Compiling  draw.cpp                 
    In file included from ../../../src/glutm/glut.h:38,
                     from draw.cpp:34:
    ../../../src/GL/glut.h:156:1: warning: "APIENTRY" redefined
    In file included from ../../../src/glt/gl.h:54,
                     from ../../../src/glt/color.h:40,
                     from draw.h:33,
                     from draw.cpp:1:
    /usr/include/GL/gl.h:111:1: warning: this is the location of the previous definition
    In file included from ../../../src/node/shape.h:42,
                     from draw.h:35,
                     from draw.cpp:1:
    ../../../src/node/fields.h: In member function ‘void GltFields::add(T*, int, const std::string&)’:
    ../../../src/node/fields.h:115: error: there are no arguments to ‘sprintf’ that depend on a template parameter, so a declaration of ‘sprintf’ must be available
    ../../../src/node/fields.h:115: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
    make[3]: *** [draw.o] Errore 1
    Leaving   /home/gabriele/Scrivania/glt/src/program/gltLife
    Skipping  /home/gabriele/Scrivania/glt/src/program/gltPlasma
    Skipping  /home/gabriele/Scrivania/glt/src/program/matchrix
    Skipping  /home/gabriele/Scrivania/glt/src/program/raster
    Skipping  /home/gabriele/Scrivania/glt/src/program/coaster
    Leaving   /home/gabriele/Scrivania/glt/src/program
    Leaving   /home/gabriele/Scrivania/glt/src
    but I don't know what to do because it seems that the file are wrong...can someone help me?

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,380
    So, did you edit the config.h files as mentioned in the "Installation Steps"?
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    Just Joined!
    Join Date
    Aug 2010
    Posts
    23
    no.
    I've installed another version of OpenGl that the OpenGL code-writer suggest me.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •