[Kmymoney-devel] Starting w/o loading plugins possible?

Łukasz Maszczyński lukasz at maszczynski.net
Thu Oct 10 18:29:47 UTC 2013


Hi Marko,

2013/10/9  <mk-lists at email.de>:
> Hi Łukasz,
>
> On Oct 9, 2013, at 9:22 PM, Łukasz Maszczyński wrote:
>>
>> $ nm -CD libgwengui-cpp.so | grep CppGui::getCInterface
>> 00003f30 T CppGui::getCInterface()
> Ha, there we are:
> ---
> $  nm /opt/macports-test/lib/libgwengui-cpp.dylib | grep CppGui::getCInterface
> $  nm /opt/macports-test/lib/libgwengui-cpp.dylib | grep getCInterface
> 00000000000025f8 T __ZN6CppGui13getCInterfaceEv
> 0000000000001fae T __ZN9CppDialog13getCInterfaceEv
> 000000000000315c T __ZN9CppWidget13getCInterfaceEv
> ---
> It cannot find the symbol, because there is a "13" instead of "::".

Don't worry - you didn't ask for demanged symbol names (see -C switch
I used), that's why you see them like that.

>
>> $ pkg-config --libs gwengui-qt4 gwenhywfar
>> -lgwengui-qt4 -lgwengui-cpp -lgwenhywfar
>
> THis is what I get here:
>
> $ pkg-config --libs gwengui-qt4 gwenhywfar
> -L/opt/macports-test/lib -lgwengui-qt4 -lgwengui-cpp -lgwenhywfar
>
> which looks fine to me.

That indeed looks fine. So the libs are in your system, pkg-config
sees them, but somehow they don't seem used when compiling kmm.

Let's dig deeper: try making the build verbose and check what options
and switches are passed on to the compiler/linker. In the main
CMakeLists.txt add this declaration near the top of the file:

set(CMAKE_VERBOSE_MAKEFILE true)

Then recompile, and you'll see the complete command used in the build
process. Since the build fails I expect that the command won't include
the libs as returned by pkg-config (-L/opt/macports-test/lib
-lgwengui-qt4 -lgwengui-cpp -lgwenhywfar). Let's verify that.

-- 
cheers,
Łukasz


More information about the KMyMoney-devel mailing list