Jump to content
View in the app

A better way to browse. Learn more.

Tinkerunity

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

C/C++ Beispielprogramm mit Makefile kompilieren klappt nicht

Featured Replies

Geschrieben

Guten Abend

 

Ich bin nun auch in der Welt von Tinkerforge gelandet.

 

Ich teste seit gestern den RED Brick. Leider scheitere ich bereits beim hochladen und ausführen eines simplen Testprogramms  :(

 

Dazu habe ich mir das Beispielprogramm zum Piezo Speaker geholt (example_beep.c).

Ich habe das Makefile entsprechend angepasst und das ganze hochgeladen.

Bereits beim hochladen erhielt ich die Meldung, dass das Programm nicht kompilliert werden konnte.

 

Im Log finde ich folgendes:

 

2016-02-11T03:06:54.744519+0100

-------------------------------------------------------------------------------

./example_beep.c: line 2: $'\r': command not found

./example_beep.c: line 5: $'\r': command not found

./example_beep.c: line 9: $'\r': command not found

./example_beep.c: line 10: syntax error near unexpected token `('

./example_beep.c: line 10: `int main(void) {

'

 

 

Was mache ich falsch?

Danke für die Hilfe.

 

Gruss

 

edit: Beim compilieren mit dem Makefile wird folgendes ausgegeben: Makefile:13: *** missing separator (did you mean TAB instead of 8 spaces?).  Stop.

 

Geschrieben

Hallo Achsdrian,

 

ich hatte das selbe Problem, bin dann aber über die Lösung gestolpert.

Ersetze in dem Beispiel-Makefile in den Zeilen 13, 16 und 19 die vier Leerzeichen am Anfang durch einen Tab. Danach hat es bei mir funktioniert.

Geschrieben

Hallo NuEM

 

Tausend Dank!!!

Hat bei mir jetzt auch geklappt....jetzt macht auch die Fehlermeldung irgendwie Sinn ;)

War kurz vor dem verzweifeln.

Danke nochmals :)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Gast
Reply to this topic...

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.