Hello,
I got the current source from svn "truck", and after I followed the instruction of "compilation_all_platforms_eng.txt" to compile with Code::Blocks (8.02), and it show me a lot of error start at "error, Ui has not been declared" at line "37 class ccAlignDlg : public QDialog, public Ui::AlignDialog".
I use Ubuntu (10.1) and qt 4.6 and familiar with qt-designer, but never use Code::Block before. I didn't find qCC.pro file and noticed there just is an ui_templates fold.
Could someone help me know how I can fix this.
Thanks
Xuetao
compile error - "Ui" has not been declared [RESOLVED]
-
- Posts: 7
- Joined: Fri Dec 24, 2010 5:55 am
Re: compile error - "Ui" has not been declared
Hi,
this is odd. I compiled it successfully on Debian this evening.
Here are a few guesses:
- it may be because the qt-prebuild tool hasn't compiled correctly (do you see at the beginning of the 'qCC' project compilation phase, lines such as 'qt-prebuild : found UICable file ui_templates/alignDlg.ui' ?).
- otherwise it may be because the 'ui_templates' folder is not in the 'include' directories list (can you check in 'Project > Properties > Project's build options (bottom right) > Search directories" ? You should see 'ui_templates' there.
- eventually, it may be because Code::Blocks doesn't handle correctly paths with foreign characters (do you have Chinese characters in the path where CloudCompare trunk is?)
I wait for your feedback,
Daniel
this is odd. I compiled it successfully on Debian this evening.
Here are a few guesses:
- it may be because the qt-prebuild tool hasn't compiled correctly (do you see at the beginning of the 'qCC' project compilation phase, lines such as 'qt-prebuild : found UICable file ui_templates/alignDlg.ui' ?).
- otherwise it may be because the 'ui_templates' folder is not in the 'include' directories list (can you check in 'Project > Properties > Project's build options (bottom right) > Search directories" ? You should see 'ui_templates' there.
- eventually, it may be because Code::Blocks doesn't handle correctly paths with foreign characters (do you have Chinese characters in the path where CloudCompare trunk is?)
I wait for your feedback,
Daniel
Daniel, CloudCompare admin
-
- Posts: 7
- Joined: Fri Dec 24, 2010 5:55 am
Re: compile error - "Ui" has not been declared
Daniel,
Thanks for your help.
1/ I did saw the line 'qt-prebuild : found UICable file ui_templates/alignDlg.ui' (also, please see the all "build log" as following).
2/ "ui_templates" was in "search direction", and others three are (../CC/include, libs/CCFbo, and db).
3/ there are no other characters except English.
############### Build log###################
"Lib - Glew" does not support the current platform. Skipping...
"Lib - CCFbo - release" does not support the current platform. Skipping...
"Lib - CCFbo - debug" does not support the current platform. Skipping...
"Lib - triangle - default" does not support the current platform. Skipping...
"Lib - Qhull - default" does not support the current platform. Skipping...
"Lib - CCLib - Release" does not support the current platform. Skipping...
"Lib - CCLib - Debug" does not support the current platform. Skipping...
"Tool - qt-prebuild - default" does not support the current platform. Skipping...
"Lib - qCC_db - release" does not support the current platform. Skipping...
"Lib - qCC_db - debug" does not support the current platform. Skipping...
"qCC - release" does not support the current platform. Skipping...
"qCC - debug" does not support the current platform. Skipping...
-------------- Build: release.linux in Lib - CCFbo ---------------
Compiling: ccBilateralFilter.cpp
Compiling: ccFBOUtils.cpp
Compiling: ccFrameBufferObject.cpp
Compiling: ccShader.cpp
/home/xuetao/trunk/qCC/libs/CCFbo/ccShader.cpp: In static member function ‘static char* ccShader::ReadShaderFile(const char*)’:
/home/xuetao/trunk/qCC/libs/CCFbo/ccShader.cpp:173: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result
Linking static library: lib/libCCFbo.a
ar: creating lib/libCCFbo.a
Output size is 36.89 KB
-------------- Build: rebug.linux in Lib - CCFbo ---------------
Compiling: ccBilateralFilter.cpp
Compiling: ccFBOUtils.cpp
Compiling: ccFrameBufferObject.cpp
Compiling: ccShader.cpp
Linking static library: lib/libCCFbod.a
ar: creating lib/libCCFbod.a
Output size is 93.01 KB
-------------- Build: default.linux in Lib - triangle ---------------
Compiling: ../triangle/triangle.cpp
Linking static library: ../lib/libtriangle.a
ar: creating ../lib/libtriangle.a
Output size is 94.19 KB
-------------- Build: default.linux in Lib - Qhull ---------------
Compiling: ../qhull/src/geom.c
Compiling: ../qhull/src/geom2.c
Compiling: ../qhull/src/global.c
In file included from /usr/include/string.h:640,
from /home/xuetao/trunk/CC/qhull/src/qhull_a.h:28,
from /home/xuetao/trunk/CC/qhull/src/global.c:16:
In function ‘strncat’,
inlined from ‘qh_initflags’ at /home/xuetao/trunk/CC/qhull/src/global.c:548:
/usr/include/bits/string3.h:154: warning: call to __builtin___strncat_chk might overflow destination buffer
Compiling: ../qhull/src/io.c
/home/xuetao/trunk/CC/qhull/src/io.c: In function ‘qh_printfacet3math’:
/home/xuetao/trunk/CC/qhull/src/io.c:2169: warning: format not a string literal and no format arguments
Compiling: ../qhull/src/mem.c
Compiling: ../qhull/src/merge.c
Compiling: ../qhull/src/poly.c
Compiling: ../qhull/src/poly2.c
Compiling: ../qhull/src/qhull.c
Compiling: ../qhull/src/qset.c
Compiling: ../qhull/src/stat.c
Compiling: ../qhull/src/user.c
Linking static library: ../lib/libqhull.a
ar: creating ../lib/libqhull.a
Output size is 356.75 KB
-------------- Build: Release.linux in Lib - CCLib ---------------
Compiling: ../src/AutoSegmentationTools.cpp
Compiling: ../src/CCMiscTools.cpp
Compiling: ../src/ChamferDistanceTransform.cpp
Compiling: ../src/ChunkedPointCloud.cpp
Compiling: ../src/CloudSamplingTools.cpp
Compiling: ../src/ConjugateGradient.cpp
Compiling: ../src/DebugProgressCallback.cpp
Compiling: ../src/Delaunay2dMesh.cpp
Compiling: ../src/DgmOctree.cpp
Compiling: ../src/DistanceComputationTools.cpp
Compiling: ../src/ErrorFunction.cpp
Compiling: ../src/FastMarching.cpp
Compiling: ../src/FastMarchingForPropagation.cpp
Compiling: ../src/GeometricalAnalysisTools.cpp
Compiling: ../src/GroundBasedLidarSensor.cpp
Compiling: ../src/KdTree.cpp
Compiling: ../src/LocalModel.cpp
Compiling: ../src/ManualSegmentationTools.cpp
Compiling: ../src/MeshSamplingTools.cpp
Compiling: ../src/Neighbourhood.cpp
Compiling: ../src/NormalDistribution.cpp
Compiling: ../src/PointProjectionTools.cpp
Compiling: ../src/Polyline.cpp
Compiling: ../src/ReferenceCloud.cpp
Compiling: ../src/RegistrationTools.cpp
Compiling: ../src/ScalarField.cpp
Compiling: ../src/ScalarFieldTools.cpp
Compiling: ../src/SimpleCloud.cpp
Compiling: ../src/SimpleMesh.cpp
Compiling: ../src/StatisticalTestingTools.cpp
Compiling: ../src/WeibullDistribution.cpp
Linking static library: ../lib/libCC_Dll.a
ar: creating ../lib/libCC_Dll.a
Output size is 544.81 KB
-------------- Build: Debug.linux in Lib - CCLib ---------------
Compiling: ../src/AutoSegmentationTools.cpp
Compiling: ../src/CCMiscTools.cpp
Compiling: ../src/ChamferDistanceTransform.cpp
Compiling: ../src/ChunkedPointCloud.cpp
Compiling: ../src/CloudSamplingTools.cpp
Compiling: ../src/ConjugateGradient.cpp
Compiling: ../src/DebugProgressCallback.cpp
Compiling: ../src/Delaunay2dMesh.cpp
Compiling: ../src/DgmOctree.cpp
Compiling: ../src/DistanceComputationTools.cpp
Compiling: ../src/ErrorFunction.cpp
Compiling: ../src/FastMarching.cpp
Compiling: ../src/FastMarchingForPropagation.cpp
Compiling: ../src/GeometricalAnalysisTools.cpp
Compiling: ../src/GroundBasedLidarSensor.cpp
Compiling: ../src/KdTree.cpp
Compiling: ../src/LocalModel.cpp
Compiling: ../src/ManualSegmentationTools.cpp
Compiling: ../src/MeshSamplingTools.cpp
Compiling: ../src/Neighbourhood.cpp
Compiling: ../src/NormalDistribution.cpp
Compiling: ../src/PointProjectionTools.cpp
Compiling: ../src/Polyline.cpp
Compiling: ../src/ReferenceCloud.cpp
Compiling: ../src/RegistrationTools.cpp
Compiling: ../src/ScalarField.cpp
Compiling: ../src/ScalarFieldTools.cpp
Compiling: ../src/SimpleCloud.cpp
Compiling: ../src/SimpleMesh.cpp
Compiling: ../src/StatisticalTestingTools.cpp
Compiling: ../src/WeibullDistribution.cpp
Linking static library: ../lib/libCC_Dlld.a
ar: creating ../lib/libCC_Dlld.a
Output size is 2.68 MB
-------------- Build: default.linux in Tool - qt-prebuild ---------------
Compiling: main.cpp
Linking console executable: qt-prebuild
Output size is 28.90 KB
-------------- Build: release.linux in Lib - qCC_db ---------------
Compiling: ccAllTypes.cpp
Compiling: ccBBox.cpp
Compiling: ccCalibratedImage.cpp
Compiling: ccColorTablesManager.cpp
Compiling: ccDrawableObject.cpp
Compiling: ccGBLSensor.cpp
Compiling: ccGLMatrix.cpp
/home/xuetao/trunk/qCC/db/ccGLMatrix.cpp: In member function ‘virtual bool ccGLMatrix::fomAsciiFile(const char*)’:
/home/xuetao/trunk/qCC/db/ccGLMatrix.cpp:132: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result
Compiling: ccGenericMesh.cpp
Compiling: ccGenericPointCloud.cpp
Compiling: ccHObject.cpp
Compiling: ccImage.cpp
Compiling: ccMesh.cpp
Compiling: ccMeshGroup.cpp
Compiling: ccNormalVectors.cpp
Compiling: ccObject.cpp
Compiling: ccOctree.cpp
Compiling: ccPointCloud.cpp
Compiling: ccPolyline.cpp
Compiling: ccTimer.cpp
Linking static library: lib/libqCC_db.a
ar: creating lib/libqCC_db.a
Output size is 4.33 MB
-------------- Build: debug.linux in Lib - qCC_db ---------------
Compiling: ccAllTypes.cpp
Compiling: ccBBox.cpp
Compiling: ccCalibratedImage.cpp
Compiling: ccColorTablesManager.cpp
Compiling: ccDrawableObject.cpp
Compiling: ccGBLSensor.cpp
Compiling: ccGLMatrix.cpp
/home/xuetao/trunk/qCC/db/ccGLMatrix.cpp: In member function ‘virtual bool ccGLMatrix::fomAsciiFile(const char*)’:
/home/xuetao/trunk/qCC/db/ccGLMatrix.cpp:132: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result
Compiling: ccGenericMesh.cpp
Compiling: ccGenericPointCloud.cpp
Compiling: ccHObject.cpp
Compiling: ccImage.cpp
Compiling: ccMesh.cpp
Compiling: ccMeshGroup.cpp
Compiling: ccNormalVectors.cpp
Compiling: ccObject.cpp
Compiling: ccOctree.cpp
Compiling: ccPointCloud.cpp
Compiling: ccPolyline.cpp
Compiling: ccTimer.cpp
Linking static library: lib/libqCC_dbd.a
ar: creating lib/libqCC_dbd.a
Output size is 4.33 MB
-------------- Build: release.linux in qCC ---------------
Running target pre-build steps
qt_prebuild/qt-prebuild
qt-prebuild : running
qt-prebuild : scan started
qt-prebuild : found MOCable file ccAlignDlg.h
qt-prebuild : found MOCable file ccCameraParamEditDlg.h
qt-prebuild : found MOCable file ccComparisonDlg.h
qt-prebuild : found MOCable file ccGLWindow.h
qt-prebuild : found MOCable file ccGraphicalSegmentationTool.h
qt-prebuild : found MOCable file ccGraphicalTransformationTool.h
qt-prebuild : found MOCable file ccHeightGridGenerationDlg.h
qt-prebuild : found MOCable file ccHistogramWindow.h
qt-prebuild : found MOCable file ccLightsAndMatDlg.h
qt-prebuild : found MOCable file ccOrderChoiceDlg.h
qt-prebuild : found MOCable file ccPluginDlg.h
qt-prebuild : found MOCable file ccPointListPickingDlg.h
qt-prebuild : found MOCable file ccPointPickingGenericInterface.h
qt-prebuild : found MOCable file ccPointPropertiesDlg.h
qt-prebuild : found MOCable file ccPointSizeDlg.h
qt-prebuild : found MOCable file ccRegistrationDlg.h
qt-prebuild : found MOCable file ccRenderToFileDlg.h
qt-prebuild : found MOCable file ccSensorProjectionDlg.h
qt-prebuild : found MOCable file ccSubsamplingDlg.h
qt-prebuild : found MOCable file ccTwoColorsDlg.h
qt-prebuild : found MOCable file ccUnrollDlg.h
qt-prebuild : found RCCable file icones.qrc
qt-prebuild : found MOCable file mainwindow.h
qt-prebuild : found MOCable file db_tree/ccDBRoot.h
qt-prebuild : found MOCable file db_tree/ccPropertiesTreeDelegate.h
qt-prebuild : found MOCable file db_tree/sfEditDlg.h
qt-prebuild : found MOCable file fileIO/AsciiOpenDlg.h
qt-prebuild : found MOCable file fileIO/PlyOpenDlg.h
qt-prebuild : found MOCable file plugins/qBlur/qBlur.h
qt-prebuild : found MOCable file plugins/qDummyPlugin/qDummyPlugin.h
qt-prebuild : found MOCable file plugins/qEDL/qEDL.h
qt-prebuild : found RCCable file plugins/qEDL/qEDL.qrc
qt-prebuild : found UICable file plugins/qHPR/hprDlg.ui
qt-prebuild : found MOCable file plugins/qHPR/qHPR.h
qt-prebuild : found RCCable file plugins/qHPR/qHPR.qrc
qt-prebuild : found UICable file plugins/qPCV/pcvDlg.ui
qt-prebuild : found MOCable file plugins/qPCV/qPCV.h
qt-prebuild : found RCCable file plugins/qPCV/qPCV.qrc
qt-prebuild : found MOCable file plugins/qPoissonRecon/qPoissonRecon.h
qt-prebuild : found RCCable file plugins/qPoissonRecon/qPoissonRecon.qrc
qt-prebuild : found MOCable file plugins/qRANSAC_SD/qRANSAC_SD.h
qt-prebuild : found RCCable file plugins/qRANSAC_SD/qRANSAC_SD.qrc
qt-prebuild : found MOCable file plugins/qSSAO/qSSAO.h
qt-prebuild : found RCCable file plugins/qSSAO/qSSAO.qrc
qt-prebuild : found UICable file ui_templates/aboutDlg.ui
qt-prebuild : found UICable file ui_templates/alignDlg.ui
qt-prebuild : found UICable file ui_templates/askOneDoubleValueDlg.ui
qt-prebuild : found UICable file ui_templates/askOneIntValueDlg.ui
qt-prebuild : found UICable file ui_templates/askThreeDoubleValuesDlg.ui
qt-prebuild : found UICable file ui_templates/askTwoDoubleValuesDlg.ui
qt-prebuild : found UICable file ui_templates/cameraParamDlg.ui
qt-prebuild : found UICable file ui_templates/comparisonDlg.ui
qt-prebuild : found UICable file ui_templates/curvatureDlg.ui
qt-prebuild : found UICable file ui_templates/graphicalSegmentationDlg.ui
qt-prebuild : found UICable file ui_templates/graphicalTransformationDlg.ui
qt-prebuild : found UICable file ui_templates/heightGridGenerationDlg.ui
qt-prebuild : found UICable file ui_templates/labelingDlg.ui
qt-prebuild : found UICable file ui_templates/lightsAndMaterialsDlg.ui
qt-prebuild : found UICable file ui_templates/mainWindow.ui
qt-prebuild : found UICable file ui_templates/normalComputationDlg.ui
qt-prebuild : found UICable file ui_templates/openAsciiFileDlg.ui
qt-prebuild : found UICable file ui_templates/pcvDlg.ui
qt-prebuild : found UICable file ui_templates/pickOneElementDlg.ui
qt-prebuild : found UICable file ui_templates/plyOpenDlg.ui
qt-prebuild : found UICable file ui_templates/pointListPickingDlg.ui
qt-prebuild : found UICable file ui_templates/pointPropertiesDlg.ui
qt-prebuild : found UICable file ui_templates/pointSizeDlg.ui
qt-prebuild : found UICable file ui_templates/ptsSamplingDlg.ui
qt-prebuild : found UICable file ui_templates/registrationDlg.ui
qt-prebuild : found UICable file ui_templates/renderToFileDialog.ui
qt-prebuild : found UICable file ui_templates/roleChoiceDlg.ui
qt-prebuild : found UICable file ui_templates/sensorProjectDlg.ui
qt-prebuild : found UICable file ui_templates/sfComparisonDlg.ui
qt-prebuild : found UICable file ui_templates/sfEditDlg.ui
qt-prebuild : found UICable file ui_templates/statisticalTestDlg.ui
qt-prebuild : found UICable file ui_templates/subsamplingDlg.ui
qt-prebuild : found UICable file ui_templates/twoColorsDlg.ui
qt-prebuild : found UICable file ui_templates/unrollDlg.ui
qt-prebuild : scan completed
Compiling: ccAlignDlg.cpp
In file included from /home/xuetao/trunk/qCC/ccAlignDlg.cpp:25:
/home/xuetao/trunk/qCC/ccAlignDlg.h:37: error: ‘Ui’ has not been declared
/home/xuetao/trunk/qCC/ccAlignDlg.h:37: error: expected ‘{’ before ‘AlignDialog’
/home/xuetao/trunk/qCC/ccAlignDlg.h:38: error: invalid type in declaration before ‘{’ token
/home/xuetao/trunk/qCC/ccAlignDlg.h:38: warning: extended initializer lists only available with -std=c++0x or -std=gnu++0x
/home/xuetao/trunk/qCC/ccAlignDlg.h:39: error: expected primary-expression before ‘public’
/home/xuetao/trunk/qCC/ccAlignDlg.h:39: error: expected ‘}’ before ‘public’
/home/xuetao/trunk/qCC/ccAlignDlg.h:39: error: expected ‘,’ or ‘;’ before ‘public’
/home/xuetao/trunk/qCC/ccAlignDlg.h:39: error: uninitialized const ‘staticMetaObject’
/home/xuetao/trunk/qCC/ccAlignDlg.h:39: error: ‘virtual’ outside class declaration
/home/xuetao/trunk/qCC/ccAlignDlg.h:39: error: non-member function ‘const QMetaObject* metaObject()’ cannot have cv-qualifier
/home/xuetao/trunk/qCC/ccAlignDlg.h:39: error: ‘virtual’ outside class declaration
/home/xuetao/trunk/qCC/ccAlignDlg.h:39: error: ‘virtual’ outside class declaration
/home/xuetao/trunk/qCC/ccAlignDlg.h:39: error: expected unqualified-id before ‘private’
/home/xuetao/trunk/qCC/ccAlignDlg.h:48: error: expected constructor, destructor, or type conversion before ‘;’ token
/home/xuetao/trunk/qCC/ccAlignDlg.h:50: error: expected ‘)’ before ‘*’ token
/home/xuetao/trunk/qCC/ccAlignDlg.h:51: error: declaration of ‘~ccAlignDlg’ as non-member
/home/xuetao/trunk/qCC/ccAlignDlg.h:58: error: ‘CC_SAMPLING_METHOD’ does not name a type
/home/xuetao/trunk/qCC/ccAlignDlg.h:65: error: expected unqualified-id before ‘protected’
/home/xuetao/trunk/qCC/ccAlignDlg.h:75: error: expected unqualified-id before ‘protected’
/home/xuetao/trunk/qCC/ccAlignDlg.h:85: error: expected declaration before ‘}’ token
Process terminated with status 1 (1 minutes, 48 seconds)
19 errors, 6 warnings
Thanks for your help.
1/ I did saw the line 'qt-prebuild : found UICable file ui_templates/alignDlg.ui' (also, please see the all "build log" as following).
2/ "ui_templates" was in "search direction", and others three are (../CC/include, libs/CCFbo, and db).
3/ there are no other characters except English.
############### Build log###################
"Lib - Glew" does not support the current platform. Skipping...
"Lib - CCFbo - release" does not support the current platform. Skipping...
"Lib - CCFbo - debug" does not support the current platform. Skipping...
"Lib - triangle - default" does not support the current platform. Skipping...
"Lib - Qhull - default" does not support the current platform. Skipping...
"Lib - CCLib - Release" does not support the current platform. Skipping...
"Lib - CCLib - Debug" does not support the current platform. Skipping...
"Tool - qt-prebuild - default" does not support the current platform. Skipping...
"Lib - qCC_db - release" does not support the current platform. Skipping...
"Lib - qCC_db - debug" does not support the current platform. Skipping...
"qCC - release" does not support the current platform. Skipping...
"qCC - debug" does not support the current platform. Skipping...
-------------- Build: release.linux in Lib - CCFbo ---------------
Compiling: ccBilateralFilter.cpp
Compiling: ccFBOUtils.cpp
Compiling: ccFrameBufferObject.cpp
Compiling: ccShader.cpp
/home/xuetao/trunk/qCC/libs/CCFbo/ccShader.cpp: In static member function ‘static char* ccShader::ReadShaderFile(const char*)’:
/home/xuetao/trunk/qCC/libs/CCFbo/ccShader.cpp:173: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result
Linking static library: lib/libCCFbo.a
ar: creating lib/libCCFbo.a
Output size is 36.89 KB
-------------- Build: rebug.linux in Lib - CCFbo ---------------
Compiling: ccBilateralFilter.cpp
Compiling: ccFBOUtils.cpp
Compiling: ccFrameBufferObject.cpp
Compiling: ccShader.cpp
Linking static library: lib/libCCFbod.a
ar: creating lib/libCCFbod.a
Output size is 93.01 KB
-------------- Build: default.linux in Lib - triangle ---------------
Compiling: ../triangle/triangle.cpp
Linking static library: ../lib/libtriangle.a
ar: creating ../lib/libtriangle.a
Output size is 94.19 KB
-------------- Build: default.linux in Lib - Qhull ---------------
Compiling: ../qhull/src/geom.c
Compiling: ../qhull/src/geom2.c
Compiling: ../qhull/src/global.c
In file included from /usr/include/string.h:640,
from /home/xuetao/trunk/CC/qhull/src/qhull_a.h:28,
from /home/xuetao/trunk/CC/qhull/src/global.c:16:
In function ‘strncat’,
inlined from ‘qh_initflags’ at /home/xuetao/trunk/CC/qhull/src/global.c:548:
/usr/include/bits/string3.h:154: warning: call to __builtin___strncat_chk might overflow destination buffer
Compiling: ../qhull/src/io.c
/home/xuetao/trunk/CC/qhull/src/io.c: In function ‘qh_printfacet3math’:
/home/xuetao/trunk/CC/qhull/src/io.c:2169: warning: format not a string literal and no format arguments
Compiling: ../qhull/src/mem.c
Compiling: ../qhull/src/merge.c
Compiling: ../qhull/src/poly.c
Compiling: ../qhull/src/poly2.c
Compiling: ../qhull/src/qhull.c
Compiling: ../qhull/src/qset.c
Compiling: ../qhull/src/stat.c
Compiling: ../qhull/src/user.c
Linking static library: ../lib/libqhull.a
ar: creating ../lib/libqhull.a
Output size is 356.75 KB
-------------- Build: Release.linux in Lib - CCLib ---------------
Compiling: ../src/AutoSegmentationTools.cpp
Compiling: ../src/CCMiscTools.cpp
Compiling: ../src/ChamferDistanceTransform.cpp
Compiling: ../src/ChunkedPointCloud.cpp
Compiling: ../src/CloudSamplingTools.cpp
Compiling: ../src/ConjugateGradient.cpp
Compiling: ../src/DebugProgressCallback.cpp
Compiling: ../src/Delaunay2dMesh.cpp
Compiling: ../src/DgmOctree.cpp
Compiling: ../src/DistanceComputationTools.cpp
Compiling: ../src/ErrorFunction.cpp
Compiling: ../src/FastMarching.cpp
Compiling: ../src/FastMarchingForPropagation.cpp
Compiling: ../src/GeometricalAnalysisTools.cpp
Compiling: ../src/GroundBasedLidarSensor.cpp
Compiling: ../src/KdTree.cpp
Compiling: ../src/LocalModel.cpp
Compiling: ../src/ManualSegmentationTools.cpp
Compiling: ../src/MeshSamplingTools.cpp
Compiling: ../src/Neighbourhood.cpp
Compiling: ../src/NormalDistribution.cpp
Compiling: ../src/PointProjectionTools.cpp
Compiling: ../src/Polyline.cpp
Compiling: ../src/ReferenceCloud.cpp
Compiling: ../src/RegistrationTools.cpp
Compiling: ../src/ScalarField.cpp
Compiling: ../src/ScalarFieldTools.cpp
Compiling: ../src/SimpleCloud.cpp
Compiling: ../src/SimpleMesh.cpp
Compiling: ../src/StatisticalTestingTools.cpp
Compiling: ../src/WeibullDistribution.cpp
Linking static library: ../lib/libCC_Dll.a
ar: creating ../lib/libCC_Dll.a
Output size is 544.81 KB
-------------- Build: Debug.linux in Lib - CCLib ---------------
Compiling: ../src/AutoSegmentationTools.cpp
Compiling: ../src/CCMiscTools.cpp
Compiling: ../src/ChamferDistanceTransform.cpp
Compiling: ../src/ChunkedPointCloud.cpp
Compiling: ../src/CloudSamplingTools.cpp
Compiling: ../src/ConjugateGradient.cpp
Compiling: ../src/DebugProgressCallback.cpp
Compiling: ../src/Delaunay2dMesh.cpp
Compiling: ../src/DgmOctree.cpp
Compiling: ../src/DistanceComputationTools.cpp
Compiling: ../src/ErrorFunction.cpp
Compiling: ../src/FastMarching.cpp
Compiling: ../src/FastMarchingForPropagation.cpp
Compiling: ../src/GeometricalAnalysisTools.cpp
Compiling: ../src/GroundBasedLidarSensor.cpp
Compiling: ../src/KdTree.cpp
Compiling: ../src/LocalModel.cpp
Compiling: ../src/ManualSegmentationTools.cpp
Compiling: ../src/MeshSamplingTools.cpp
Compiling: ../src/Neighbourhood.cpp
Compiling: ../src/NormalDistribution.cpp
Compiling: ../src/PointProjectionTools.cpp
Compiling: ../src/Polyline.cpp
Compiling: ../src/ReferenceCloud.cpp
Compiling: ../src/RegistrationTools.cpp
Compiling: ../src/ScalarField.cpp
Compiling: ../src/ScalarFieldTools.cpp
Compiling: ../src/SimpleCloud.cpp
Compiling: ../src/SimpleMesh.cpp
Compiling: ../src/StatisticalTestingTools.cpp
Compiling: ../src/WeibullDistribution.cpp
Linking static library: ../lib/libCC_Dlld.a
ar: creating ../lib/libCC_Dlld.a
Output size is 2.68 MB
-------------- Build: default.linux in Tool - qt-prebuild ---------------
Compiling: main.cpp
Linking console executable: qt-prebuild
Output size is 28.90 KB
-------------- Build: release.linux in Lib - qCC_db ---------------
Compiling: ccAllTypes.cpp
Compiling: ccBBox.cpp
Compiling: ccCalibratedImage.cpp
Compiling: ccColorTablesManager.cpp
Compiling: ccDrawableObject.cpp
Compiling: ccGBLSensor.cpp
Compiling: ccGLMatrix.cpp
/home/xuetao/trunk/qCC/db/ccGLMatrix.cpp: In member function ‘virtual bool ccGLMatrix::fomAsciiFile(const char*)’:
/home/xuetao/trunk/qCC/db/ccGLMatrix.cpp:132: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result
Compiling: ccGenericMesh.cpp
Compiling: ccGenericPointCloud.cpp
Compiling: ccHObject.cpp
Compiling: ccImage.cpp
Compiling: ccMesh.cpp
Compiling: ccMeshGroup.cpp
Compiling: ccNormalVectors.cpp
Compiling: ccObject.cpp
Compiling: ccOctree.cpp
Compiling: ccPointCloud.cpp
Compiling: ccPolyline.cpp
Compiling: ccTimer.cpp
Linking static library: lib/libqCC_db.a
ar: creating lib/libqCC_db.a
Output size is 4.33 MB
-------------- Build: debug.linux in Lib - qCC_db ---------------
Compiling: ccAllTypes.cpp
Compiling: ccBBox.cpp
Compiling: ccCalibratedImage.cpp
Compiling: ccColorTablesManager.cpp
Compiling: ccDrawableObject.cpp
Compiling: ccGBLSensor.cpp
Compiling: ccGLMatrix.cpp
/home/xuetao/trunk/qCC/db/ccGLMatrix.cpp: In member function ‘virtual bool ccGLMatrix::fomAsciiFile(const char*)’:
/home/xuetao/trunk/qCC/db/ccGLMatrix.cpp:132: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result
Compiling: ccGenericMesh.cpp
Compiling: ccGenericPointCloud.cpp
Compiling: ccHObject.cpp
Compiling: ccImage.cpp
Compiling: ccMesh.cpp
Compiling: ccMeshGroup.cpp
Compiling: ccNormalVectors.cpp
Compiling: ccObject.cpp
Compiling: ccOctree.cpp
Compiling: ccPointCloud.cpp
Compiling: ccPolyline.cpp
Compiling: ccTimer.cpp
Linking static library: lib/libqCC_dbd.a
ar: creating lib/libqCC_dbd.a
Output size is 4.33 MB
-------------- Build: release.linux in qCC ---------------
Running target pre-build steps
qt_prebuild/qt-prebuild
qt-prebuild : running
qt-prebuild : scan started
qt-prebuild : found MOCable file ccAlignDlg.h
qt-prebuild : found MOCable file ccCameraParamEditDlg.h
qt-prebuild : found MOCable file ccComparisonDlg.h
qt-prebuild : found MOCable file ccGLWindow.h
qt-prebuild : found MOCable file ccGraphicalSegmentationTool.h
qt-prebuild : found MOCable file ccGraphicalTransformationTool.h
qt-prebuild : found MOCable file ccHeightGridGenerationDlg.h
qt-prebuild : found MOCable file ccHistogramWindow.h
qt-prebuild : found MOCable file ccLightsAndMatDlg.h
qt-prebuild : found MOCable file ccOrderChoiceDlg.h
qt-prebuild : found MOCable file ccPluginDlg.h
qt-prebuild : found MOCable file ccPointListPickingDlg.h
qt-prebuild : found MOCable file ccPointPickingGenericInterface.h
qt-prebuild : found MOCable file ccPointPropertiesDlg.h
qt-prebuild : found MOCable file ccPointSizeDlg.h
qt-prebuild : found MOCable file ccRegistrationDlg.h
qt-prebuild : found MOCable file ccRenderToFileDlg.h
qt-prebuild : found MOCable file ccSensorProjectionDlg.h
qt-prebuild : found MOCable file ccSubsamplingDlg.h
qt-prebuild : found MOCable file ccTwoColorsDlg.h
qt-prebuild : found MOCable file ccUnrollDlg.h
qt-prebuild : found RCCable file icones.qrc
qt-prebuild : found MOCable file mainwindow.h
qt-prebuild : found MOCable file db_tree/ccDBRoot.h
qt-prebuild : found MOCable file db_tree/ccPropertiesTreeDelegate.h
qt-prebuild : found MOCable file db_tree/sfEditDlg.h
qt-prebuild : found MOCable file fileIO/AsciiOpenDlg.h
qt-prebuild : found MOCable file fileIO/PlyOpenDlg.h
qt-prebuild : found MOCable file plugins/qBlur/qBlur.h
qt-prebuild : found MOCable file plugins/qDummyPlugin/qDummyPlugin.h
qt-prebuild : found MOCable file plugins/qEDL/qEDL.h
qt-prebuild : found RCCable file plugins/qEDL/qEDL.qrc
qt-prebuild : found UICable file plugins/qHPR/hprDlg.ui
qt-prebuild : found MOCable file plugins/qHPR/qHPR.h
qt-prebuild : found RCCable file plugins/qHPR/qHPR.qrc
qt-prebuild : found UICable file plugins/qPCV/pcvDlg.ui
qt-prebuild : found MOCable file plugins/qPCV/qPCV.h
qt-prebuild : found RCCable file plugins/qPCV/qPCV.qrc
qt-prebuild : found MOCable file plugins/qPoissonRecon/qPoissonRecon.h
qt-prebuild : found RCCable file plugins/qPoissonRecon/qPoissonRecon.qrc
qt-prebuild : found MOCable file plugins/qRANSAC_SD/qRANSAC_SD.h
qt-prebuild : found RCCable file plugins/qRANSAC_SD/qRANSAC_SD.qrc
qt-prebuild : found MOCable file plugins/qSSAO/qSSAO.h
qt-prebuild : found RCCable file plugins/qSSAO/qSSAO.qrc
qt-prebuild : found UICable file ui_templates/aboutDlg.ui
qt-prebuild : found UICable file ui_templates/alignDlg.ui
qt-prebuild : found UICable file ui_templates/askOneDoubleValueDlg.ui
qt-prebuild : found UICable file ui_templates/askOneIntValueDlg.ui
qt-prebuild : found UICable file ui_templates/askThreeDoubleValuesDlg.ui
qt-prebuild : found UICable file ui_templates/askTwoDoubleValuesDlg.ui
qt-prebuild : found UICable file ui_templates/cameraParamDlg.ui
qt-prebuild : found UICable file ui_templates/comparisonDlg.ui
qt-prebuild : found UICable file ui_templates/curvatureDlg.ui
qt-prebuild : found UICable file ui_templates/graphicalSegmentationDlg.ui
qt-prebuild : found UICable file ui_templates/graphicalTransformationDlg.ui
qt-prebuild : found UICable file ui_templates/heightGridGenerationDlg.ui
qt-prebuild : found UICable file ui_templates/labelingDlg.ui
qt-prebuild : found UICable file ui_templates/lightsAndMaterialsDlg.ui
qt-prebuild : found UICable file ui_templates/mainWindow.ui
qt-prebuild : found UICable file ui_templates/normalComputationDlg.ui
qt-prebuild : found UICable file ui_templates/openAsciiFileDlg.ui
qt-prebuild : found UICable file ui_templates/pcvDlg.ui
qt-prebuild : found UICable file ui_templates/pickOneElementDlg.ui
qt-prebuild : found UICable file ui_templates/plyOpenDlg.ui
qt-prebuild : found UICable file ui_templates/pointListPickingDlg.ui
qt-prebuild : found UICable file ui_templates/pointPropertiesDlg.ui
qt-prebuild : found UICable file ui_templates/pointSizeDlg.ui
qt-prebuild : found UICable file ui_templates/ptsSamplingDlg.ui
qt-prebuild : found UICable file ui_templates/registrationDlg.ui
qt-prebuild : found UICable file ui_templates/renderToFileDialog.ui
qt-prebuild : found UICable file ui_templates/roleChoiceDlg.ui
qt-prebuild : found UICable file ui_templates/sensorProjectDlg.ui
qt-prebuild : found UICable file ui_templates/sfComparisonDlg.ui
qt-prebuild : found UICable file ui_templates/sfEditDlg.ui
qt-prebuild : found UICable file ui_templates/statisticalTestDlg.ui
qt-prebuild : found UICable file ui_templates/subsamplingDlg.ui
qt-prebuild : found UICable file ui_templates/twoColorsDlg.ui
qt-prebuild : found UICable file ui_templates/unrollDlg.ui
qt-prebuild : scan completed
Compiling: ccAlignDlg.cpp
In file included from /home/xuetao/trunk/qCC/ccAlignDlg.cpp:25:
/home/xuetao/trunk/qCC/ccAlignDlg.h:37: error: ‘Ui’ has not been declared
/home/xuetao/trunk/qCC/ccAlignDlg.h:37: error: expected ‘{’ before ‘AlignDialog’
/home/xuetao/trunk/qCC/ccAlignDlg.h:38: error: invalid type in declaration before ‘{’ token
/home/xuetao/trunk/qCC/ccAlignDlg.h:38: warning: extended initializer lists only available with -std=c++0x or -std=gnu++0x
/home/xuetao/trunk/qCC/ccAlignDlg.h:39: error: expected primary-expression before ‘public’
/home/xuetao/trunk/qCC/ccAlignDlg.h:39: error: expected ‘}’ before ‘public’
/home/xuetao/trunk/qCC/ccAlignDlg.h:39: error: expected ‘,’ or ‘;’ before ‘public’
/home/xuetao/trunk/qCC/ccAlignDlg.h:39: error: uninitialized const ‘staticMetaObject’
/home/xuetao/trunk/qCC/ccAlignDlg.h:39: error: ‘virtual’ outside class declaration
/home/xuetao/trunk/qCC/ccAlignDlg.h:39: error: non-member function ‘const QMetaObject* metaObject()’ cannot have cv-qualifier
/home/xuetao/trunk/qCC/ccAlignDlg.h:39: error: ‘virtual’ outside class declaration
/home/xuetao/trunk/qCC/ccAlignDlg.h:39: error: ‘virtual’ outside class declaration
/home/xuetao/trunk/qCC/ccAlignDlg.h:39: error: expected unqualified-id before ‘private’
/home/xuetao/trunk/qCC/ccAlignDlg.h:48: error: expected constructor, destructor, or type conversion before ‘;’ token
/home/xuetao/trunk/qCC/ccAlignDlg.h:50: error: expected ‘)’ before ‘*’ token
/home/xuetao/trunk/qCC/ccAlignDlg.h:51: error: declaration of ‘~ccAlignDlg’ as non-member
/home/xuetao/trunk/qCC/ccAlignDlg.h:58: error: ‘CC_SAMPLING_METHOD’ does not name a type
/home/xuetao/trunk/qCC/ccAlignDlg.h:65: error: expected unqualified-id before ‘protected’
/home/xuetao/trunk/qCC/ccAlignDlg.h:75: error: expected unqualified-id before ‘protected’
/home/xuetao/trunk/qCC/ccAlignDlg.h:85: error: expected declaration before ‘}’ token
Process terminated with status 1 (1 minutes, 48 seconds)
19 errors, 6 warnings
Re: compile error - "Ui" has not been declared
Interesting:
- can you find the 'ui_alignDlg.h' file (in ui_templates folder) and post it?
- can you also find the value of QT_BEGIN_NAMESPACE (you should see this macro inside the 'ui_alignDlg.h' file)
Thanks,
Daniel
- can you find the 'ui_alignDlg.h' file (in ui_templates folder) and post it?
- can you also find the value of QT_BEGIN_NAMESPACE (you should see this macro inside the 'ui_alignDlg.h' file)
Thanks,
Daniel
Daniel, CloudCompare admin
-
- Posts: 7
- Joined: Fri Dec 24, 2010 5:55 am
Re: compile error - "Ui" has not been declared
Thanks for your reminder.
All the file (ui_*.h) content are empty. some only contain the comment message see following: if I create the ui_alignDlg.h with uic directly and then replace empty one with new one, then the previous error gone.
Right now we know that this compile error comes from all empty file ui_*.h. Do you know how we can fix it /or I have to create all ui_*.h by other way.
Thanks.
Xuetao
########################## inside ui_aboutDlg.h##########################
1 /*************************************************************************** *
2 ** Form interface generated from reading ui file '/home/xuetao/trunk/qCC/ui_ templates/aboutDlg.ui'
3 **
4 ** Created: Sat Jan 22 10:50:40 2011
5 **
6 ** WARNING! All changes made in this file will be lost!
7 **************************************************************************** /
8
#########################~/trunk/qCC/ui_templates$ ls * -al######################
-rw-r--r-- 1 xuetao xuetao 4301 2011-01-21 23:35 aboutDlg.ui
-rw-r--r-- 1 xuetao xuetao 22154 2011-01-21 23:35 alignDlg.ui
-rw-r--r-- 1 xuetao xuetao 2184 2011-01-21 23:35 askOneDoubleValueDlg.ui
-rw-r--r-- 1 xuetao xuetao 2165 2011-01-21 23:35 askOneIntValueDlg.ui
-rw-r--r-- 1 xuetao xuetao 3304 2011-01-21 23:35 askThreeDoubleValuesDlg.ui
-rw-r--r-- 1 xuetao xuetao 2832 2011-01-21 23:35 askTwoDoubleValuesDlg.ui
-rw-r--r-- 1 xuetao xuetao 18170 2011-01-21 23:35 cameraParamDlg.ui
-rw-r--r-- 1 xuetao xuetao 8912 2011-01-21 23:35 comparisonDlg.ui
-rw-r--r-- 1 xuetao xuetao 2699 2011-01-21 23:35 curvatureDlg.ui
-rw-r--r-- 1 xuetao xuetao 3753 2011-01-21 23:35 graphicalSegmentationDlg.ui
-rw-r--r-- 1 xuetao xuetao 1364 2011-01-21 23:35 graphicalTransformationDlg.ui
-rw-r--r-- 1 xuetao xuetao 7728 2011-01-21 23:35 heightGridGenerationDlg.ui
-rw-r--r-- 1 xuetao xuetao 3632 2011-01-21 23:35 labelingDlg.ui
-rw-r--r-- 1 xuetao xuetao 10069 2011-01-21 23:35 lightsAndMaterialsDlg.ui
-rw-r--r-- 1 xuetao xuetao 55680 2011-01-21 23:35 mainWindow.ui
-rw-r--r-- 1 xuetao xuetao 4266 2011-01-21 23:35 normalComputationDlg.ui
-rw-r--r-- 1 xuetao xuetao 6014 2011-01-21 23:35 openAsciiFileDlg.ui
-rw-r--r-- 1 xuetao xuetao 4247 2011-01-21 23:35 pcvDlg.ui
-rw-r--r-- 1 xuetao xuetao 1994 2011-01-21 23:35 pickOneElementDlg.ui
-rw-r--r-- 1 xuetao xuetao 7317 2011-01-21 23:35 plyOpenDlg.ui
-rw-r--r-- 1 xuetao xuetao 7940 2011-01-21 23:35 pointListPickingDlg.ui
-rw-r--r-- 1 xuetao xuetao 2642 2011-01-21 23:35 pointPropertiesDlg.ui
-rw-r--r-- 1 xuetao xuetao 1871 2011-01-21 23:35 pointSizeDlg.ui
-rw-r--r-- 1 xuetao xuetao 4991 2011-01-21 23:35 ptsSamplingDlg.ui
-rw-r--r-- 1 xuetao xuetao 10027 2011-01-21 23:35 registrationDlg.ui
-rw-r--r-- 1 xuetao xuetao 3231 2011-01-21 23:35 renderToFileDialog.ui
-rw-r--r-- 1 xuetao xuetao 3554 2011-01-21 23:35 roleChoiceDlg.ui
-rw-r--r-- 1 xuetao xuetao 16370 2011-01-21 23:35 sensorProjectDlg.ui
-rw-r--r-- 1 xuetao xuetao 3821 2011-01-21 23:35 sfComparisonDlg.ui
-rw-r--r-- 1 xuetao xuetao 3724 2011-01-21 23:35 sfEditDlg.ui
-rw-r--r-- 1 xuetao xuetao 7170 2011-01-21 23:35 statisticalTestDlg.ui
-rw-r--r-- 1 xuetao xuetao 5347 2011-01-21 23:35 subsamplingDlg.ui
-rw-r--r-- 1 xuetao xuetao 4548 2011-01-21 23:35 twoColorsDlg.ui
-rw-r--r-- 1 xuetao xuetao 355 2011-01-22 10:50 ui_aboutDlg.h
-rw-r--r-- 1 xuetao xuetao 355 2011-01-22 10:50 ui_alignDlg.h
-rw-r--r-- 1 xuetao xuetao 0 2011-01-22 10:50 ui_askOneDoubleValueDlg.h
-rw-r--r-- 1 xuetao xuetao 0 2011-01-22 10:50 ui_askOneIntValueDlg.h
-rw-r--r-- 1 xuetao xuetao 0 2011-01-22 10:50 ui_askThreeDoubleValuesDlg.h
-rw-r--r-- 1 xuetao xuetao 0 2011-01-22 10:50 ui_askTwoDoubleValuesDlg.h
-rw-r--r-- 1 xuetao xuetao 361 2011-01-22 10:50 ui_cameraParamDlg.h
-rw-r--r-- 1 xuetao xuetao 360 2011-01-22 10:50 ui_comparisonDlg.h
-rw-r--r-- 1 xuetao xuetao 0 2011-01-22 10:50 ui_curvatureDlg.h
-rw-r--r-- 1 xuetao xuetao 0 2011-01-22 10:50 ui_graphicalSegmentationDlg.h
-rw-r--r-- 1 xuetao xuetao 0 2011-01-22 10:50 ui_graphicalTransformationDlg.h
-rw-r--r-- 1 xuetao xuetao 370 2011-01-22 10:50 ui_heightGridGenerationDlg.h
-rw-r--r-- 1 xuetao xuetao 358 2011-01-22 10:50 ui_labelingDlg.h
-rw-r--r-- 1 xuetao xuetao 368 2011-01-22 10:50 ui_lightsAndMaterialsDlg.h
-rw-r--r-- 1 xuetao xuetao 357 2011-01-22 10:50 ui_mainWindow.h
-rw-r--r-- 1 xuetao xuetao 367 2011-01-22 10:50 ui_normalComputationDlg.h
-rw-r--r-- 1 xuetao xuetao 363 2011-01-22 10:50 ui_openAsciiFileDlg.h
-rw-r--r-- 1 xuetao xuetao 0 2011-01-22 10:50 ui_pcvDlg.h
-rw-r--r-- 1 xuetao xuetao 0 2011-01-22 10:50 ui_pickOneElementDlg.h
-rw-r--r-- 1 xuetao xuetao 357 2011-01-22 10:50 ui_plyOpenDlg.h
-rw-r--r-- 1 xuetao xuetao 366 2011-01-22 10:50 ui_pointListPickingDlg.h
-rw-r--r-- 1 xuetao xuetao 0 2011-01-22 10:50 ui_pointPropertiesDlg.h
-rw-r--r-- 1 xuetao xuetao 0 2011-01-22 10:50 ui_pointSizeDlg.h
-rw-r--r-- 1 xuetao xuetao 361 2011-01-22 10:50 ui_ptsSamplingDlg.h
-rw-r--r-- 1 xuetao xuetao 362 2011-01-22 10:50 ui_registrationDlg.h
-rw-r--r-- 1 xuetao xuetao 0 2011-01-22 10:50 ui_renderToFileDialog.h
-rw-r--r-- 1 xuetao xuetao 0 2011-01-22 10:50 ui_roleChoiceDlg.h
-rw-r--r-- 1 xuetao xuetao 363 2011-01-22 10:50 ui_sensorProjectDlg.h
-rw-r--r-- 1 xuetao xuetao 362 2011-01-22 10:50 ui_sfComparisonDlg.h
-rw-r--r-- 1 xuetao xuetao 0 2011-01-22 10:50 ui_sfEditDlg.h
-rw-r--r-- 1 xuetao xuetao 365 2011-01-22 10:50 ui_statisticalTestDlg.h
-rw-r--r-- 1 xuetao xuetao 0 2011-01-22 10:50 ui_subsamplingDlg.h
-rw-r--r-- 1 xuetao xuetao 0 2011-01-22 10:50 ui_twoColorsDlg.h
-rw-r--r-- 1 xuetao xuetao 0 2011-01-22 10:50 ui_unrollDlg.h
-rw-r--r-- 1 xuetao xuetao 10881 2011-01-21 23:35 unrollDlg.ui
All the file (ui_*.h) content are empty. some only contain the comment message see following: if I create the ui_alignDlg.h with uic directly and then replace empty one with new one, then the previous error gone.
Right now we know that this compile error comes from all empty file ui_*.h. Do you know how we can fix it /or I have to create all ui_*.h by other way.
Thanks.
Xuetao
########################## inside ui_aboutDlg.h##########################
1 /*************************************************************************** *
2 ** Form interface generated from reading ui file '/home/xuetao/trunk/qCC/ui_ templates/aboutDlg.ui'
3 **
4 ** Created: Sat Jan 22 10:50:40 2011
5 **
6 ** WARNING! All changes made in this file will be lost!
7 **************************************************************************** /
8
#########################~/trunk/qCC/ui_templates$ ls * -al######################
-rw-r--r-- 1 xuetao xuetao 4301 2011-01-21 23:35 aboutDlg.ui
-rw-r--r-- 1 xuetao xuetao 22154 2011-01-21 23:35 alignDlg.ui
-rw-r--r-- 1 xuetao xuetao 2184 2011-01-21 23:35 askOneDoubleValueDlg.ui
-rw-r--r-- 1 xuetao xuetao 2165 2011-01-21 23:35 askOneIntValueDlg.ui
-rw-r--r-- 1 xuetao xuetao 3304 2011-01-21 23:35 askThreeDoubleValuesDlg.ui
-rw-r--r-- 1 xuetao xuetao 2832 2011-01-21 23:35 askTwoDoubleValuesDlg.ui
-rw-r--r-- 1 xuetao xuetao 18170 2011-01-21 23:35 cameraParamDlg.ui
-rw-r--r-- 1 xuetao xuetao 8912 2011-01-21 23:35 comparisonDlg.ui
-rw-r--r-- 1 xuetao xuetao 2699 2011-01-21 23:35 curvatureDlg.ui
-rw-r--r-- 1 xuetao xuetao 3753 2011-01-21 23:35 graphicalSegmentationDlg.ui
-rw-r--r-- 1 xuetao xuetao 1364 2011-01-21 23:35 graphicalTransformationDlg.ui
-rw-r--r-- 1 xuetao xuetao 7728 2011-01-21 23:35 heightGridGenerationDlg.ui
-rw-r--r-- 1 xuetao xuetao 3632 2011-01-21 23:35 labelingDlg.ui
-rw-r--r-- 1 xuetao xuetao 10069 2011-01-21 23:35 lightsAndMaterialsDlg.ui
-rw-r--r-- 1 xuetao xuetao 55680 2011-01-21 23:35 mainWindow.ui
-rw-r--r-- 1 xuetao xuetao 4266 2011-01-21 23:35 normalComputationDlg.ui
-rw-r--r-- 1 xuetao xuetao 6014 2011-01-21 23:35 openAsciiFileDlg.ui
-rw-r--r-- 1 xuetao xuetao 4247 2011-01-21 23:35 pcvDlg.ui
-rw-r--r-- 1 xuetao xuetao 1994 2011-01-21 23:35 pickOneElementDlg.ui
-rw-r--r-- 1 xuetao xuetao 7317 2011-01-21 23:35 plyOpenDlg.ui
-rw-r--r-- 1 xuetao xuetao 7940 2011-01-21 23:35 pointListPickingDlg.ui
-rw-r--r-- 1 xuetao xuetao 2642 2011-01-21 23:35 pointPropertiesDlg.ui
-rw-r--r-- 1 xuetao xuetao 1871 2011-01-21 23:35 pointSizeDlg.ui
-rw-r--r-- 1 xuetao xuetao 4991 2011-01-21 23:35 ptsSamplingDlg.ui
-rw-r--r-- 1 xuetao xuetao 10027 2011-01-21 23:35 registrationDlg.ui
-rw-r--r-- 1 xuetao xuetao 3231 2011-01-21 23:35 renderToFileDialog.ui
-rw-r--r-- 1 xuetao xuetao 3554 2011-01-21 23:35 roleChoiceDlg.ui
-rw-r--r-- 1 xuetao xuetao 16370 2011-01-21 23:35 sensorProjectDlg.ui
-rw-r--r-- 1 xuetao xuetao 3821 2011-01-21 23:35 sfComparisonDlg.ui
-rw-r--r-- 1 xuetao xuetao 3724 2011-01-21 23:35 sfEditDlg.ui
-rw-r--r-- 1 xuetao xuetao 7170 2011-01-21 23:35 statisticalTestDlg.ui
-rw-r--r-- 1 xuetao xuetao 5347 2011-01-21 23:35 subsamplingDlg.ui
-rw-r--r-- 1 xuetao xuetao 4548 2011-01-21 23:35 twoColorsDlg.ui
-rw-r--r-- 1 xuetao xuetao 355 2011-01-22 10:50 ui_aboutDlg.h
-rw-r--r-- 1 xuetao xuetao 355 2011-01-22 10:50 ui_alignDlg.h
-rw-r--r-- 1 xuetao xuetao 0 2011-01-22 10:50 ui_askOneDoubleValueDlg.h
-rw-r--r-- 1 xuetao xuetao 0 2011-01-22 10:50 ui_askOneIntValueDlg.h
-rw-r--r-- 1 xuetao xuetao 0 2011-01-22 10:50 ui_askThreeDoubleValuesDlg.h
-rw-r--r-- 1 xuetao xuetao 0 2011-01-22 10:50 ui_askTwoDoubleValuesDlg.h
-rw-r--r-- 1 xuetao xuetao 361 2011-01-22 10:50 ui_cameraParamDlg.h
-rw-r--r-- 1 xuetao xuetao 360 2011-01-22 10:50 ui_comparisonDlg.h
-rw-r--r-- 1 xuetao xuetao 0 2011-01-22 10:50 ui_curvatureDlg.h
-rw-r--r-- 1 xuetao xuetao 0 2011-01-22 10:50 ui_graphicalSegmentationDlg.h
-rw-r--r-- 1 xuetao xuetao 0 2011-01-22 10:50 ui_graphicalTransformationDlg.h
-rw-r--r-- 1 xuetao xuetao 370 2011-01-22 10:50 ui_heightGridGenerationDlg.h
-rw-r--r-- 1 xuetao xuetao 358 2011-01-22 10:50 ui_labelingDlg.h
-rw-r--r-- 1 xuetao xuetao 368 2011-01-22 10:50 ui_lightsAndMaterialsDlg.h
-rw-r--r-- 1 xuetao xuetao 357 2011-01-22 10:50 ui_mainWindow.h
-rw-r--r-- 1 xuetao xuetao 367 2011-01-22 10:50 ui_normalComputationDlg.h
-rw-r--r-- 1 xuetao xuetao 363 2011-01-22 10:50 ui_openAsciiFileDlg.h
-rw-r--r-- 1 xuetao xuetao 0 2011-01-22 10:50 ui_pcvDlg.h
-rw-r--r-- 1 xuetao xuetao 0 2011-01-22 10:50 ui_pickOneElementDlg.h
-rw-r--r-- 1 xuetao xuetao 357 2011-01-22 10:50 ui_plyOpenDlg.h
-rw-r--r-- 1 xuetao xuetao 366 2011-01-22 10:50 ui_pointListPickingDlg.h
-rw-r--r-- 1 xuetao xuetao 0 2011-01-22 10:50 ui_pointPropertiesDlg.h
-rw-r--r-- 1 xuetao xuetao 0 2011-01-22 10:50 ui_pointSizeDlg.h
-rw-r--r-- 1 xuetao xuetao 361 2011-01-22 10:50 ui_ptsSamplingDlg.h
-rw-r--r-- 1 xuetao xuetao 362 2011-01-22 10:50 ui_registrationDlg.h
-rw-r--r-- 1 xuetao xuetao 0 2011-01-22 10:50 ui_renderToFileDialog.h
-rw-r--r-- 1 xuetao xuetao 0 2011-01-22 10:50 ui_roleChoiceDlg.h
-rw-r--r-- 1 xuetao xuetao 363 2011-01-22 10:50 ui_sensorProjectDlg.h
-rw-r--r-- 1 xuetao xuetao 362 2011-01-22 10:50 ui_sfComparisonDlg.h
-rw-r--r-- 1 xuetao xuetao 0 2011-01-22 10:50 ui_sfEditDlg.h
-rw-r--r-- 1 xuetao xuetao 365 2011-01-22 10:50 ui_statisticalTestDlg.h
-rw-r--r-- 1 xuetao xuetao 0 2011-01-22 10:50 ui_subsamplingDlg.h
-rw-r--r-- 1 xuetao xuetao 0 2011-01-22 10:50 ui_twoColorsDlg.h
-rw-r--r-- 1 xuetao xuetao 0 2011-01-22 10:50 ui_unrollDlg.h
-rw-r--r-- 1 xuetao xuetao 10881 2011-01-21 23:35 unrollDlg.ui
-
- Posts: 7
- Joined: Fri Dec 24, 2010 5:55 am
Re: compile error - "Ui" has not been declared
Again, if I use qmake create all ui_*.h files and then with those files replace empty files, during rebuild qCC I get another error please see below.
######################################################
...
ompiling: ccTwoColorsDlg.cpp
Compiling: ccUnrollDlg.cpp
Compiling: db_tree/ccDBRoot.cpp
Compiling: db_tree/ccPropertiesTreeDelegate.cpp
Compiling: db_tree/moc_ccDBRoot.cpp
/home/xuetao/trunk/qCC/db_tree/moc_ccDBRoot.cpp:15:34: error: private/qucomextra_p.h: No such file or directory
/home/xuetao/trunk/qCC/db_tree/moc_ccDBRoot.cpp:17:2: error: #error "This file was generated using the moc from 3.3.8b. It"
/home/xuetao/trunk/qCC/db_tree/moc_ccDBRoot.cpp:18:2: error: #error "cannot be used with the include files from this version of Qt."
/home/xuetao/trunk/qCC/db_tree/moc_ccDBRoot.cpp:19:2: error: #error "(The moc has changed too much.)"
/home/xuetao/trunk/qCC/db_tree/moc_ccDBRoot.cpp:22: error: no ‘const char* ccDBRoot::className() const’ member function declared in class ‘ccDBRoot’
/home/xuetao/trunk/qCC/db_tree/moc_ccDBRoot.cpp:27: error: ‘QMetaObject* ccDBRoot::metaObj’ is not a static member of ‘class ccDBRoot’
/home/xuetao/trunk/qCC/db_tree/moc_ccDBRoot.cpp:28: error: ‘QMetaObjectCleanUp’ does not name a type
/home/xuetao/trunk/qCC/db_tree/moc_ccDBRoot.cpp:31: error: redefinition of ‘static QString ccDBRoot::tr(const char*, const char*)’
/home/xuetao/trunk/qCC/db_tree/ccDBRoot.h:64: error: ‘static QString ccDBRoot::tr(const char*, const char*)’ previously defined here
/home/xuetao/trunk/qCC/db_tree/moc_ccDBRoot.cpp:39: error: redefinition of ‘static QString ccDBRoot::trUtf8(const char*, const char*)’
/home/xuetao/trunk/qCC/db_tree/ccDBRoot.h:64: error: ‘static QString ccDBRoot::trUtf8(const char*, const char*)’ previously defined here
/home/xuetao/trunk/qCC/db_tree/moc_ccDBRoot.cpp:50: error: no ‘QMetaObject* ccDBRoot::staticMetaObject()’ member function declared in class ‘ccDBRoot’
/home/xuetao/trunk/qCC/db_tree/moc_ccDBRoot.cpp:107: error: no ‘void* ccDBRoot::qt_cast(const char*)’ member function declared in class ‘ccDBRoot’
/home/xuetao/trunk/qCC/db_tree/moc_ccDBRoot.cpp: In member function ‘void ccDBRoot::selectionChanged()’:
/home/xuetao/trunk/qCC/db_tree/moc_ccDBRoot.cpp:117: error: no match for call to ‘(const QMetaObject) ()’
/home/xuetao/trunk/qCC/db_tree/moc_ccDBRoot.cpp:117: error: ‘activate_signal’ was not declared in this scope
/home/xuetao/trunk/qCC/db_tree/moc_ccDBRoot.cpp: At global scope:
/home/xuetao/trunk/qCC/db_tree/moc_ccDBRoot.cpp:120: error: ‘QUObject’ has not been declared
/home/xuetao/trunk/qCC/db_tree/moc_ccDBRoot.cpp:120: error: no ‘bool ccDBRoot::qt_invoke(int, int*)’ member function declared in class ‘ccDBRoot’
/home/xuetao/trunk/qCC/db_tree/moc_ccDBRoot.cpp:136: error: ‘QUObject’ has not been declared
/home/xuetao/trunk/qCC/db_tree/moc_ccDBRoot.cpp:136: error: no ‘bool ccDBRoot::qt_emit(int, int*)’ member function declared in class ‘ccDBRoot’
/home/xuetao/trunk/qCC/db_tree/moc_ccDBRoot.cpp:147: error: no ‘bool ccDBRoot::qt_property(int, int, QVariant*)’ member function declared in class ‘ccDBRoot’
/home/xuetao/trunk/qCC/db_tree/moc_ccDBRoot.cpp:152: error: no ‘bool ccDBRoot::qt_static_property(QObject*, int, int, QVariant*)’ member function declared in class ‘ccDBRoot’
Process terminated with status 1 (3 minutes, 8 seconds)
21 errors, 5 warnings
######################################################
...
ompiling: ccTwoColorsDlg.cpp
Compiling: ccUnrollDlg.cpp
Compiling: db_tree/ccDBRoot.cpp
Compiling: db_tree/ccPropertiesTreeDelegate.cpp
Compiling: db_tree/moc_ccDBRoot.cpp
/home/xuetao/trunk/qCC/db_tree/moc_ccDBRoot.cpp:15:34: error: private/qucomextra_p.h: No such file or directory
/home/xuetao/trunk/qCC/db_tree/moc_ccDBRoot.cpp:17:2: error: #error "This file was generated using the moc from 3.3.8b. It"
/home/xuetao/trunk/qCC/db_tree/moc_ccDBRoot.cpp:18:2: error: #error "cannot be used with the include files from this version of Qt."
/home/xuetao/trunk/qCC/db_tree/moc_ccDBRoot.cpp:19:2: error: #error "(The moc has changed too much.)"
/home/xuetao/trunk/qCC/db_tree/moc_ccDBRoot.cpp:22: error: no ‘const char* ccDBRoot::className() const’ member function declared in class ‘ccDBRoot’
/home/xuetao/trunk/qCC/db_tree/moc_ccDBRoot.cpp:27: error: ‘QMetaObject* ccDBRoot::metaObj’ is not a static member of ‘class ccDBRoot’
/home/xuetao/trunk/qCC/db_tree/moc_ccDBRoot.cpp:28: error: ‘QMetaObjectCleanUp’ does not name a type
/home/xuetao/trunk/qCC/db_tree/moc_ccDBRoot.cpp:31: error: redefinition of ‘static QString ccDBRoot::tr(const char*, const char*)’
/home/xuetao/trunk/qCC/db_tree/ccDBRoot.h:64: error: ‘static QString ccDBRoot::tr(const char*, const char*)’ previously defined here
/home/xuetao/trunk/qCC/db_tree/moc_ccDBRoot.cpp:39: error: redefinition of ‘static QString ccDBRoot::trUtf8(const char*, const char*)’
/home/xuetao/trunk/qCC/db_tree/ccDBRoot.h:64: error: ‘static QString ccDBRoot::trUtf8(const char*, const char*)’ previously defined here
/home/xuetao/trunk/qCC/db_tree/moc_ccDBRoot.cpp:50: error: no ‘QMetaObject* ccDBRoot::staticMetaObject()’ member function declared in class ‘ccDBRoot’
/home/xuetao/trunk/qCC/db_tree/moc_ccDBRoot.cpp:107: error: no ‘void* ccDBRoot::qt_cast(const char*)’ member function declared in class ‘ccDBRoot’
/home/xuetao/trunk/qCC/db_tree/moc_ccDBRoot.cpp: In member function ‘void ccDBRoot::selectionChanged()’:
/home/xuetao/trunk/qCC/db_tree/moc_ccDBRoot.cpp:117: error: no match for call to ‘(const QMetaObject) ()’
/home/xuetao/trunk/qCC/db_tree/moc_ccDBRoot.cpp:117: error: ‘activate_signal’ was not declared in this scope
/home/xuetao/trunk/qCC/db_tree/moc_ccDBRoot.cpp: At global scope:
/home/xuetao/trunk/qCC/db_tree/moc_ccDBRoot.cpp:120: error: ‘QUObject’ has not been declared
/home/xuetao/trunk/qCC/db_tree/moc_ccDBRoot.cpp:120: error: no ‘bool ccDBRoot::qt_invoke(int, int*)’ member function declared in class ‘ccDBRoot’
/home/xuetao/trunk/qCC/db_tree/moc_ccDBRoot.cpp:136: error: ‘QUObject’ has not been declared
/home/xuetao/trunk/qCC/db_tree/moc_ccDBRoot.cpp:136: error: no ‘bool ccDBRoot::qt_emit(int, int*)’ member function declared in class ‘ccDBRoot’
/home/xuetao/trunk/qCC/db_tree/moc_ccDBRoot.cpp:147: error: no ‘bool ccDBRoot::qt_property(int, int, QVariant*)’ member function declared in class ‘ccDBRoot’
/home/xuetao/trunk/qCC/db_tree/moc_ccDBRoot.cpp:152: error: no ‘bool ccDBRoot::qt_static_property(QObject*, int, int, QVariant*)’ member function declared in class ‘ccDBRoot’
Process terminated with status 1 (3 minutes, 8 seconds)
21 errors, 5 warnings
Re: compile error - "Ui" has not been declared
Hum, it seems that there's a problem with your Qt installation ... it's just as if the qt-prebuild tool was not calling the right uic, moc or rcc executables.
What is your version of Qt? Apparently, the 'qucomextra_p.h' file is from an old version of Qt (3.x) while CloudCompare works only with 4.4 or earlier.
Have you several versions of Qt installed on your system? And have you set the 'qt_dir' global variable accordingly?
What is your version of Qt? Apparently, the 'qucomextra_p.h' file is from an old version of Qt (3.x) while CloudCompare works only with 4.4 or earlier.
Have you several versions of Qt installed on your system? And have you set the 'qt_dir' global variable accordingly?
Daniel, CloudCompare admin
-
- Posts: 7
- Joined: Fri Dec 24, 2010 5:55 am
Re: compile error - "Ui" has not been declared
My qt is 4.6.x and I installed it from the source, but before that I installed 4.5.x and also from ubuntu package, but never used Qt 3.x. Probably you are right,, anywhere let me clean up my Qt, and reconfigure and build ..., will let you know whether it works.
Many thanks.
Many thanks.
-
- Posts: 7
- Joined: Fri Dec 24, 2010 5:55 am
Re: compile error - "Ui" has not been declared
The error is still here, but i rebuilt qt 4.6.2 used source "qt-everywhere-opensource-src-4.6.2.tar.gz" with the following command.
1/ ./configure
2/ make
3/ make install
the installed default dir is "/usr/local/Trolltech/Qt-4.6.2" and it is the same as I put it in "Settings/globe variable/base" in code::block.
I can saw moc in current qt dir. as following, and didn't know why it come form using "the moc from 3.3.8b"
xuetao@xuetao-desktop:~/Desktop/Qt$ which moc
/usr/local/Trolltech/Qt-4.6.2/bin/moc
xuetao@xuetao-desktop:~/Desktop/Qt$ which uic
/usr/local/Trolltech/Qt-4.6.2/bin/uic
xuetao@xuetao-desktop:~/Desktop/Qt$
################################################
...
/home/xuetao/trunk/qCC/db_tree/moc_ccDBRoot.cpp:15:34: error: private/qucomextra_p.h: No such file or directory
/home/xuetao/trunk/qCC/db_tree/moc_ccDBRoot.cpp:17:2: error: #error "This file was generated using the moc from 3.3.8b. It"
/home/xuetao/trunk/qCC/db_tree/moc_ccDBRoot.cpp:18:2: error: #error "cannot be used with the include files from this version of Qt."
/home/xuetao/trunk/qCC/db_tree/moc_ccDBRoot.cpp:19:2: error: #error "(The moc has changed too much.)"
...
#################################################
1/ ./configure
2/ make
3/ make install
the installed default dir is "/usr/local/Trolltech/Qt-4.6.2" and it is the same as I put it in "Settings/globe variable/base" in code::block.
I can saw moc in current qt dir. as following, and didn't know why it come form using "the moc from 3.3.8b"
xuetao@xuetao-desktop:~/Desktop/Qt$ which moc
/usr/local/Trolltech/Qt-4.6.2/bin/moc
xuetao@xuetao-desktop:~/Desktop/Qt$ which uic
/usr/local/Trolltech/Qt-4.6.2/bin/uic
xuetao@xuetao-desktop:~/Desktop/Qt$
################################################
...
/home/xuetao/trunk/qCC/db_tree/moc_ccDBRoot.cpp:15:34: error: private/qucomextra_p.h: No such file or directory
/home/xuetao/trunk/qCC/db_tree/moc_ccDBRoot.cpp:17:2: error: #error "This file was generated using the moc from 3.3.8b. It"
/home/xuetao/trunk/qCC/db_tree/moc_ccDBRoot.cpp:18:2: error: #error "cannot be used with the include files from this version of Qt."
/home/xuetao/trunk/qCC/db_tree/moc_ccDBRoot.cpp:19:2: error: #error "(The moc has changed too much.)"
...
#################################################
Re: compile error - "Ui" has not been declared
So it appears that it was indeed an old version of Qt that was responsible for this.
First, you must delete all the old "ui_*.h" and "moc_*.cpp" files (as uic or moc won't do it themselves). Then you must make sure that when you type 'moc' or 'uic' it's the newly installed ones that are called (something to do with the "PATH" environment variable I believe).Type 'moc -v' to get the version.
First, you must delete all the old "ui_*.h" and "moc_*.cpp" files (as uic or moc won't do it themselves). Then you must make sure that when you type 'moc' or 'uic' it's the newly installed ones that are called (something to do with the "PATH" environment variable I believe).Type 'moc -v' to get the version.
Daniel, CloudCompare admin