[poppler] How to build poppler with Qt wrapper (POSIX)?

suzuki toshiya mpsuzuki at hiroshima-u.ac.jp
Thu Aug 30 04:06:42 PDT 2012


Just I've checked that current main trunk of poppler can be built with
Blackberry Playbook NDK (QNX 6.5.0), with following flags to use POSIX
environment in QNX:
	CXXFLAGS="-D_XOPEN_SOURCE=600 -std=gnu++0x"
	CFLAGS="-D_XOPEN_SOURCE=600 -std=gnu99"

The background of the flags are following:

-D_XOPEN_SOURCE=600
* to enable getpwnam() etc, just -D_POSIX_SOURCE is sufficient.
* to enable strtok_r(), -D_POSIX_C_SOURCE=199506 or newer is sufficient.
* to enable mkstemp(), -D_XOPEN_SOURCE=600 is needed.

-std=gnu++0x and -std=gnu99
* isfinite() is defined in GNU C, C99, and POSIX 2004.
QNX 6.5.0's header file covers POSIX 1998-2001, but not
2004, so "-std=gnu++0x" (for CXXFLAGS) or "-std=gnu99"
are required.

Regards,
mpsuzuki

suzuki toshiya wrote:
> On April, Jon and I had a discussion to cross-build poppler + Qt wrapper
> for QNX on Playbook ( http://lists.freedesktop.org/archives/poppler/2012-April/008985.html ),
> but sorry, I slipped to post the summary of our experience. I will post
> something, please give me 24 hours to summarize it.
> 
> Regards,
> mpsuzuki
> 
> Albert Astals Cid wrote:
>> El Dimarts, 28 d'agost de 2012, a les 18:43:44, Ярослав Перминов va escriure:
>>> Define macros manually in $CFLAGS ("... -D__EXT_XOPEN_EX
>>> -D__EXT_POSIX1_198808") did not solve my problem.
>>>
>>> -
>>> So, my questions:
>>>
>>> 1) What is the correct way to set POSIX version in headers?
>> What do you mean with "set POSIX version in headers"?
>>
>>> 2) Why stat() function can't be called?
>> Probably a few includes missing in gfile.cc
>>
>>> 3) What I need to do to define __EXT_XOPEN_EX macro?
>> No clue, ask someone with QNX eperience?
>>
>> Cheers,
>>   Albert
>>
>>> Thanks.
>> _______________________________________________
>> poppler mailing list
>> poppler at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/poppler
> 
> _______________________________________________
> poppler mailing list
> poppler at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/poppler



More information about the poppler mailing list