Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017 
<== Date ==> <== Thread ==>

Subject: RE: Trouble compiling areaDetector1-8beta1
From: Mark Rivers <rivers@cars.uchicago.edu>
To: "Gessner, Spencer J." <sgess@slac.stanford.edu>, "tech-talk@aps.anl.gov" <tech-talk@aps.anl.gov>
Date: Fri, 4 May 2012 13:11:24 +0000
Hi Spencer,

> I checked and found that the file 'netcdf.h' exists in C:\epics\synApps_5_6\support\areaDetector-1-8beta1\ADApp\netCDFSrc\include.
> In 'NDFileNetCDF.cpp', I changed line 11 from
> #include <netcdf.h>
> to
> #include "..\netCDFSrc\include\netcdf.h"

Something is wrong with the way you are doing the build.  areaDetector first builds netCDFSrc, which installs netcdf.h into areaDetector/include, which is in the search path when you build the plugins.

The same is true for tiffsupport/ and magickSupport.  Those directories get built first and install the necessary header files into areaDetector/include.  

Please change the plugin source files back to their original forms.  Then do a "make clean uninstall" and "make" at the top level of areaDetector.  If you still have the problems with the include files please send me the complete output.

The problem with the GraphicsMagick prebuilt libraries not being compatible with VS 2010 can also be solved by getting new pre-built binaries from Diamond, as described in the tech-talk message from Ulrik Pedersen on April 20.  In the next release I will upgrade to VS2010 for the pre-built libraries.

Mark


________________________________________
From: tech-talk-bounces@aps.anl.gov [tech-talk-bounces@aps.anl.gov] on behalf of Gessner, Spencer J. [sgess@slac.stanford.edu]
Sent: Friday, May 04, 2012 3:43 AM
To: tech-talk@aps.anl.gov
Subject: Trouble compiling areaDetector1-8beta1

I ran into the problem below building areaDetector1-8beta1 in synApps_5_6.

I checked and found that the file 'netcdf.h' exists in C:\epics\synApps_5_6\support\areaDetector-1-8beta1\ADApp\netCDFSrc\include.

In 'NDFileNetCDF.cpp', I changed line 11 from



#include <netcdf.h>

to

#include "..\netCDFSrc\include\netcdf.h"



I had to do the same for NDFileTiff.cpp, NDFileJPEG.cpp, and NDFileMagick.cpp and it worked.

However, I still run into the same problem Emma did here http://www.aps.anl.gov/epics/tech-talk/2012/msg00854.php. I tried Ulrik's suggestion here http://www.aps.anl.gov/epics/tech-talk/2012/msg00858.php but that did not work. I did however get a different error than Emma (see below below).

I will probably try Mark's third suggestion of living without Magick support next.

netcdf issue:


make[4]: Entering directory `C:/epics/synApps_5_6/support/areaDetector-1-8beta1/ADApp/pluginSrc/O.windows-x64'
"Installing dbd file ../../../dbd/NDPluginSupport.dbd"
"Installing dbd file ../../../dbd/NDFileJPEG.dbd"
"Installing dbd file ../../../dbd/NDFileMagick.dbd"
"Installing dbd file ../../../dbd/NDFileNetCDF.dbd"
"Installing dbd file ../../../dbd/NDFileNexus.dbd"
"Installing dbd file ../../../dbd/NDFileHDF5.dbd"
"Installing dbd file ../../../dbd/NDFileTIFF.dbd"
"Installing dbd file ../../../dbd/NDFileNull.dbd"
"Installing dbd file ../../../dbd/NDPluginColorConvert.dbd"
"Installing dbd file ../../../dbd/NDPluginOverlay.dbd"
"Installing dbd file ../../../dbd/NDPluginProcess.dbd"
"Installing dbd file ../../../dbd/NDPluginROI.dbd"
"Installing dbd file ../../../dbd/NDPluginStats.dbd"
"Installing dbd file ../../../dbd/NDPluginStdArrays.dbd"
"Installing dbd file ../../../dbd/NDPluginTransform.dbd"
"Installing generic include file ../../../include/NDPluginDriver.h"
"Installing generic include file ../../../include/NDPluginFile.h"
cl /nologo /EHsc /GR -c             /favor:blend /favor:blend   /nologo /D__STDC__=0 /D_CRT_SECURE_NO_DEPRECATE /D_CRT_N
ONSTDC_NO_DEPRECATE /nologo /D__STDC__=0 /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE   /RTCsu /Zi    /W3 /w44
355     -DHAVE_PVAPI -DLIBTIFF_STATIC   /MTd -DEPICS_DLL_NO /TP   -I. -I..\\O.Common -I. -I.. -I..\\..\\..\\include\\os\
\WIN32 -I..\\..\\..\\include    -IC:\epics\synApps_5_6\support\\asyn-4-18\\include  -IC:\epics\synApps_5_6\support\\calc
-2-9\\include  -IC:\epics\synApps_5_6\support\\busy-1-4\\include  -IC:\epics\synApps_5_6\support\\sscan-2-7\\include -IC
:\epics\synApps_5_6\support\\mca-7-1\\include\\os\\WIN32 -IC:\epics\synApps_5_6\support\\mca-7-1\\include -IC:\epics\syn
Apps_5_6\support\\autosave-4-8\\include\\os\\WIN32 -IC:\epics\synApps_5_6\support\\autosave-4-8\\include -IC:\epics\synA
pps_5_6\support\\areaDetector-1-8beta1\\include\\os\\WIN32 -IC:\epics\synApps_5_6\support\\areaDetector-1-8beta1\\includ
e -IC:\epics\base\base-R3-14-12-1\\include\\os\\WIN32 -IC:\epics\base\base-R3-14-12-1\\include       ..\\NDPluginDriver.
cpp
NDPluginDriver.cpp
..\NDPluginDriver.cpp(458) : warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data
cl /nologo /EHsc /GR -c             /favor:blend /favor:blend   /nologo /D__STDC__=0 /D_CRT_SECURE_NO_DEPRECATE /D_CRT_N
ONSTDC_NO_DEPRECATE /nologo /D__STDC__=0 /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE   /RTCsu /Zi    /W3 /w44
355     -DHAVE_PVAPI -DLIBTIFF_STATIC   /MTd -DEPICS_DLL_NO /TP   -I. -I..\\O.Common -I. -I.. -I..\\..\\..\\include\\os\
\WIN32 -I..\\..\\..\\include    -IC:\epics\synApps_5_6\support\\asyn-4-18\\include  -IC:\epics\synApps_5_6\support\\calc
-2-9\\include  -IC:\epics\synApps_5_6\support\\busy-1-4\\include  -IC:\epics\synApps_5_6\support\\sscan-2-7\\include -IC
:\epics\synApps_5_6\support\\mca-7-1\\include\\os\\WIN32 -IC:\epics\synApps_5_6\support\\mca-7-1\\include -IC:\epics\syn
Apps_5_6\support\\autosave-4-8\\include\\os\\WIN32 -IC:\epics\synApps_5_6\support\\autosave-4-8\\include -IC:\epics\synA
pps_5_6\support\\areaDetector-1-8beta1\\include\\os\\WIN32 -IC:\epics\synApps_5_6\support\\areaDetector-1-8beta1\\includ
e -IC:\epics\base\base-R3-14-12-1\\include\\os\\WIN32 -IC:\epics\base\base-R3-14-12-1\\include       ..\\NDPluginFile.cp
p
NDPluginFile.cpp
cl /nologo /EHsc /GR -c             /favor:blend /favor:blend   /nologo /D__STDC__=0 /D_CRT_SECURE_NO_DEPRECATE /D_CRT_N
ONSTDC_NO_DEPRECATE /nologo /D__STDC__=0 /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE   /RTCsu /Zi    /W3 /w44
355     -DHAVE_PVAPI -DLIBTIFF_STATIC   /MTd -DEPICS_DLL_NO /TP   -I. -I..\\O.Common -I. -I.. -I..\\..\\..\\include\\os\
\WIN32 -I..\\..\\..\\include    -IC:\epics\synApps_5_6\support\\asyn-4-18\\include  -IC:\epics\synApps_5_6\support\\calc
-2-9\\include  -IC:\epics\synApps_5_6\support\\busy-1-4\\include  -IC:\epics\synApps_5_6\support\\sscan-2-7\\include -IC
:\epics\synApps_5_6\support\\mca-7-1\\include\\os\\WIN32 -IC:\epics\synApps_5_6\support\\mca-7-1\\include -IC:\epics\syn
Apps_5_6\support\\autosave-4-8\\include\\os\\WIN32 -IC:\epics\synApps_5_6\support\\autosave-4-8\\include -IC:\epics\synA
pps_5_6\support\\areaDetector-1-8beta1\\include\\os\\WIN32 -IC:\epics\synApps_5_6\support\\areaDetector-1-8beta1\\includ
e -IC:\epics\base\base-R3-14-12-1\\include\\os\\WIN32 -IC:\epics\base\base-R3-14-12-1\\include       ..\\NDFileNetCDF.cp
p
NDFileNetCDF.cpp
..\NDFileNetCDF.cpp(11) : fatal error C1083: Cannot open include file: 'netcdf.h': No such file or directory
make[4]: *** [NDFileNetCDF.obj] Error 2
make[4]: Leaving directory `C:/epics/synApps_5_6/support/areaDetector-1-8beta1/ADApp/pluginSrc/O.windows-x64'
make[3]: *** [install.windows-x64] Error 2
make[3]: Leaving directory `C:/epics/synApps_5_6/support/areaDetector-1-8beta1/ADApp/pluginSrc'
make[2]: *** [pluginSrc.install] Error 2
make[2]: Leaving directory `C:/epics/synApps_5_6/support/areaDetector-1-8beta1/ADApp'
make[1]: *** [ADApp.install] Error 2
make[1]: Leaving directory `C:/epics/synApps_5_6/support/areaDetector-1-8beta1'
make: *** [C:\epics\synApps_5_6\support/areaDetector-1-8beta1.install] Error 2
c:\epics\synApps_5_6\support>


Magick issue:

CORE_RL_Magick++_.lib(Image.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match
 value '2' in NDPlugin.lib(NDFileMagick.obj)
CORE_RL_Magick++_.lib(Thread.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't matc
h value '2' in NDPlugin.lib(NDFileMagick.obj)
CORE_RL_Magick++_.lib(ImageRef.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't ma
tch value '2' in NDPlugin.lib(NDFileMagick.obj)
CORE_RL_Magick++_.lib(Options.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't mat
ch value '2' in NDPlugin.lib(NDFileMagick.obj)
CORE_RL_Magick++_.lib(Exception.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't m
atch value '2' in NDPlugin.lib(NDFileMagick.obj)
CORE_RL_Magick++_.lib(Geometry.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't ma
tch value '2' in NDPlugin.lib(NDFileMagick.obj)
CORE_RL_Magick++_.lib(Color.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match
 value '2' in NDPlugin.lib(NDFileMagick.obj)
CORE_RL_Magick++_.lib(Drawable.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't ma
tch value '2' in NDPlugin.lib(NDFileMagick.obj)
CORE_RL_Magick++_.lib(Pixels.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't matc
h value '2' in NDPlugin.lib(NDFileMagick.obj)
CORE_RL_Magick++_.lib(Blob.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match
value '2' in NDPlugin.lib(NDFileMagick.obj)
CORE_RL_Magick++_.lib(Functions.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't m
atch value '2' in NDPlugin.lib(NDFileMagick.obj)
CORE_RL_Magick++_.lib(BlobRef.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't mat
ch value '2' in NDPlugin.lib(NDFileMagick.obj)
LIBCMT.lib(invarg.obj) : error LNK2005: _initp_misc_invarg already defined in LIBCMTD.lib(invarg.obj)
LIBCMT.lib(invarg.obj) : error LNK2005: _call_reportfault already defined in LIBCMTD.lib(invarg.obj)
LIBCMT.lib(invarg.obj) : error LNK2005: _set_invalid_parameter_handler already defined in LIBCMTD.lib(invarg.obj)
LIBCMT.lib(invarg.obj) : error LNK2005: _get_invalid_parameter_handler already defined in LIBCMTD.lib(invarg.obj)
LIBCMT.lib(invarg.obj) : error LNK2005: _invoke_watson already defined in LIBCMTD.lib(invarg.obj)
LIBCMT.lib(invarg.obj) : error LNK2005: "void __cdecl _invoke_watson(unsigned short const *,unsigned short const *,unsig
ned short const *,unsigned int,unsigned __int64)" (?_invoke_watson@@YAXPEBG00I_K@Z<mailto:?_invoke_watson@@YAXPEBG00I_K@Z>) already defined in LIBCMTD.lib(invar
g.obj)
LIBCMT.lib(invarg.obj) : error LNK2005: _invalid_parameter already defined in LIBCMTD.lib(invarg.obj)
LIBCMT.lib(invarg.obj) : error LNK2005: "void __cdecl _invalid_parameter(unsigned short const *,unsigned short const *,u
nsigned short const *,unsigned int,unsigned __int64)" (?_invalid_parameter@@YAXPEBG00I_K@Z<mailto:?_invalid_parameter@@YAXPEBG00I_K@Z>) already defined in LIBCMTD.l
ib(invarg.obj)
LIBCMT.lib(invarg.obj) : error LNK2005: __pInvalidArgHandler already defined in LIBCMTD.lib(invarg.obj)
LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library
simDetectorApp_registerRecordDeviceDriver.obj : error LNK2001: unresolved external symbol pvar_func_NDFileNetCDFRegister
simDetectorApp.exe : fatal error LNK1120: 1 unresolved externals
make[2]: *** [simDetectorApp.exe] Error 1120
make[2]: Leaving directory `c:/epics/synApps_5_6/support/areaDetector-1-8beta1/ADApp/simDetectorSrc/O.windows-x64'
make[1]: *** [install.windows-x64] Error 2
make[1]: Leaving directory `c:/epics/synApps_5_6/support/areaDetector-1-8beta1/ADApp/simDetectorSrc'
make: *** [simDetectorSrc.install] Error 2



References:
Trouble compiling areaDetector1-8beta1 Gessner, Spencer J.

Navigate by Date:
Prev: RE: labCa build fails on 64 bit Windows james.rowland
Next: Problem installing CA for QT manta santosh aditya santosh_aditya
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017 
Navigate by Thread:
Prev: Trouble compiling areaDetector1-8beta1 Gessner, Spencer J.
Next: undefined symbol:MAXvSetup 洪春霞
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·