Page 1 of 1

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

Posted: Mon Oct 17, 2016 9:06 am
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?

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

Posted: Mon Oct 17, 2016 8:55 pm
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...