EPICS Home

Experimental Physics and Industrial Control System


 
1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  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  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Build IOC linking external *.lib file failed
From: "zhangning2095" <[email protected]>
To: "tech-talk" <[email protected]>
Date: Mon, 6 Sep 2010 11:07:34 +0800
Hi,All:
I am trying to setup a IOC example in tek DPO scope, which need to use the visa32.lib in this project, I copied visa32.lib
 
to $(top)/myAppapp/lib folder(top is the root of this example),and in makefile in src,I add the following line:
 
#----------------------------------------
 
#  ADD MACRO DEFINITIONS AFTER THIS LINE
SYS_PROD_LIBS += $(TOP)/myappApp/lib/visa32
#=============================
 
and build failed, could you tell me how to do ?
Thank you
 
Tomas
2010.9.2
PS:my enveriment is : winXP, cygwin1.5, gcc, make 3.81, perl, base 3.14.11
 
and this is the result :
 

张宁@zn /cygdrive/c/testapp
$ make
make -C ./configure install
make[1]: Entering directory `/cygdrive/c/testapp/configure'
make -C O.cygwin-x86 -f ../Makefile TOP=../.. T_A=cygwin-x86 install
make[2]: Entering directory `/cygdrive/c/testapp/configure/O.cygwin-x86'
perl /cygdrive/c/base-3.14.11/bin/cygwin-x86/convertRelease.pl checkRelease
make[2]: Leaving directory `/cygdrive/c/testapp/configure/O.cygwin-x86'
make[1]: Leaving directory `/cygdrive/c/testapp/configure'
make -C ./myappApp install
make[1]: Entering directory `/cygdrive/c/testapp/myappApp'
make -C ./src install
make[2]: Entering directory `/cygdrive/c/testapp/myappApp/src'
make -C O.cygwin-x86 -f ../Makefile TOP=../../.. T_A=cygwin-x86 install
make[3]: Entering directory `/cygdrive/c/testapp/myappApp/src/O.cygwin-x86'
perl /cygdrive/c/base-3.14.11/bin/cygwin-x86/makeIncludeDbd.pl base.dbd xxxSuppo
rt.dbd dbSubExample.dbd myappHello.dbd initTrace.dbd ../O.Common/myappInclude.db
d
Expanding dbd
/cygdrive/c/base-3.14.11/bin/cygwin-x86/dbExpand.exe  -I . -I .. -I ../../../dbd
 -I/cygdrive/c/base-3.14.11/dbd -o ../O.Common/myapp.dbd ../O.Common/myappInclud
e.dbd
Installing created dbd file ../../../dbd/myapp.dbd
g++ -o myappSupport.dll -shared -Wl,--out-implib,myappSupport.lib -Lc:/base-3.14
.11/lib/cygwin-x86       -m32               xxxRecord.o devXxxSoft.o dbSubExampl
e.o myappHello.o initTrace.o devWfSoft.o    -lrecIoc -lsoftDevIoc -lmiscIoc -lrs
rvIoc -ldbtoolsIoc -lasIoc -ldbIoc -lregistryIoc -ldbStaticIoc -lca -lCom  -l../
../../myappApp/lib/visa32 -lpthread   -lreadline -lcurses -lm
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld: cannot find
 -l../../../myappApp/lib/visa32
collect2: ld returned 1 exit status
make[3]: *** [myappSupport.dll] Error 1
make[3]: Leaving directory `/cygdrive/c/testapp/myappApp/src/O.cygwin-x86'
make[2]: *** [install.cygwin-x86] Error 2
make[2]: Leaving directory `/cygdrive/c/testapp/myappApp/src'
make[1]: *** [src.install] Error 2
make[1]: Leaving directory `/cygdrive/c/testapp/myappApp'
make: *** [myappApp.install] Error 2
 
张宁@zn /cygdrive/c/testapp
$
 
Tomas
2010-9-2

Replies:
RE: Build IOC linking external *.lib file failed Mark Rivers
RE: Build IOC linking external *.lib file failed Mark Rivers

Navigate by Date:
Prev: Re: access security file Andrew Johnson
Next: msi and scoping Benjamin Franksen
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: access security file Andrew Johnson
Next: RE: Build IOC linking external *.lib file failed Mark Rivers
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024