wiringPi # ./build # Fehler

  • Hallo zusammen,

    habe beim Installieren von "wiringPi" mehrere "Warnungen" und Probleme beim Erzeugen der ausführbaren Datei mit "wiringPi-Serial-Library".....

    Hat jemand eine Idee ?

    "Fehlermeldungen Compiler"

    gcc -Wall -o "serialRead_2" "serialRead_2.c" -lwiringPi (im Verzeichnis: /home/user/Downloads/serialRead)
    /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libwiringPi.so: Nicht definierter Verweis auf `pthread_join'
    /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libwiringPi.so: Nicht definierter Verweis auf `pthread_create'
    /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libwiringPi.so: Nicht definierter Verweis auf `pthread_cancel'
    collect2: error: ld returned 1 exit status
    Kompilierung fehlgeschlagen.

    "WiringPi - build-Warnungen"

    wiringPi Build script
    =====================


    WiringPi Library
    [UnInstall]
    [Compile] wiringPi.c
    wiringPi.c: In function ‘wiringPiSetup’:
    wiringPi.c:1778:7: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
    if ((int32_t)gpio == -1)
    ^
    wiringPi.c:1784:7: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
    if ((int32_t)pwm == -1)
    ^
    wiringPi.c:1790:7: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
    if ((int32_t)clk == -1)
    ^
    wiringPi.c:1796:7: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
    if ((int32_t)pads == -1)
    ^
    wiringPi.c: In function ‘digitalRead’:
    wiringPi.c:1240:14: warning: ignoring return value of ‘read’, declared with attribute warn_unused_result [-Wunused-result]
    read (sysFds [pin], &c, 1) ;
    ^
    wiringPi.c: In function ‘digitalWrite’:
    wiringPi.c:1281:10: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
    write (sysFds [pin], "0\n", 2) ;
    ^
    wiringPi.c:1283:10: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
    write (sysFds [pin], "1\n", 2) ;
    ^
    wiringPi.c: In function ‘waitForInterrupt’:
    wiringPi.c:1478:3: warning: ignoring return value of ‘read’, declared with attribute warn_unused_result [-Wunused-result]
    (void)read (fd, &c, 1) ;
    ^
    wiringPi.c: In function ‘wiringPiISR’:
    wiringPi.c:1593:10: warning: ignoring return value of ‘read’, declared with attribute warn_unused_result [-Wunused-result]
    read (sysFds [bcmGpioPin], &c, 1) ;
    ^
    [Compile] wiringSerial.c
    wiringSerial.c: In function ‘serialPutchar’:
    wiringSerial.c:146:9: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
    write (fd, &c, 1) ;
    ^
    wiringSerial.c: In function ‘serialPuts’:
    wiringSerial.c:158:9: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
    write (fd, s, strlen (s)) ;
    ^
    [Compile] wiringShift.c
    [Compile] piHiPri.c
    [Compile] piThread.c
    [Compile] wiringPiSPI.c
    [Compile] wiringPiI2C.c
    [Compile] softPwm.c
    [Compile] softTone.c
    [Compile] mcp23008.c
    [Compile] mcp23016.c
    [Compile] mcp23017.c
    [Compile] mcp23s08.c
    [Compile] mcp23s17.c
    [Compile] sr595.c
    [Compile] pcf8574.c
    [Compile] pcf8591.c
    pcf8591.c: In function ‘myAnalogWrite’:
    pcf8591.c:44:9: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
    write (node->fd, b, 2) ;
    ^
    [Compile] mcp3002.c
    [Compile] mcp3004.c
    [Compile] mcp4802.c
    [Compile] mcp3422.c
    mcp3422.c: In function ‘myAnalogRead’:
    mcp3422.c:62:12: warning: ignoring return value of ‘read’, declared with attribute warn_unused_result [-Wunused-result]
    read (node->fd, buffer, 4) ;
    ^
    mcp3422.c:68:12: warning: ignoring return value of ‘read’, declared with attribute warn_unused_result [-Wunused-result]
    read (node->fd, buffer, 3) ;
    ^
    mcp3422.c:74:12: warning: ignoring return value of ‘read’, declared with attribute warn_unused_result [-Wunused-result]
    read (node->fd, buffer, 3) ;
    ^
    mcp3422.c:80:12: warning: ignoring return value of ‘read’, declared with attribute warn_unused_result [-Wunused-result]
    read (node->fd, buffer, 3) ;
    ^
    [Compile] max31855.c
    [Compile] max5322.c
    [Compile] sn3218.c
    [Compile] drcSerial.c
    [Link (Dynamic)]
    [Install Headers]
    [Install Dynamic Lib]

    WiringPi Devices Library
    [UnInstall]
    [Compile] ds1302.c
    [Compile] maxdetect.c
    [Compile] piNes.c
    [Compile] gertboard.c
    [Compile] piFace.c
    [Compile] lcd128x64.c
    [Compile] lcd.c
    [Compile] piGlow.c
    [Link (Dynamic)]
    [Install Headers]
    [Install Dynamic Lib]

    GPIO Utility
    [Compile] gpio.c
    gpio.c: In function ‘doLoad’:
    gpio.c:214:12: warning: ignoring return value of ‘system’, declared with attribute warn_unused_result [-Wunused-result]
    system (cmd) ;
    ^
    gpio.c:220:12: warning: ignoring return value of ‘system’, declared with attribute warn_unused_result [-Wunused-result]
    system (cmd) ;
    ^
    [Compile] extensions.c
    [Compile] readall.c
    [Compile] pins.c
    [Link]
    [Install]

    All Done.

    NOTE: To compile programs with wiringPi, you need to add:
    -lwiringPi
    to your compile line(s) To use the Gertboard, MaxDetect, etc.
    code (the devLib), you need to also add:
    -lwiringPiDev
    to your compile line(s).

    Einmal editiert, zuletzt von Frank86 (11. September 2014 um 18:10)

  • Hm ...
    erstens: bitte spoiler- oder code-tags verwenden. In quotes kannst Du den gesamten Output auch gleich hier rein stellen (guck mal -> hier <-).

    Dann: wo ist Dein Problem?
    Die wiringPi ist korrekt übersetzt und installiert - die warnings kannst Du ignorieren.
    Und dass Du auf/für den RPi keinen 64 Bit x86 Compiler verwenden kannst, sollte ja wohl klar sein :fies:

    cu,
    -ds-

  • Zitat

    Und dass Du auf/für den RPi keinen 64 Bit x86 Compiler verwenden kannst, sollte ja wohl klar sein Icon_fies

    ... macht Sinn :s ... und wie kann ich auf einem 64bit-Rechner das PRG für den Pi compilieren ? vorzugsweise mit geany oder Komandozeile ?

    Einmal editiert, zuletzt von Frank86 (11. September 2014 um 18:07)

  • Tjaaaa ... GNU tool chain ...
    die gibts auch für Windows ... aber was das Zeuchs aus Redmond in diesem Zusammenhang betrifft muss ich leider passen ... -> hier <- ist z.B. mal ein Link für Dich.
    Musst halt die passende raussuchen und installieren.

    cheers,
    -ds-

Jetzt mitmachen!

Du hast noch kein Benutzerkonto auf unserer Seite? Registriere dich kostenlos und nimm an unserer Community teil!