Hi zyx, please also change WS2_32 in the top-level CMakeLists.txt to ws2_32 so that cross-compiling the shared library and the programs with MinGW-w64 on GNU/Linux works. Then I'm indeed fine with your changes to my patch if there isn't anything in the PoDoFo project's CodingStyle against it.
Best regards, mabri P.S. The program helloworld.exe doesn't link for me with undefined references but I think that is unrelated. ----- Original Message ----- From: zyx <z...@litepdf.cz> To: podofo-users@lists.sourceforge.net Sent: 19:21 Friday, 20 November 2015 Subject: Re: [Podofo-users] MinGW-w64 cross-build problem: windres not taking compiler options On Thu, 2015-11-19 at 20:23 +0000, Matthew Brincke wrote: > a patch fixing the problem with windres (or actually, resource > compilation problems, I found and fixed a second one with syntax) > is attached to this e-mail. Hi, good catch with the compiler flags, I was wondering where it gets the 's' option, and it was from the std-c++ option. > I required the -DHAVE_BOOLEAN solution > for it to work, but if you didn't require it this I expect this to > still be unchanged. Of course, this only tested with cmake 3.2.2 (I > don't have another version yet, 3.3.2-2 is current, should I re- > test?). The mingw under windows is not case sensitive with file names, thus it'll be safe to just use lower-case header file name, instead of conditionally decide between one and the other case version. Personally, my editor can handle more than 80 characters per line, thus that split into shorter lines is not necessary these days we are far from 1990's). :) > @zyx: You recommended me to upgrade build tools, which did you mean > and to which versions (I'm using GNU/Linux for development)? I didn't mean you to update to newer tools, I meant it as an offer for Svetlana, that if she'll use the versions of the tools and PoDoFo svn trunk as I did, then it should work the same as for me. I see I do not have the latest versions, though. Matthew, if you are fine, then I'll change the above mentioned things in your patch and will commit it. Bye, zyx -- http://www.litePDF.cz i...@litepdf.cz ------------------------------------------------------------------------------ _______________________________________________ Podofo-users mailing list Podofo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/podofo-users ------------------------------------------------------------------------------ _______________________________________________ Podofo-users mailing list Podofo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/podofo-users