[KDE/Mac] OSX/CI: okular fails to build on branch frameworks

René J.V. Bertin rjvbertin at gmail.com
Sat Apr 11 21:27:26 UTC 2015


On Saturday April 11 2015 22:45:31 Marko Käning wrote:

> ---
> Why on earth are those SET() statements needed here?


They aren't; you can also use a conditionalised target_link_libraries statement for okularcore.

> ...but now I end up with two other link failures:
> ---
> Linking CXX shared library libokularplugin.dylib
> ld: can't link with bundle (MH_BUNDLE) only dylibs (MH_DYLIB) file '../../okularpart.so' for architecture x86_64
> etc

That's because Okular does something that's "not done": use a plugin as a shared library. That happens to work on Linux, but it's non-portable. If you check the Portfile for Okular you'll see how to circumvent this.

R


More information about the kde-mac mailing list