daniel wrote: ↑Thu Sep 13, 2018 7:49 pm
Well, the code modifications are really easy.
In the current version, after the line 8454 of mainwindow.cpp (
csvStream << "meanZ;";) you can add:
Code: Select all
csvStream << "minX;";
csvStream << "minY;";
csvStream << "minZ;";
csvStream << "maxX;";
csvStream << "maxY;";
csvStream << "maxZ;";
And after the line 8479 of mainwindow.cpp (
csvStream << G.z << ";";) you can add:
Code: Select all
csvStream << cloud->getBB_recursive().minCorner().x << ";";
csvStream << cloud->getBB_recursive().minCorner().y << ";";
csvStream << cloud->getBB_recursive().minCorner().z << ";";
csvStream << cloud->getBB_recursive().maxCorner().x << ";";
csvStream << cloud->getBB_recursive().maxCorner().y << ";";
csvStream << cloud->getBB_recursive().maxCorner().z << ";";
I changed code according to the instructions above, and tried the command below to install the CC.
1. mkdir build & cd build
2. cmake -DCMAKE_PREFIX_PATH=C:\Qt\5.15.2\msvc2019_64 ..
3. cmake --build . --config Release
4. cmake --install .
Then, I got the error shown below during the building step 3.
C:\Users\taoliu\CloudCompare\build\qCC\ui_graphicalTransformationDlg.h(322,29): error C2039: 'setStepType': is not a me
mber of 'QDoubleSpinBox' [C:\Users\taoliu\CloudCompare\build\qCC\CloudCompare.vcxproj]
C:\Users\taoliu\anaconda3\Library\include\qt\QtWidgets\qspinbox.h(113): message : see declaration of 'QDoubleSpinBox' [
C:\Users\taoliu\CloudCompare\build\qCC\CloudCompare.vcxproj]
C:\Users\taoliu\CloudCompare\build\qCC\ui_graphicalTransformationDlg.h(322,59): error C2039: 'AdaptiveDecimalStepType':
is not a member of 'QAbstractSpinBox' [C:\Users\taoliu\CloudCompare\build\qCC\CloudCompare.vcxproj]
C:/Users/taoliu/anaconda3/Library/include/qt\QtWidgets/qabstractspinbox.h(56): message : see declaration of 'QAbstractS
pinBox' [C:\Users\taoliu\CloudCompare\build\qCC\CloudCompare.vcxproj]
C:\Users\taoliu\CloudCompare\build\qCC\ui_graphicalTransformationDlg.h(322,1): error C2065: 'AdaptiveDecimalStepType':
undeclared identifier [C:\Users\taoliu\CloudCompare\build\qCC\CloudCompare.vcxproj]
C:\Users\taoliu\CloudCompare\build\qCC\ui_graphicalTransformationDlg.h(344,31): error C2039: 'setStepType': is not a me
mber of 'QDoubleSpinBox' [C:\Users\taoliu\CloudCompare\build\qCC\CloudCompare.vcxproj]
C:\Users\taoliu\anaconda3\Library\include\qt\QtWidgets\qspinbox.h(113): message : see declaration of 'QDoubleSpinBox' [
C:\Users\taoliu\CloudCompare\build\qCC\CloudCompare.vcxproj]
C:\Users\taoliu\CloudCompare\build\qCC\ui_graphicalTransformationDlg.h(344,61): error C2039: 'AdaptiveDecimalStepType':
is not a member of 'QAbstractSpinBox' [C:\Users\taoliu\CloudCompare\build\qCC\CloudCompare.vcxproj]
C:/Users/taoliu/anaconda3/Library/include/qt\QtWidgets/qabstractspinbox.h(56): message : see declaration of 'QAbstractS
pinBox' [C:\Users\taoliu\CloudCompare\build\qCC\CloudCompare.vcxproj]
C:\Users\taoliu\CloudCompare\build\qCC\ui_graphicalTransformationDlg.h(344,1): error C2065: 'AdaptiveDecimalStepType':
undeclared identifier [C:\Users\taoliu\CloudCompare\build\qCC\CloudCompare.vcxproj]
Step 4 gave me the error below.
C:\Users\taoliu\CloudCompare\build>cmake --install .
-- Install configuration: "Release"
-- Installing: C:/Program Files (x86)/CloudCompareProjects/CloudCompare/CCAppCommon.dll
-- Installing: C:/Program Files (x86)/CloudCompareProjects/ccViewer/CCAppCommon.dll
-- Installing: C:/Program Files (x86)/CloudCompareProjects/CloudCompare/CC_FBO_LIB.dll
-- Installing: C:/Program Files (x86)/CloudCompareProjects/ccViewer/CC_FBO_LIB.dll
-- Installing: C:/Program Files (x86)/CloudCompareProjects/CloudCompare/CCPluginAPI.dll
-- Installing: C:/Program Files (x86)/CloudCompareProjects/ccViewer/CCPluginAPI.dll
-- Installing: C:/Program Files (x86)/CloudCompareProjects/CloudCompare/CCCoreLib.dll
-- Installing: C:/Program Files (x86)/CloudCompareProjects/ccViewer/CCCoreLib.dll
-- Installing: C:/Program Files (x86)/CloudCompareProjects/CloudCompare/QCC_DB_LIB.dll
-- Installing: C:/Program Files (x86)/CloudCompareProjects/ccViewer/QCC_DB_LIB.dll
-- Installing: C:/Program Files (x86)/CloudCompareProjects/CloudCompare/QCC_GL_LIB.dll
-- Installing: C:/Program Files (x86)/CloudCompareProjects/ccViewer/QCC_GL_LIB.dll
-- Installing: C:/Program Files (x86)/CloudCompareProjects/CloudCompare/QCC_IO_LIB.dll
-- Installing: C:/Program Files (x86)/CloudCompareProjects/ccViewer/QCC_IO_LIB.dll
CMake Error at qCC/cmake_install.cmake:37 (file):
file INSTALL cannot find
"C:/Users/taoliu/CloudCompare/build/qCC/Release/CloudCompare.exe": File
exists.
Call Stack (most recent call first):
cmake_install.cmake:39 (include)