KeckCAVES / Vrui

C++ software development toolkit for highly interactive virtual reality applications
GNU General Public License v2.0
75 stars 36 forks source link

Compiling error Vrui-2.6-002 #1

Closed otsix closed 11 years ago

otsix commented 11 years ago

I got an error when executing "make" on a Ubuntu 11.10

This is the console output:

Vrui-2.6-002$ make
---- Configured Vrui options: ----
Installation directory: /home/dxsp/Vrui-2.6
Run-time library search paths enabled
Threads library has built-in thread-local storage
Threads library uses built-in atomics
Threads library uses POSIX spinlocks
Local pthread implements pthread_cancel
Libusb library version 1.0 does not exist on host system
Realtime library uses timers
Multithreaded rendering disabled
PNG image file format enabled
JPG image file format enabled
TIFF image file format enabled
ALSA sound device support disabled
SPEEX speech compression support disabled
Spatial sound using OpenAL disabled
Video4Linux2 video device support enabled
FireWire DC1394 video device support disabled
Theora video codec support disabled
Swapgroup support for Vrui windows disabled
Vrui will save screenshots in PNG format
Support for spatial audio disabled
Support to save screen captures in Ogg/Theora format disabled
Event device support for joysticks disabled
Bluetooth support (for Nintendo Wii controller) disabled
USB support (for Razer Hydra tracker) disabled
---- End of Vrui configuration options ----
Compiling Misc/CallbackList.cpp...
Compiling Misc/ConfigurationFile.cpp...
Compiling Misc/CreateNumberedFileName.cpp...
Compiling Misc/Directory.cpp...
Compiling Misc/FdSet.cpp...

and...

Compiling GL/GLGeometryVertex.cpp...
Compiling GL/GLTransformationWrappers.cpp...
Compiling GL/GLFrustum.cpp...
Compiling GL/GLPolylineTube.cpp...
Linking /home/dxsp/lidarviewer/src/Vrui-2.6-002/lib/libGLGeometry.g++-3.so.2.6...
Compiling Images/GetImageFileSize.cpp...
Compiling Images/Image.cpp...
Compiling Images/ImageReader.cpp...
In file included from Images/ImageReader.cpp:23:0:
/home/dxsp/lidarviewer/src/Vrui-2.6-002/Images/ImageReader.h:53:8: error: la declaración no declara nada [-fpermissive]
/home/dxsp/lidarviewer/src/Vrui-2.6-002/Images/ImageReader.h: En la función miembro ‘unsigned int* Images::ImageReader::getCanvasSize() const’:
/home/dxsp/lidarviewer/src/Vrui-2.6-002/Images/ImageReader.h:86:10: error: conversión inválida de ‘const unsigned int*’ a ‘unsigned int*’ [-fpermissive]
/home/dxsp/lidarviewer/src/Vrui-2.6-002/Images/ImageReader.h: En la función miembro ‘const Images::ImageReader::ImageSpec* Images::ImageReader::getImageSpec(unsigned int) const’:
/home/dxsp/lidarviewer/src/Vrui-2.6-002/Images/ImageReader.h:98:31: error: no se puede convertir ‘Images::ImageReader::ImageSpec’ a ‘const Images::ImageReader::ImageSpec*’ en la devolución
Images/ImageReader.cpp: En la función miembro ‘Images::Image<unsigned char, 1> Images::ImageReader::readGray8()’:
Images/ImageReader.cpp:59:14: error: expected unqualified-id before ‘signed’
Images/ImageReader.cpp:59:14: error: expected ‘)’ before ‘signed’
Images/ImageReader.cpp:67:68: error: static_cast del tipo ‘const void*’ al tipo ‘GLubyte* {aka unsigned char*}’ proscribe los calificadores
Images/ImageReader.cpp:72:17: error: no hay coincidencia para el ‘operador[]’ en ‘* rPtr[0]’
make: *** [o/g++-3.g0.O3/Images/ImageReader.o] Error 1
otsix commented 11 years ago

More info: I executed "make" on the Vrui-2.6-001 version and it completed successfully.

Doc-Ok commented 11 years ago

Sorry, this file is a new addition that slipped into the automatic build process. For now, please delete both ImageReader.h and ImageReader.cpp from the Images/ subdirectory and then run make again.

Apologies for the inconvenience.

daBrado commented 11 years ago

2.6-002 revision 2 fixes this issue.