NFC Installation instructions error

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

NFC Installation instructions error

1,405 Views
taiweishao
Contributor I

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

0 Kudos
4 Replies

1,105 Views
taiweishao
Contributor I

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

0 Kudos

1,105 Views
taiweishao
Contributor I

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

0 Kudos

1,105 Views
jeremygeslin
NXP Employee
NXP Employee

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.

0 Kudos

1,105 Views
jeremygeslin
NXP Employee
NXP Employee

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.

0 Kudos