Experimental Physics and Industrial Control System
Hi Kaz,
I have not worked on the ADLambda driver. But generally when I have the source code to a vendor library I modify it to build with the EPICS build system. That is what I have done for dxp, dxpSITORO, all of the libraries in ADSupport, etc. It's a bit more work, but allows it to build in environments that the vendor may not directly support.
Mark
________________________________
From: Gofron, Kazimierz <[email protected]>
Sent: Wednesday, July 4, 2018 11:27 PM
To: [email protected]
Cc: Mark Rivers
Subject: ADLambda compilaiton of vendor sources (LambdaSupport)
Hi,
I am not able to compile vendor sources for ADLambda detector, cloned from the github.com/areaDetector/ADLambda. Perhaps someone has done it successfully.
System: Debian 9, Debian 8
EPICS base: base-7.0.1.1
AreaDetector: R3-3-1 (master from today)
==========
I am following the compilation instructions written in LambdaSupport/liblambda/INSTALL
1. Created liblambda-build {build directory for cmake}
2. Created liblambda-linux-x86_64 {install directory}
====================
kaz@stretch64:/epics/support/areaDetector-3-3/ADLambda/LambdaSupport$ ls -l
total 28
-rw-r--r-- 1 kaz kaz 634 Jul 4 23:05 INSTALL-EPICS
drwxr-xr-x 5 kaz kaz 4096 Jul 4 23:05 libcommon
drwxr-xr-x 6 kaz kaz 4096 Jul 4 23:05 liblambda
drwxr-xr-x 5 kaz kaz 4096 Jul 5 00:12 liblambda-build
drwxr-xr-x 2 kaz kaz 4096 Jul 5 00:10 liblambda-linux-x86_64
-rw-r--r-- 1 kaz kaz 739 Jul 4 23:05 Makefile
-rw-r--r-- 1 kaz kaz 1146 Jul 4 23:05 README
====================================
kaz@stretch64:/epics/support/areaDetector-3-3/ADLambda/LambdaSupport/liblambda-build$ cmake -DCMAKE_INSTALL_PREFIX=../liblambda-linux-x86_64 ../liblambda
-- The C compiler identification is GNU 6.3.0
-- The CXX compiler identification is GNU 6.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- path is:/epics/support/areaDetector-3-3/ADLambda/LambdaSupport/liblambda/cmake/
CMake Warning at CMakeLists.txt:15 (find_package):
By not providing "FindLibCommon.cmake" in CMAKE_MODULE_PATH this project
has asked CMake to find a package configuration file provided by
"LibCommon", but CMake did not find one.
Could not find a package configuration file provided by "LibCommon" with
any of the following names:
LibCommonConfig.cmake
libcommon-config.cmake
Add the installation prefix of "LibCommon" to CMAKE_PREFIX_PATH or set
"LibCommon_DIR" to a directory containing one of the above files. If
"LibCommon" provides a separate development package or SDK, be sure it has
been installed.
CMake Warning at CMakeLists.txt:16 (find_package):
By not providing "FindLibBoost.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "LibBoost",
but CMake did not find one.
Could not find a package configuration file provided by "LibBoost" with any
of the following names:
LibBoostConfig.cmake
libboost-config.cmake
Add the installation prefix of "LibBoost" to CMAKE_PREFIX_PATH or set
"LibBoost_DIR" to a directory containing one of the above files. If
"LibBoost" provides a separate development package or SDK, be sure it has
been installed.
CMake Warning at CMakeLists.txt:17 (find_package):
By not providing "FindZlib.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "Zlib", but
CMake did not find one.
Could not find a package configuration file provided by "Zlib" with any of
the following names:
ZlibConfig.cmake
zlib-config.cmake
Add the installation prefix of "Zlib" to CMAKE_PREFIX_PATH or set
"Zlib_DIR" to a directory containing one of the above files. If "Zlib"
provides a separate development package or SDK, be sure it has been
installed.
-- Install directory is: /epics/support/areaDetector-3-3/ADLambda/LambdaSupport/liblambda-linux-x86_64
-- No build type selected, default to RELEASE
-- Build type: RELEASE
-- Configuring done
-- Generating done
-- Build files have been written to: /epics/support/areaDetector-3-3/ADLambda/LambdaSupport/liblambda-build
=========================
kaz@stretch64:/epics/support/areaDetector-3-3/ADLambda/LambdaSupport/liblambda-build$ ls
CMakeCache.txt CMakeFiles cmake_install.cmake include Makefile src
kaz@stretch64:/epics/support/areaDetector-3-3/ADLambda/LambdaSupport/liblambda-build$ make
Scanning dependencies of target lambda
[ 11%] Building CXX object src/CMakeFiles/lambda.dir/ImageDecoder.cpp.o
In file included from /epics/support/areaDetector-3-3/ADLambda/LambdaSupport/liblambda/include/ImageDecoder.h:25:0,
from /epics/support/areaDetector-3-3/ADLambda/LambdaSupport/liblambda/src/ImageDecoder.cpp:22:
/epics/support/areaDetector-3-3/ADLambda/LambdaSupport/liblambda/include/LambdaGlobals.h:25:21: fatal error: Globals.h: No such file or directory
#include "Globals.h"
^
compilation terminated.
src/CMakeFiles/lambda.dir/build.make:62: recipe for target 'src/CMakeFiles/lambda.dir/ImageDecoder.cpp.o' failed
make[2]: *** [src/CMakeFiles/lambda.dir/ImageDecoder.cpp.o] Error 1
CMakeFiles/Makefile2:103: recipe for target 'src/CMakeFiles/lambda.dir/all' failed
make[1]: *** [src/CMakeFiles/lambda.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
===============================
Thanks,
Kazimierz Gofron
NSLS-II Controls Group
Brookhaven National Laboratory
(p) +1 (631) 344 5283
(f) +1 (631) 344 8085
(e) [email protected]<mailto:[email protected]>
(w) www.bnl.gov/nsls2<http://www.bnl.gov/nsls2>
- References:
- ADLambda compilaiton of vendor sources (LambdaSupport) Gofron, Kazimierz
- Navigate by Date:
- Prev:
PMAC Gather Hidas, Dean
- Next:
Re: Building latest AreaDetector from the synApps collection Lang, Keenan C.
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
<2018>
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
ADLambda compilaiton of vendor sources (LambdaSupport) Gofron, Kazimierz
- Next:
PMAC Gather Hidas, Dean
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
<2018>
2019
2020
2021
2022
2023
2024