KIO, gpgme
Stromek
stromek at realtime.sk
Tue Mar 6 18:04:37 CET 2007
On Mon, Mar 05, 2007 at 02:07:54PM +0100, Stromek wrote:
> ----- Forwarded message from Stromek <stromek at realtime.sk> -----
>
> Date: Sun, 4 Mar 2007 12:13:22 +0100
> From: Stromek <stromek at realtime.sk>
> To: KDE on Windows <kde-windows at kde.org>
> Subject: Re: KIO, gpgme
> Mail-Followup-To: KDE on Windows <kde-windows at kde.org>
> In-Reply-To: <20070303164525.GA11000 at core.realtime.sk>
> User-Agent: Mutt/1.5.11
>
> On Sat, Mar 03, 2007 at 05:45:25PM +0100, Stromek wrote:
> > On Sat, Mar 03, 2007 at 04:32:20PM +0100, Christian Ehrlicher wrote:
> > > Stromek schrieb:
> > > >I encoutered another issue I have problem to solve. Building kleopatra
> > > >gives me unresolved symbol (GpgME::Key::null), see below. Personally, I
> > > >would say that everything is all right but msvc7 thinks something
> > > >different.
> > > >
> > > >keyselectiondialog.obj : error LNK2001: unresolved external symbol
> > > >"public: static class GpgME::Key GpgME::Key::null"
> > > >(?null at Key@GpgME@@2V12 at A)
> > > >
> > > >Key::null is defined in kdepim/gpgmepp/key.h as follows:
> > > >
> > > > class KDE_EXPORT Key {
> > > > friend class Context;
> > > > public:
> > > > Key();
> > > > Key( gpgme_key_t key, bool acquireRef, unsigned int keyListMode=0 );
> > > > Key( const Key & key );
> > > > ~Key();
> > > >
> > > > static Key null;
> > > > ...
> > > > }
> > > >
> > > >And in key.cpp there is:
> > > >
> > > >GpgME::Key GpgME::Key::null;
> > > >
> > > >Does someone know how to solve this unresolved symbol? I tried to define
> > > >it as an extern but it didn't help (extern KDE_EXPORT GpgME::Key
> > > >GpgME::KeyNull).
> > > >
> > > KDE_EXPORT is wrong
> > > it must be KDE_YOURLIB_EXPORT like it is done for all other libs
> >
> > nice, worked like a charm :) I had to modify also kdepim_export.h according to the one in kdelibs.
>
> tadaa, korganizer compiled, see the screenshot (removed because the email
> was rejected by the list admin due to its size, see
> http://www.realtime.sk/~stromek/korganizer.png). my first success :) i'm
> so happy now. during the week, i'm going to post my changes. i spent
> lots of time on the issue and other things require my attention now.
I have just posted gpgme compilation for windows for those who would like to
compile kdepim (http://www.realtime.sk/~stromek/kde). There is also diff
of changes I had to make to get korganizer compilable.
FindGpgme.cmake: I haven't bothered with tailoring it to search for win32
version (I don't know yet how to do it and there are also some
gpgme win32 specific problems), I just commented the orignal stuff out and hardcoded path to
"C:\gpgme". I suppose that the code is missing the path to lib files (I
modified project files, which complained about gpgme includes and libs, manually).
kdepim/CMakeLists.txt: I marked some of the kdepim projects as
"REQUIRE_WIN32_PORT" to prevent them compiling under win32 and to not
confuse with "if (not WIN32)" which is used for issues not intended for
win32 platform at all.
Probably during the weekend, I will try to fix some of the problems
I have described.
--
Stromek
More information about the Kde-windows
mailing list