Dear all
Base on the AN1167-PN7120 Linux Software Stack Integration Guidelines document,
In 4.2 Installation instructions part
I use the cross compiler generating makefile:
./configure --enable-llcp1_3 CC=arm-unknown-linux-uclibcgnueabi-cc --host=arm openssldir=/opt/openssl
But Error message appears when building the source:
libtool: link: can not build a shared library
libtool: link: See the libtool documentation for more information.
libtool: link: Fatal configuration error.
How to solve it?
Thanks.
Wallace
Dear Jeremy
I modify the configure host options
Use below options generation the makefile:
./configure --host=arm-unknown-linux-uclibcgnueabi --prefix=$PWD
It's no need modify Makefile.am file
And It can build the nfcDemoApp
Thank you for your help
Regards,
Wallace
Hello Jeremy
Depending on your proposed approach
I try use "./configure CC=arm-unknown-linux-uclibcgnueabi-cc --host=arm" to generating makefile and building
The error message still occurs.
But I found, when generating the makefile, configure file will check shared libraries, the message below:
-----
checking whether the g++ linker (/opt/toolchains/crosstools-arm-gcc-4.6-linux-3.4-uclibc-0.9.32-binutils-2.21-NPTL/usr/arm-unknown-linux-uclibcgnueabi/bin/ld) supports shared libraries... no
------
Is it causing the "libtool: link: can not build a shared library" problem?
If yes, how to add option on ./configure to solve it?
Thanks.
Wallace
Hi Wallace,
Try to remove "-shared" directive from libnfc_nci_linux_la_LDFLAGS in Makefile.am file.
Then run again bootstrap and configure.
If not sufficient try removing also "-fPIC" directive.
Regards,
Jeremy.
Hello Wallace,
Does the error relates to the openssl library ?
Do you see the same error if building after having configured without the "--enable-llcp1_3" option ?
Regards,
Jeremy.