Re: cross compile mips on x86_64: pcre?

Arjen Verweij <[email protected]>
Newsgroups gmane.linux.debian.devel.embedded
Message-ID <CAPL35GwN9LcQ+r2ooFZGSuTjiEEUGE-MhSq8kN-kadMrW9edVg@mail.gmail.com>
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 <[email protected]>:

> +++ 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 [email protected]
> with a subject of "unsubscribe". Trouble? Contact
> [email protected]
> Archive:
> https://lists.debian.org/[email protected]
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.