Hi again all, I've managed to get one step further with the Measurement Computing DIO24 card.
After scouring the archives of this group I managed to find a reference to Ubuntu 8.04, the instructions seem to work the same for 10.04 (Lucid LTS). If you run: ./configure --prefix=/usr CPPFLAGS=-U_FORTIFY_SOURCE Then the following compile will skip buffer overflow checks and other random code sanity checks that Ubuntu applies by default. It seems to finish successfully (not really sure as I'm not working correctly yet). However I still don't have a /dev/gpio0. After some research I discovered Ubuntu comes with the Comedi kernel module which resides on /dev/comedi0, this is the MC card in Ubuntu 10. Do I have to remove the comedi module in order to get this to play along? Finally for one more silly question, I suppose its too easy to just redirect Rivendell local GPIO to /dev/comedi0? Sincere apologies for the never ending questions as of late. Wayne On Fri, 29 Jul 2011 12:52:06 +0100, Wayne Merricks <[email protected]> wrote: > As part of the prereq process for Riv 2 I install these qt3 packages: > > libqt3-mt-mysql > qt3-dev-tools > qt3-dev-tools-compat > qt4-dev-tools > qt3-qtconfig > > I have a working Riv2 I'm just trying to retroactively install the GPIO > card. > > On Fri, 29 Jul 2011 12:48:26 +0100, Geoff Barkman > <[email protected]> > wrote: > >> Its not something like qt3-dev-tools or libqt3-mt-mysql missing? Or >> anything else to do with qt3? >> Many Thanks >> Geoff Barkman >> >> On Fri, Jul 29, 2011 at 11:34 PM, Wayne Merricks >> <[email protected]> wrote: >>> Hi again all, >>> >>> First of all apologies for continually bugging you all this week. I >>> had a >>> shiny new MC PCI-DIO24 arrive this morning and following the >>> instructions >>> on the wiki you simply do the following: >>> >>> 1. Download the driver from Rivendell >>> (http://www.rivendellaudio.org/ftpdocs/gpio/gpio-1.1.0.tar.gz) >>> 2. Extract it >>> 3. run ./configure (completes with no issues) >>> 4. run make >>> >>> Unfortunately step 4 is where the errors start. I'm running Ubuntu >>> 10.04 >>> and the terminal spits out: >>> >>> rivwks@RIVWKS002:~/Downloads/gpio-1.1.0$ make >>> Making all in drv >>> >>> make[1]: Entering directory `/home/rivwks/Downloads/gpio-1.1.0/drv' >>> make -C /lib/modules/2.6.32-33-generic/build >>> SUBDIRS=/home/rivwks/Downloads/gpio-1.1.0/drv modules >>> make[2]: Entering directory `/usr/src/linux-headers-2.6.32-33-generic' >>> Building modules, stage 2. >>> MODPOST 1 modules >>> make[2]: Leaving directory `/usr/src/linux-headers-2.6.32-33-generic' >>> make[1]: Leaving directory `/home/rivwks/Downloads/gpio-1.1.0/drv' >>> Making all in utils >>> make[1]: Entering directory `/home/rivwks/Downloads/gpio-1.1.0/utils' >>> if g++ -DPACKAGE_NAME=\"gpio\" -DPACKAGE_TARNAME=\"gpio\" >>> -DPACKAGE_VERSION=\"1.1.0\" -DPACKAGE_STRING=\"gpio\ 1.1.0\" >>> -DPACKAGE_BUGREPORT=\"Fred\ Gleason\ \<[email protected]\>\" >>> -DPACKAGE=\"gpio\" -DVERSION=\"1.1.0\" -I. -I. -I../drv -Wall >>> -DPREFIX=\"/usr/local\" -DQTDIR=\"\" -I/usr/include/qt3 >>> -DQT_THREAD_SUPPORT -g -O2 -MT rconf.o -MD -MP -MF ".deps/rconf.Tpo" >>> -c >>> -o rconf.o rconf.cpp; \ >>> then mv -f ".deps/rconf.Tpo" ".deps/rconf.Po"; else rm -f >>> ".deps/rconf.Tpo"; exit 1; fi >>> >>> <Snipped out a bunch of warnings> >>> >>> In file included from /usr/include/fcntl.h:205, >>> from rconf.cpp:28: >>> In function ‘int open(const char*, int, ...)’, >>> inlined from ‘int IncrementIndex(char*, int)’ at rconf.cpp:248: >>> /usr/include/bits/fcntl2.h:51: error: call to ‘__open_missing_mode’ >>> declared with attribute error: open with O_CREAT in second argument >>> needs >>> 3 arguments >>> make[1]: *** [rconf.o] Error 1 >>> make[1]: Leaving directory `/home/rivwks/Downloads/gpio-1.1.0/utils' >>> make: *** [all-recursive] Error 1 >>> >>> >>> I'm not a great C programmer but the error looks like a code issue with >>> supplying the wrong arguments to a function? If anyone has any >>> experience >>> with GPIO and Ubuntu it would be very appreciated. >>> >>> -- >>> Regards, >>> >>> Wayne Merricks >>> The Voice Asia >>> ####################### >>> Scanned by MailMarshal >>> ####################### >>> >>> #################################################################################################################################################################################################################### >>> >>> Attention: >>> >>> The information contained in this message is confidential and intended >>> for the addressee(s) only. If you have received this message in error >>> or there are any problems, please notify the originator immediately. >>> The unauthorised use, disclosure, copying or alteration of this message >>> is strictly forbidden. Christian Vision or any of its subsidiaries will >>> not be liable for direct, special, indirect or consequential damages >>> arising from alteration of the contents of this message by a third >>> party or as a result of any virus being passed on. Please note that we >>> reserve the right to monitor and read any e-mails sent or received by >>> the >>> company under the Telecommunications (Lawful Business Practice) >>> (Interception of Communications) Regulation 2000. Christian Vision is >>> registered in England as a limited company 2842414 and as a charity >>> 1031031 >>> >>> #################################################################################################################################################################################################################### >>> _______________________________________________ >>> Rivendell-dev mailing list >>> [email protected] >>> http://lists.rivendellaudio.org/mailman/listinfo/rivendell-dev >>> >> _______________________________________________ >> Rivendell-dev mailing list >> [email protected] >> http://lists.rivendellaudio.org/mailman/listinfo/rivendell-dev ####################### Scanned by MailMarshal ####################### #################################################################################################################################################################################################################### Attention: The information contained in this message is confidential and intended for the addressee(s) only. If you have received this message in error or there are any problems, please notify the originator immediately. The unauthorised use, disclosure, copying or alteration of this message is strictly forbidden. Christian Vision or any of its subsidiaries will not be liable for direct, special, indirect or consequential damages arising from alteration of the contents of this message by a third party or as a result of any virus being passed on. Please note that we reserve the right to monitor and read any e-mails sent or received by the company under the Telecommunications (Lawful Business Practice) (Interception of Communications) Regulation 2000. Christian Vision is registered in England as a limited company 2842414 and as a charity 1031031 #################################################################################################################################################################################################################### _______________________________________________ Rivendell-dev mailing list [email protected] http://lists.rivendellaudio.org/mailman/listinfo/rivendell-dev
