I tried to compile CC on Ubuntu today after having downloading a fresh source.
at the make step I get this issue:
Code: Select all
[antoine@antoine-Precision-WorkStation-T5400:~/CloudCompare/Branch/trunk$ cmake .
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found.
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found.
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found.
-- Found Qt4: /usr/bin/qmake (found version "4.7.4")
-- Found Qt4: /usr/bin/qmake (found version "4.7.4")
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib/x86_64-linux-gnu/libX11.so
-- Found OpenGL: /usr/lib/x86_64-linux-gnu/libGL.so
-- Configuring done
-- Generating done
-- Build files have been written to: /home/antoine/CloudCompare/Branch/trunk
antoine@antoine-Precision-WorkStation-T5400:~/CloudCompare/Branch/trunk$ make -liblas
Scanning dependencies of target triangle
[ 1%] Building CXX object CC/triangle/CMakeFiles/triangle.dir/triangle.cpp.o
Linking CXX static library libtriangle.a
[ 1%] Built target triangle
Scanning dependencies of target CC_DLL
[ 1%] Building CXX object CC/CMakeFiles/CC_DLL.dir/src/MeshSamplingTools.cpp.o
[ 1%] Building CXX object CC/CMakeFiles/CC_DLL.dir/src/ChunkedPointCloud.cpp.o
[ 1%] Building CXX object CC/CMakeFiles/CC_DLL.dir/src/ScalarField.cpp.o
[ 2%] Building CXX object CC/CMakeFiles/CC_DLL.dir/src/GroundBasedLidarSensor.cpp.o
[ 2%] Building CXX object CC/CMakeFiles/CC_DLL.dir/src/ChamferDistanceTransform.cpp.o
[ 2%] Building CXX object CC/CMakeFiles/CC_DLL.dir/src/ScalarFieldTools.cpp.o
[ 3%] Building CXX object CC/CMakeFiles/CC_DLL.dir/src/PointProjectionTools.cpp.o
[ 3%] Building CXX object CC/CMakeFiles/CC_DLL.dir/src/WeibullDistribution.cpp.o
[ 3%] Building CXX object CC/CMakeFiles/CC_DLL.dir/src/Delaunay2dMesh.cpp.o
[ 4%] Building CXX object CC/CMakeFiles/CC_DLL.dir/src/GeometricalAnalysisTools.cpp.o
[ 4%] Building CXX object CC/CMakeFiles/CC_DLL.dir/src/RegistrationTools.cpp.o
[ 4%] Building CXX object CC/CMakeFiles/CC_DLL.dir/src/AutoSegmentationTools.cpp.o
[ 5%] Building CXX object CC/CMakeFiles/CC_DLL.dir/src/LocalModel.cpp.o
[ 5%] Building CXX object CC/CMakeFiles/CC_DLL.dir/src/FastMarchingForPropagation.cpp.o
[ 5%] Building CXX object CC/CMakeFiles/CC_DLL.dir/src/SimpleMesh.cpp.o
[ 6%] Building CXX object CC/CMakeFiles/CC_DLL.dir/src/DgmOctreeReferenceCloud.cpp.o
[ 6%] Building CXX object CC/CMakeFiles/CC_DLL.dir/src/CCShareable.cpp.o
[ 6%] Building CXX object CC/CMakeFiles/CC_DLL.dir/src/CCMiscTools.cpp.o
[ 7%] Building CXX object CC/CMakeFiles/CC_DLL.dir/src/Neighbourhood.cpp.o
[ 7%] Building CXX object CC/CMakeFiles/CC_DLL.dir/src/StatisticalTestingTools.cpp.o
[ 7%] Building CXX object CC/CMakeFiles/CC_DLL.dir/src/ManualSegmentationTools.cpp.o
[ 8%] Building CXX object CC/CMakeFiles/CC_DLL.dir/src/CloudSamplingTools.cpp.o
[ 8%] Building CXX object CC/CMakeFiles/CC_DLL.dir/src/ReferenceCloud.cpp.o
[ 8%] Building CXX object CC/CMakeFiles/CC_DLL.dir/src/FastMarching.cpp.o
[ 9%] Building CXX object CC/CMakeFiles/CC_DLL.dir/src/SimpleCloud.cpp.o
[ 9%] Building CXX object CC/CMakeFiles/CC_DLL.dir/src/Polyline.cpp.o
[ 9%] Building CXX object CC/CMakeFiles/CC_DLL.dir/src/ErrorFunction.cpp.o
[ 9%] Building CXX object CC/CMakeFiles/CC_DLL.dir/src/DebugProgressCallback.cpp.o
[ 10%] Building CXX object CC/CMakeFiles/CC_DLL.dir/src/NormalDistribution.cpp.o
[ 10%] Building CXX object CC/CMakeFiles/CC_DLL.dir/src/DgmOctree.cpp.o
/home/antoine/CloudCompare/Branch/trunk/CC/src/DgmOctree.cpp: In member function ‘unsigned int CCLib::DgmOctree::executeFunctionForAllCellsAtLevel_MT(uchar, CCLib::DgmOctree::octreeCellFunc, void**, CCLib::GenericProgressCallback*, const char*)’:
/home/antoine/CloudCompare/Branch/trunk/CC/src/DgmOctree.cpp:4333:208: warning: format ‘%i’ expects argument of type ‘int’, but argument 4 has type ‘std::vector<octreeCellDesc>::size_type {aka long unsigned int}’ [-Wformat]
/home/antoine/CloudCompare/Branch/trunk/CC/src/DgmOctree.cpp: In member function ‘unsigned int CCLib::DgmOctree::executeFunctionForAllCellsAtStartingLevel_MT(uchar, CCLib::DgmOctree::octreeCellFunc, void**, unsigned int, unsigned int, CCLib::GenericProgressCallback*, const char*)’:
/home/antoine/CloudCompare/Branch/trunk/CC/src/DgmOctree.cpp:4602:170: warning: format ‘%i’ expects argument of type ‘int’, but argument 5 has type ‘std::vector<octreeCellDesc>::size_type {aka long unsigned int}’ [-Wformat]
[ 10%] Building CXX object CC/CMakeFiles/CC_DLL.dir/src/DistanceComputationTools.cpp.o
[ 11%] Building CXX object CC/CMakeFiles/CC_DLL.dir/src/KdTree.cpp.o
Linking CXX shared library libCC_DLL.so
[ 11%] Built target CC_DLL
Scanning dependencies of target GLEW
[ 11%] Building C object libs/Glew/CMakeFiles/GLEW.dir/src/glew.c.o
Linking C static library libGLEW.a
[ 11%] Built target GLEW
Scanning dependencies of target CC_FBO
[ 11%] Building CXX object libs/CCFbo/CMakeFiles/CC_FBO.dir/src/ccFrameBufferObject.cpp.o
[ 11%] Building CXX object libs/CCFbo/CMakeFiles/CC_FBO.dir/src/ccShader.cpp.o
[ 12%] Building CXX object libs/CCFbo/CMakeFiles/CC_FBO.dir/src/ccBilateralFilter.cpp.o
[ 12%] Building CXX object libs/CCFbo/CMakeFiles/CC_FBO.dir/src/ccFBOUtils.cpp.o
Linking CXX static library libCC_FBO.a
[ 12%] Built target CC_FBO
[ 12%] Generating moc_ccProgressDialog.cxx
Scanning dependencies of target QCC_DB_DLL
[ 13%] Building CXX object libs/qCC_db/CMakeFiles/QCC_DB_DLL.dir/ccTimer.cpp.o
[ 13%] Building CXX object libs/qCC_db/CMakeFiles/QCC_DB_DLL.dir/ccColorTablesManager.cpp.o
[ 13%] Building CXX object libs/qCC_db/CMakeFiles/QCC_DB_DLL.dir/ccGenericPointCloud.cpp.o
[ 14%] Building CXX object libs/qCC_db/CMakeFiles/QCC_DB_DLL.dir/ccMaterialSet.cpp.o
[ 14%] Building CXX object libs/qCC_db/CMakeFiles/QCC_DB_DLL.dir/ccGLMatrix.cpp.o
[ 14%] Building CXX object libs/qCC_db/CMakeFiles/QCC_DB_DLL.dir/ccBBox.cpp.o
[ 15%] Building CXX object libs/qCC_db/CMakeFiles/QCC_DB_DLL.dir/ccPlane.cpp.o
[ 15%] Building CXX object libs/qCC_db/CMakeFiles/QCC_DB_DLL.dir/ccImage.cpp.o
[ 15%] Building CXX object libs/qCC_db/CMakeFiles/QCC_DB_DLL.dir/ccGBLSensor.cpp.o
[ 16%] Building CXX object libs/qCC_db/CMakeFiles/QCC_DB_DLL.dir/ccLog.cpp.o
[ 16%] Building CXX object libs/qCC_db/CMakeFiles/QCC_DB_DLL.dir/ccPointCloud.cpp.o
[ 16%] Building CXX object libs/qCC_db/CMakeFiles/QCC_DB_DLL.dir/ccGenericGLDisplay.cpp.o
[ 17%] Building CXX object libs/qCC_db/CMakeFiles/QCC_DB_DLL.dir/ccDrawableObject.cpp.o
[ 17%] Building CXX object libs/qCC_db/CMakeFiles/QCC_DB_DLL.dir/ccHObject.cpp.o
[ 17%] Building CXX object libs/qCC_db/CMakeFiles/QCC_DB_DLL.dir/ccMesh.cpp.o
[ 17%] Building CXX object libs/qCC_db/CMakeFiles/QCC_DB_DLL.dir/ccOctree.cpp.o
[ 18%] Building CXX object libs/qCC_db/CMakeFiles/QCC_DB_DLL.dir/ccScalarField.cpp.o
[ 18%] Building CXX object libs/qCC_db/CMakeFiles/QCC_DB_DLL.dir/ccMeshGroup.cpp.o
[ 18%] Building CXX object libs/qCC_db/CMakeFiles/QCC_DB_DLL.dir/ccCylinder.cpp.o
[ 19%] Building CXX object libs/qCC_db/CMakeFiles/QCC_DB_DLL.dir/ccPolyline.cpp.o
[ 19%] Building CXX object libs/qCC_db/CMakeFiles/QCC_DB_DLL.dir/ccHObjectCaster.cpp.o
[ 19%] Building CXX object libs/qCC_db/CMakeFiles/QCC_DB_DLL.dir/ccObject.cpp.o
[ 20%] Building CXX object libs/qCC_db/CMakeFiles/QCC_DB_DLL.dir/ccNormalVectors.cpp.o
[ 20%] Building CXX object libs/qCC_db/CMakeFiles/QCC_DB_DLL.dir/ccCalibratedImage.cpp.o
[ 20%] Building CXX object libs/qCC_db/CMakeFiles/QCC_DB_DLL.dir/ccGenericMesh.cpp.o
[ 21%] Building CXX object libs/qCC_db/CMakeFiles/QCC_DB_DLL.dir/cc2DLabel.cpp.o
[ 21%] Building CXX object libs/qCC_db/CMakeFiles/QCC_DB_DLL.dir/cc2DViewportObject.cpp.o
[ 21%] Building CXX object libs/qCC_db/CMakeFiles/QCC_DB_DLL.dir/cc2DViewportLabel.cpp.o
[ 22%] Building CXX object libs/qCC_db/CMakeFiles/QCC_DB_DLL.dir/ccMaterial.cpp.o
[ 22%] Building CXX object libs/qCC_db/CMakeFiles/QCC_DB_DLL.dir/ccProgressDialog.cpp.o
[ 22%] Building CXX object libs/qCC_db/CMakeFiles/QCC_DB_DLL.dir/ccGenericPrimitive.cpp.o
[ 23%] Building CXX object libs/qCC_db/CMakeFiles/QCC_DB_DLL.dir/moc_ccProgressDialog.cxx.o
Linking CXX shared library libQCC_DB_DLL.so
[ 23%] Built target QCC_DB_DLL
[ 23%] Generating qrc_icones.cxx
[ 24%] Generating moc_ccGLWindow.cxx
[ 24%] Generating moc_ccRecenterCloudDlg.cxx
[ 24%] Generating moc_ccTwoColorsDlg.cxx
[ 25%] Generating moc_ccPointPropertiesDlg.cxx
[ 25%] Generating moc_mainwindow.cxx
[ 25%] Generating moc_ccSensorProjectionDlg.cxx
[ 26%] Generating moc_ccUnrollDlg.cxx
[ 26%] Generating moc_ccRegistrationDlg.cxx
[ 26%] Generating moc_ccDisplayOptionsDlg.cxx
[ 27%] Generating moc_ccAlignDlg.cxx
[ 27%] Generating moc_ccOrderChoiceDlg.cxx
[ 27%] Generating moc_ccPluginDlg.cxx
[ 28%] Generating moc_ccCameraParamEditDlg.cxx
[ 28%] Generating moc_ccConsole.cxx
[ 28%] Generating moc_ccNormalComputationDlg.cxx
[ 29%] Generating moc_ccHistogramWindow.cxx
[ 29%] Generating moc_ccSubsamplingDlg.cxx
[ 29%] Generating moc_ccGraphicalSegmentationTool.cxx
[ 30%] Generating moc_ccGraphicalTransformationTool.cxx
[ 30%] Generating moc_ccRenderToFileDlg.cxx
[ 30%] Generating moc_ccPointPickingGenericInterface.cxx
[ 31%] Generating moc_ccHeightGridGenerationDlg.cxx
[ 31%] Generating moc_ccApplyTransformationDlg.cxx
[ 31%] Generating moc_ccComparisonDlg.cxx
[ 31%] Generating moc_ccPointListPickingDlg.cxx
[ 32%] Generating db_tree/moc_ccDBRoot.cxx
[ 32%] Generating db_tree/moc_ccPropertiesTreeDelegate.cxx
[ 32%] Generating db_tree/moc_sfEditDlg.cxx
[ 33%] Generating fileIO/moc_PlyOpenDlg.cxx
[ 33%] Generating fileIO/moc_BundlerImportDlg.cxx
[ 33%] Generating fileIO/moc_AsciiOpenDlg.cxx
[ 34%] Generating __/libs/qxt/moc_qxtspanslider.cxx
[ 34%] Generating __/libs/qxt/moc_qxtspanslider_p.cxx
[ 34%] Generating ui_alignDlg.h
[ 35%] Generating ui_pointListPickingDlg.h
[ 35%] Generating ui_twoColorsDlg.h
[ 35%] Generating ui_labelingDlg.h
[ 36%] Generating ui_openBundlerFileDlg.h
[ 36%] Generating ui_aboutDlg.h
[ 36%] Generating ui_applyTransformationDlg.h
[ 37%] Generating ui_recenterCloudDlg.h
[ 37%] Generating ui_normalComputationDlg.h
[ 37%] Generating ui_sfComparisonDlg.h
[ 38%] Generating ui_subsamplingDlg.h
[ 38%] Generating ui_askOneDoubleValueDlg.h
[ 38%] Generating ui_ptsSamplingDlg.h
[ 39%] Generating ui_heightGridGenerationDlg.h
[ 39%] Generating ui_comparisonDlg.h
[ 39%] Generating ui_sensorComputeDistancesDlg.h
/home/antoine/CloudCompare/Branch/trunk/qCC/ui_templates/sensorComputeDistancesDlg.ui: Warning: Z-order assignment: 'label' is not a valid widget.
/home/antoine/CloudCompare/Branch/trunk/qCC/ui_templates/sensorComputeDistancesDlg.ui: Warning: Z-order assignment: 'label_2' is not a valid widget.
/home/antoine/CloudCompare/Branch/trunk/qCC/ui_templates/sensorComputeDistancesDlg.ui: Warning: Z-order assignment: 'label_3' is not a valid widget.
/home/antoine/CloudCompare/Branch/trunk/qCC/ui_templates/sensorComputeDistancesDlg.ui: Warning: Z-order assignment: 'lineEditx' is not a valid widget.
/home/antoine/CloudCompare/Branch/trunk/qCC/ui_templates/sensorComputeDistancesDlg.ui: Warning: Z-order assignment: 'lineEdity' is not a valid widget.
/home/antoine/CloudCompare/Branch/trunk/qCC/ui_templates/sensorComputeDistancesDlg.ui: Warning: Z-order assignment: 'lineEditz' is not a valid widget.
/home/antoine/CloudCompare/Branch/trunk/qCC/ui_templates/sensorComputeDistancesDlg.ui: Warning: Z-order assignment: 'lineEdit' is not a valid widget.
/home/antoine/CloudCompare/Branch/trunk/qCC/ui_templates/sensorComputeDistancesDlg.ui: Warning: Z-order assignment: 'label' is not a valid widget.
/home/antoine/CloudCompare/Branch/trunk/qCC/ui_templates/sensorComputeDistancesDlg.ui: Warning: Z-order assignment: 'lineEdit' is not a valid widget.
/home/antoine/CloudCompare/Branch/trunk/qCC/ui_templates/sensorComputeDistancesDlg.ui: Warning: Z-order assignment: 'verticalSpacer' is not a valid widget.
[ 39%] Generating ui_roleChoiceDlg.h
[ 40%] Generating ui_registrationDlg.h
[ 40%] Generating ui_openAsciiFileDlg.h
[ 40%] Generating ui_openPlyFileDlg.h
[ 41%] Generating ui_displayOptionsDlg.h
[ 41%] Generating ui_cameraParamDlg.h
[ 41%] Generating ui_graphicalSegmentationDlg.h
[ 42%] Generating ui_askOneStringDlg.h
[ 42%] Generating ui_askOneIntValueDlg.h
[ 42%] Generating ui_graphicalTransformationDlg.h
[ 43%] Generating ui_sfEditDlg.h
[ 43%] Generating ui_commandLineDlg.h
[ 43%] Generating ui_renderToFileDialog.h
[ 44%] Generating ui_pcvDlg.h
[ 44%] Generating ui_pointPropertiesDlg.h
[ 44%] Generating ui_askThreeDoubleValuesDlg.h
[ 45%] Generating ui_pointSizeDlg.h
[ 45%] Generating ui_curvatureDlg.h
[ 45%] Generating ui_unrollDlg.h
[ 46%] Generating ui_statisticalTestDlg.h
[ 46%] Generating ui_askTwoDoubleValuesDlg.h
[ 46%] Generating ui_sensorProjectDlg.h
[ 47%] Generating ui_mainWindow.h
[ 47%] Generating ui_pickOneElementDlg.h
Scanning dependencies of target qCC
[ 48%] Building CXX object qCC/CMakeFiles/qCC.dir/ccAskOneStringDlg.cpp.o
[ 48%] Building CXX object qCC/CMakeFiles/qCC.dir/main.cpp.o
[ 48%] Building CXX object qCC/CMakeFiles/qCC.dir/ccRenderingTools.cpp.o
[ 49%] Building CXX object qCC/CMakeFiles/qCC.dir/ccCurvatureDlg.cpp.o
[ 49%] Building CXX object qCC/CMakeFiles/qCC.dir/ccRenderToFileDlg.cpp.o
[ 49%] Building CXX object qCC/CMakeFiles/qCC.dir/ccLabelingDlg.cpp.o
[ 50%] Building CXX object qCC/CMakeFiles/qCC.dir/ccHistogramWindow.cpp.o
[ 50%] Building CXX object qCC/CMakeFiles/qCC.dir/ccAskOneDoubleValueDlg.cpp.o
[ 50%] Building CXX object qCC/CMakeFiles/qCC.dir/ccPointPropertiesDlg.cpp.o
[ 51%] Building CXX object qCC/CMakeFiles/qCC.dir/ccSensorProjectionDlg.cpp.o
[ 51%] Building CXX object qCC/CMakeFiles/qCC.dir/ccPcvDlg.cpp.o
[ 51%] Building CXX object qCC/CMakeFiles/qCC.dir/ccPointListPickingDlg.cpp.o
[ 52%] Building CXX object qCC/CMakeFiles/qCC.dir/ccAskOneIntValueDlg.cpp.o
[ 52%] Building CXX object qCC/CMakeFiles/qCC.dir/ccPointPickingGenericInterface.cpp.o
[ 52%] Building CXX object qCC/CMakeFiles/qCC.dir/ccHeightGridGeneration.cpp.o
[ 53%] Building CXX object qCC/CMakeFiles/qCC.dir/ccGLUtils.cpp.o
[ 53%] Building CXX object qCC/CMakeFiles/qCC.dir/ccAlignDlg.cpp.o
[ 53%] Building CXX object qCC/CMakeFiles/qCC.dir/ccCommandLineParser.cpp.o
[ 54%] Building CXX object qCC/CMakeFiles/qCC.dir/ccConsole.cpp.o
[ 54%] Building CXX object qCC/CMakeFiles/qCC.dir/ccGuiParameters.cpp.o
[ 54%] Building CXX object qCC/CMakeFiles/qCC.dir/ccGraphicalTransformationTool.cpp.o
[ 55%] Building CXX object qCC/CMakeFiles/qCC.dir/ccRegistrationDlg.cpp.o
[ 55%] Building CXX object qCC/CMakeFiles/qCC.dir/ccFastMarchingForNormsDirection.cpp.o
[ 55%] Building CXX object qCC/CMakeFiles/qCC.dir/ccUnrollDlg.cpp.o
[ 56%] Building CXX object qCC/CMakeFiles/qCC.dir/ccPtsSamplingDlg.cpp.o
[ 56%] Building CXX object qCC/CMakeFiles/qCC.dir/ccAskTwoDoubleValuesDlg.cpp.o
[ 56%] Building CXX object qCC/CMakeFiles/qCC.dir/ccCameraParamEditDlg.cpp.o
[ 56%] Building CXX object qCC/CMakeFiles/qCC.dir/ccHeightGridGenerationDlg.cpp.o
[ 57%] Building CXX object qCC/CMakeFiles/qCC.dir/ccGraphicalSegmentationTool.cpp.o
[ 57%] Building CXX object qCC/CMakeFiles/qCC.dir/ccGLWindow.cpp.o
[ 57%] Building CXX object qCC/CMakeFiles/qCC.dir/mainwindow.cpp.o
/home/antoine/CloudCompare/Branch/trunk/qCC/mainwindow.cpp:109:38: fatal error: ccSensorComputeDistances.h: No such file or directory
compilation terminated.
make[2]: *** [qCC/CMakeFiles/qCC.dir/mainwindow.cpp.o] Error 1
make[1]: *** [qCC/CMakeFiles/qCC.dir/all] Error 2
make: *** [all] Error 2
Thanks
Antoine