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
|