blackberry/PCRE — Issue #2: PCRE compilation fails with NDK 2.0
Author: jcockhren
Created: 2012-03-02 20:35:32+00:00
State: open

Firstly, there's really no clear instructions on getting it to build the device and simulator related targets.

Assuming one has done:

```
cd PCRE
source ~/bbndk-2.0.0/bbndk-env.sh
```

I then did (which compiled fine however, didn't build anything for qnx):

```
cmake .
make
```
The instructions speaking about non-unix builds suggested one would:

```
cd qnx
make
```

This looked promising at first (you could clearly see it calling the qcc binary). However it eventually failed during the compilation stage:

```

~/PCRE/pcrecpp.cc: In static member function 'static bool pcrecpp::Arg::parse_longlong_radix(const char*, int, void*, int)':
~/PCRE/pcrecpp.cc:820: error: 'strtoq' was not declared in this scope

~/PCRE/pcrecpp.cc: In static member function 'static bool pcrecpp::Arg::parse_ulonglong_radix(const char*, int, void*, int)':
~/PCRE/pcrecpp.cc:852: error: 'strtouq' was not declared in this scope

```

This is either a user error or error due to the port. Not sure. Could you shed some light on this?