Win7x64
mingw-w64-bin_i686-mingw_20111220
pkg-config 0.26 (now pkg-config-lite 0.26-1)
Ran into a very strange issue compiling 64-bit version of spatialite-tools, which requires pkg-config. It kept failing whenever it attempted to run pkg-config regardless of what I attempted to do. I installed mingw-w64 following the instructions here:
mingw-w64 how-to, which states to follow the instructions to install pkg-config here:
mingw32 how-to.
When I ran "pkg-config --version" from the Msys64 sh, it gave me the Windows error, "The application was unable to start correctly (0xc00007b)" every time, which is what was causing the compile to fail. I checked, and double-checked that the GLib files were present in my /c/mingw64/bin folder, even reinstalled them, made sure the PATH statements were correct to mingw64/bin and msys64/bin, and did all the proper export commands in sh. Nothing worked.
Ultimately, I found a version of pkg-config-lite 0.26-1 at this URL:
pkgconfiglite, which does work properly - spatialite-tools compiled with no errors. The best I can figure is that for some reason pkg-config is not picking up GLib properly. The only difference between the regular and the lite version is that the GLib dependencies have been removed in the lite verison by including a GLib code snippet.
Now according to the instructions on the mingw32 how-to, there are two lib dependencies for pkg-config: libglib-2.0.0.dll and libintl-8.dll (renamed as intl.dll), and I have both of these in my /c/mingw64/bin folder, which is also where I have pkg-config.exe located. Is it possible that GLib needs to be renamed as well?
Anyone else run into this before? I found various reports about the 0xc00007b error being a problem with a 32-bit app trying (and failing) to run in a 64-bit environment, but nothing specific to pkg-config.
As I stated, it's working now with pkg-config-lite 0.26-1, bypassing the need for an external GLib DLL, but I still appreciate any feedback.
Best regards,
-R