|Message: Re: expat external linking in 9.5.2 and 9.6.3||Not Logged In (login)|
Click on the Forum title, e.g. on the "Forums by Category" page, to read a sequence of postings to the Forum and its threads all in one page. If you are only interested in one thread or the thread following a specific posting, click the thread or the posting, which takes you to a smaller page, which contains only the part you are interested in and may be easier to navigate.
Messages are "chained" if there are only replies at the first level, i.e. 1/1.html, 1/1/1.html etc. In case of "chained" messages the message number is replaced by the icon and there is no indentation.
Inline: Display the subject line only or also the text of the posting(s); for the choice "All" the "Outline" choices are switched off.
|1||0||1||no text / full text of posting|
|2||1||All||text for level 1 only / text for All postings|
Outline: Choose the depth of the posting thread, successive toggle controls provide increasing detail.
|1||2||1||2 levels / 1 level (original posting)|
|2||3||2||3 levels / 2 levels|
|3||3||All||3 levels / all levels (all postings)|
On Mon, 23 Jun 2014 17:43:40 GMT, Anthony Villano wrote: > > My questions are: > > 1) Is this normal to have different linkages of an external specified > library in the build and install directories? To me it seems quite odd.
This behaviour is due to CMake's use of RPATH for building vs installing. There's a CMake wiki page covering this. Basically, the default is that the build directory will use full RPATHs when linking, so you should be guaranteed to get the exact libraries you link to. When installing the default is to strip RPATHs, hence your observation that the system RPATH is found.
Both behaviours can be adjusted for your use case by setting the appropriate variables described on the above page when configuring.
> 2) Is there a clean way I can get the appropriate "-L" statement to go > with the "-lexpat" in my applications? Of course, I want to robustly > link to the version of expat that my install uses (I was thinking of > trying to use ldd for that, but I shouldn't have to do that IMO) without > having to do something contrived like put a simlink in my working > directory and using "-L." in the GNUMakefile (what I've done to now to > confirm the installation works).
At present, no, though development for this is in progress so that this
can be obtained via the
> 3) I'm not even sure I need expat or where I need it, is there a way to > confirm if I use it or not and if I can circumvent it? Obviously there > is some dependency because making my application results in an error > unless I include -lexpat.
Expat is, to my knowledge, only used in the LEND model of hadronics which is a subsystem of the G4processes library. So it's "always" used, since you'll always use G4processes. However, we are working on modularizing G4processes so this dependence may go way in future.