Experimental Physics and
| |||||||||||||||
|
Hi Mark, Thanks for the quick reply. I added this in the commonLibraryMakefile: ifdef ADPLUGINEDGE ifdef OPENCV_LIB opencv_core_DIR += $(OPENCV_LIB) LIB_LIBS += opencv_world310 else LIB_SYS_LIBS += opencv_world310 endif endif now in the commonDriverMakefile, i just have the following: ifdef ADPLUGINEDGE PROD_LIBS += NDPluginEdge $(PROD_NAME)_DBD += NDPluginEdge.dbd endif I get the following error now after doing make realclean realuninstall && make NDPluginEdge.lib(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_InputArra y@1@AEBV_OutputArray@1@V?$Size_@H@1@V?$Point_@H@1@H@Z) NDPluginEdge.lib(NDPluginEdge.obj) : error LNK2001: unresolved external symbol " void __cdecl cv::fastFree(void *)" (?fastFree@cv@@YAXPEAX@Z) NDPluginEdge.lib(NDPluginEdge.obj) : error LNK2001: unresolved external symbol " public: void __cdecl cv::Mat::deallocate(void)" (?deallocate@Mat@cv@@QEAAXXZ) NDPluginEdge.lib(NDPluginEdge.obj) : error LNK2001: unresolved external symbol " public: void __cdecl cv::Mat::create(int,int const *,int)" (?create@Mat@cv@@QEAA XHPEBHH@Z) NDPluginEdge.lib(NDPluginEdge.obj) : error LNK2001: unresolved external symbol " void __cdecl cv::Canny(class cv::_InputArray const &,class cv::_OutputArray cons t &,double,double,int,bool)" (?Canny@cv@@YAXAEBV_InputArray@1@AEBV_OutputArray@1 @NNH_N@Z) ADCSimDetectorApp.exe : fatal error LNK1120: 5 unresolved externals make[6]: *** [ADCSimDetectorApp.exe] Error 1120 make[6]: Leaving directory `C:/Epics/support/areaDetector-2-4/ADExample/iocs/ADC SimDetectorIOC/ADCSimDetectorApp/src/O.windows-x64' make[5]: *** [install.windows-x64] Error 2 make[5]: Leaving directory `C:/Epics/support/areaDetector-2-4/ADExample/iocs/ADC SimDetectorIOC/ADCSimDetectorApp/src' make[4]: *** [src.install] Error 2 make[4]: Leaving directory `C:/Epics/support/areaDetector-2-4/ADExample/iocs/ADC SimDetectorIOC/ADCSimDetectorApp' make[3]: *** [ADCSimDetectorApp.install] Error 2 make[3]: Leaving directory `C:/Epics/support/areaDetector-2-4/ADExample/iocs/ADC SimDetectorIOC' make[2]: *** [ADCSimDetectorIOC.install] Error 2 make[2]: Leaving directory `C:/Epics/support/areaDetector-2-4/ADExample/iocs' make[1]: *** [iocs.install] Error 2 make[1]: Leaving directory `C:/Epics/support/areaDetector-2-4/ADExample' make: *** [C:\Epics\support\areaDetector-2-4/ADExample.install] Error 2 I then switched to staticlib for opencv. My config_site.local now looks like this: OPENCV = C:/opencv-2.4.13OPENCV_LIB = $(OPENCV)/build/x64/vc12/staticlib OPENCV_INCLUDE = -I$(OPENCV)/build/include/ and the commonDriverMakefile: ifdef ADPLUGINEDGE PROD_LIBS += NDPluginEdge $(PROD_NAME)_DBD += NDPluginEdge.dbd ifdef OPENCV_LIB opencv_core_DIR += $(OPENCV_LIB) PROD_LIBS += opencv_core2413 opencv_imgproc2413 else PROD_SYS_LIBS += opencv_core2413 opencv_imgproc2413 endif endif In this case I still get a similar error as before. make[6]: *** No rule to make target `../../../lib/windows-x64/opencv_core2413.li b', needed by `simDetectorNoIOCApp.exe'. Stop. When you say building dynamic I assume you mean the opencv libs I am using are built dynamic, i build epics base as static. Thanks Ali On Wed, Aug 3, 2016 at 3:04 PM, Mark Rivers <[email protected]> wrote: Because you are building dynamically you also need to define LIB_LIBS the same way you defined PROD_LIBS.
| ||||||||||||||
ANJ, 03 Aug 2016 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing · |