EPICS Controls 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  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  <20232024  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  <20232024 
<== Date ==> <== Thread ==>

Subject: Re: areaDetector error in mingw, windows
From: Ralph Lange via Tech-talk <tech-talk at aps.anl.gov>
To: EPICS Tech Talk <tech-talk at aps.anl.gov>
Cc: lynn <lynn0703 at yeah.net>
Date: Thu, 13 Apr 2023 15:31:02 +0200
On Thu, 13 Apr 2023 at 15:22, lynn via Tech-talk <tech-talk at aps.anl.gov> wrote:
    I want to use areaDetector, using Ming 64,Windows Home 64.
    base 7.0.7, asyn, areaDetector and other module are all new version from git.

    I am not quite sure about how to install it, using windows lib and software. But I know linux way, so i install it just like linux OS, except EPICS_HOST_ARCH or something.
   
I did these, before i make areaDetector :
1) base,asyn, busy and other module was installed well and prepare areaDetector( ADSupport, ADCore)  
2) cp and modify  release.local, release_libs.local,release_prods.local,config_site.local  
3) make and error came out( error message at bottom)
4) Then I tried CONFIG_SITE.local.linux-x86.win32-x86-mingw,CONFIG_SITE.local.linux-x86.win32-x86-mingw-static  and CONFIG_SITE.local.WIN32, all  failed.
5) I also try to configure areaDetector, using GraphicsMagick external, still in mingw environment.
configure && make :
libtool:   error: Could not determine host file name corresponding to
libtool:   error:   'Magick++/lib/.libs/' :

And I want to know:
Considering i did much work using linux way in mingw environment. 
1) how to fix the error below? 
2) if you have better way, please let me know it.  
 
Output of areaDetector make: (in Mingw 64)
 C:/msys64/mingw64/include/objidl.h:11436:11: error: reference to 'byte' is ambiguous
11436 |     const byte *pv,
      |           ^~~~
C:/msys64/mingw64/include/c++/12.2.0/bits/cpp_type_traits.h:406:30: note: candidates are: 'enum class std::byte'
  406 |   enum class byte : unsigned char;
      |                              ^~~~
C:/msys64/mingw64/include/rpcndr.h:63:25: note:                 'typedef unsigned char byte'
   63 |   typedef unsigned char byte;
      |                         ^~~~
In file included from C:/msys64/mingw64/include/msxml.h:311,
                 from C:/msys64/mingw64/include/urlmon.h:458,
                 from C:/msys64/mingw64/include/objbase.h:163:
C:/msys64/mingw64/include/oaidl.h:587:5: error: reference to 'byte' is ambiguous

There's a bug that a web search turns up:

From the comments in that bug, you might want to try something like adding '-std=c++11' to the C++ compiler options.
USR_CXXFLAGS += -std=c++11
in a CONFIG_SITE file, maybe in an architecture-specific one.

Don't use any of the win32-x86 architectures - these are for 32 bit Windows.

Cheers,
~Ralph


References:
areaDetector error in mingw, windows lynn via Tech-talk

Navigate by Date:
Prev: modbus ioc start Dale Cox via Tech-talk
Next: Re: areaDetector error in mingw, windows Mark Rivers via Tech-talk
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  <20232024 
Navigate by Thread:
Prev: areaDetector error in mingw, windows lynn via Tech-talk
Next: Re: areaDetector error in mingw, windows Mark Rivers via Tech-talk
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  <20232024 
ANJ, 13 Apr 2023 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·