[libvirt] Compiling libvirt RPC client library for QNX

Eric Blake eblake at redhat.com
Mon Mar 3 20:20:48 UTC 2014


On 02/28/2014 09:09 PM, Panday Ritesh Sharma (rpanday) wrote:
> 
> While going through 'configure' file, I realised it uses gcc compiler and
> links all related libraries. But here internally we use icc compiler for
> x86-machines. Do you have a configure file which I can use for icc i.e.;
> 'icc.10.2.014b'compiler ?

The 'configure' file defaults to using gcc when compiling natively, but
is already generic enough to support any compiler, native or cross.  All
you have to do is tell configure what it needs to know:

./configure --build=$(build-aux/config.guess) \
    --host=$FIXME CC=icc.10.2.014b

where you replace $FIXME with the proper target triple of your QNX
machine (I honestly don't know what that would be, and a quick read
through build-aux/config.sub which lists all canonical target triples
didn't make it obvious to me).

It sounds like you are brand new to cross-compiling code that follows
GNU Coding Standards.  If so, I'd highly suggest that you FIRST try
something MUCH simpler, like cross-compiling GNU Hello[1] using the same
arguments to that project's configure.  Once you get a simple binary
cross-compiling with correct --build, --host, and CC= arguments, then
you can use the same arguments on any other project (including libvirt)
where ./configure follows GNU Coding Standards.  And as this list is not
full of people with QNX experience, you may have better luck looking
elsewhere for people who DO know how to cross-compile to QNX, even if
what they compile is not libvirt, to at least learn the basics of
setting up a successful cross-compile for your platform.

[1]https://www.gnu.org/software/hello/

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 604 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20140303/cb82e597/attachment-0001.sig>


More information about the libvir-list mailing list