EPICS Home

Experimental Physics and Industrial Control System


 
1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: compile error in ADExample/simDetector with opencv
From: Alireza Panna <[email protected]>
To: "[email protected]" <[email protected]>
Date: Wed, 3 Aug 2016 14:05:56 -0400
Hi,

I am trying to use ADPluginEdge with the sim detector and I run into the following error:

make[6]: Entering directory `C:/Epics/support/areaDetector-2-4/ADExample/iocs/si
mDetectorNoIOC/simDetectorNoIOCApp/src/O.windows-x64'
cl /nologo /EHsc /GR -c              /favor:blend   /nologo /D__STDC__=0 /D_CRT_
SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE   /Ox /GL   /W3 /w44355     -DH5
_BUILT_AS_STATIC_LIB    /MT -DEPICS_DLL_NO /TP   -I. -I..\\O.Common -I. -I.. -I.
.\\..\\..\\include\\os\\WIN32 -I..\\..\\..\\include  -I..\\..\\..\\..\\..\\inclu
de     -IC:\Epics\base-3.14.12.5\\include\\os\\WIN32 -IC:\Epics\base-3.14.12.5\\
include  -IC:\Epics\support\\asyn-4-29\\include -IC:\Epics\support\areaDetector-
2-5\\ADBinaries\\include\\os\\WIN32 -IC:\Epics\support\areaDetector-2-4\\ADBinar
ies\\include -IC:\Epics\support\areaDetector-2-4\\ADCore\\include\\os\\WIN32 -IC
:\Epics\support\areaDetector-2-4\\ADCore\\include -IC:\Epics\support\\autosave-5
-7-1\\include\\os\\WIN32 -IC:\Epics\support\\autosave-5-7-1\\include  -IC:\Epics
\support\\busy-1-6-1\\include  -IC:\Epics\support\\calc-3-2\\include  -IC:\Epics
\support\\seq-2-1-18\\include  -IC:\Epics\support\\sscan-2-10-1\\include -IC:\Ep
ics\support\\devIocStats-3-1-14\\include\\os\\WIN32 -IC:\Epics\support\\devIocSt
ats-3-1-14\\include  -IC:\Epics\support\\caPutLog-3-4\\include       -I\\usr\\lo
cal64\\include  -I\\usr\\include\\libxml2    ..\\simDetectorNoIOC.cpp
simDetectorNoIOC.cpp
make[6]: *** No rule to make target `../../../lib/windows-x64/opencv_world310.li
b', needed by `simDetectorNoIOCApp.exe'.  Stop.
make[6]: Leaving directory `C:/Epics/support/areaDetector-2-4/ADExample/iocs/sim
DetectorNoIOC/simDetectorNoIOCApp/src/O.windows-x64'
make[5]: *** [install.windows-x64] Error 2
make[5]: Leaving directory `C:/Epics/support/areaDetector-2-4/ADExample/iocs/sim
DetectorNoIOC/simDetectorNoIOCApp/src'
make[4]: *** [src.install] Error 2
make[4]: Leaving directory `C:/Epics/support/areaDetector-2-4/ADExample/iocs/sim
DetectorNoIOC/simDetectorNoIOCApp'
make[3]: *** [simDetectorNoIOCApp.install] Error 2
make[3]: Leaving directory `C:/Epics/support/areaDetector-2-4/ADExample/iocs/sim
DetectorNoIOC'
make[2]: *** [simDetectorNoIOC.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

To get it to compile and the plugin to work with the simDetector, I am manually copying the opencv_world310.lib file in the $(ADExample)/lib/$(EPICS_HOST_ARCH) directory.

my CONFIG_SITE.local has opencv location defined as:
OPENCV          = C:/opencv-3.1
OPENCV_LIB      = $(OPENCV)/build/x64/vc12/lib
OPENCV_INCLUDE  = -I$(OPENCV)/build/include/

and the commonDriverMakefile has the following defined:
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

Is there something else I need to add/change to get it to compile properly?

Thanks

Best,
Ali



Replies:
Re: compile error in ADExample/simDetector with opencv Mark Rivers

Navigate by Date:
Prev: Open controls position at the Advanced Light Source, Berkeley Bob Gunion
Next: Job openings for software engineer position at FRIB/MSU Shen, Guobao
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Open controls position at the Advanced Light Source, Berkeley Bob Gunion
Next: Re: compile error in ADExample/simDetector with opencv Mark Rivers
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024