So, after tearing my hair out for an hour this morning, I finally managed to build protobuf using MinGW and GCC 4.4.0, using the msys install from mozilla-build 1.4.
The two major sticking points are
- mozilla-build includes autoconf 2.59, whereas protobuf requires autoconf 2.61 at minimum. Solution: download the msys autoconf 2.63 package, and install to
/usr/local/bin/autoconf-2.63/
, and temporarily export a prefixed$PATH
for building protobuf. - protobuf attempts to link against
/c/mozilla-build/msys/mingw/lib/gcc/mingw32/4.4.0/libstdc++.dll.a
, which fails because that file doesn’t exist. Solution: edit the file libstdc++.la in that directory, replacing libstdc++.dll.a with libstdc++.a in the definition forlibrary_names
Thanks ! That helped me a lot.
Thanks man! I was trying to build litiff so then i can build OSG, but i was having the same problema with libstdc++.dll.a, changed it and it worked!