Re: libsoup on MS Windows problems



> But I found it a little strange that I had to add
> PKG_CONFIG_PATH=/usr/local/lib/pkgconfig

Why do you find that strange? Which pkg-config are you using and where
do you have the pkg-config.exe? Unless pkg-config.exe is located at
/usr/local/bin/pkg-config.exe, pkg-config won't search in
/usr/local/lib/pkgconfig.

> The first three warnings about libshlwapi.a, libdnsapi.a and libole32.a I
> find a little strange, at they are part of the w32api downloaded from the
> MinGW site, and do not have these as shared libraries.

Yes you have, in $WINDIR/system32. shlwapi.dll, dnsapi.dll and ole32.dll.

It's just libtool that is being over-protective and silly. You can
tell it to stop that by passing the environment variable
lt_cv_deplibs_check_method='pass_all' when running configure, for
instance.

> Well, the make didn't end with an error,

Yeah, but you ended up with a static libsoup, which probably is not
what you wanted. As such, I *think* libsoup should work also as a
static library, it doesn't seem to need to call DllMain() to find out
its run-time location.

 > undefined reference to `g_cancellable_cancel'

Well, do you link with -lgio-2.0, where this function is?

> undefined reference to `htons 4'

This should be in -lws2_32.

> Furthermore, on Linux, I have no problems with libsoup and my application.

Well, you have developed the code originally on Linux, and only now
tried building it on Windows, so why does this surprise you?.

--tml


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]