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

Subject: Re: Help creating motorR6-9 examples
From: "Ronald L. Sluiter" <sluiter@anl.gov>
To: Guilherme Jovanini Montagner <guilherme@setup.com.br>, <tech-talk@aps.anl.gov>
Date: Tue, 12 Sep 2017 15:06:32 -0500
If you did not run "make" from the top level "motorR6-9" directory, that could be why you are getting these errors. The EPICS motor module, like EPICS base and most other EPICS modules, assumes that "make" is run 1st from the top level directory. After running 'make' from the top level you can make custom changes and taylor the module to your specific needs, but you should run make from the top 1st.

Ron

On 09/12/2017 02:57 PM, Ronald L. Sluiter wrote:
Hello Guilherme,

I am guessing that the SoftMotorSrc directory did not get built. If you 'ls' the SoftMotorSrc directory you should get this;

% ls motorApp/SoftMotorSrc
devSoftAux.cc devSoft.cc devSoft.h devSoftMotor.dbd Makefile O.Common O.linux-x86_64
and there should be a 'devSoftMotor.dbd' file installed in the top 'dbd' directory.

galadriel% ls dbd
ACRMotorSupport.dbd devDeltaTau.dbd devMclennanMotor.dbd devNewport.dbd devPIJena.dbd *devSoftMotor.dbd* MicronixSupport.dbd motorSupport.dbd omsAsynSupport.dbd devAcsMotor.dbd devFaulhaberMotor.dbd devMicos.dbd devOms.dbd devPIMotor.dbd devSPiiPlus.dbd motorRecord.dbd NoAsyn.dbd phytron.dbd devAerotech.dbd devImsMotor.dbd devMicroMo.dbd devOriel.dbd devSmarActMCSMotor.dbd devThorLabs.dbd motorSim.dbd NoAsynVx.dbd PI_GCS2Support.dbd devAttocube.dbd devKohzuMotor.dbd devNewFocus.dbd devPC6K.dbd devSmartMotorMotor.dbd HytecMotorDriver.dbd motorSimSupport.dbd NPointMotorSupport.dbd

What do you see in those two directories?

Ron

On 09/12/2017 02:25 PM, Guilherme Jovanini Montagner wrote:
Hi!
I'm involved in a Project in which EPICS is to be used, and am currently trying to create a working example using a PI piezo controller.
I want some help doing this.
I've uncommented the lines

DIRS += motorExApp iocBoot
motorExApp_DEPEND_DIRS = motorApp
iocBoot_DEPEND_DIRS = motorExApp

from the top makefile. I've also uncommented the line "MOTOR=$(TOP)" in configure/RELEASE file
Also, on the file motorApp/Makefile, I've got the lines

DIRS +=PIGCS2Src
PIGCS2Src_DEPEND_DIRS = MotorSrc

uncommented.

The problem is, when I run make on top, I get the following message:

[setup@localhost motorExApp]$ make
make -C ./NoAsyn install
make[1]: Entering directory `/home/setup/Downloads/support/motor/motorR6-9/motorExApp/NoAsyn'
make -C O.linux-x86_64 -f ../Makefile TOP=../../.. \
    T_A=linux-x86_64 install
make[2]: Entering directory `/home/setup/Downloads/support/motor/motorR6-9/motorExApp/NoAsyn/O.linux-x86_64'
Creating dbd file NoAsyn.dbd
perl -CSD /home/setup/Downloads/base-3.16.1/bin/linux-x86_64/dbdExpand.pl -I. -I.. -I../O.Common -I../../../dbd -I/home/setup/Downloads/support/asyn4-31/dbd -I/home/setup/Downloads/base-3.16.1/dbd -o NoAsyn.dbd base.dbd motorRecord.dbd devSoftMotor.dbd Misc.dbd
dbdExpand.pl: Can't find file 'devSoftMotor.dbd'
  while reading 'devSoftMotor.dbd' to create 'NoAsyn.dbd'
  Your Makefile may need this dependency rule:
    $(COMMON_DIR)/NoAsyn.dbd: $(COMMON_DIR)/devSoftMotor.dbd
dbdExpand.pl: Exiting due to errors
make[2]: *** [../O.Common/NoAsyn.dbd] Error 255
make[2]: Leaving directory `/home/setup/Downloads/support/motor/motorR6-9/motorExApp/NoAsyn/O.linux-x86_64'
make[1]: *** [install.linux-x86_64] Error 2
make[1]: Leaving directory `/home/setup/Downloads/support/motor/motorR6-9/motorExApp/NoAsyn'
make: *** [NoAsyn.install] Error 2



Then, I proceeded to add the mentioned line on motorExApp/NoAsyn/Makefile:

#----------------------------------------
#
 ADD MACRO DEFINITIONS AFTER THIS LINE
#=============================
$(COMMON_DIR)/NoAsyn.dbd: $(COMMON_DIR)/devSoftMotor.dbd
PROD_IOC_DEFAULT = NoAsyn
PROD_IOC_vxWorks = NoAsynVx

COMMONDBDS  = base.dbd
COMMONDBDS += motorRecord.dbd
COMMONDBDS += devSoftMotor.dbd
#!COMMONDBDS += devMXmotor.dbd



but when I run make again, after doing that, I get the following error:



[setup@localhost motorExApp]$ make
make -C ./NoAsyn install
make[1]: Entering directory `/home/setup/Downloads/support/motor/motorR6-9/motorExApp/NoAsyn'
make -C O.linux-x86_64 -f ../Makefile TOP=../../.. \
    T_A=linux-x86_64 install
make[2]: Entering directory `/home/setup/Downloads/support/motor/motorR6-9/motorExApp/NoAsyn/O.linux-x86_64'
Creating dbd file devSoftMotor.dbd
perl -CSD /home/setup/Downloads/base-3.16.1/bin/linux-x86_64/dbdExpand.pl -I. -I.. -I../O.Common -I../../../dbd -I/home/setup/Downloads/support/asyn4-31/dbd -I/home/setup/Downloads/base-3.16.1/dbd -o devSoftMotor.dbd
dbdExpand.pl: No input files for devSoftMotor.dbd
make[2]: *** [../O.Common/devSoftMotor.dbd] Error 255
make[2]: Leaving directory `/home/setup/Downloads/support/motor/motorR6-9/motorExApp/NoAsyn/O.linux-x86_64'
make[1]: *** [install.linux-x86_64] Error 2
make[1]: Leaving directory `/home/setup/Downloads/support/motor/motorR6-9/motorExApp/NoAsyn'
make: *** [NoAsyn.install] Error 2
[setup@localhost motorExApp]$

I don't know where is this devSoftMotor.dbd being called, and why it doesn't have input arguments.

Could you help me, please?
Thanks,
Guilherme


*Guilherme Jovanini Montagner*
+55 19 2517.8911
+55 19 99806.9117
guilherme@setup.com.br

--------------------------------------------------------------------------------



Replies:
Re: Help creating motorR6-9 examples Guilherme Jovanini Montagner
References:
Help creating motorR6-9 examples Guilherme Jovanini Montagner
Re: Help creating motorR6-9 examples Ronald L. Sluiter

Navigate by Date:
Prev: Re: Help creating motorR6-9 examples Ronald L. Sluiter
Next: Re: Help creating motorR6-9 examples Guilherme Jovanini Montagner
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
Navigate by Thread:
Prev: Re: Help creating motorR6-9 examples Ronald L. Sluiter
Next: Re: Help creating motorR6-9 examples Guilherme Jovanini Montagner
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
ANJ, 12 Sep 2017 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·