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: Windows 10 LNK1181 error on xml2.lib
From: Mark Rivers via Tech-talk <tech-talk at aps.anl.gov>
To: Abdalla Ahmad <Abdalla.Ahmad at sesame.org.jo>, "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>, Mark Rivers <rivers at cars.uchicago.edu>
Date: Wed, 6 Dec 2023 14:39:49 +0000
Typo in my message:

  • Something is wrong with your setup if you need to add anything to LD_LIBRARY_PATH to build areaDetector on Windows.  

should be
  • Something is wrong with your setup if you need to add anything to LD_LIBRARY_PATH to build areaDetector on Linux.

Mark
  

From: Tech-talk <tech-talk-bounces at aps.anl.gov> on behalf of Mark Rivers via Tech-talk <tech-talk at aps.anl.gov>
Sent: Wednesday, December 6, 2023 8:36 AM
To: Abdalla Ahmad <Abdalla.Ahmad at sesame.org.jo>; tech-talk at aps.anl.gov <tech-talk at aps.anl.gov>
Subject: RE: Windows 10 LNK1181 error on xml2.lib
 

Hi Abdalla,

 

You did not tell us what EPICS_HOST_ARCH you are building for.  Is it windows-x64 or windows-x64-static?

You did not send the complete command that generated that error message.  Please do that.

 

  • Linux systems I get the similar linker error (Cannot find –lxml2) whenever which is resolved by adding the ADSupport/lib/linux-x86_64 to LD_LIBRARY_PATH

 

Something is wrong with your setup if you need to add anything to LD_LIBRARY_PATH to build areaDetector on Windows.  That should not be necessary. 

 

  • but on Windows 10 it is a different story. In my configure/CONFIG_STE I have XML2_EXTERNAL=NO, In my iocApp/src/Makefile,

 

XML2_EXTERNAL=NO must be set in the areaDetector/configure/CONFIG_SITE.local files.  That controls how ADSupport is built.  Did you do that?  You should not set XML2_EXTERNAL=NO in the iocApp/src/Makefile, you should only set it in the areaDetector/configure/CONFIG_SITE.local files.  Those should be loaded when you build the ADPcoWin application.

 

  • and the windows PATH variable points to the same location but still I get the same LNK1181 issue.

 

As with LD_LIBRARY_PATH on Linux there is no need to set PATH on Windows to include any areaDetector locations when building.

 

I just built ADPcoWin for both the windows-x64 and windows-x64-static architectures with no problems.  I am using the master branch of ADCore, ADSupport, ADPcoWin, and base 7.0.7.

 

Mark

 

 

 

From: Tech-talk <tech-talk-bounces at aps.anl.gov> On Behalf Of Abdalla Ahmad via Tech-talk
Sent: Tuesday, December 5, 2023 11:40 PM
To: tech-talk at aps.anl.gov
Subject: Windows 10 LNK1181 error on xml2.lib

 

Hi

 

I am trying to compile an ADPcoWin IOC on a Windows 10 host (EPICS Base 3.15.6 and master branches for all modules), basically the compilation for all modules is straightforward, but when compiling the IOC, I got the following error:

 

LNK1181: cannot open input file 'xml2.lib'

 

Linux systems I get the similar linker error (Cannot find –lxml2) whenever which is resolved by adding the ADSupport/lib/linux-x86_64 to LD_LIBRARY_PATH but on Windows 10 it is a different story. In my configure/CONFIG_STE I have XML2_EXTERNAL=NO, In my iocApp/src/Makefile, I included the ADCore/ADApp/commonDriverMakefile to properly link with all components of AD, the “link” command even points to ADSupport/lib/linux-x86_64, and the windows PATH variable points to the same location but still I get the same LNK1181 issue. As a workaround, I had to remove the XML2 check from the commonDriverMakefile and the IOC compiled successfully. What would be the issue with the XML2 library?

 

Best Regards,

Abdalla.

 

Abdalla Al-Dalleh

Control Engineer

SESAME (Synchrotron-light for Experimental Science and Applications in the Middle East)
P.O. Box 7, Allan 19252, Jordan
Tel: +96253511348 , ext. 265

Fax: +96253511423

abdalla.ahmad at sesame.org.jo

www.sesame.org.jo

 


References:
Windows 10 LNK1181 error on xml2.lib Abdalla Ahmad via Tech-talk
RE: Windows 10 LNK1181 error on xml2.lib Mark Rivers via Tech-talk

Navigate by Date:
Prev: RE: Windows 10 LNK1181 error on xml2.lib Mark Rivers via Tech-talk
Next: CaSnooper Update? Murray, Doug 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: Windows 10 LNK1181 error on xml2.lib Mark Rivers via Tech-talk
Next: RE: Windows 10 LNK1181 error on xml2.lib 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, 06 Dec 2023 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·