[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: cross compile mips on x86_64: pcre?



Hi,

I didn't know you could do that, that is pretty neat. Perhaps I was confused by the availability of

ii  zlib1g-dev-mips-cross              1:1.2.3.4.dfsg-3              all          compression library - development (for cross-compiling)
ii  zlib1g-mips-cross                  1:1.2.3.4.dfsg-3              all          compression library - runtime (for cross-compiling)

for zlib. However, even with your hint, I am not ending up with pcre.h in /usr/mips-linux-gnu/include while zlib.h is present there. Is it unreasonable for me to expect them there?

The packages installed fine btw:

ii  libpcre3:mips                      1:8.30-5                      mips         Perl 5 Compatible Regular _expression_ Library - runtime files
ii  libpcre3-dev                       1:8.30-5                      mips         Perl 5 Compatible Regular _expression_ Library - development files
ii  libpcrecpp0:mips                   1:8.30-5                      mips         Perl 5 Compatible Regular _expression_ Library - C++ runtime files

Thanks,
Arjen


2014-08-06 18:37 GMT+02:00 Wookey <wookey@wookware.org>:
+++ Arjen Verweij [2014-08-06 17:59 +0200]:
>    Hi,
>
>    I want to cross compile on AMD64 Debian Wheezy (7.6) to mips. The problem
>    is pcre. I can't find a suitable package on emdebian.

It's called 'libpcre3' (and 'libpcre3-dev' for the dev headers) in debian.

The source package is pcre3

>    Is there another way to obtain it?

apt-get install libpcre3
or
apt-get source pcre3
should do the trick.

I'm not clear what your cross-compiling issue is though? Is it getting the target library headers?

On a mulitarch (wheezy or later) system, I'd advise doing
dpkg --add-architecture mips
apt-get update; apt-get install libpcre3-dev:mips

to get the headers for that architecture to build against

(and then use the script at https://github.com/dkogan/toolchains to build yourself a multiarch-aware cross-toolchain)

Wookey
--
Principal hats:  Linaro, Emdebian, Wookware, Balloonboard, ARM
http://wookware.org/


--
To UNSUBSCRIBE, email to debian-embedded-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: [🔎] 20140806163729.GG7605@stoneboat.aleph1.co.uk" target="_blank">https://lists.debian.org/[🔎] 20140806163729.GG7605@stoneboat.aleph1.co.uk



Reply to: