Experimental Physics and
| |||||||||||||||||
|
Hi, So compiling areadetector with ADPluginEdge using opencv-3.1.0 and EPICS_HOST_ARCH=windows-x64-static (with static build=yes, shared libraries=no). This is where it throws an error: make[7]: *** No rule to make target `../../../lib/windows-x64-static/opencv_world310.lib', needed by `simDetectorNoIOCApp.exe'. Stop. make[7]: Leaving directory `C:/Epics/support/areaDetector-2-4/ADExample/iocs/simDetectorNoIOC/simDetectorNoIOCApp/src/O.windows-x64-static' make[6]: *** [install.windows-x64-static] Error 2 make[6]: Leaving directory `C:/Epics/support/areaDetector-2-4/ADExample/iocs/simDetectorNoIOC/simDetectorNoIOCApp/src' make[5]: *** [src.install] Error 2 make[5]: Leaving directory `C:/Epics/support/areaDetector-2-4/ADExample/iocs/simDetectorNoIOC/simDetectorNoIOCApp' make[4]: *** [simDetectorNoIOCApp.install] Error 2 make[4]: Leaving directory `C:/Epics/support/areaDetector-2-4/ADExample/iocs/simDetectorNoIOC' make[3]: *** [simDetectorNoIOC.install] Error 2 make[3]: Leaving directory `C:/Epics/support/areaDetector-2-4/ADExample/iocs' make[2]: *** [iocs.install] Error 2 make[2]: Leaving directory `C:/Epics/support/areaDetector-2-4/ADExample' make[1]: *** [C:\Epics\support\areaDetector-2-4/ADExample.install] Error 2 make[1]: Leaving directory `C:/Epics/support/areaDetector-2-4' make: *** [C:/Epics/support/areaDetector-2-4.install] Error 2 Again i have the following in my commonDriverMakefile: ifdef ADPLUGINEDGE PROD_LIBS += NDPluginEdge $(PROD_NAME)_DBD += NDPluginEdge.dbd ifdef OPENCV_LIB opencv_core_DIR += $(OPENCV_LIB) PROD_LIBS += opencv_world310 else PROD_SYS_LIBS += opencv_world310 endif endif Then I try compiling dynamic i.e. EPICS_HOST_ARCH=windows-x64 (STATIC_BUILD=NO, SHARED_LIBRARIES=YES) This is the result when i try to compile areadetector with opencv and the edge plugin. Creating library NDPluginEdge.lib and object NDPluginEdge.exp NDPluginEdge.obj : error LNK2001: unresolved external symbol "void __cdecl cv::blur(class cv::_InputArray const &,class cv::_OutputArray const &,class cv::Size_<int>,class cv::Point_<int>,int)" (?blur@cv@@YAXAEBV_InputArray@1@AEBV_OutputArray@1@V?$Size_@H@1@V?$Point_@H@1@H@Z) NDPluginEdge.obj : error LNK2001: unresolved external symbol "void __cdecl cv::fastFree(void *)" (?fastFree@cv@@YAXPEAX@Z) NDPluginEdge.obj : error LNK2001: unresolved external symbol "public: void __cdecl cv::Mat::deallocate(void)" (?deallocate@Mat@cv@@QEAAXXZ) NDPluginEdge.obj : error LNK2001: unresolved external symbol "public: void __cdecl cv::Mat::create(int,int const *,int)" (?create@Mat@cv@@QEAAXHPEBHH@Z) NDPluginEdge.obj : error LNK2001: unresolved external symbol "void __cdecl cv::Canny(class cv::_InputArray const &,class cv::_OutputArray const &,double,double,int,bool)" (?Canny@cv@@YAXAEBV_InputArray@1@AEBV_OutputArray@1@NNH_N@Z) NDPluginEdge.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) private: virtual enum asynStatus __cdecl NDPluginDriver::setArrayInterrupt(int)" (__imp_?setArrayInterrupt@NDPluginDriver@@EEAA?AW4asynStatus@@H@Z) NDPluginEdge.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) protected: virtual enum asynStatus __cdecl NDPluginDriver::connectToArrayPort(void)" (__imp_?connectToArrayPort@NDPluginDriver@@MEAA?AW4asynStatus@@XZ) NDPluginEdge.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) protected: virtual void __cdecl NDPluginDriver::processCallbacks(class NDArray *)" (__imp_?processCallbacks@NDPluginDriver@@MEAAXPEAVNDArray@@@Z) NDPluginEdge.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual void __cdecl NDPluginDriver::processTask(void)" (__imp_?processTask@NDPluginDriver@@UEAAXXZ) NDPluginEdge.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual void __cdecl NDPluginDriver::driverCallback(struct asynUser *,void *)" (__imp_?driverCallback@NDPluginDriver@@UEAAXPEAUasynUser@@PEAX@Z) NDPluginEdge.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual enum asynStatus __cdecl NDPluginDriver::readInt32Array(struct asynUser *,int *,unsigned __int64,unsigned __int64 *)" (__imp_?readInt32Array@NDPluginDriver@@UEAA?AW4asynStatus@@PEAUasynUser@@PEAH_KPEA_K@Z) NDPluginEdge.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual enum asynStatus __cdecl NDPluginDriver::writeOctet(struct asynUser *,char const *,unsigned __int64,unsigned __int64 *)" (__imp_?writeOctet@NDPluginDriver@@UEAA?AW4asynStatus@@PEAUasynUser@@PEBD_KPEA_K@Z) NDPluginEdge.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual enum asynStatus __cdecl NDPluginDriver::writeInt32(struct asynUser *,int)" (__imp_?writeInt32@NDPluginDriver@@UEAA?AW4asynStatus@@PEAUasynUser@@H@Z) NDPluginEdge.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __cdecl NDPluginDriver::NDPluginDriver(char const *,int,int,char const *,int,int,int,int,unsigned __int64,int,int,int,int,int,int)" (__imp_??0NDPluginDriver@@QEAA@PEBDHH0HHHH_KHHHHHH@Z) NDPluginEdge.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual __cdecl NDPluginDriver::~NDPluginDriver(void)" (__imp_??1NDPluginDriver@@UEAA@XZ) NDPluginEdge.dll : fatal error LNK1120: 15 unresolved externals make[4]: *** [NDPluginEdge.dll] Error 1120 make[4]: Leaving directory `C:/Epics/support/areaDetector-2-4/ADPluginEdge/edgeApp/edgeSrc/O.windows-x64' make[3]: *** [install.windows-x64] Error 2 make[3]: Leaving directory `C:/Epics/support/areaDetector-2-4/ADPluginEdge/edgeApp/edgeSrc' make[2]: *** [edgeSrc.install] Error 2 make[2]: Leaving directory `C:/Epics/support/areaDetector-2-4/ADPluginEdge/edgeApp' make[1]: *** [edgeApp.install] Error 2 make[1]: Leaving directory `C:/Epics/support/areaDetector-2-4/ADPluginEdge' make: *** [C:\Epics\support\areaDetector-2-4/ADPluginEdge.install] Error 2 So with dynamic build, ADPluginEdge does not compile out of the box. Best, Ali On Wed, Aug 3, 2016 at 10:15 PM, Alireza Panna <[email protected]> wrote:
| ||||||||||||||||
ANJ, 04 Aug 2016 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing · |