Hi
I bought an OM27160 to test PN7160 reader
I tried to buid the Linux libnfc-nci library (branch NCI2.0_PN7160) following AN13287 for iMX6.
The build process crashed with the following message:
./arm-libtool --tag=CXX --mode=link arm-poky-linux-gnueabi-g++ -march=armv7-a -marm -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a9 --sysroot=/opt/poky/test/sysroots/cortexa9hf-neon-poky-linux-gnueabi -std=c++0x -O2 -pipe -feliminate-unused-debug-types -shared -o libpn7160_fw.la -rpath /usr/local/lib firmware/pn7160/phDnldNfc_UpdateSeq.lo firmware/pn7160/phDnldNfc_ImageInfo.lo
./arm-libtool: line 2636: func__fatal_error: command not found
arm-libtool: link: ( cd ".libs" && rm -f "libpn7160_fw.la" && ln -s "../libpn7160_fw.la" "libpn7160_fw.la" )
depbase=`echo demoapp/main.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
arm-poky-linux-gnueabi-gcc -march=armv7-a -marm -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a9 --sysroot=/opt/poky/test/sysroots/cortexa9hf-neon-poky-linux-gnueabi -DHAVE_CONFIG_H -I. -DCONFIG_PATH='"/usr/local/etc/"' -I./src/include -I./src/nxp_nci_hal_libnfc-nci/src/include -I./src/nxp_nci_hal_libnfc-nci/src/ -I./src/nxp_nci_hal_libnfc-nci/src/gki/ulinux -I./src/nxp_nci_hal_libnfc-nci/src/gki/common -I./src/nxp_nci_hal_libnfc-nci/src/nfa/include -I./src/nxp_nci_hal_libnfc-nci/src/nfa/int -I./src/nxp_nci_hal_libnfc-nci/src/nfc/include -I./src/nxp_nci_hal_libnfc-nci/src/nfc/int -I./src/nxp_nci_hal_libnfc-nci/src/hal/include -I./src/nxp_nci_hal_libnfc-nci/src/hal/int -I./src/nxp_nci_hal_libnfc-nci/src/fuzzers/inc/android/hardware/nfc/1.1/ -I./src/android/utility/ -I./src/nfcandroid_nfc_hidlimpl/halimpl/utils/ -I./src/libnfc-utils/inc -I./src/nfcandroid_nfc_hidlimpl/halimpl/common/ -I./src/android/utility/hardware/ -I./src/android/utility/android/ -I./src/nxp_nci_hal_libnfc-nci/src/gki/ulinux -I./src/nxp_nci_hal_libnfc-nci/src/include -I./src/nfcandroid_nfc_hidlimpl/halimpl/utils/ -I./src/nfcandroid_nfc_hidlimpl/halimpl/inc/ -I./src/nfcandroid_nfc_hidlimpl/halimpl/common/ -I./src/nfcandroid_nfc_hidlimpl/halimpl/dnld/ -I./src/nfcandroid_nfc_hidlimpl/halimpl/hal/ -I./src/nfcandroid_nfc_hidlimpl/halimpl/log/ -I./src/nfcandroid_nfc_hidlimpl/halimpl/tml -I./src/nxp_nci_hal_libnfc-nci/src/fuzzers/inc/android/hardware -I./src/nfcandroid_nfc_hidlimpl/halimpl/self-test -I./src/nfcandroid_nfc_hidlimpl/halimpl/mifare -I./src/nfcandroid_nfc_hidlimpl/halimpl/tml/transport -I./src/nfcandroid_nfc_hidlimpl/halimpl/src/include -I./src/nxp_nci_hal_libnfc-nci/src/fuzzers/inc/ -I./src/nxp_nci_hal_libnfc-nci/utils/include -I./src/nxp_nci_hal_libnfc-nci/utils -I./src/nfcandroid_nfc_hidlimpl/extns/impl/ -I./src/android/secure_element/extns/impl/ -I./src/android/utility/base/ -I./src/libnfc-utils/inc -I./src/service/interface -I./src/service/utils -I./src/nxp_nci_hal_nfc/nci/jni/extns/pn54x/inc -I./src/nxp_nci_hal_nfc/nci/jni/extns/pn54x/src/common -I./src/nxp_nci_hal_nfc/nci/jni/extns/pn54x/src/mifare -I./src/nxp_nci_hal_nfc/nci/jni/ -I./src/nfcandroid_nfc_hidlimpl/halimpl/log -DNDEBUG -pthread -w -DNFC_NXP_NOT_OPEN_INCLUDED=TRUE -DNXP_HW_SELF_TEST -DNXP_NFC_NATIVE_ENABLE_HCE=TRUE -DNFC_NXP_LLCP_SECURED_P2P=FALSE -DPH_NCI_NXP_HAL_ENABLE_FW_DOWNLOAD=FALSE -DNXP_NEW_MW_API_COMPATIBILITY -DNXP_EXTNS=TRUE -DLINUX -DSNEP_ENABLED -I./firmware/pn7160 -O2 -MT demoapp/main.o -MD -MP -MF $depbase.Tpo -c -o demoapp/main.o demoapp/main.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo demoapp/tools.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
arm-poky-linux-gnueabi-gcc -march=armv7-a -marm -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a9 --sysroot=/opt/poky/test/sysroots/cortexa9hf-neon-poky-linux-gnueabi -DHAVE_CONFIG_H -I. -DCONFIG_PATH='"/usr/local/etc/"' -I./src/include -I./src/nxp_nci_hal_libnfc-nci/src/include -I./src/nxp_nci_hal_libnfc-nci/src/ -I./src/nxp_nci_hal_libnfc-nci/src/gki/ulinux -I./src/nxp_nci_hal_libnfc-nci/src/gki/common -I./src/nxp_nci_hal_libnfc-nci/src/nfa/include -I./src/nxp_nci_hal_libnfc-nci/src/nfa/int -I./src/nxp_nci_hal_libnfc-nci/src/nfc/include -I./src/nxp_nci_hal_libnfc-nci/src/nfc/int -I./src/nxp_nci_hal_libnfc-nci/src/hal/include -I./src/nxp_nci_hal_libnfc-nci/src/hal/int -I./src/nxp_nci_hal_libnfc-nci/src/fuzzers/inc/android/hardware/nfc/1.1/ -I./src/android/utility/ -I./src/nfcandroid_nfc_hidlimpl/halimpl/utils/ -I./src/libnfc-utils/inc -I./src/nfcandroid_nfc_hidlimpl/halimpl/common/ -I./src/android/utility/hardware/ -I./src/android/utility/android/ -I./src/nxp_nci_hal_libnfc-nci/src/gki/ulinux -I./src/nxp_nci_hal_libnfc-nci/src/include -I./src/nfcandroid_nfc_hidlimpl/halimpl/utils/ -I./src/nfcandroid_nfc_hidlimpl/halimpl/inc/ -I./src/nfcandroid_nfc_hidlimpl/halimpl/common/ -I./src/nfcandroid_nfc_hidlimpl/halimpl/dnld/ -I./src/nfcandroid_nfc_hidlimpl/halimpl/hal/ -I./src/nfcandroid_nfc_hidlimpl/halimpl/log/ -I./src/nfcandroid_nfc_hidlimpl/halimpl/tml -I./src/nxp_nci_hal_libnfc-nci/src/fuzzers/inc/android/hardware -I./src/nfcandroid_nfc_hidlimpl/halimpl/self-test -I./src/nfcandroid_nfc_hidlimpl/halimpl/mifare -I./src/nfcandroid_nfc_hidlimpl/halimpl/tml/transport -I./src/nfcandroid_nfc_hidlimpl/halimpl/src/include -I./src/nxp_nci_hal_libnfc-nci/src/fuzzers/inc/ -I./src/nxp_nci_hal_libnfc-nci/utils/include -I./src/nxp_nci_hal_libnfc-nci/utils -I./src/nfcandroid_nfc_hidlimpl/extns/impl/ -I./src/android/secure_element/extns/impl/ -I./src/android/utility/base/ -I./src/libnfc-utils/inc -I./src/service/interface -I./src/service/utils -I./src/nxp_nci_hal_nfc/nci/jni/extns/pn54x/inc -I./src/nxp_nci_hal_nfc/nci/jni/extns/pn54x/src/common -I./src/nxp_nci_hal_nfc/nci/jni/extns/pn54x/src/mifare -I./src/nxp_nci_hal_nfc/nci/jni/ -I./src/nfcandroid_nfc_hidlimpl/halimpl/log -DNDEBUG -pthread -w -DNFC_NXP_NOT_OPEN_INCLUDED=TRUE -DNXP_HW_SELF_TEST -DNXP_NFC_NATIVE_ENABLE_HCE=TRUE -DNFC_NXP_LLCP_SECURED_P2P=FALSE -DPH_NCI_NXP_HAL_ENABLE_FW_DOWNLOAD=FALSE -DNXP_NEW_MW_API_COMPATIBILITY -DNXP_EXTNS=TRUE -DLINUX -DSNEP_ENABLED -I./firmware/pn7160 -O2 -MT demoapp/tools.o -MD -MP -MF $depbase.Tpo -c -o demoapp/tools.o demoapp/tools.c &&\
mv -f $depbase.Tpo $depbase.Po
./arm-libtool --tag=CC --mode=link arm-poky-linux-gnueabi-gcc -march=armv7-a -marm -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a9 --sysroot=/opt/poky/test/sysroots/cortexa9hf-neon-poky-linux-gnueabi -O2 -pthread -ldl -lrt -lnfc_nci_linux -o nfcDemoApp demoapp/main.o demoapp/tools.o
arm-libtool: error: cannot find name of link library for '/home/mirko/progetti/test/NFC7160/linux_libnfc-nci/libnfc_nci_linux.la'
make[1]: *** [Makefile:1504: nfcDemoApp] Errore 1
make[1]: uscita dalla directory «/home/mirko/progetti/test/NFC7160/linux_libnfc-nci»
make: *** [Makefile:761: all] Errore 2
Hi
I complied this library with native machine (Rapsberry PI) successfully. Maybe your issue involves with the cross compiling for your target environment. I would suggest you check the Makefile.
Regards
Daniel