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  2016  2017  <20182019  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  2016  2017  <20182019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: ADPointGrey with AD3-2, and base-7.0.1.1
From: "Shen, Guobao" <[email protected]>
To: Jeong Han Lee <[email protected]>, "[email protected]" <[email protected]>
Date: Mon, 23 Apr 2018 15:49:46 +0000
This is kind of minor.
With GCC 5.4.0 on my Ubuntu, I do not need to add this flag.
But for GCC 7 on Fedora 27, I do need it.

Thanks,
Guobao

On 4/21/18, 3:26 AM, "[email protected] on behalf of Jeong Han Lee" <[email protected] on behalf of [email protected]> wrote:

    Hi
    
     From GCC 5( not exact version I know), the following FLAGS is needed to 
    compile the ADPointGrey without changing codes :
    
    # https://gcc.gnu.org/wiki/FAQ#Wnarrowing
    # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55783
    # -std=c++11
    USR_CXXFLAGS += -Wno-narrowing
    
    HTH,
    Han
    
    
    On 04/21/2018 12:29 AM, Mark Rivers wrote:
    > Hi Kaz,
    > 
    > 
    > I build  ADPointGrey on linux-x86_64 with no problems.  I am using gcc 4.8.5.  I think the issue is that you are using gcc 6.3.0.  It looks like a minor modification is needed for newer gcc.  You can figure out what is needed and make a pull request.
    > 
    > 
    > Mark
    > 
    > 
    > 
    > ________________________________
    > From: [email protected] <[email protected]> on behalf of Gofron, Kazimierz <[email protected]>
    > Sent: Friday, April 20, 2018 4:55 PM
    > To: [email protected]
    > Subject: ADPointGrey with AD3-2, and base-7.0.1.1
    > 
    > Hi,
    > 
    > I am compiling ADPointGrey and running into code error in "pointGrey.cpp:245" . Did anyone compiled ADPointGrey recently on linux- 64bit ?
    > 
    > Best regards,
    > 
    > Kaz
    > 
    > base-7.0.1.1
    > AreaDetector 3-2
    > debian 9
    > gmaile 4.1
    > gcc 6.3.0
    > 
    > 
    > kaz@xf10id-is1:/epics/synApps/support/areaDetector-3-2/ADPointGrey$ make
    > make -C ./configure install
    > make[1]: Entering directory '/epics/synApps/support/areaDetector-3-2/ADPointGrey/configure'
    > perl -CSD /epics/base-7-0-1-1/bin/linux-x86_64/makeMakefile.pl O.linux-x86_64 ../..
    > mkdir -p O.Common
    > make -C O.linux-x86_64 -f ../Makefile TOP=../.. \
    >      T_A=linux-x86_64 install
    > make[2]: Entering directory '/epics/synApps/support/areaDetector-3-2/ADPointGrey/configure/O.linux-x86_64'
    > perl -CSD /epics/base-7-0-1-1/bin/linux-x86_64/convertRelease.pl checkRelease
    > make[2]: Leaving directory '/epics/synApps/support/areaDetector-3-2/ADPointGrey/configure/O.linux-x86_64'
    > make[1]: Leaving directory '/epics/synApps/support/areaDetector-3-2/ADPointGrey/configure'
    > make -C ./pointGreySupport install
    > make[1]: Entering directory '/epics/synApps/support/areaDetector-3-2/ADPointGrey/pointGreySupport'
    > perl -CSD /epics/base-7-0-1-1/bin/linux-x86_64/makeMakefile.pl O.linux-x86_64 ..//..
    > mkdir -p O.Common
    > make -C O.linux-x86_64 -f ../Makefile TOP=..//.. \
    >      T_A=linux-x86_64 install
    > make[2]: Entering directory '/epics/synApps/support/areaDetector-3-2/ADPointGrey/pointGreySupport/O.linux-x86_64'
    > Installing generic include file ..//../include/AVIRecorder.h
    > mkdir ../../include
    > Installing generic include file ..//../include/BusManager.h
    > Installing generic include file ..//../include/Camera.h
    > Installing generic include file ..//../include/CameraBase.h
    > Installing generic include file ..//../include/Error.h
    > Installing generic include file ..//../include/FlyCapture2.h
    > Installing generic include file ..//../include/FlyCapture2Defs.h
    > Installing generic include file ..//../include/FlyCapture2Platform.h
    > Installing generic include file ..//../include/GigECamera.h
    > Installing generic include file ..//../include/Image.h
    > Installing generic include file ..//../include/ImageStatistics.h
    > Installing generic include file ..//../include/TopologyNode.h
    > Installing generic include file ..//../include/Utilities.h
    > Installing libflycapture.so
    > mkdir ../../lib
    > mkdir ../../lib/linux-x86_64
    > Installing libflycapture.so.2
    > Installing libflycapture.so.2.9.3.43
    > make[2]: Leaving directory '/epics/synApps/support/areaDetector-3-2/ADPointGrey/pointGreySupport/O.linux-x86_64'
    > make[1]: Leaving directory '/epics/synApps/support/areaDetector-3-2/ADPointGrey/pointGreySupport'
    > make -C ./pointGreyApp install
    > make[1]: Entering directory '/epics/synApps/support/areaDetector-3-2/ADPointGrey/pointGreyApp'
    > make -C ./src install
    > make[2]: Entering directory '/epics/synApps/support/areaDetector-3-2/ADPointGrey/pointGreyApp/src'
    > perl -CSD /epics/base-7-0-1-1/bin/linux-x86_64/makeMakefile.pl O.linux-x86_64 ../../..
    > mkdir -p O.Common
    > make -C O.linux-x86_64 -f ../Makefile TOP=../../.. \
    >      T_A=linux-x86_64 install
    > make[3]: Entering directory '/epics/synApps/support/areaDetector-3-2/ADPointGrey/pointGreyApp/src/O.linux-x86_64'
    > /usr/bin/g++  -D_GNU_SOURCE -D_DEFAULT_SOURCE           -D_X86_64_  -DUNIX  -Dlinux     -O3 -g   -Wall      -mtune=generic     -m64 -fPIC -I. -I../O.Common -I. -I. -I.. -I../../../include/compiler/gcc -I../../../include/os/Linux -I../../../include       -I/epics/base-7-0-1-1/include/compiler/gcc -I/epics/base-7-0-1-1/include/os/Linux -I/epics/base-7-0-1-1/include      -I/epics/synApps/support/asyn-4-33/include  -I/epics/synApps/support/areaDetector-3-2/ADSupport/include/os/Linux -I/epics/synApps/support/areaDetector-3-2/ADSupport/include   -I/epics/synApps/support/areaDetector-3-2/ADCore/include                    -MM -MF pointGrey.d  ../pointGrey.cpp
    > Installing dbd file ../../../dbd/pointGreySupport.dbd
    > mkdir ../../../dbd
    > /usr/bin/g++  -D_GNU_SOURCE -D_DEFAULT_SOURCE           -D_X86_64_  -DUNIX  -Dlinux     -O3 -g   -Wall      -mtune=generic     -m64 -fPIC -I. -I../O.Common -I. -I. -I.. -I../../../include/compiler/gcc -I../../../include/os/Linux -I../../../include       -I/epics/base-7-0-1-1/include/compiler/gcc -I/epics/base-7-0-1-1/include/os/Linux -I/epics/base-7-0-1-1/include      -I/epics/synApps/support/asyn-4-33/include  -I/epics/synApps/support/areaDetector-3-2/ADSupport/include/os/Linux -I/epics/synApps/support/areaDetector-3-2/ADSupport/include   -I/epics/synApps/support/areaDetector-3-2/ADCore/include                    -c ../pointGrey.cpp
    > ../pointGrey.cpp:245:1: error: narrowing conversion of '(FlyCapture2::PixelFormat)2147483648u' from 'unsigned int' to 'int' inside { } [-Wnarrowing]
    >   };
    >   ^
    > /epics/base-7-0-1-1/configure/RULES_BUILD:237: recipe for target 'pointGrey.o' failed
    > make[3]: *** [pointGrey.o] Error 1
    > make[3]: Leaving directory '/epics/synApps/support/areaDetector-3-2/ADPointGrey/pointGreyApp/src/O.linux-x86_64'
    > /epics/base-7-0-1-1/configure/RULES_ARCHS:58: recipe for target 'install.linux-x86_64' failed
    > make[2]: *** [install.linux-x86_64] Error 2
    > make[2]: Leaving directory '/epics/synApps/support/areaDetector-3-2/ADPointGrey/pointGreyApp/src'
    > /epics/base-7-0-1-1/configure/RULES_DIRS:84: recipe for target 'src.install' failed
    > make[1]: *** [src.install] Error 2
    > make[1]: Leaving directory '/epics/synApps/support/areaDetector-3-2/ADPointGrey/pointGreyApp'
    > /epics/base-7-0-1-1/configure/RULES_DIRS:84: recipe for target 'pointGreyApp.install' failed
    > make: *** [pointGreyApp.install] Error 2
    > kaz@xf10id-is1:/epics/synApps/support/areaDetector-3-2/ADPointGrey$
    > 
    


References:
ADPointGrey with AD3-2, and base-7.0.1.1 Gofron, Kazimierz
Re: ADPointGrey with AD3-2, and base-7.0.1.1 Mark Rivers
Re: ADPointGrey with AD3-2, and base-7.0.1.1 Jeong Han Lee

Navigate by Date:
Prev: Re: base-3.15.5/templates/makeBaseApp/top/iocBoot/ioc/Makefile@Common Andrew Johnson
Next: Re: base-3.15.5/templates/makeBaseApp/top/iocBoot/ioc/Makefile@Common John Dobbins
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  <20182019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: ADPointGrey with AD3-2, and base-7.0.1.1 Jeong Han Lee
Next: RE: ADPointGrey with AD3-2, and base-7.0.1.1 Gofron, Kazimierz
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  <20182019  2020  2021  2022  2023  2024