On Fri, 06 May 2005 08:13:06 -0500
Michael wrote:

> I'm trying to build HBasic.  I get the following error:
> 
> In file included from basic_document.cpp:84:
> ../dialogs/select_kpart.h:4:31: kparts/mainwindow.h: No such file or
> directory
> make[1]: *** [basic_document.o] Error 1
> 
> 
> I looked in the dialogs/select_kpart.h.  It said "#include
> <kparts/mainwindow.h>.  I did a "locate kparts/mainwindow.h":
> 
> [EMAIL PROTECTED] temp $ locate kparts/mainwindow.h
> /usr/kde/3.3/include/kparts/mainwindow.h

Try this:
export CPATH=$CPATH:/usr/kde/3.3/include/
...before you start make. If you're lucky, the Makefile will append its
values to this and it will find the header, if not, you'll have to hack
the Makefile.

Basically, if you have additional directories holding header files that
you want gcc to use, you have to specify then using the -I switch. If
you invoked gcc directly, that'd be something like: gcc -I/usr/kde/3.3/
include program.c -o program ...but since you're not invoking it
directly (and let Makefile handle this for you), you'll probably have
to hack the Makefile to make make make properly :) Better still would
be to run ./configure with an option that will include this directory.
Do ./configure --help, and it will give you a list of options you can
use. I'm too lazy to check it now, but IIRC the option to include
another include dir ;) would be something like --include-dir=/usr/
kde/3.3/include 

Another possibility would be to symlink the kde include directory to a
place that's being searched for the headers anyway, like this: ln -s /
usr/kde/3.3/include/kparts /usr/include/kparts ...but I wouldn't
recommend that, since it's messy. Use only if everything else fails
(and remove the symlink afterwards).

And to wrap it up: please don't top-post. Write your comments directly
after the quoted text you're referring to (this is called inline-
posting), and also quote as little text as possible. Trim all text that
is not relevant to your post - there's no need to send everything,
including yahoo ads, to and fro - keep it concise.

Cheers

-- 
Horror Vacui

Registered Linux user #257714

Go get yourself... counted: http://counter.li.org/
- and keep following the GNU.


To unsubscribe from this list, please email [EMAIL PROTECTED] & you will be 
removed. 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/LINUX_Newbies/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to