Error compiling on Linux:
g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DQT_WEBKIT -DNDEBUG -DQT_NO_DEBUG -DQT_PLUGIN -DQT_SCRIPT_LIB -DQT_XMLPATTERNS_LIB -DQT_XML_LIB -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/default -I. -I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include/QtOpenGL -I/usr/include/QtXml -I/usr/include/QtXmlPatterns -I/usr/include/QtScript -I/usr/include -I../.. -I../../../../vcglib -I../../external/glew-1.7.0/include -I../../external -I/usr/X11R6/include -I. -I. -o OccupancyGrid.o align/OccupancyGrid.cpp
In file included from align/OccupancyGrid.cpp:36:0:
../../../../vcglib/wrap/ply/plystuff.h: In function ‘bool vcg::ply::CheckCacheDirectory(const char)’:
../../../../vcglib/wrap/ply/plystuff.h:123:21: error: ‘access’ was not declared in this scope
../../../../vcglib/wrap/ply/plystuff.h: In function ‘bool vcg::ply::CheckCacheTime(const char, const char)’:
../../../../vcglib/wrap/ply/plystuff.h:135:23: error: ‘access’ was not declared in this scope
../../../../vcglib/wrap/ply/plystuff.h:136:23: error: ‘access’ was not declared in this scope
../../../../vcglib/wrap/ply/plystuff.h:145:12: error: ‘close’ was not declared in this scope
align/OccupancyGrid.cpp: In member function ‘void vcg::OccupancyGrid::Dump(FILE)’:
align/OccupancyGrid.cpp:239:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
align/OccupancyGrid.cpp: In member function ‘void vcg::OccupancyGrid::ChooseArcs(std::vector >&, std::vector&, std::vector&, float)’:
align/OccupancyGrid.cpp:279:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
make: *** [OccupancyGrid.o] Error 1
Solved adding
#include <unistd.h>
on line 60 of vcglib/wrap/ply/plystuff.h
Anonymous
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
thanks