Also, the reason why you're seeing g++ and gcc calls is because it's getting compiled on a Windows VM inside a msys environment. I use this instead of mingw setup on Linux. Probably should have mentioned that...
On Fri, Feb 8, 2013 at 12:59 AM, Daniel Carrion <[email protected]>wrote: > Hi Bernd > > Great work! That's done the trick. I did a clean compile with "make -f > Makefile.mingw wrapper" without previously building other boinc libraries. > > I've attached the output for perusal. > > Regards > > Daniel > > > On Thu, Feb 7, 2013 at 11:31 PM, Bernd Machenschalk < > [email protected]> wrote: > >> Hi Daniel (& David)! >> >> >> On 07.02.13 04:59, Daniel Carrion wrote: >> >> Looks like it was trying to compile lib\util.cpp instead of >>> zip\zip\util.c? Added z_util.o instead to the LIB_OBJS definition. >>> >>> Also noticed a bunch of zf* functions missing (e.g. zftello)...Haven't >>> really followed how they link up... >>> >> >> There are a couple of oddities in the linking line: >> >> 1. are you sure you want to use the standard g++ of a Linux system? Have >> you linked / aliased that to the correct cross-compiler? >> >> 2. This line is trying to link a static version of libstdc++, which makes >> sense for Linux, but not for a Windows cross-compile. >> >> FWIW I set >> AR=i586-mingw32msvc-ar >> CC=i586-mingw32msvc-gcc >> CXX=i586-mingw32msvc-g++ >> (on a debian squeeze with standard mingw32 installation) before using the >> Makefile. >> >> David, >> the previous patch was intended for Daniel to test whether it works or >> not because I didn't have the resources to test it myself. I would have >> committed it to master when I was sure it does work as it is. However it >> turns out it didn't. So I'll continue to send some patches to Daniel for >> testing (and CCing the list for comments) until we found something that >> works for him (and me), which could then be committed to the official BOINC >> repo. >> >> As the previous patch was already committed to the master branch, here's >> another one that must be applied on to of it. I guess the wrapper will be a >> rather common thing to build with whatever environment, so I added a >> 'wrapper' target to the Makefile for convenience. However, this looks >> increasingly misplaced in lib/, maybe we should move the Makefile.mingw to >> the win_build/ directory at some point. The second patch is not necessary >> for the boinc_zip or wrapper build, it is just something that makes the >> list of libboinc objects better readable and maintainable. >> >> So with the attached patches and the above settings 'make -f >> Makefile.mingw wrapper' should build you a wrapper.exe. At least it does >> for me without errors. Let me know how it goes. >> >> Best, >> Bernd >> >> >> > _______________________________________________ boinc_dev mailing list [email protected] http://lists.ssl.berkeley.edu/mailman/listinfo/boinc_dev To unsubscribe, visit the above URL and (near bottom of page) enter your email address.
