[Okular-devel] Review Request 127328: Fix build on Windows (MinGW)

Gleb Popov 6yearold at gmail.com
Tue Mar 15 10:27:16 UTC 2016


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/127328/#review93545
-----------------------------------------------------------


Ship it!




Okay, okularpart was really intended to be a `MODULE` (a plugin, that is) but making it so breaks a lot of tests on Windows, because plugins can't be linked to there. All `Settings` related link errors are due to that too.

I'm not in position to fix this, so it would be better to just enhance my workarounds with yours. I've checked this doesn't break MSVC build.

- Gleb Popov


On March 14, 2016, 3:17 a.m., Thomas Friedrichsmeier wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/127328/
> -----------------------------------------------------------
> 
> (Updated March 14, 2016, 3:17 a.m.)
> 
> 
> Review request for Okular, Aleix Pol Gonzalez, Alex Richardson, and Gleb Popov.
> 
> 
> Repository: okular
> 
> 
> Description
> -------
> 
> Three parts to this patch:
> 1) The plaform #ifdef in interfaces/viewerinterface.h is platform, not compiler-specific.
> 2) When compiling okularplugin, the existing definition of okularpart_EXPORTS on the generated settings.cpp does not work with MinGW, for reasons that I do not understand. Setting the definition on the whole target, instead, works.
> 3) The okularpart lib will automatically be named libokularpart, and subsequently not be found when trying to load it via KPluginLoader. Tell cmake to drop the "lib"-prefix.
> 
> See also:
> - Discussion on list https://mail.kde.org/pipermail/okular-devel/2016-March/022480.html
> - A previous review request addressed issue 2 for MSVC https://git.reviewboard.kde.org/r/125742/
> 
> 
> Diffs
> -----
> 
>   CMakeLists.txt e17bc25 
>   interfaces/viewerinterface.h e9e76a2 
>   mobile/components/CMakeLists.txt e09326a 
> 
> Diff: https://git.reviewboard.kde.org/r/127328/diff/
> 
> 
> Testing
> -------
> 
> Builds on Windows with MinGW. Starts, and loads okularpart, successfully.
> 
> 
> Thanks,
> 
> Thomas Friedrichsmeier
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/okular-devel/attachments/20160315/f36c3d4d/attachment.html>


More information about the Okular-devel mailing list