Discussion:
ppc crosscompile issues with libtiff.so location(path)
Anik Wadehra
2010-05-12 05:31:08 UTC
Permalink
Hi,



I am new to ImageMagick and is still facing problem cross-compiling the
package.

I am trying to cross-compile for Powerpc(ppc) architecture.



Command used to configure :-

./configure CC=ppc_83xx-gcc CXX= ppc_83xx-g++ --without-x -host=ppc
-without-gs-font-dir -without-perl -withoutzlib -without-png
LDFLAGS="/opt/montavista/pro/devkit/ppc/83xx/target/usr/lib" PCCFLAGS="
opt/montavista/pro/devkit/ppc/83xx/target/usr/include"



Command to make:-

make



Problem

1) /usr/lib/libtiff.so: could not read symbols: File in wrong
format.



My Analysis:

1) I have check the fiule /usr/lib/libtiff.so the file exists but
IT IS COMPATIBLE WITH X86 architecture.



Question:

Can someone please suggest me a way through which I can suggest a
different path for these files.

i.e. I have all these libtiff.so compatible with powerpc architecture
available at different location but am unable to configure properly.



Please help



Thanks in advance.



Regards,

Anik Wadehra




DISCLAIMER:
-----------------------------------------------------------------------------------------------------------------------
The contents of this e-mail and any attachment(s) are confidential and
intended
for the named recipient(s) only.
It shall not attach any liability on the originator or NECHCL or its
affiliates. Any views or opinions presented in
this email are solely those of the author and may not necessarily reflect the
opinions of NECHCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure, modification,
distribution and / or publication of
this message without the prior written consent of the author of this e-mail is
strictly prohibited. If you have
received this email in error please delete it and notify the sender
immediately. .
-----------------------------------------------------------------------------------------------------------------------
David N. Lombard
2010-05-12 23:59:00 UTC
Permalink
Post by Anik Wadehra
Hi,
I am new to ImageMagick and is still facing problem cross-compiling the
package.
I am trying to cross-compile for Powerpc(ppc) architecture.
Command used to configure :-
./configure CC=ppc_83xx-gcc CXX= ppc_83xx-g++ --without-x -host=ppc
-without-gs-font-dir -without-perl -withoutzlib -without-png
LDFLAGS="/opt/montavista/pro/devkit/ppc/83xx/target/usr/lib" PCCFLAGS="
opt/montavista/pro/devkit/ppc/83xx/target/usr/include"
Command to make:-
make
Problem
1) /usr/lib/libtiff.so: could not read symbols: File in wrong
format.
This is a libtool problem. There's a work-around and a proper fix.

Workaround: Hack the libtiff.la file in
/opt/montavista/pro/devkit/ppc/83xx/target/usr/lib and change the
/usr/lib path, which trips on the host's version of the library, to
/opt/montavista/pro/devkit/ppc/83xx/target/usr/lib, which is the
cross-compile path. This will technically cause the binary to be
broken, as it will think libtiff.so is located in
/opt/montavista/pro/devkit/ppc/83xx/target/usr/lib and not /usr/lib
where it will *eventually* be located. Fortunately, the runtime linker
will look in /usr/lib anyway, and all will work.

Proper fix: Build a cross version of libtool and use that.
Post by Anik Wadehra
1) I have check the fiule /usr/lib/libtiff.so the file exists but
IT IS COMPATIBLE WITH X86 architecture.
Of course it is, it's for the host, not the ppc target.
Post by Anik Wadehra
-----------------------------------------------------------------------------------------------------------------------
The contents of this e-mail and any attachment(s) are confidential and
intended
for the named recipient(s) only.
It shall not attach any liability on the originator or NECHCL or its
affiliates. Any views or opinions presented in
this email are solely those of the author and may not necessarily reflect the
opinions of NECHCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure, modification,
distribution and / or publication of
this message without the prior written consent of the author of this e-mail is
strictly prohibited. If you have
received this email in error please delete it and notify the sender
immediately. .
Perhaps this will help your legal team understand some basic facts (or not):

