Page 1 of 1
PCL plugIn
Posted: Tue Jan 21, 2020 5:48 am
by nenadpol
Hi,
I have installed CC 2.11. In this version there is pcl plugin QPCL_IO_PLUGIN, works fine.
I used Dependency Walker to check dependencies and no PCL dependencies for this plugin needed.
I downloaded QT5.8.3 and compiled with VS 2015. This solution has project QPCL_IO_PLUGIN. Compiled fine but when trying to run
I get message that some dependencied are missing, for example pcl_commom_debug.dll
I copied file from PCL and tried to run but got error message "pcl_commom_debug.dll..missing METADATA. "
What am I doing wrong?
Thanks
Nenad
Re: PCL plugIn
Posted: Wed Jan 22, 2020 11:02 pm
by daniel
I guess it's all about compiling PCL in static mode (= no DLLs)?
Re: PCL plugIn
Posted: Thu Jan 23, 2020 9:27 am
by nenadpol
Hi,
I compiled PLC 1.8.1 using VS 2015 Project Type = Dynamic Library (.dll)
I did not have CC installed when I compiled PCL and did not used ccIOPluginInterface
Do I have to compile PCL again and use
#include "ccIOPluginInterface.h"
Q_OBJECT
Q_INTERFACES( ccIOPluginInterface )
Q_PLUGIN_METADATA(IID "cccorp.cloudcompare.plugin.qPclIO" FILE "info.json")
thanks
Nenad
Re: PCL plugIn
Posted: Thu Jan 23, 2020 9:45 pm
by daniel
Nope, it's the other way around. You compile PCL and then provide the links to the libraries in CMake when building the project.
Re: PCL plugIn
Posted: Fri Jan 24, 2020 6:02 am
by nenadpol
Hi,
Configuration in CMake = OK
generate code in CMAKE = OK
building solution in VisualStudio = OK
Running CC = OK.
But, when I try to load plugin QPCL_PLUGINd.dll and run CC
this is error message :
- Untitled.png (5.27 KiB) Viewed 15739 times
thanks Nenad
Re: PCL plugIn
Posted: Fri Jan 24, 2020 9:40 pm
by daniel
Have you copied the PCL DLLs next to the plugin? If yes, you should actually copy them next to the CloudCompare.exe executable.
Otherwise CC will try to load them as plugins...
Re: PCL plugIn
Posted: Sat Jan 25, 2020 6:20 am
by nenadpol
I did what you wrote and that solved error message.
Still, CC does not load plugin QPCL_IO_PLUGINd.dll
------------------------------------------------------------------------------------------
[Plugin] Searching: C:/Users/nenad/Downloads/CloudCompare-master/CC_win64/qCC/Debug/plugins
Plugin found: Example (Standard Plugin) (ExamplePlugind.dll)
QPCL_IO_PLUGINd.dll does not seem to be a valid plugin (Cannot load library C:\Users\nenad\Downloads\CloudCompare-master\CC_win64\qCC\Debug\plugins\QPCL_IO_PLUGINd.dll: The specified module could not be found.)
----------------------------------------------------------------------------------------------------------------------------------------------
I guess, for some reason, CC does not accept pcl_common_debug.dll, pcl_io_debug.dll as valid dependencies.
Any ideas?
thenks
Nenad
Re: PCL plugIn
Posted: Sat Jan 25, 2020 6:34 am
by nenadpol
Solved the problem using Dependency Walker.
There were a lot of dll's missing.
Placed all of them with CC.exe and it worked.
thanks for helping
Nenad