Menu

adding snap7 library for beaglebone black - make for arm-v7 not working

SAJEEVAN K
2017-04-07
2017-04-07
  • SAJEEVAN K

    SAJEEVAN K - 2017-04-07

    Hi,

    I am planning to use snap7 library in Beaglebone Black(BBB).

    Please advice me in what way I should approach it?

    Can I add the Snap7 library directly to the BBB. Is there any procedure available for it?

    Or is it possible to cross compile the library from an Ubuntu Host (64bit) , with Eclipse CDT and by using some cross tool chain like Linaro.

    I have already downloaded the "1.4.2" from "https://sourceforge.net/projects/snap7/files/" in my Ubuntu Host and created libsnap7.so for x86_64. And this I successfully added to an Eclipse project with local gcc compiler.

    But when I try to make it for arm v7, with

    sudo make -f arm_v7_linux.mk all all

    It is showing following error

    g++ -c "../../src/sys/snap_msgsock.cpp" -O3 -g -fPIC -mword-relocations -pedantic -o ../temp/arm_v7/sys_snap_msgsock.o -I. -I../../src/sys -I../../src/core -I../../src/lib

    g++: error: unrecognized command line option ‘-mword-relocations’

    common.mk:67: recipe for target '../temp/arm_v7/sys_snap_msgsock.o' failed
    make: *** [../temp/arm_v7/sys_snap_msgsock.o] Error 1

    Please suggest how can I overcome this ?

    And also recommend some help documents for the same.

    Thanks & Regards,
    Sajeevan.K

     
  • Davide Nardella

    Davide Nardella - 2017-04-07

    And also recommend some help documents for the same.

    The documentation is here:
    http://snap7.sourceforge.net/snap7_iot.html

    The best way to proceed is to compile the library directly into the board, BBB is powerful enough to do it.
    Once compiled you can import it (not the x86_64) into your cross compile environment.

     
  • SAJEEVAN K

    SAJEEVAN K - 2017-04-07

    Thank You very much.

    Now I could use libsnap7.so library in both BBB and Eclipse CDT

    Thanks & Regards,
    Sajeevan.K

     

Log in to post a comment.