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  <20182019  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 
<== Date ==> <== Thread ==>

Subject: RE: EPICS on windows
From: <freddie.akeroyd@stfc.ac.uk>
To: <rivers@cars.uchicago.edu>, <vishnu.patel@rediffmail.com>
Cc: tech-talk@aps.anl.gov
Date: Sun, 21 Jan 2018 21:45:39 +0000

Hi Vishnu,

 

As Mark mentions, you will need to add the location of the DLL to the windows PATH environment variable. A dllPath.bat file can be used to set this from the windows command line, but to set it directly from a Cygwin bash terminal I think you can add     relPaths.sh    to TARGET and run that.

 

I had a look at the s7nodave source code and with a few changes was able to get it to compile on native Windows. I’ve no way of testing it myself, but am happy to send you the changes if you wanted to try them

 

Regards,

 

Freddie    

 

 

From: tech-talk-bounces@aps.anl.gov [mailto:tech-talk-bounces@aps.anl.gov] On Behalf Of Mark Rivers
Sent: 21 January 2018 17:05
To: 'vishnu.patel@rediffmail.com'
Cc: techtalk
Subject: RE: EPICS on windows

 

s7nodave.dll is built as part of your EPICS build, right?

 

If so, then you should just need to set your PATH to include the directory where s2nodave.dll is located.

 

In your iocBoot/iocxxx/Makefile if you add this line then EPICS will build a command file to set your PATH.

 

TARGETS += dllPath.bat

 

Mark

 

 

From: vishnu.patel@rediffmail.com [mailto:vishnu.patel@rediffmail.com]
Sent: Sunday, January 21, 2018 10:58 AM
To: Mark Rivers <rivers@cars.uchicago.edu>
Cc: techtalk <tech-talk@aps.anl.gov>
Subject: Re: EPICS on windows

 

Hi Mark,
   Thanks.
I am using cygwin because i would like to test s7nodave on windows for Siemens S7 communication.
s7nodave using nodave library, which is coded for linux, I am not able to compile on Windows native compiler. 

I succeed to compile base3.14.12.7 with asyn3.24 in cygwin .
Thanks

Dear All

If any one using s7nodave on cygwin for siemens PLC please help me.
I could compile s7nodave on cygwin, 
With application for PLC it get compile without any error.  But while running application getting dll error,

$ ../../bin/cygwin-x86/firsPLC.exe  st.cmd
C:/cygwin/epics/Devlop/firstPLC/bin/cygwin-x86/firsPLC.exe: error while loading shared libraries: s7nodave.dll: cannot open shared object file: No such file or directory


Or someone have compiled s7nodave on native windows compiler>


Thanks
Vishnu





From: Mark Rivers <rivers@cars.uchicago.edu>
Sent: Thu, 04 Jan 2018 10:19:33
To: Vishnu Patel <vishnu.patel@rediffmail.com>, techtalk <tech-talk@aps.anl.gov>
Subject: Re: EPICS on windows

Hi Vishnu,


How did you define EPICS_BASE in seq-2.2.5/configure/RELEASE?  It looks like you may have used a relative path, because your gcc command has this:

-I../../../../../base-3.16.1/include/compiler/gcc


You should use an absolute path to EPICS_BASE.


Note that not much testing is done on cygwin any more.  I would suggest that you consider using the Visual Studio Community Edition which is free, and which is well tested.


Mark



________________________________
From: tech-talk-bounces@aps.anl.gov <tech-talk-bounces@aps.anl.gov> on behalf of Vishnu Patel <vishnu.patel@rediffmail.com>
Sent: Wednesday, January 3, 2018 10:24 PM
To: techtalk
Subject: EPICS on windows

Hi,
  I want to use EPICS on Windows 7 -64bit.
I installed Cygwin, the epics base-3.16.1 is compiled with Cygwin.

Next i tried to compile sequencer, seq2.2.5, but i am not able to compile it. It gives an error.

