On Mon, 2017-12-04 at 10:19 +0100, IOhannes m zmoelnig wrote:
On 2017-12-04 10:05, abel.jerome@free.fr wrote:
Beyond the topic, I wonder also how to know if a library needs "- lib" option, and for which operating system. For iemlib, on Xubuntu the "-path" option is enough, on Windows, I need to add "-lib". Hard to follow if it is not the same option between platforms.
it's unrelated to the platform. the important part is, how a library is linked (whether as a single binary with multiple objects, or as a directory with one binary per object). PdX tried to solve this by pushing a single solution down the throat of each developer who had a library shipped with PdX. some devs didn't like that and stayed with a solution that fit their needs better. leading to confused users who - depending on where they got the library from - would need different options to use the library.
the only rule of thumb is to inspect the library folder, and if you see many (or no) {dll|pd_darwin|pd_linux}s files you should use "-path", and if there are only a very few (usually one(1)) with the name of the library, then you should use "-lib".
While I fully agree with you, I do believe you are actually helping confuse users by not providing an iemlib build for Linux. If there'd be a canonical build (as opposed to the v0.0-extended one), the mechanism to load the library would be the same on every platform.
I even would have done it myself, but I figured with iemilb it's much harder for me to automate the building of Deken packages than with other libraries, so I didn't bother.
Roman