CONFIDENTIALITY NOTICE: This is an email. It is the electronic
equivalent of a postcard. It has been split up into hundreds or
thousands of packets, blasted throughout the globe, logged,
scanned, filtered, parsed, grepped and heuristically analyzed by
countless computers as well as humans. Nothing sent via email
is confidential or read only by the intended recipient.
--
David N. Lombard
Rossmoor, Orange County, CA
Anik Wadehra
2010-05-14 04:34:34 UTC
Permalink
Thanks problem was solved.
I created a soft link in /usr/lib for the ppc compatable libraries.
Though not a standard way but solved my problem.

Regards,
Anik Wadehra

-----Original Message-----
From: David N. Lombard [mailto:***@speakeasy.net]
Sent: Thursday, May 13, 2010 5:29 AM
To: Anik Wadehra
Cc: magick-***@imagemagick.org
Subject: Re: [magick-users] ppc crosscompile issues with libtiff.so
location(path)
Post by Anik Wadehra
Hi,
I am new to ImageMagick and is still facing problem cross-compiling the
package.
I am trying to cross-compile for Powerpc(ppc) architecture.
Command used to configure :-
./configure CC=ppc_83xx-gcc CXX= ppc_83xx-g++ --without-x -host=ppc
-without-gs-font-dir -without-perl -withoutzlib -without-png
LDFLAGS="/opt/montavista/pro/devkit/ppc/83xx/target/usr/lib"
PCCFLAGS="
Post by Anik Wadehra
opt/montavista/pro/devkit/ppc/83xx/target/usr/include"
Command to make:-
make
Problem
1) /usr/lib/libtiff.so: could not read symbols: File in wrong
format.
This is a libtool problem. There's a work-around and a proper fix.

Workaround: Hack the libtiff.la file in
/opt/montavista/pro/devkit/ppc/83xx/target/usr/lib and change the
/usr/lib path, which trips on the host's version of the library, to
/opt/montavista/pro/devkit/ppc/83xx/target/usr/lib, which is the
cross-compile path. This will technically cause the binary to be
broken, as it will think libtiff.so is located in
/opt/montavista/pro/devkit/ppc/83xx/target/usr/lib and not /usr/lib
where it will *eventually* be located. Fortunately, the runtime linker
will look in /usr/lib anyway, and all will work.

Proper fix: Build a cross version of libtool and use that.
Post by Anik Wadehra
1) I have check the fiule /usr/lib/libtiff.so the file exists but
IT IS COMPATIBLE WITH X86 architecture.
Of course it is, it's for the host, not the ppc target.
------------------------------------------------------------------------
-----------------------------------------------
Post by Anik Wadehra
The contents of this e-mail and any attachment(s) are confidential and
intended
for the named recipient(s) only.
It shall not attach any liability on the originator or NECHCL or its
affiliates. Any views or opinions presented in
this email are solely those of the author and may not necessarily reflect the
opinions of NECHCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure,
modification,
Post by Anik Wadehra
distribution and / or publication of
this message without the prior written consent of the author of this e-mail is
strictly prohibited. If you have
received this email in error please delete it and notify the sender
immediately. .
Perhaps this will help your legal team understand some basic facts (or
not):

CONFIDENTIALITY NOTICE: This is an email. It is the electronic
equivalent of a postcard. It has been split up into hundreds or
thousands of packets, blasted throughout the globe, logged,
scanned, filtered, parsed, grepped and heuristically analyzed by
countless computers as well as humans. Nothing sent via email
is confidential or read only by the intended recipient.
--
David N. Lombard
Rossmoor, Orange County, CA



DISCLAIMER:
-----------------------------------------------------------------------------------------------------------------------
The contents of this e-mail and any attachment(s) are confidential and
intended
for the named recipient(s) only.
It shall not attach any liability on the originator or NECHCL or its
affiliates. Any views or opinions presented in
this email are solely those of the author and may not necessarily reflect the
opinions of NECHCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure, modification,
distribution and / or publication of
this message without the prior written consent of the author of this e-mail is
strictly prohibited. If you have
received this email in error please delete it and notify the sender
immediately. .
-----------------------------------------------------------------------------------------------------------------------
Loading...