No such file or directory #include <ccOrderChoiceDlg.h>

Questions related to plugins development
Post Reply
!Xobile
Posts: 4
Joined: Mon Oct 17, 2016 8:48 am

No such file or directory #include <ccOrderChoiceDlg.h>

Post by !Xobile »

I am developing a plugin on ubuntu system . I have used dummy plugin and code from other plugin as well. but i get this error while compiling. I need to select roles of selected clouds:

fatal error: ccOrderChoiceDlg.h: No such file or directory #include <ccOrderChoiceDlg.h>

Though, this header is present in .ccp file of my plugin

Code: Select all

//qCC
#include <ccOrderChoiceDlg.h>

What could be wrong here?
daniel
Site Admin
Posts: 7332
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: No such file or directory #include <ccOrderChoiceDlg.h>

Post by daniel »

By default, plugins (projects) don't look into the main application folder. You just have to add the proper links via CMake.

See for instance how it is done for the qSRA plugin (look at the CMakeLists.txt file):

Code: Select all

	#As we are going to re-use several components of the main qCC project
	#we define its sources path relatively to the plugin's dir
	set(CloudCompare_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../../qCC)

	#include the whole CC directory (easier)
	include_directories( ${CloudCompare_SOURCE_DIR} )

	#we need Color Scale Manager and Editor importer
	file( GLOB CC_PLUGIN_CUSTOM_HEADER_LIST ${CloudCompare_SOURCE_DIR}/ccColorScale*.h )
	file( GLOB CC_PLUGIN_CUSTOM_SOURCE_LIST ${CloudCompare_SOURCE_DIR}/ccColorScale*.cpp )
You just have to replace ccColorScale by ccOrderChoiceDlg here...
Daniel, CloudCompare admin
Post Reply