Hi Qingru,
Thanks for your emails.
I look after the two examples in exampleCPP.
Both examples, HelloWorld and ChannelArchiverService, currently link against expat. In fact HelloWorld doesn't need to.
So the quickest solution is to remove the line
USR_SYS_LIBS += expat
from HelloWorld/helloWorldApp/Makefile.
I'll make that change to the mercurial repo and it'll be in the next release.
However it sounds like you've got it to build by installing expat-devel. That'll still be useful if you try to build the ChannelArchiverService.
Dave
From:
米清茹 [mailto:[email protected]]
Sent: 13 June 2014 07:00
To: LYNCH, Damien; Jani Hakala; Hinko Kocevar; [email protected]
Subject: 答复: Compiling helloWorld of EPICS V4 on 64bit linux had a link error [SEC=UNOFFICIAL]
Hi Lynch, Jani, Hinko,
You are right! The expat-devel package hasn't installed. After I installed the expat-devel package with yum, libexpat.so was also installed into /usr/lib64.
Thank you very much!
Qingru Mi
发件人:
LYNCH, Damien [[email protected]]
发送时间:
2014年6月12日
14:00
到:
米清茹;
[email protected]
主题:
RE: Compiling helloWorld of EPICS V4 on 64bit linux had a link error [SEC=UNOFFICIAL]
Hi Qingru,
Glad to hear it’s working. I suspect the real problem is the expat-devel package is not installed.
Damien
From:
米清茹 [mailto:[email protected]]
Sent: Thursday, 12 June 2014 3:32 PM
To: LYNCH, Damien; [email protected]
Subject: 答复: Compiling helloWorld of EPICS V4 on 64bit linux had a link error [SEC=UNOFFICIAL]
Hi Lynch,
There wasn't libexpat.so. After I created the link, the HelloWorld was built without any error.
Thank you very much!
Qingru Mi
发件人:
LYNCH, Damien [[email protected]]
发送时间:
2014年6月12日
11:59
到:
米清茹;
[email protected]
主题:
RE: Compiling helloWorld of EPICS V4 on 64bit linux had a link error [SEC=UNOFFICIAL]
Although you don’t mention libexpat.so. Does that exist? If not you could create it as a link to libexpat.so.1.
From: LYNCH, Damien
Sent: Thursday, 12 June 2014 1:52 PM
To: LYNCH, Damien; ???;
[email protected]
Subject: RE: Compiling helloWorld of EPICS V4 on 64bit linux had a link error [SEC=UNOFFICIAL]
Sorry, ignore that I missed
I can find libexpat.so.1 and libexpat.so.1.5.2 in /lib64 in your message.
Hi,
I assume expat is the Expat XML parser library. Do you have that installed?
Damien
Hi,
I compiled the EPICS-CPP-4.3.0 on 64bit centos6.5. As the HelloWorld in exampleCPP was compiled, an error occured. The error information shows below:
/usr/bin/g++ -o HelloService -L/BLC/epics/v4/EPICS-CPP-4.3.0/pvAccessCPP/lib/linux-x86_64 -L/BLC/epics/v4/EPICS-CPP-4.3.0/pvDataCPP/lib/linux-x86_64 -Wl,-rpath,/BLC/epics/v4/EPICS-CPP-4.3.0/pvAccessCPP/lib/linux-x86_64 -Wl,-rpath,/BLC/epics/v4/EPICS-CPP-4.3.0/pvDataCPP/lib/linux-x86_64
-m64 HelloServiceMain.o HelloService.o -lpvAccess -lpvData -lexpat
/usr/bin/ld: cannot find -lexpat
collect2: ld returned 1 exit status
make[2]: *** [HelloService] Error 1
make[2]: Leaving directory `/BLC/epics/v4/EPICS-CPP-4.3.0/exampleCPP/HelloWorld/helloWorldApp/O.linux-x86_64'
make[1]: *** [install.linux-x86_64] Error 2
make[1]: Leaving directory `/BLC/epics/v4/EPICS-CPP-4.3.0/exampleCPP/HelloWorld/helloWorldApp'
make: *** [helloWorldApp.install] Error 2
I can find libexpat.so.1 and libexpat.so.1.5.2 in /lib64.
How to resolve the problem?
Qingru Mi
SSRF
--
This e-mail and any attachments may contain confidential, copyright and or privileged material, and are for the use of the intended addressee only. If you are not the intended addressee or an authorised recipient of the addressee please notify us of receipt by returning the e-mail and do not use, copy, retain, distribute or disclose the information in or attached to the e-mail. Any opinions expressed within this e-mail are those of the individual and not necessarily of Diamond Light Source Ltd. Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments are free from viruses and we cannot accept liability for any damage which you may sustain as a result of software viruses which may be transmitted in or with the message. Diamond Light Source Limited (company no. 4375679). Registered in England and Wales with its registered office at Diamond House, Harwell Science and Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom
|