Hi,
I'm sorry I had forgot to specify I'm using cmake version 3.2.2 (on
GNU/Linux). I would have much difficulty downgrading, since I install
build tools from packages of the distribution I'm using.
I have tested your (Svetlana's) -DHAVE_BOOLEAN solution, please see the
attached patch (@Svetlana: I hope to have understood you correctly,
@reviewers/committers: would you please review, and if accepted commit,
otherwise please tell me on-list why not). It works with&without the
changes in r1690. So you (Svetlana) haven't used the patch I posted in
[Podofo-users] workaround for typedef conflict between Win32 and libjpeg headers
(URL http://sourceforge.net/p/podofo/mailman/message/34609897/ in the archive)?
Did/do you use the patch I posted in my list post on November 11 titled
"[Podofo-users] proposed workaround for your build issue (was: (no subject))"
(URL http://sourceforge.net/p/podofo/mailman/message/34609887/ in the archive)?
@Reviewers/Committers: Could you please review the patches used by
Svetlana Watkins, and if accepted commit them (separately) to the
public repository, otherwise please tell me why not?
I'll probably post a patch for making (cross-)building for Win32
work with cmake 3.2.2 on GNU/Linux in the near future (I have time now).
Best regards, mabri
________________________________
From: Svetlana Watkins <svetlana.watk...@gmail.com>
To: Matthew Brincke <mabr...@ymail.com>
CC: "podofo-users@lists.sourceforge.net" <podofo-users@lists.sourceforge.net>
Sent: 8:16 Samstag, 14 November 2015
Subject: Re: [Podofo-users] MinGW-w64 cross-build problem: windres not taking
compiler options
Hi Matthew..
My frustration levels are lower now. Sorry all for my below rant.
To get rid of the Windres error the latest version of Cmake you can use is 2.6
Patch 4. That's what I'm using and it builds fine. I'm using a Mingw compiler
on Windows XP.
I also add -DHAVE_BOOLEAN to my compiler flags or you get an error at around
10%.
For once I'm glad I can help someone. I hope this works for you.
On Wed, Nov 11, 2015 at 11:36 AM, Matthew Brincke <mabr...@ymail.com> wrote:
Hi all,
>
>a cross-build to Win32 on GNU/Linux using MinGW-w64
>version 4.0.2-5 (i686-w64-mingw32-g++ (GCC) 4.9.2)
>breaks for me because of i686-w64-mingw32-windres
>not accepting the compiler arguments (-std and -W ones).
>Could anyone please help me (and possibly others like
>Svetlana Watkins) resolve this because I'm no cmake guru
>(and had little time to research that yet, only found it
>circa an hour ago)? This also happens after backing out
>the changes in r1690. I don't have a Win32 native C++
>compiler right now.
>
>
>Best regards, mabri
>
>------------------------------------------------------------------------------
>_______________________________________________
>Podofo-users mailing list
>Podofo-users@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/podofo-users
>
Index: CMakeLists.txt
===================================================================
--- CMakeLists.txt (revision 1690)
+++ CMakeLists.txt (working copy)
@@ -245,6 +252,8 @@
# Microsoft deprecate certain POSIX functions that we use.
# for now, turn off these warnings.
ADD_DEFINITIONS(-D_CRT_SECURE_NO_DEPRECATE)
+ # Avoid a typedef conflict over boolean between Win32 and libjpeg headers
+ ADD_DEFINITIONS(-DHAVE_BOOLEAN)
# We need a fake unistd.h for some libraries to build. They try to include <unistd.h>
# which is not available under win32 with MSVC++, but everything in unistd.h is defined,
# so an empty file solves the issue.
------------------------------------------------------------------------------
_______________________________________________
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users