Compiling CC on Lubuntu, issue with cmake
-
- Posts: 18
- Joined: Wed Sep 25, 2013 1:33 pm
Compiling CC on Lubuntu, issue with cmake
I am trying to compile CloudCompare on a Lubuntu machine. I like this very light version of Ubuntu and would be glad to see it working with my favourite tools :)
I am pretty much a newbie in Linux systems, though i've used Ubuntu for about a year, and my experience on Lubuntu can be summed up by something like "Yay, that looks nice and fast". So i won't be able to get on the details.
I have downloaded the source, installed cmake & cmake-qt-gui.
I then opened cmake-gui, indicated the place where the sources are, and where to build the code.
When i press the configure button and chose any compiler, then an error window opens, telling me that i made an "Error in configuration process, project files may be invalid",
and the following poem shows up in the message box :
The C compiler identification is unknown
The CXX compiler identification is unknown
CMake Error: your C compiler: "CMAKE_C_COMPILER-NOTFOUND" was not found. Please set CMAKE_C_COMPILER to a valid compiler path or name.
CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found. Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
CMake Error: your C compiler: "CMAKE_C_COMPILER-NOTFOUND" was not found. Please set CMAKE_C_COMPILER to a valid compiler path or name.
CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found. Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
CMake Error: your C compiler: "CMAKE_C_COMPILER-NOTFOUND" was not found. Please set CMAKE_C_COMPILER to a valid compiler path or name.
CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found. Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:97 (message):
Could NOT find Qt4 (missing: QT_QMAKE_EXECUTABLE QT_MOC_EXECUTABLE
QT_RCC_EXECUTABLE QT_INCLUDE_DIR QT_LIBRARY_DIR QT_QTCORE_INCLUDE_DIR
QT_QTCORE_LIBRARY)
Call Stack (most recent call first):
/usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:291 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake-2.8/Modules/FindQt4.cmake:1223 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CC/CMakeLists.txt:10 (find_package)
Configuring incomplete, errors occurred!
Does this mean i should look further on how to configure cmake ?
Has anyone been able to set up CC on Lubuntu ?
I am pretty much a newbie in Linux systems, though i've used Ubuntu for about a year, and my experience on Lubuntu can be summed up by something like "Yay, that looks nice and fast". So i won't be able to get on the details.
I have downloaded the source, installed cmake & cmake-qt-gui.
I then opened cmake-gui, indicated the place where the sources are, and where to build the code.
When i press the configure button and chose any compiler, then an error window opens, telling me that i made an "Error in configuration process, project files may be invalid",
and the following poem shows up in the message box :
The C compiler identification is unknown
The CXX compiler identification is unknown
CMake Error: your C compiler: "CMAKE_C_COMPILER-NOTFOUND" was not found. Please set CMAKE_C_COMPILER to a valid compiler path or name.
CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found. Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
CMake Error: your C compiler: "CMAKE_C_COMPILER-NOTFOUND" was not found. Please set CMAKE_C_COMPILER to a valid compiler path or name.
CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found. Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
CMake Error: your C compiler: "CMAKE_C_COMPILER-NOTFOUND" was not found. Please set CMAKE_C_COMPILER to a valid compiler path or name.
CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found. Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:97 (message):
Could NOT find Qt4 (missing: QT_QMAKE_EXECUTABLE QT_MOC_EXECUTABLE
QT_RCC_EXECUTABLE QT_INCLUDE_DIR QT_LIBRARY_DIR QT_QTCORE_INCLUDE_DIR
QT_QTCORE_LIBRARY)
Call Stack (most recent call first):
/usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:291 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake-2.8/Modules/FindQt4.cmake:1223 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CC/CMakeLists.txt:10 (find_package)
Configuring incomplete, errors occurred!
Does this mean i should look further on how to configure cmake ?
Has anyone been able to set up CC on Lubuntu ?
Re: Compiling CC on Lubuntu, issue with cmake
It seems that you don't even have a compiler installed ;)
Can you install at least the gcc package?
Can you install at least the gcc package?
Daniel, CloudCompare admin
-
- Posts: 18
- Joined: Wed Sep 25, 2013 1:33 pm
Re: Compiling CC on Lubuntu, issue with cmake
Well... weirdly yeah, that seems to help !
However, i'm not sure i have generated it correctly...
Here is what i got after hitting on the Configure button, and then the Generate button :
Found Qt4: /usr/bin/qmake (found version "4.8.4")
Found Qt4: /usr/bin/qmake (found version "4.8.4")
Auto-add plugin subdir:/home/vince/cloudcompare_1/trunk/trunk/qCC/plugins/qKinect
Auto-add plugin subdir:/home/vince/cloudcompare_1/trunk/trunk/qCC/plugins/qSSAO
Auto-add plugin subdir:/home/vince/cloudcompare_1/trunk/trunk/qCC/plugins/qDummyPlugin
Auto-add plugin subdir:/home/vince/cloudcompare_1/trunk/trunk/qCC/plugins/qHPR
Auto-add plugin subdir:/home/vince/cloudcompare_1/trunk/trunk/qCC/plugins/qPCV
Auto-add plugin subdir:/home/vince/cloudcompare_1/trunk/trunk/qCC/plugins/qRANSAC_SD
Auto-add plugin subdir:/home/vince/cloudcompare_1/trunk/trunk/qCC/plugins/qPCL
Auto-add plugin subdir:/home/vince/cloudcompare_1/trunk/trunk/qCC/plugins/qPoissonRecon
Auto-add plugin subdir:/home/vince/cloudcompare_1/trunk/trunk/qCC/plugins/qBlur
Auto-add plugin subdir:/home/vince/cloudcompare_1/trunk/trunk/qCC/plugins/qEDL
Configuring done
Generating done
Is it normal that the Generating process takes less than half a second ?!
Moreover, i don't find the CloudCompare binary, which is in trunk/build/qcc on my ubuntu computer.
What did i do wrong ?
However, i'm not sure i have generated it correctly...
Here is what i got after hitting on the Configure button, and then the Generate button :
Found Qt4: /usr/bin/qmake (found version "4.8.4")
Found Qt4: /usr/bin/qmake (found version "4.8.4")
Auto-add plugin subdir:/home/vince/cloudcompare_1/trunk/trunk/qCC/plugins/qKinect
Auto-add plugin subdir:/home/vince/cloudcompare_1/trunk/trunk/qCC/plugins/qSSAO
Auto-add plugin subdir:/home/vince/cloudcompare_1/trunk/trunk/qCC/plugins/qDummyPlugin
Auto-add plugin subdir:/home/vince/cloudcompare_1/trunk/trunk/qCC/plugins/qHPR
Auto-add plugin subdir:/home/vince/cloudcompare_1/trunk/trunk/qCC/plugins/qPCV
Auto-add plugin subdir:/home/vince/cloudcompare_1/trunk/trunk/qCC/plugins/qRANSAC_SD
Auto-add plugin subdir:/home/vince/cloudcompare_1/trunk/trunk/qCC/plugins/qPCL
Auto-add plugin subdir:/home/vince/cloudcompare_1/trunk/trunk/qCC/plugins/qPoissonRecon
Auto-add plugin subdir:/home/vince/cloudcompare_1/trunk/trunk/qCC/plugins/qBlur
Auto-add plugin subdir:/home/vince/cloudcompare_1/trunk/trunk/qCC/plugins/qEDL
Configuring done
Generating done
Is it normal that the Generating process takes less than half a second ?!
Moreover, i don't find the CloudCompare binary, which is in trunk/build/qcc on my ubuntu computer.
What did i do wrong ?
Re: Compiling CC on Lubuntu, issue with cmake
Ah! It's because Cmake only generates the compilation "make" scripts ;). You still have to compile the project: open a console and go to the 'build' folder and eventually type 'make install'.
It should take a little longer ;).
And once that's done, don't forget to call ' 'sudo /sbin/ldconfig -v'' as explained in http://www.cloudcompare.org/doc/wiki/in ... tion_CMake.
It should take a little longer ;).
And once that's done, don't forget to call ' 'sudo /sbin/ldconfig -v'' as explained in http://www.cloudcompare.org/doc/wiki/in ... tion_CMake.
Daniel, CloudCompare admin
-
- Posts: 18
- Joined: Wed Sep 25, 2013 1:33 pm
Re: Compiling CC on Lubuntu, issue with cmake
WAowow !
That's Super Dooper Cool !
Just one remaining issue, i can now handle ply files, but it seems i can't open txt files (simple x y z files) ; "An error occured while loading 'MonBeauNuage.txt': Reading error (no access right?)"
Chmod 777 doesn't help, neither does adding a typical ply header at beggining of my txt file (and renaming it .ply).
So i guess it's just a noobish mishandling...
Help me and i'll provide you the other half of that wonderful picture
(it's a veeeeeeery nice picture, shouldn't wana miss it)
That's Super Dooper Cool !
Just one remaining issue, i can now handle ply files, but it seems i can't open txt files (simple x y z files) ; "An error occured while loading 'MonBeauNuage.txt': Reading error (no access right?)"
Chmod 777 doesn't help, neither does adding a typical ply header at beggining of my txt file (and renaming it .ply).
So i guess it's just a noobish mishandling...
Help me and i'll provide you the other half of that wonderful picture
(it's a veeeeeeery nice picture, shouldn't wana miss it)
Re: Compiling CC on Lubuntu, issue with cmake
I'm gonna be disappointed by this half image ;)
In fact the 'no access right' part is just a guess... It's generally the main cause of issue. But in your case, it could also be a path issue.
Can you try to open a file with a very short and simple path, with no strange characters, etc.?
Otherwise, another guess: un-comment the line #7192 of qCC/mainwindow.cpp (something about 'DontUseNativeDialog'') and then compile the project again (should be quicker this time - don't forget to call 'make install' once again). Maybe the native dialog is scrambling the path (but it doesn't explain why you can actually load ply files!).
In fact the 'no access right' part is just a guess... It's generally the main cause of issue. But in your case, it could also be a path issue.
Can you try to open a file with a very short and simple path, with no strange characters, etc.?
Otherwise, another guess: un-comment the line #7192 of qCC/mainwindow.cpp (something about 'DontUseNativeDialog'') and then compile the project again (should be quicker this time - don't forget to call 'make install' once again). Maybe the native dialog is scrambling the path (but it doesn't explain why you can actually load ply files!).
Daniel, CloudCompare admin
-
- Posts: 18
- Joined: Wed Sep 25, 2013 1:33 pm
Re: Compiling CC on Lubuntu, issue with cmake
What was the solution then?
(and thanks ;)
(and thanks ;)
Daniel, CloudCompare admin
-
- Posts: 18
- Joined: Wed Sep 25, 2013 1:33 pm
Re: Compiling CC on Lubuntu, issue with cmake
The solution was to simply put my .txt pointcloud file in my personal repository, and rename it "toto.txt"
So easy ! But don't worry, i got many cats & doggies pics for my incoming questions ;)
And thanks again for everything
So easy ! But don't worry, i got many cats & doggies pics for my incoming questions ;)
And thanks again for everything
Re: Compiling CC on Lubuntu, issue with cmake
Hi Daniel,
I can run the qcc after all steps. But the plugins are not installing.
while cmake step and the installing step I did all things. When I click the plugin information in software.
Found plugins
(looked in /home/muzo/CC/build/qcc/plugins):
but when I opened the qcc folder, there is not any plugin file in qcc folder.
I have tried that copy plugins file from home/muzo/CC and than
it does not work.
I have also tried
this error promts
-- Auto-add plugin subdir:/home/muzo/CC/trunk-master/plugins/qBlur
-- Auto-add plugin subdir:/home/muzo/CC/trunk-master/plugins/qSRA
-- Auto-add plugin subdir:/home/muzo/CC/trunk-master/plugins/qHPR
-- Auto-add plugin subdir:/home/muzo/CC/trunk-master/plugins/qRANSAC_SD
-- Auto-add plugin subdir:/home/muzo/CC/trunk-master/plugins/qEDL
-- Auto-add plugin subdir:/home/muzo/CC/trunk-master/plugins/ccViewer
CMake Error at plugins/CMakeLists.txt:28 (add_subdirectory):
The source directory
/home/muzo/CC/trunk-master/plugins/ccViewer
does not contain a CMakeLists.txt file.
-- Configuring incomplete, errors occurred!
See also "/home/muzo/CC/build/CMakeFiles/CMakeOutput.log".
See also "/home/muzo/CC/build/CMakeFiles/CMakeError.log".
make: *** [cmake_check_build_system] Error 1
how can I add plugins into qcc??
best regards.
I can run the qcc after all steps. But the plugins are not installing.
while cmake step and the installing step I did all things. When I click the plugin information in software.
Found plugins
(looked in /home/muzo/CC/build/qcc/plugins):
but when I opened the qcc folder, there is not any plugin file in qcc folder.
I have tried that copy plugins file from home/muzo/CC and than
Code: Select all
make install
I have also tried
Code: Select all
cd /home/muzo/CC/build
sudo make install
-- Auto-add plugin subdir:/home/muzo/CC/trunk-master/plugins/qBlur
-- Auto-add plugin subdir:/home/muzo/CC/trunk-master/plugins/qSRA
-- Auto-add plugin subdir:/home/muzo/CC/trunk-master/plugins/qHPR
-- Auto-add plugin subdir:/home/muzo/CC/trunk-master/plugins/qRANSAC_SD
-- Auto-add plugin subdir:/home/muzo/CC/trunk-master/plugins/qEDL
-- Auto-add plugin subdir:/home/muzo/CC/trunk-master/plugins/ccViewer
CMake Error at plugins/CMakeLists.txt:28 (add_subdirectory):
The source directory
/home/muzo/CC/trunk-master/plugins/ccViewer
does not contain a CMakeLists.txt file.
-- Configuring incomplete, errors occurred!
See also "/home/muzo/CC/build/CMakeFiles/CMakeOutput.log".
See also "/home/muzo/CC/build/CMakeFiles/CMakeError.log".
make: *** [cmake_check_build_system] Error 1
how can I add plugins into qcc??
best regards.