The OpenCPI build machinery has a lot of "legacy" in it that will at
some point be cleaned out in a transition to cmake or others.
Since we are building for things like FPGAs, the typical more modern
make approaches don't always do what we need.
We also have target hierarchies that are not always supported well.
The libraries were not intended to be exported as is in any case
(there's too many).
So yes, a temporary fix will be to prefix all the library names.
By scoping I was hoping for a directory-based approach where the
directory name was enough to scope the
library file names (like the header approaches already mentioned), but I
don't know of such a thing today.
Jim
On 6/14/11 6:08 PM, Frank Gönninger wrote:
Jim,
To my knowledge (and 30 years programming experience ;-) there's "always" some name
prefix in the library name, hence my request to insert the prefix "ocpi" into the lib's
name.
libutil -> libocpiutil (which I like/would recommend), or
libocpi_util (which I don't like, but for pure aesthetical reasons or even
personal taste). These are the two variants I have come across frequently.
That really should make all OpenCPI lib names unique.
I know, quite a change in the build process, the docs, ...
Thanks for considering this.
Frank
Am 14.06.2011 um 23:46 schrieb James Kulp:
Is there a general solution to thus problem? I.e. How do different packaged
scope their libraries?
Sent from my phone.
On Jun 14, 2011, at 19:40, Frank Gönninger<[email protected]>
wrote:
Dear OpenCPI developers:
I do have severe problems due to the fact that there is a libutil in the
library search path on OS X (in /usr/lib). That path is in DYLD_LIBRARY_PATH
before OpenCPI's lib dir in my environment. Effect: OpenCPI attempts laods the
wrong libutil (resulting in abort trap). If I change the library search path as
to OpenCPI's libutil being found first some of the system tools (for example
the Erlang environment) don't work anynore - those tools now find OpenCPI's
libutil which obviously is the wrong one ...
May rename it to libocpiutil ?
Thanks for feedback!
Best wishes
Frank
--
C o n s e q u o r C o n s u l t i n g A G
Frank Goenninger
E-Mail: [email protected]
Phone: +49 711 781 181-10
Fax: +49 711 781 181-11
Consequor Consulting AG
Liebknechtstr. 33
D-70565 Stuttgart
Vorstand: Frank Gönninger (Vors.), Martin Melcher
Aufsichtsratsvorsitzender: Dipl.-Kfm. Matthias Filbinger
Sitz der Gesellschaft: 70565 Stuttgart, Deutschland
Registergericht Amtsgericht Stuttgart HRB 727446
_______________________________________________
opencpi_dev mailing list
[email protected]
http://lists.opencpi.org/listinfo.cgi/opencpi_dev-opencpi.org
_______________________________________________
opencpi_dev mailing list
[email protected]
http://lists.opencpi.org/listinfo.cgi/opencpi_dev-opencpi.org
_______________________________________________
opencpi_dev mailing list
[email protected]
http://lists.opencpi.org/listinfo.cgi/opencpi_dev-opencpi.org