Not able to configure

All about Linux portage
Post Reply
songdianjing
Posts: 1
Joined: Thu Feb 28, 2013 6:55 pm

Not able to configure

Post by songdianjing »

Hi Guys,

I am using Ubuntu 12.04. I followed the wiki for installation. link: http://www.cloudcompare.org/doc/wiki/in ... tion_CMake . My generator is the one people claimed that has already been tested, Code::Blocks (Linux & Windows 32 bits). I am using CMake 2.8.7 with opengl and qt installed already. But I failed to configure the source code. I have the following warnings:

Detecting CXX compiler ABI info
Detecting CXX compiler ABI info - done
CMake Warning (dev) at CMakeLists.txt:9 (set):
Cannot set "RANDOMKIT_INCLUDE_DIR": current scope has no parent.
This warning is for project developers. Use -Wno-dev to suppress it.

Anyone who have an idea what is the problem? Many thanks in advance.

BR,
Song
daniel
Site Admin
Posts: 7711
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Not able to configure

Post by daniel »

On what folder are you making CMake point? It should be directly in the 'trunk' folder (not qCC).

Anyway, the "RANDOMKIT_INCLUDE_DIR" is defined in qSSAO's CMake file. So you can disable the 'INSTALL_QSSAO_PLUGIN' checkbox in your CMake configuration and see if it solves the issue.
Daniel, CloudCompare admin
muzo583
Posts: 30
Joined: Wed Nov 19, 2014 6:19 pm

Re: Not able to configure

Post by muzo583 »

hi all,

I 've tried to install cc on ubuntu however I could not install.
I've followed instructions on wiki.
CC files under trunk-master folder /home/muzo/CC
cmake source code /home/muzo/CC/trunk-master
build /home/muzo/CC/trunk-master/build
I choose generator codeblocks unix makefiles
the error is like that:

The C compiler identification is GNU 4.8.2
The CXX compiler identification is GNU 4.8.2
Check for working C compiler: /usr/bin/cc
CMake Error at CMakeLists.txt:6 (INCLUDE_DIRECTORIES):
Unknown CMake command "INCLUDE_DIRECTORIES".

My system:

Ubuntu 14.04 LTS
Cmake 2.8.12.2

thanks.
Last edited by muzo583 on Thu Dec 04, 2014 7:36 pm, edited 1 time in total.
daniel
Site Admin
Posts: 7711
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Not able to configure

Post by daniel »

It's a bit strange (by the way do you really have two separate versions in '/home/mustafa' and '/home/muzo'?).

Generally it's a bad idea to put the 'build' folder under the 'trunk' one (i.e. try to put it in '/home/muzo/CC/build' instead of '/home/muzo/CC/trunk-master/build'). Mostly because CMake generates files in the build folder, and it might parse them the next time you hit configure (depending on how the CMake script is written). However, in this particular case, it shouldn't be the case ;)

Otherwise there's no INCLUDE_DIRECTORIES defined at line 6 of the CMakeLists.txt file in the trunk folder, so I wonder which file CMake actually refers to... Can you give us more info?
Daniel, CloudCompare admin
muzo583
Posts: 30
Joined: Wed Nov 19, 2014 6:19 pm

Re: Not able to configure

Post by muzo583 »

Thank you Daniel.
I have fixed the problem however I don't know how to execute software in Ubuntu.
Could someone help me about how to run CC on Ubuntu?

Thanks
daniel
Site Admin
Posts: 7711
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Not able to configure

Post by daniel »

Have you run gcc? With 'make INSTALL'?

Then the files should be installed in the CMAKE_INSTALL_PREFIX directory (see your CMake configuration - by default it should be /usr/bin on Liunux I believe). Mind also that you need to update the .so libraries location at least once before (see http://www.cloudcompare.org/doc/wiki/in ... mon_issues).
Daniel, CloudCompare admin
muzo583
Posts: 30
Joined: Wed Nov 19, 2014 6:19 pm

Re: Not able to configure

Post by muzo583 »

I have finished Cmake steps after generate. After these steps I did not do anything.

But I see now there must be an install files in /usr/local ??..

eventually, the "CMAKE" group contains a CMAKE_INSTALL_PREFIX which is where CloudCompare and ccViewer will be installed (when you compile the INSTALL project)

On Linux, default install dir is /usr/local (be sure to have administrative rights if you want to install CloudCompare there: once configured, you can call 'sudo make install' from the sources directory)


when I look usr/local, there is not any install files about CloudCompare. Does it mean sth wrong in CMake gui?? But CMake gui steps was succesfully performed.
I think I still not installed the build directory projects. And I dont know how to do this.

CC source directory and build directory locate on /home/muzo/CC/build and /home/muzo/CC/trunk-master.


Configure results.

The C compiler identification is GNU 4.8.2
The CXX compiler identification is GNU 4.8.2
Check for working C compiler: /usr/bin/cc
Check for working C compiler: /usr/bin/cc -- 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
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/qPCV
Auto-add plugin subdir:/home/muzo/CC/trunk-master/plugins/qPoissonRecon
Auto-add plugin subdir:/home/muzo/CC/trunk-master/plugins/qDummyPlugin
Auto-add plugin subdir:/home/muzo/CC/trunk-master/plugins/qCork
Auto-add plugin subdir:/home/muzo/CC/trunk-master/plugins/qKinect
Auto-add plugin subdir:/home/muzo/CC/trunk-master/plugins/qPCL
Auto-add plugin subdir:/home/muzo/CC/trunk-master/plugins/qSSAO
Configuring done

After Generating, it says Generating done!

thanks for quick replies.
daniel wrote:Have you run gcc? With 'make INSTALL'?

Then the files should be installed in the CMAKE_INSTALL_PREFIX directory (see your CMake configuration - by default it should be /usr/bin on Liunux I believe). Mind also that you need to update the .so libraries location at least once before (see http://www.cloudcompare.org/doc/wiki/in ... mon_issues).
daniel
Site Admin
Posts: 7711
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Not able to configure

Post by daniel »

What you are missing here is that CMake is not a compiler. It's only a "make file" generator. It simply creates the file(s) that will be used by the compiler tool to actually generate the program.

In your case, you have to open a terminal, browse to your "build" directory, then call the compiler:

Code: Select all

make INSTALL
Daniel, CloudCompare admin
muzo583
Posts: 30
Joined: Wed Nov 19, 2014 6:19 pm

Re: Not able to configure

Post by muzo583 »

daniel wrote:What you are missing here is that CMake is not a compiler. It's only a "make file" generator. It simply creates the file(s) that will be used by the compiler tool to actually generate the program.

In your case, you have to open a terminal, browse to your "build" directory, then call the compiler:

Code: Select all

make INSTALL
Thank you Daniel. I have run cc with your helps.
Post Reply