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:Re: areaDetector error in mingw, windows
From: lynn via Tech-talk <tech-talk at aps.anl.gov>
To: "Mark Rivers" <rivers at cars.uchicago.edu>
Cc: tech-talk <tech-talk at aps.anl.gov>
Date: Fri, 14 Apr 2023 17:57:08 +0800 (CST)
Hi Mark and Ralph,
   Thank you for your answer. I choose an easy way, set WITH_GRAPHICSMAGICK=NO and work well.

Actually, I intend to use xspress3 module in mingw of windows.
And i did these thing and met some error again.

1) i installed xspress3 module well, but there isn't bin file( mingw-64, base7.0.7, asyn, areaDetector and others good).
I want to know. Could I do some setting, make the bin file of xspress3 came out directly after make command?

2) Since there isn't bin file, I try: [1] create an ioc using makeBaseApp.pl.  [2] add st.cmd of xspess.
But something wrong during [1].
I did these:
    (a) type: $(BASE)/bin/windows-x64-mingw/makeBaseApp.pl -t example example
    (b) type: $(BASE)/bin/windows-x64-mingw/makeBaseApp.pl -i -t example example
    (c) choose windos-x64-mingw,
   The following target architectures are available in base:
    windows-x64
    windows-x64-mingw
         P.S. There are two file in my &(BASE)/bin/.   "window-x64" and "windows-x64-mingw"
    (d) make, no error
    (e) start the ioc
$ ../../bin/windows-x64-mingw/example.exe st.cmd
#!../../bin/windows-x64-mingw/example
< envPaths
epicsEnvSet("IOC","iocexample")
epicsEnvSet("TOP","/home/dell/all")
epicsEnvSet("EPICS_BASE","/home/dell/base-7.0.7")
cd "/home/dell/all"
Invalid directory path, ignored
## Register all support components
dbLoadDatabase "dbd/example.dbd"
filename="../dbStatic/dbLexRoutines.c" line number=276dbRead opening file dbd/example.dbd
example_registerRecordDeviceDriver pdbbase
registerRecordDeviceDriver failed aSub
registerRecordDeviceDriver failed aai
***
***
registryJLinkAdd failed trace
registryJLinkAdd failed pva
## Load record instances
dbLoadTemplate "db/user.substitutions"
dbLoadTemplate: error opening sub file db/user.substitutions
dbLoadRecords "db/exampleVersion.db", "user=dell"
filename="../dbStatic/dbLexRoutines.c" line number=276dbRead opening file db/exampleVersion.db
dbLoadRecords: failed to load 'db/exampleVersion.db'
dbLoadRecords "db/dbSubExample.db", "user=dell"
filename="../dbStatic/dbLexRoutines.c" line number=276dbRead opening file db/dbSubExample.db
dbLoadRecords: failed to load 'db/dbSubExample.db'
cd "/home/dell/all/iocBoot/iocexample"
Invalid directory path, ignored
iocInit
Starting iocInit
checkDatabase: menuConvert not defined.
iocBuild: Aborting, bad database definition (DBD)!

Base 7.0.7 was right. These process should be good in linux. I don't know what is wrong with it.
So could someone do me a favor. I just want to use xspress in mingw.


Regards,
Lynn

--

在 2023-04-13 21:31:14,"Mark Rivers" <rivers at cars.uchicago.edu> 写道:

Hi Lynn,

You probably don't really need GraphicsMagick.  I suggest you changed areaDetector/configure/CONFIG_SITE.local to set WITH_GRAPHICSMAGICK=NO.

See if you then get any other errors.

Mark


From: Tech-talk <tech-talk-bounces at aps.anl.gov> on behalf of lynn via Tech-talk <tech-talk at aps.anl.gov>
Sent: Thursday, April 13, 2023 5:38 AM
To: tech-talk <tech-talk at aps.anl.gov>
Subject: areaDetector error in mingw, windows
 
Hi,
    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
  587 |     byte *pRecord;
      |     ^~~~
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;
      |                         ^~~~
make[6]: *** [/home/dell/base-7.0.7/configure/RULES_BUILD:267: Image.obj] Error 1
make[6]: Leaving directory '/home/dell/areaDetector-master/ADSupport/supportApp/GraphicsMagickSrc/Magick++/lib/O.windows-x64-mingw'
make[5]: *** [/home/dell/base-7.0.7/configure/RULES_ARCHS:58: install.windows-x64-mingw] Error 2
make[5]: Leaving directory '/home/dell/areaDetector-master/ADSupport/supportApp/GraphicsMagickSrc/Magick++/lib'
make[4]: *** [/home/dell/base-7.0.7/configure/RULES_DIRS:85: lib.install] Error 2
make[4]: Leaving directory '/home/dell/areaDetector-master/ADSupport/supportApp/GraphicsMagickSrc/Magick++'
make[3]: *** [/home/dell/base-7.0.7/configure/RULES_DIRS:85: Magick++.install] Error 2
make[3]: Leaving directory '/home/dell/areaDetector-master/ADSupport/supportApp/GraphicsMagickSrc'
make[2]: *** [/home/dell/base-7.0.7/configure/RULES_DIRS:85: GraphicsMagickSrc.install] Error 2
make[2]: Leaving directory '/home/dell/areaDetector-master/ADSupport/supportApp'
make[1]: *** [/home/dell/base-7.0.7/configure/RULES_DIRS:85: supportApp.install] Error 2
make[1]: Leaving directory '/home/dell/areaDetector-master/ADSupport'
make: *** [/home/dell/base-7.0.7/configure/RULES_DIRS:85: /home/dell/areaDetector-master/ADSupport.install] Error 2

$ uname -a
MINGW64_NT-10.0-22000 DESKTOP-M04F14I 3.4.6.x86_64 2023-04-01 11:43 UTC x86_64 Msys
$ gcc --version
gcc.exe (Rev10, Built by MSYS2 project) 12.2.0
$ make --version
GNU Make 4.4.1
Built for x86_64-pc-msys


Regards,
Lynn


Replies:
Re: Re:Re: areaDetector error in mingw, windows Mark Rivers via Tech-talk
References:
areaDetector error in mingw, windows lynn via Tech-talk
Re: areaDetector error in mingw, windows Mark Rivers via Tech-talk

Navigate by Date:
Prev: Re: Is the Sequencer and SNL still widely used? Simon Rose via Tech-talk
Next: Open positions at PSI: Group Leader for Infrastructure and Services, Motion Control Specialist Baymani Simaolhoda 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: Re: areaDetector error in mingw, windows Mark Rivers via Tech-talk
Next: Re: Re: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, 15 Apr 2023 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·