Free Ground Shipping on all orders over $100 (US Only)
login   |   Register

Welcome Forums Tarts for Raspberry Pi PI 3 Cannot find -lTarts

This topic contains 2 replies, has 3 voices, and was last updated by Evert Borghgraef EBorghgraef 1 year, 11 months ago.

  • Author
    Posts
  • #3994
    PaulH
    PaulH
    Participant

    I am getting the following error, any suggestions:
    [Uninstalling Tarts]
    [Cleaning all example object and executable files]
    [Tarts library files are not detected — Loading library]
    [Tarts library files are not detected — Loading library]
    [Making Example Applications Now…]
    [Compiling] TartsBasic.cpp
    [Compiling] TartsSniffer.cpp
    [Compiling] TartsAdvanced.cpp
    [Compiling] TartsBasicControl.cpp
    [Compiling] TartsPersistence.cpp
    [Linking : TartsBasic]
    /usr/bin/ld: cannot find -lTarts
    collect2: error: ld returned 1 exit status
    Makefile:32: recipe for target ‘TartsBasic’ failed
    make: *** [TartsBasic] Error 1

  • #4002
    KeithK
    KeithK
    Participant

    The MakeFile in the LibTarts folder needs to have line 39 modifed. W1 needs to change to Wl, were “l” is a lowercase “L”.

    @$(CC) -shared –Wl,-soname,libTarts.so -o libTarts.so.$(VERSION) -lpthread $(OBJ)

    Good Luck.

    -Keith

  • #4463
    Evert Borghgraef
    EBorghgraef
    Participant

    Hi Keith,

    I’ve done as you said, but it didn’t help out.
    OUTPUT:

    [Compiling] TartsBasic.cpp
    [Compiling] TartsSniffer.cpp
    [Compiling] TartsAdvanced.cpp
    [Compiling] TartsBasicControl.cpp
    [Compiling] TartsPersistence.cpp
    TartsPersistence.cpp: In function ‘void OnSenMsgEv(SensorMessage*)’:
    TartsPersistence.cpp:323:40: warning: argument to ‘sizeof’ in ‘char* strncpy(char*, const char*, size_t)’ call is the same expression as the source; did you mean to provide an explicit length? [-Wsizeof-pointer-memaccess]
       strncpy(thisSensorID, msg->ID, sizeof(msg->ID));
                                            ^
    [Linking : TartsBasic]
    /usr/bin/ld: cannot find -lTarts
    collect2: error: ld returned 1 exit status
    Makefile:32: recipe for target 'TartsBasic' failed
    make: *** [TartsBasic] Error 1

You must be logged in to reply to this topic.

Support
Contact Us!

Your Name (required)

Your Email (required)

Subject

Your Message

Enter this code below: To use CAPTCHA, you need Really Simple CAPTCHA plugin installed.