Open devilkingsatan666 opened 3 years ago
When you installed OpenCV 4.5.2 did it install a file called libopencv_imgproc.so? If so, where is it? Perhaps it is not in a location which is searched by default and you need to add that search path.
Did you change these lines in areaDetector/configure/CONFIG_SITE.local?
# OPENCV is required for the ADPluginEdge plugin
WITH_OPENCV = NO
OPENCV_EXTERNAL = YES
#OPENCV_INCLUDE =
#OPENCV_LIB =
Thank you so much for your reply. Yes, I did configure the settings for OpenCV as following in CONFIG_SITE.local.linux-x86_64 file before compiling:
# HDF5_LIB and HDF5_INCLUDE variables should not be defined if using the hdf5 system library in a default location
#HDF5 = /usr/local64
#HDF5_LIB = $(HDF5)/lib
#HDF5_INCLUDE = $(HDF5)/include
# SZIP_LIB and SZIP_INCLUDE variables should not be defined if using the szip system library in a default location
#SZIP = /usr/local64
#SZIP_LIB = $(SZIP)/lib
#SZIP_INCLUDE = $(SZIP)/include
# GRAPHICSMAGICK_LIB should not be defined if using the GraphicsMagick system library in a default location
#GRAPHICSMAGICK = /usr/local64
#GRAPHICSMAGICK_EXTERNAL=YES
# If GRAPHICSMAGICK_EXTERNAL=YES then typically GRAPHICSMAGICK_INCLUDE must be defined or Magick++ include files won't be found
#GRAPHICSMAGICK_INCLUDE = /usr/include/GraphicsMagick
# If GRAPHICSMAGICK_EXTERNAL=YES then typically GRAPHICSMAGICK_PREFIX_SYMBOLS must be NO
#GRAPHICSMAGICK_PREFIX_SYMBOLS = NO
# The package version of GraphicsMagick on Centos 7 requires JPEG 6.2, but ADSupport has JPEG 9b
# Must use system version of JPEG and TIFF
#JPEG_EXTERNAL=YES
#TIFF_EXTERNAL=YES
# BOOST_LIB and BOOST_INCLUDE variables should not be defined if using the boost system library in a default location
WITH_BOOST = YES
BOOST = /usr
BOOST_LIB = $(BOOST)/lib/x86_64-linux-gnu
BOOST_INCLUDE = $(BOOST)/include/boost
# OPENCV_LIB and OPENCV_INCLUDE variables should not be defined if using the opencv system library in a default location
WITH_OPENCV = YES
OPENCV = /usr/local
OPENCV_LIB = $(OPENCV)/lib
OPENCV_INCLUDE = $(OPENCV)/include/opencv4
The CONFIG_SITE.local file:
# To build the IOC applications set BUILD_IOCS to YES
# Otherwise set it to NO
BUILD_IOCS=YES
# To build areaDetector so that it only depends on libCom and asyn set the following flag
#EPICS_LIBCOM_ONLY=YES
# Configure which 3rd party libraries to use and where to find them.
# For each library XXX the following definitions are used:
# WITH_XXX Build the plugins and drivers that require this library.
# Build the source code for this library in ADSupport if XXX_EXTERNAL=NO.
# XXX_EXTERNAL If NO then build the source code for this library in ADSupport.
# XXX_INCLUDE If XXX_EXTERNAL=YES then this is the path to the include files for XXX.
# However, if XXX is a system library whose include files are in a
# standard include search path then do not define XXX_INCLUDE.
# XXX_LIB If XXX_EXTERNAL=YES then this is the path to the library files for XXX.
# However, if XXX is a system library whose library files in a
# standard library search path then do not define XXX_LIB.
# The exception to the above is XML2.
# As of ADCORE R3-0 libxml2 is required for ADCore so WITH_XML2 is not supported
# but the other XML2 flags are supported.
# The default defined here is appropriate for most Linux systems.
# BOOST is required for the ADCore/pluginTests unit tests
WITH_BOOST = NO
BOOST_EXTERNAL = YES
#BOOST_LIB =
#BOOST_INCLUDE =
# Uncomment this line if you want to use STATIC Linking when building
# ADCore/pluginTests unit tests.
#BOOST_USE_STATIC_LINK=YES
# EPICS PVA is required for NDPluginPva, pvaDriver, and qsrv
#WITH_PVA = YES
# WITH_QSRV controls whether IOCs are built with support for qsrv.
# This is separate from WITH_PVA to allow PVA to be enabled but QSRV to be disabled.
# This is needed on 3.14.12 where PVA is supported but QSRV is not.
# Note that if WITH_QSRV=YES then WITH_PVA must also be YES
WITH_QSRV = YES
# BLOSC is required to use the blosc compressors in the HDF5 plugin
WITH_BLOSC = YES
BLOSC_EXTERNAL = NO
#BLOSC_INCLUDE =
#BLOSC_LIB =
# BITSHUFFLE is required to use the bitshuffle/LZ4 decompressors in the ADEiger driver
# It can also be used to generate shareable libraries for the HDF5 compressor/decompressor
WITH_BITSHUFFLE = YES
BITSHUFFLE_EXTERNAL = NO
# GraphicsMagick is required for NDFileMagick and the URL driver.
WITH_GRAPHICSMAGICK = YES
GRAPHICSMAGICK_EXTERNAL = NO
# GraphicsMagick defines many global symbols, and one of these (SetImage) conflicts with a symbol
# in the Andor vendor library. GraphickMagick provides a solution by allowing all external library
# symbols to be prefixed with "Gm". Enable using this by default. However, if a system library
# is used it may not be built with this option so this line should be commented out.
GRAPHICSMAGICK_PREFIX_SYMBOLS = YES
#GRAPHICSMAGICK_INCLUDE =
#GRAPHICSMAGICK_LIB =
# HDF5 is required for the NDFileHDF5 and NDFileNexus plugins
WITH_HDF5 = YES
HDF5_EXTERNAL = NO
#HDF5_INCLUDE =
#HDF5_LIB =
# JSON is required for the NDPluginBadPixel plugin
# The JSON parser requires C++11 and does not work on vxWorks 9.4
WITH_JSON = YES
# JPEG is required for the NDFileJPEG and NDFileTIFF plugins
WITH_JPEG = YES
JPEG_EXTERNAL = NO
#JPEG_INCLUDE =
#JPEG_LIB =
# netCDF is required for the NDFileNetCDF plugin
WITH_NETCDF = YES
NETCDF_EXTERNAL = NO
#NETCDF_INCLUDE =
#NETCDF_LIB =
# NEXUS is required for the NDFileNexus plugin
WITH_NEXUS = YES
NEXUS_EXTERNAL = NO
#NEXUS_INCLUDE =
#NEXUS_LIB =
# OPENCV is required for the ADPluginEdge plugin
WITH_OPENCV = NO
OPENCV_EXTERNAL = YES
#OPENCV_INCLUDE =
#OPENCV_LIB =
# SZIP is required for the NDFileHDF5 and NDFileNexus plugins.
# This may be optional in the future.
WITH_SZIP = YES
SZIP_EXTERNAL = NO
#SZIP_INCLUDE =
#SZIP_LIB =
# TIFF is required for the NDFileTIFF plugin.
WITH_TIFF = YES
TIFF_EXTERNAL = NO
#TIFF_INCLUDE =
#TIFF_LIB =
# XML2 is required for ADCore so there is no WITH_XML2.
XML2_EXTERNAL = NO
#XML2_INCLUDE =
#XML2_LIB =
# ZLIB is required for the NDFileHDF5 and NDFileNexus plugins.
# This may be optional in the future.
WITH_ZLIB = YES
ZLIB_EXTERNAL = NO
#ZLIB_INCLUDE =
#ZLIB_LIB =
# ARAVIS is required for aravisGigE and ADAravis
# Only available on Linux
ARAVIS_LIB = /usr/local/lib/x86_64-linux-gnu
ARAVIS_INCLUDE = /usr/local/include/aravis-0.8
# Location of GLIB include files and libraries. This is needed for aravis.
# Our system has include files for glib-2.0 in 2 different places
GLIB_INCLUDE = /usr/include/glib-2.0 /usr/lib/x86_64-linux-gnu/glib-2.0/include
glib-2.0_DIR = /usr/lib/x86_64-linux-gnu
# The definitions above can be overridden in the following files.
# The files are searched in this order, with the last definition being used.
# CONFIG_SITE.local.$(OS_CLASS)
# CONFIG_SITE.local.$(EPICS_HOST_ARCH)
# CONFIG_SITE.local.$(EPICS_HOST_ARCH).$(T_A)
The package the error message requires:
ultrafast@archiver:/opt/epics/R70.5/synApps/support/areaDetector-master$ ls /usr/local/lib
cmake libopencv_dnn.so.4.5 libopencv_imgcodecs.so libopencv_quality.a libopencv_text.so.4.5.2
libopencv_alphamat.a libopencv_dnn.so.4.5.2 libopencv_imgcodecs.so.4.5 libopencv_quality.so libopencv_tracking.a
libopencv_alphamat.so libopencv_dnn_superres.a libopencv_imgcodecs.so.4.5.2 libopencv_quality.so.4.5 libopencv_tracking.so
libopencv_alphamat.so.4.5 libopencv_dnn_superres.so libopencv_img_hash.a libopencv_quality.so.4.5.2 libopencv_tracking.so.4.5
libopencv_alphamat.so.4.5.2 libopencv_dnn_superres.so.4.5 libopencv_img_hash.so libopencv_rapid.a libopencv_tracking.so.4.5.2
libopencv_aruco.a libopencv_dnn_superres.so.4.5.2 libopencv_img_hash.so.4.5 libopencv_rapid.so libopencv_video.a
libopencv_aruco.so libopencv_dpm.a libopencv_img_hash.so.4.5.2 libopencv_rapid.so.4.5 libopencv_videoio.a
libopencv_aruco.so.4.5 libopencv_dpm.so libopencv_imgproc.a libopencv_rapid.so.4.5.2 libopencv_videoio.so
libopencv_aruco.so.4.5.2 libopencv_dpm.so.4.5 libopencv_imgproc.so libopencv_reg.a libopencv_videoio.so.4.5
libopencv_barcode.a libopencv_dpm.so.4.5.2 libopencv_imgproc.so.4.5 libopencv_reg.so libopencv_videoio.so.4.5.2
libopencv_barcode.so libopencv_face.a libopencv_imgproc.so.4.5.2 libopencv_reg.so.4.5 libopencv_video.so
libopencv_barcode.so.4.5 libopencv_face.so libopencv_intensity_transform.a libopencv_reg.so.4.5.2 libopencv_video.so.4.5
libopencv_barcode.so.4.5.2 libopencv_face.so.4.5 libopencv_intensity_transform.so libopencv_rgbd.a libopencv_video.so.4.5.2
libopencv_bgsegm.a libopencv_face.so.4.5.2 libopencv_intensity_transform.so.4.5 libopencv_rgbd.so libopencv_videostab.a
libopencv_bgsegm.so libopencv_features2d.a libopencv_intensity_transform.so.4.5.2 libopencv_rgbd.so.4.5 libopencv_videostab.so
libopencv_bgsegm.so.4.5 libopencv_features2d.so libopencv_line_descriptor.a libopencv_rgbd.so.4.5.2 libopencv_videostab.so.4.5
libopencv_bgsegm.so.4.5.2 libopencv_features2d.so.4.5 libopencv_line_descriptor.so libopencv_saliency.a libopencv_videostab.so.4.5.2
libopencv_bioinspired.a libopencv_features2d.so.4.5.2 libopencv_line_descriptor.so.4.5 libopencv_saliency.so libopencv_viz.a
libopencv_bioinspired.so libopencv_flann.a libopencv_line_descriptor.so.4.5.2 libopencv_saliency.so.4.5 libopencv_viz.so
libopencv_bioinspired.so.4.5 libopencv_flann.so libopencv_mcc.a libopencv_saliency.so.4.5.2 libopencv_viz.so.4.5
libopencv_bioinspired.so.4.5.2 libopencv_flann.so.4.5 libopencv_mcc.so libopencv_shape.a libopencv_viz.so.4.5.2
libopencv_calib3d.a libopencv_flann.so.4.5.2 libopencv_mcc.so.4.5 libopencv_shape.so libopencv_wechat_qrcode.a
libopencv_calib3d.so libopencv_freetype.a libopencv_mcc.so.4.5.2 libopencv_shape.so.4.5 libopencv_wechat_qrcode.so
libopencv_calib3d.so.4.5 libopencv_freetype.so libopencv_ml.a libopencv_shape.so.4.5.2 libopencv_wechat_qrcode.so.4.5
libopencv_calib3d.so.4.5.2 libopencv_freetype.so.4.5 libopencv_ml.so libopencv_stereo.a libopencv_wechat_qrcode.so.4.5.2
libopencv_ccalib.a libopencv_freetype.so.4.5.2 libopencv_ml.so.4.5 libopencv_stereo.so libopencv_xfeatures2d.a
libopencv_ccalib.so libopencv_fuzzy.a libopencv_ml.so.4.5.2 libopencv_stereo.so.4.5 libopencv_xfeatures2d.so
libopencv_ccalib.so.4.5 libopencv_fuzzy.so libopencv_objdetect.a libopencv_stereo.so.4.5.2 libopencv_xfeatures2d.so.4.5
libopencv_ccalib.so.4.5.2 libopencv_fuzzy.so.4.5 libopencv_objdetect.so libopencv_stitching.a libopencv_xfeatures2d.so.4.5.2
libopencv_core.a libopencv_fuzzy.so.4.5.2 libopencv_objdetect.so.4.5 libopencv_stitching.so libopencv_ximgproc.a
libopencv_core.so libopencv_gapi.a libopencv_objdetect.so.4.5.2 libopencv_stitching.so.4.5 libopencv_ximgproc.so
libopencv_core.so.4.5 libopencv_gapi.so libopencv_optflow.a libopencv_stitching.so.4.5.2 libopencv_ximgproc.so.4.5
libopencv_core.so.4.5.2 libopencv_gapi.so.4.5 libopencv_optflow.so libopencv_structured_light.a libopencv_ximgproc.so.4.5.2
libopencv_cvv.a libopencv_gapi.so.4.5.2 libopencv_optflow.so.4.5 libopencv_structured_light.so libopencv_xobjdetect.a
libopencv_cvv.so libopencv_hdf.a libopencv_optflow.so.4.5.2 libopencv_structured_light.so.4.5 libopencv_xobjdetect.so
libopencv_cvv.so.4.5 libopencv_hdf.so libopencv_phase_unwrapping.a libopencv_structured_light.so.4.5.2 libopencv_xobjdetect.so.4.5
libopencv_cvv.so.4.5.2 libopencv_hdf.so.4.5 libopencv_phase_unwrapping.so libopencv_superres.a libopencv_xobjdetect.so.4.5.2
libopencv_datasets.a libopencv_hdf.so.4.5.2 libopencv_phase_unwrapping.so.4.5 libopencv_superres.so libopencv_xphoto.a
libopencv_datasets.so libopencv_hfs.a libopencv_phase_unwrapping.so.4.5.2 libopencv_superres.so.4.5 libopencv_xphoto.so
libopencv_datasets.so.4.5 libopencv_hfs.so libopencv_photo.a libopencv_superres.so.4.5.2 libopencv_xphoto.so.4.5
libopencv_datasets.so.4.5.2 libopencv_hfs.so.4.5 libopencv_photo.so libopencv_surface_matching.a libopencv_xphoto.so.4.5.2
libopencv_dnn.a libopencv_hfs.so.4.5.2 libopencv_photo.so.4.5 libopencv_surface_matching.so ocaml
libopencv_dnn_objdetect.a libopencv_highgui.a libopencv_photo.so.4.5.2 libopencv_surface_matching.so.4.5 opencv4
libopencv_dnn_objdetect.so libopencv_highgui.so libopencv_plot.a libopencv_surface_matching.so.4.5.2 pkgconfig
libopencv_dnn_objdetect.so.4.5 libopencv_highgui.so.4.5 libopencv_plot.so libopencv_text.a python2.7
libopencv_dnn_objdetect.so.4.5.2 libopencv_highgui.so.4.5.2 libopencv_plot.so.4.5 libopencv_text.so python3.7
libopencv_dnn.so libopencv_imgcodecs.a libopencv_plot.so.4.5.2 libopencv_text.so.4.5 x86_64-linux-gnu
Dear all, I was compiling the package with the following sub-modules umcommented in RELEASE.local file:
When it proceeded to ADSimDetector, it failed and produced the following error:
Any suggestions are welcomed. Thank you in advance for your replies.