Another interesting unknown, on Fedora 22, I get: [root@localhost Forth]# gforth i2c.fs sh: --silent: command not found
in file included from *OS command line*:-1 i2c.fs:23: libtool compile failed >>>end-c-library<<< Backtrace: $B68C8B04 throw $B68EA534 c(abort") $B68EABD8 compile-wrapper-function1 DaR -----Original Message----- From: Dennis Ruffer [mailto:[email protected]] Sent: Sunday, May 8, 2016 8:48 PM To: 'Bernd Paysan' <[email protected]>; [email protected] Subject: RE: [gforth] I2C framework From: Dennis Ruffer [mailto:[email protected]] Sent: Saturday, May 7, 2016 6:53 PM >From: Bernd Paysan [mailto:[email protected]] Sent: Saturday, May 7, >2016 2:46 PM >>>Am Freitag, 6. Mai 2016, 15:14:54 CEST schrieb Dennis Ruffer: >>>> Does anyone have an I2C framework on gforth that I can "borrow"? >>> >>>> I see that unix/serial.fs has most of the pieces, but it would be >>> easier if someone had already tested the ioctl I2C_RDWR interface. >>> >>> Thanks for whatever pointers anyone can provide. >> >>I haven't tried yet, but one of my ARM boards actually has something hooked up to the i2c bus, so I could try... > >I'll have to do something with some open hardware design then and post it. >Maybe the Raspberry Pi has something. Here's a start, but this one gives: pi@raspberrypi:~/Documents/Forth $ gforth i2c.fs in file included from *OS command line*:-1 i2c.fs:26: Undefined word >>>O_RDWR<<< open throw Backtrace: $B68FBEDC throw $B6908600 no.extensions $B68FDE10 compiler-notfound1 But when I used r/w, I got: pi@raspberrypi:~/Documents/Forth $ gforth i2c.fs Gforth 0.7.2, Copyright (C) 1995-2008 Free Software Foundation, Inc. Gforth comes with ABSOLUTELY NO WARRANTY; for details type `license' Type `bye' to exit i2c-detect /home/pi/.gforth/libcc-named/.libs/i2c.so.0: undefined symbol: gforth_c_open_ann_n :1: Invalid name argument >>>i2c-detect<<< Backtrace: $B69CF7D8 throw $B69CF900 link-wrapper-function $B69D0730 open $B69D080C open-i2c-dev It's been a while since I've gotten this deep, so excuse my ignorance. But help please. ;) DaR
