photron Posted December 6, 2012 at 03:50 PM Share Posted December 6, 2012 at 03:50 PM was muss ich da im source anpassen? Um was zu tun? Ohne libudev zu compilieren? Quote Link to comment Share on other sites More sharing options...
Guest HotPizzaBox Posted December 6, 2012 at 03:57 PM Share Posted December 6, 2012 at 03:57 PM genau Quote Link to comment Share on other sites More sharing options...
skippi Posted December 6, 2012 at 04:05 PM Share Posted December 6, 2012 at 04:05 PM Sag mal für welche arm-Architektur brauchst Du denn das udev ? Beim Raspberry sind entsprechende Pakete (armhf) vorhanden. Dort kompiliert der brickd (bei mir) auch problemlos. Quote Link to comment Share on other sites More sharing options...
photron Posted December 6, 2012 at 04:09 PM Share Posted December 6, 2012 at 04:09 PM Ich habe gerade das Makefile so geändert dass du jetzt make WITH_LIBUDEV=no ausführen kannst und einen brickd ohne libudev bekommst. Vorher einmal make clean, damit die neuen Rules auch wirken. Quote Link to comment Share on other sites More sharing options...
Guest HotPizzaBox Posted December 6, 2012 at 04:25 PM Share Posted December 6, 2012 at 04:25 PM ich arbeite auf einem Beagleboard. Ich weiss das es dafür auch schon ports von ubuntu etc. gibt. Jedoch habe ich ein eigenes Linux installiert nach der Anleitung von Embedded Linux from Scratch @photron thanks, ich werde das ausprobieren Quote Link to comment Share on other sites More sharing options...
skippi Posted December 6, 2012 at 04:31 PM Share Posted December 6, 2012 at 04:31 PM Die Sourcen für udev wurden zum systemd verlegt. Siehe: http://cgit.freedesktop.org/systemd/systemd Quote Link to comment Share on other sites More sharing options...
Guest HotPizzaBox Posted December 6, 2012 at 04:50 PM Share Posted December 6, 2012 at 04:50 PM also, ich habe die libusb-1.0 unter /mnt/clfs/cross-tools/lib und include/libusb-1.0 wie muss ich da LIBUSB_CFLAGS und LIBUSB_LDFLAGS und LIBUSB_LIBS anpassen? Quote Link to comment Share on other sites More sharing options...
photron Posted December 6, 2012 at 04:56 PM Share Posted December 6, 2012 at 04:56 PM Entweder im Makefile die Variablen so setzen: LIBUSB_CFLAGS := -I/mnt/clfs/cross-tools/include/libusb-1.0 LIBUSB_LDFLAGS := -L/mnt/clfs/cross-tools/lib LIBUSB_LIBS := -lusb-1.0 oder make so aufrufen: make WITH_LIBUDEV=no LIBUSB_CFLAGS=-I/mnt/clfs/cross-tools/include/libusb-1.0 LIBUSB_LDFLAGS=-L/mnt/clfs/cross-tools/lib LIBUSB_LIBS=-lusb-1.0 Quote Link to comment Share on other sites More sharing options...
Guest HotPizzaBox Posted December 6, 2012 at 05:48 PM Share Posted December 6, 2012 at 05:48 PM kk, leider will nun die usblib nicht initialisieren... Quote Link to comment Share on other sites More sharing options...
Guest HotPizzaBox Posted December 10, 2012 at 11:45 AM Share Posted December 10, 2012 at 11:45 AM Also, die Bricks laufen ohne Probleme auf dem Beagleboart mit der Arch distribution. Nur beim Compilen von meinem Programm musste ich beim g++ das Flag -fpermissive angeben. Quote Link to comment Share on other sites More sharing options...
photron Posted December 11, 2012 at 08:46 AM Share Posted December 11, 2012 at 08:46 AM Nur beim Compilen von meinem Programm musste ich beim g++ das Flag -fpermissive angeben. Welche Fehler hast du denn ohne -fpermissive bekommen? Waren das Fehler in den C/C++ Bindings? Dann hätte ich sie gerne gewusst um das verbessern zu können. Quote Link to comment Share on other sites More sharing options...
Guest HotPizzaBox Posted December 11, 2012 at 08:59 AM Share Posted December 11, 2012 at 08:59 AM Befehl: g++ -pthread main.c defines.h ip_connection.h ip_connection.c bricklet_humidity.h bricklet_humidity.c bricklet_lcd_20x4.h bricklet_lcd_20x4.c bricklet_temperature.h bricklet_temperature.c -o test Ausgabe: ip_connection.c: In function ‘void* thread_wrapper(void*)’: ip_connection.c:469:19: error: invalid conversion from ‘void*’ to ‘Thread*’ [-fpermissive] bricklet_humidity.c: In function ‘void humidity_create(Humidity*, const char*, IPConnection*)’: bricklet_humidity.c:241:60: error: invalid conversion from ‘void (*)(Humidity*, Packet*) {aka void (*)(Device_*, Packet*)}’ to ‘void*’ [-fpermissive] bricklet_humidity.c:242:64: error: invalid conversion from ‘void (*)(Humidity*, Packet*) {aka void (*)(Device_*, Packet*)}’ to ‘void*’ [-fpermissive] bricklet_humidity.c:243:68: error: invalid conversion from ‘void (*)(Humidity*, Packet*) {aka void (*)(Device_*, Packet*)}’ to ‘void*’ [-fpermissive] bricklet_humidity.c:244:72: error: invalid conversion from ‘void (*)(Humidity*, Packet*) {aka void (*)(Device_*, Packet*)}’ to ‘void*’ [-fpermissive] bricklet_lcd_20x4.c: In function ‘void lcd_20x4_create(LCD20x4*, const char*, IPConnection*)’: bricklet_lcd_20x4.c:151:66: error: invalid conversion from ‘void (*)(LCD20x4*, Packet*) {aka void (*)(Device_*, Packet*)}’ to ‘void*’ [-fpermissive] bricklet_lcd_20x4.c:152:67: error: invalid conversion from ‘void (*)(LCD20x4*, Packet*) {aka void (*)(Device_*, Packet*)}’ to ‘void*’ [-fpermissive] bricklet_temperature.c: In function ‘void temperature_create(Temperature*, const char*, IPConnection*)’: bricklet_temperature.c:155:69: error: invalid conversion from ‘void (*)(Temperature*, Packet*) {aka void (*)(Device_*, Packet*)}’ to ‘void*’ [-fpermissive] Aber ich bin mir nicht ganz sicher, ob es wirklich an den Bindings liegt. Quote Link to comment Share on other sites More sharing options...
photron Posted December 11, 2012 at 09:22 AM Share Posted December 11, 2012 at 09:22 AM Das Problem lag daran, dass ich nur mit gcc und nicht g++ getestet habe. Ist jetzt behoben in git. Danke für den Hinweise. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.