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  <20152016  2017  2018  2019  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  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: Problem about cross-complie SynApps
From: Mark Rivers <[email protected]>
To: 吴洪金 <[email protected]>, "[email protected]" <[email protected]>
Date: Thu, 5 Feb 2015 03:05:48 +0000
Hi,

I have 3 comments and questions:

1) I don't understand this error, because on Tornado 2.2 the prototype for the stat function on my system is in:

 /usr/local/vw/tornado22-ppc/target/h/sys/stat.h

It is defined as follows:

extern    STATUS       stat (const char *name, struct stat *pStat);

So the first argument to stat is "const char *name", and that is what is being passed to it.  Why does your version appear to define it as

stat(char *, stat *)

2) You can certainly just comment out areaDetector from the top level Makefile, depending on what you plan to use EPICS for.  Do you want to run on vxWorks, and if so for what devices?

3) You are building synApps 5-6, which is over 3 years old.  synApps 5-7 is only 1.5 years old.  Perhaps you should try the newer version.

Mark



________________________________
From: [email protected] [[email protected]] on behalf of 吴洪金 [[email protected]]
Sent: Wednesday, February 04, 2015 8:23 PM
To: [email protected]
Subject: Problem about cross-complie SynApps


Hi, I am trying to cross-compile SynApps_5_6 on CentOS6.6 (32bit and runing in VMware),I have successfully finished cross-compling the base-3.14.12 on that CentOS6.6 . I have installed the: msi , re2c packages. It seems like that the problem is from cross-compling the "areaDetector-1-8beta1" App , because the I getting the following error :

............
............
/include      -I/home/wuhj/epics/Tornado2.2/target/h ../BISDetector.cpp
../BISDetector.cpp: In method `enum asynStatus BISDetector::readSFRM(const char *, epicsTimeStamp *, double, NDArray *)':
../BISDetector.cpp:153: passing `const char *' as argument 1 of `stat(char *, stat *)' discards qualifiers
make[3]: *** [BISDetector.o] Error 1
make[3]: Leaving directory `/home/wuhj/epics/synApps_5_6/support/areaDetector-1-8beta1/ADApp/brukerSrc/O.vxWorks-ppc604_long'
make[2]: *** [install.vxWorks-ppc604_l ong] Error 2
make[2]: Leaving directory `/home/wuhj/epics/synApps_5_6/support/areaDetector-1-8beta1/ADApp/brukerSrc'
make[1]: *** [brukerSrc.install] Error 2
make[1]: Leaving directory `/home/wuhj/epics/synApps_5_6/support/areaDetector-1-8beta1/ADApp'
make: *** [ADApp.install] Error 2


If I comment the areaDetector module in the file :$(support)/configure/RELEASE , then the whole SynApps will be successfully cross-compiled without errors .

I am new to EPICS and thanks a lot for the help .







References:
Problem about cross-complie SynApps 吴洪金

Navigate by Date:
Prev: Problem about cross-complie SynApps 吴洪金
Next: Fetching return value from external program call in StreamDevice Christian Pauly
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Problem about cross-complie SynApps 吴洪金
Next: Fetching return value from external program call in StreamDevice Christian Pauly
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 16 Dec 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·