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: Windows 10 LNK1181 error on xml2.lib
From: Abdalla Ahmad via Tech-talk <tech-talk at aps.anl.gov>
To: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Wed, 6 Dec 2023 05:40:00 +0000

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

 


Replies:
Re: Windows 10 LNK1181 error on xml2.lib Ralph Lange via Tech-talk
RE: Windows 10 LNK1181 error on xml2.lib Mark Rivers via Tech-talk

Navigate by Date:
Prev: Re: camonitor vs caput Johnson, Andrew N. via Tech-talk
Next: Re: Simulated limit switches on motorSim motor Torsten Bögershausen 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: camonitor vs caput Gerrit Kühn via Tech-talk
Next: Re: Windows 10 LNK1181 error on xml2.lib Ralph Lange 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 ·