--------------------------------------------
user3@user3-PC /cygdrive/c/epics/modules/seq-2.2.5
$ make
make -C ./configure install
make[1]: Entering directory '/cygdrive/c/epics/modules/seq-2.2.5/configure'
make -C O.cygwin-x86_64 -f ../Makefile TOP=../.. \
   T_A=cygwin-x86_64 install
make[2]: Entering directory '/cygdrive/c/epics/modules/seq-2.2.5/configure/O.cygwin-x86_64'
perl -CSD /cygdrive/c/epics/base-3.16.1/bin/cygwin-x86_64/convertRelease.pl checkRelease
make[2]: Leaving directory '/cygdrive/c/epics/modules/seq-2.2.5/configure/O.cygwin-x86_64'
make[1]: Leaving directory '/cygdrive/c/epics/modules/seq-2.2.5/configure'
make -C ./src install
make[1]: Entering directory '/cygdrive/c/epics/modules/seq-2.2.5/src'
make -C ./pv install
make[2]: Entering directory '/cygdrive/c/epics/modules/seq-2.2.5/src/pv'
make -C O.cygwin-x86_64 -f ../Makefile TOP=../../.. \
   T_A=cygwin-x86_64 install
make[3]: Entering directory '/cygdrive/c/epics/modules/seq-2.2.5/src/pv/O.cygwin-x86_64'
gcc  -D_POSIX_THREADS -D_POSIX_TIMERS            -DUNIX  -DCYGWIN32     -O3 -g   -Wall      -m64   -DEPICS_BUILD_DLL -DEPICS_CALL_DLL   -I. -I../O.Common -I. -I. -I.. -I../../../include/compiler/gcc -I../../../include/os/cygwin32 -I../../../include -I../../../../../base-3.16.1/include/compiler/gcc -I../../../../../base-3.16.1/include/os/cygwin32 -I../../../../../base-3.16.1/include         -MM -MF pv.d -MT pv.obj ../pv.c
../pv.c:5:10: fatal error: cadef.h: No such file or directory
#include "cadef.h"
         ^~~~~~~~~
compilation terminated.
gcc  -D_POSIX_THREADS -D_POSIX_TIMERS            -DUNIX  -DCYGWIN32     -O3 -g   -Wall      -m64   -DEPICS_BUILD_DLL -DEPICS_CALL_DLL   -I. -I../O.Common -I. -I. -I.. -I../../../include/compiler/gcc -I../../../include/os/cygwin32 -I../../../include -I../../../../../base-3.16.1/include/compiler/gcc -I../../../../../base-3.16.1/include/os/cygwin32 -I../../../../../base-3.16.1/include        -o pv.obj -c ../pv.c
../pv.c:5:10: fatal error: cadef.h: No such file or directory
#include "cadef.h"
         ^~~~~~~~~
compilation terminated.
make[3]: *** [../../../../../base-3.16.1/configure/RULES_BUILD:231: pv.obj] Error 1
make[3]: Leaving directory '/cygdrive/c/epics/modules/seq-2.2.5/src/pv/O.cygwin-x86_64'
make[2]: *** [../../../../base-3.16.1/configure/RULES_ARCHS:58: install.cygwin-x86_64] Error 2
make[2]: Leaving directory '/cygdrive/c/epics/modules/seq-2.2.5/src/pv'
make[1]: *** [../../../base-3.16.1/configure/RULES_DIRS:84: pv.install] Error 2
make[1]: Leaving directory '/cygdrive/c/epics/modules/seq-2.2.5/src'
make: *** [../../base-3.16.1/configure/RULES_DIRS:84: src.install] Error 2

user3@user3-PC /cygdrive/c/epics/modules/seq-2.2.5
----------------------------



Thanks
Vishnu


References:
Re: EPICS on windows Mark Rivers
Re: EPICS on windows Vishnu Patel
RE: EPICS on windows Mark Rivers

Navigate by Date:
Prev: RE: Seq-2.2.5 compilation on windows Mark Rivers
Next: EPICS Support for RedPitaya Andraz Pozar
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 
Navigate by Thread:
Prev: RE: EPICS on windows Mark Rivers
Next: void return value in RPC renato sanhueza
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 
ANJ, 21 Jan 2018 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·