Compile 6200ch.c
Submitted by DuckoDeath on October 14, 2006 - 12:31pm
Could someone post instructions on what needs to be done on a clean MythDora install in order to compile usr/share/doc/mythtv-0.19/contrib/6200ch.c
??
I tried a couple things, but my knowledge in the 'compiling' area is limited.
Thanks.

Right underneath that file
Right underneath that file is the 6200ch.README. It states to compile things in that directory as root:
# cc -o 6200ch 6200ch.c -lrom1394 -lavc1394 -lraw1394
# cp 6200ch /usr/local/bin
All the required libraries are already included in MythDora.
"Please ignore the man behind the curtain"
Dennis
"Please ignore the man behind the curtain"
Dennis
I should have mentioned,
I should have mentioned, that is what I tried... :-)
I get:
6200ch.c:21:32: error: libavc1394/rom1394.h: No such file or directory
6200ch.c:22:32: error: libavc1394/avc1394.h: No such file or directory
6200ch.c:23:32: error: libraw1394/raw1394.h: No such file or directory
6200ch.c:62: error: syntax error before âhandleâ
6200ch.c:63: error: syntax error before âhandleâ
6200ch.c: In function âmainâ:
6200ch.c:80: error: ârom1394_directoryâ undeclared (first use in this function)
6200ch.c:80: error: (Each undeclared identifier is reported only once
6200ch.c:80: error: for each function it appears in.)
6200ch.c:80: error: syntax error before âdirâ
6200ch.c:85: error: âquadlet_tâ undeclared (first use in this function)
6200ch.c:85: error: syntax error before âcmdâ
6200ch.c:129: error: âraw1394handle_tâ undeclared (first use in this function)
6200ch.c:129: error: syntax error before âhandleâ
6200ch.c:132: error: âhandleâ undeclared (first use in this function)
6200ch.c:153: error: âdirâ undeclared (first use in this function)
6200ch.c: At top level:
6200ch.c:200: error: syntax error before âhandleâ
6200ch.c: In function âset_chan_slowâ:
6200ch.c:204: error: âquadlet_tâ undeclared (first use in this function)
6200ch.c:204: error: syntax error before âcmdâ
6200ch.c:206: error: âchnâ undeclared (first use in this function)
6200ch.c:210: error: âverboseâ undeclared (first use in this function)
6200ch.c:213: error: âAVC1394_CTYPE_CONTROLâ undeclared (first use in this funct ion)
6200ch.c:213: error: âAVC1394_SUBUNIT_ID_0â undeclared (first use in this functi on)
6200ch.c:216: error: âcmdâ undeclared (first use in this function)
6200ch.c:219: error: âhandleâ undeclared (first use in this function)
6200ch.c:219: error: âdeviceâ undeclared (first use in this function)
6200ch.c: At top level:
6200ch.c:224: error: syntax error before âhandleâ
6200ch.c: In function âset_chan_fastâ:
6200ch.c:226: error: âquadlet_tâ undeclared (first use in this function)
6200ch.c:226: error: syntax error before âcmdâ
6200ch.c:228: error: âcmdâ undeclared (first use in this function)
6200ch.c:228: error: âAVC1394_CTYPE_CONTROLâ undeclared (first use in this funct ion)
6200ch.c:228: error: âAVC1394_SUBUNIT_ID_0â undeclared (first use in this functi on)
6200ch.c:229: error: âchnâ undeclared (first use in this function)
6200ch.c:232: error: âverboseâ undeclared (first use in this function)
6200ch.c:236: error: âhandleâ undeclared (first use in this function)
6200ch.c:236: error: âdeviceâ undeclared (first use in this function)
If you did a custom install
If you did a custom install then there is a chance that these packages didn't get installed. Try doing this and see if they are installed.
rpm -qa | grep librom
rpm -qa | grep libavc
rpm -qa | grep libraw
If they aren't then install them from your MythDora disk in the RPMS directory.
"Please ignore the man behind the curtain"
Dennis
"Please ignore the man behind the curtain"
Dennis
No so clean?
I assume the following isn't quite right? Should there be only one entry? I may have tried apt-get install libavc1394 at one point. So I guess not exactly "clean". :-(
# rpm -qa | grep librom
librom1394_0-0.5.0-0_6.rhfc4.at
# rpm -qa | grep libavc
libavc1394-0.5.1-0_8.fc4.at
libavc1394_0-0.5.0-0_6.rhfc4.at
# rpm -qa | grep libraw
libraw1394_5-0.10.1-3_4.rhfc4.at
libraw1394-1.2.0-1_7.fc4.at
libraw1394_8-1.2.0-1_6.rhfc4.at
Can I do a:
# rpm -e libavc1394_0-0.5.0-0_6.rhfc4.at
and
# rpm -e libraw1394-1.2.0-1_7.fc4.at
# rpm -e libraw1394_8-1.2.0-1_6.rhfc4.at
Would those be the right one to remove???
Sorry and thank you. I appreciate your help.
Firewire's been working ok, but I thought I'd try using the "priming script" to see if it will stay up for longer than a couple weeks.
I'm not sure. I would think
I'm not sure. I would think that if you had any of these packages which you do that things should work.
"Please ignore the man behind the curtain"
Dennis
"Please ignore the man behind the curtain"
Dennis
Solved.
Hopefully, for someone else's reference...
The following solved my compile problems.
# apt-get install libavc1394-devel
# apt-get install libraw1394-devel
Seems to be working.