Hi Thomas,

Thanks for that - it seems to work fine. Using it as a basis to build okular, I get almost there, until the build falls over with:

mobile/components/CMakeFiles/okularplugin.dir/__/__/ui/pagepainter.cpp.obj: In 
function 
`ZN11PagePainter25paintCroppedPageOnPainterEP8QPainterPKN6Okular4PageEPNS2_16DocumentObserverEiiiRK5QRectRKNS2_14NormalizedRectEPNS2_15NormalizedPointE':

C:/Users/Jonathan/KF5_emerge/k/download/git/okular/ui/pagepainter.cpp:806: 
undefined reference to `_imp___ZN6Okular8Settings23debugDrawAnnotationRectEv'

C:/Users/Jonathan/KF5_emerge/k/download/git/okular/ui/pagepainter.cpp:124: 
undefined reference to `_imp___ZN6Okular8Settings14highlightLinksEv'

C:/Users/Jonathan/KF5_emerge/k/download/git/okular/ui/pagepainter.cpp:125: 
undefined reference to `_imp___ZN6Okular8Settings15highlightImagesEv'

C:/Users/Jonathan/KF5_emerge/k/download/git/okular/ui/pagepainter.cpp:84: 
undefined reference to `_imp___ZN6Okular8Settings17recolorBackgroundEv'

C:/Users/Jonathan/KF5_emerge/k/download/git/okular/ui/pagepainter.cpp:360: 
undefined reference to `_imp___ZN6Okular8Settings10bWContrastEv'

C:/Users/Jonathan/KF5_emerge/k/download/git/okular/ui/pagepainter.cpp:360: 
undefined reference to `_imp___ZN6Okular8Settings11bWThresholdEv'

mobile/components/CMakeFiles/okularplugin.dir/documentitem.cpp.obj: In function 
`ZNK12DocumentItem22windowTitleForDocumentEv':

C:/Users/Jonathan/KF5_emerge/k/download/git/okular/mobile/components/documentitem.cpp:84:
 undefined reference to `_imp___ZN6Okular8Settings25displayDocumentNameOrPathEv'

C:/Users/Jonathan/KF5_emerge/k/download/git/okular/mobile/components/documentitem.cpp:87:
 undefined reference to `_imp___ZN6Okular8Settings20displayDocumentTitleEv'

mobile/components/CMakeFiles/okularplugin.dir/documentitem.cpp.obj: In function 
`ZN12DocumentItemC2EP7QObject':

C:/Users/Jonathan/KF5_emerge/k/download/git/okular/mobile/components/documentitem.cpp:38:
 undefined reference to `_imp___ZN6Okular8Settings8instanceERK7QString'

collect2.exe: error: ld returned 1 exit status

I understand the _imp___ prefix on the undefined identifiers is connected with dynamic linking. It is also notable that all the missing identifiers are defined in settings.cpp But beyond that, I'm struggling to know whether the problem is that the identifiers are nowhere defined, or the linker is not able to find them. Can anyone help?

Cheers,
Jonathan



is something to do with linking against DLLs, and it is notable that all


On 26/02/16 21:06, Thomas Friedrichsmeier wrote:
Hi Jonathan,

not sure whether this suits your needs, but I'm also a bit curious,
whether my "shortcut" to a KF5 environment on Windows actually works
for people:
   https://mail.kde.org/pipermail/kde-windows/2016-February/009586.html
It's MinGW, only, ATM. I spend most of the past two days trying to get
an MSVC (2013) version ready, too, but I'm not quite there, yet.

*If* this actually works, I think it would be a great-thing-to-have
(TM) for us application developers trying to get a foothold on Windows.

Regards
Thomas

On Fri, 26 Feb 2016 11:55:25 +1100
Jonathan Schultz <jonat...@imatix.com> wrote:

Hello all,

I've been trying to build a recent version of okular (and
dependencies) for Windows using a variety of methods, with only
moderate levels of success, and now putting out a cry for help. Here
is a description of what I have achieved, and where I have failed:

kde-installer using mingw works fine, although I can only find a
stable release, ie version 0.16.2 of okular. I also managed to use
kde-installer under wine then build using mingw cross-compilation.
I'm pretty keen on cross-compilation as I want to produce regular
builds of work I am doing based on okular, and the fewer boxes I need
to do this the better. So if I could use get kde-installer to find an
'unstable' release I'd be happy.

I then tried using kdesrc-build with cross-compilation on the
kf5-minimum branch. I made quite a bit of progress here with just a
few patches and managed to get 47 out of 61 packages to build. Those
that wouldn't build all seemed to have problems with various QT5
cmake configuration files, and my knowledge of cmake and qmake was
just not enough so I abandoned this path. I'd still love to make this
work, so if anyone feels like lending a hand, I'd be happy to pick it
up again.

So finally I gave in and tried to build under windows using emerge.
However my build fell apart with some kind of patch file problem that
I described (in the wrong place I'm guessing - 130 views and no
responses) here: https://forum.kde.org/viewtopic.php?f=107&t=131006
Once again I'm a bit lost on how to proceed, and given that others
seem to be able to make emerge work, I'm hoping that someone can help
with this problem.

Many thanks,

Jonathan

_______________________________________________
Kde-windows mailing list
Kde-windows@kde.org
https://mail.kde.org/mailman/listinfo/kde-windows



_______________________________________________
Kde-windows mailing list
Kde-windows@kde.org
https://mail.kde.org/mailman/listinfo/kde-windows


_______________________________________________
Kde-windows mailing list
Kde-windows@kde.org
https://mail.kde.org/mailman/listinfo/kde-windows

Reply via email to