<br><br><div><span class="gmail_quote">On 18/01/06, <b class="gmail_sendername">Brian Wood</b> &lt;<a href="mailto:beww@beww.org">beww@beww.org</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><span style="border-collapse: separate; border-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;">
<br></span> </div><br><div><span class="q"><div>On Jan 18, 2006, at 5:49 AM, Luke wrote:</div><br></span><blockquote type="cite"><br><br><div><span class="q"><span class="gmail_quote">On 18/01/06, <b class="gmail_sendername">
Brian Wood</b> &lt;<a href="mailto:beww@beww.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">beww@beww.org</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
 <div><span><br><div><div>On Jan 17, 2006, at 3:30 PM, Luke wrote:</div><br><blockquote type="cite">I have a situation here, while trying to compile and install lirc from source on FC4.<br> <br><ul><li>I have downloaded the latest kernel source for FC4 and it's installed at:
<br>&nbsp; <span style="font-style: italic;">/usr/src/redhat/BUILD/kernel- 2.6.14/linux-2.6.14/</span></li><li>I made a symbolic link like so: <br><span style="font-style: italic;"> ln -s /usr/src/redhat/BUILD/kernel-2.6.14/linux-
2.6.14&nbsp; /usr/src/linux</span></li><li>running the script <span style="font-style: italic;"> ./configure </span>for lirc is successful</li> <li>the make command generate errors, the first of which is:<br><span style="font-style: italic;">
error: ../drivers/media/video/bttv.h: No such file or directory</span><br>Further errors below that are probably due to the missing bttv.h and similar files.</li></ul><br>I know the so-called missing header files exist at 
<span style="font-style: italic;">/usr/src/redhat/BUILD/kernel-2.6.14/linux-2.6.14/drivers/media/video/* . </span>Where is <span style="font-style: italic;"> make</span> looking for the header files. This looks straight forward but, I am lost. Any ideas?
<br></blockquote><br></div></span></div><div>Well &quot;make&quot; is certainly not looking *there*, that's for sure. On my old FC3 system bttv.h is located in /usr/src/linux/drivers/media/video/</div><div><br></div><div>
Where /usr/src/linux is a link to the proper kernel tree, as your's is.</div><div><br></div><div>You could simply move the file to that place, but I'm betting that would just cause a different error a little later when it failed to find the next header that it wants. 
</div><div><br></div><div>You could also make a link from the actual location of the &quot;drivers&quot; to the similar position in the actual kernel tree, might work but it's hackneyed.</div><div><br></div><div>You could also look at the output of &quot;configure&quot; and see where it *thinks* the headers are located, and either point it to the correct place or link that place to the actual location. 
</div><div><br></div><div>Of course, with recent kernel changes, the bttv.h file you have might not be usable or correct for the version of LIRC that you have :-)</div> <br></blockquote></span><span class="q"><div><br>It appears this is a kernel 
2.6.14. Since this is so new, there is no patch for it yet from <a href="http://lirc.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">lirc.org</a>. Maybe I should wait for a patch.&nbsp;</div></span>
</div></blockquote><br></div><div>The kernel version per se shouldn't be a problem. I was running 2.6.14 on a Gentoo system that worked just fine with what they were calling lirc version 0.8.0_pre1 (before a HDD crash took the system down that is).
</div><div><br></div><div>Gentoo has a version &quot; lirc-0.8.0_pre3&quot; that is claimed to have modifications for the 2.6.15 kernel, all I know about it is that it does not appear to work with 2.6.14.</div><div><br></div>
<div>But your header location problems should not be directly related to kernel version, more likely to a squirrely installation of kernel sources, a problem I've had with FC systems in the past.</div><br>
<br>_______________________________________________<br>mythtv-users mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users" target="_blank">
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users</a><br><br><br></blockquote></div><br>Eureka! I have modified the following source file: <span style="font-style: italic;">/usr/src/lirc-0.8.0pre2/drivers/lirc_gpio/lirc_gpio.c
<br></span><ul><li>Located following lines in the source file: <br></li></ul><div style="margin-left: 40px;">#if LINUX_VERSION_CODE &lt; KERNEL_VERSION(2,4,0)<br>#include &quot;../drivers/char/bttv.h&quot;<br>#include &quot;../drivers/char/bttvp.h&quot;
<br>#else<br>#include &quot;../drivers/media/video/bttv.h&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;========&nbsp; the offending line<br>#endif<br></div><br><ul><li>Modified them to<br></li></ul><div style="margin-left: 40px;">#if LINUX_VERSION_CODE &lt; KERNEL_VERSION(2,4,0)
<br>#include &quot;../drivers/char/bttv.h&quot;<br>#include &quot;../drivers/char/bttvp.h&quot;<br>#else<br>#include &quot;bttv.h&quot;&nbsp;&nbsp; &lt;=========================== modified line<br>#endif<br></div><ul><li>Copied the files
</li></ul><div style="margin-left: 40px;"><span style="font-style: italic;">/usr/src/linux/drivers/media/video/bttv*.h</span>&nbsp; to<br><br><span style="font-style: italic;">/usr/src/lirc-0.8.0pre2/drivers/lirc_gpio/bttv*.h<br>
</span></div><span style="font-style: italic;"></span><br>That's it make &amp;&amp; make install perform as expected. <span style="font-style: italic;">ls -lh /dev/lirc*</span> yields shiny new devices.<br><span style="font-style: italic;">
</span>