Re: libfltk-dev: which "config.h"

2000-05-21 Thread Frank Barknecht
Frank Barknecht hat gesagt: // Frank Barknecht wrote:

> Johann Spies hat gesagt: // Johann Spies wrote:
> 
> > I am trying to compile the programs in /usr/share/doc/libfltk1/examples/.
> > 
> > After copying the files to /tmp and gunzipping the .gz files I get the 
> > following error when I run "make":
> > 
> > c++ -I.. -g  -fPIC -Wall -Wno-return-type   -I/usr/X11R6/include 
> > CubeMain.cxx -cCubeMain.cxx:26: config.h: No such file or directory
> I tested this here and I found, that you do not need any config.h at
> all. 

OK, further investigation: There indeed is a config.h file that gets build
if you compile libfltk from the source. The debian packages do include this
config.h, I think this is a bug and I will file as one it if nobody has done
this already. Anyway I attached the file but you will have to edit it, as I
use the GL stuff. 

bye
-- 
 ____
 Frank Barknecht    __    __ trip\ \  / /wire __
  / __// __  /__/ __// // __  \ \/ /  __ \\  ___\   
 / /  / /  / /  / // // /\ \\  ___\\ \  
/_/  /_/  /_/  /_//_// /  \ \\_\\_\
/_/\_\ 


config.h.gz
Description: Binary data


Re: libfltk-dev: which "config.h"

2000-05-20 Thread Frank Barknecht
Johann Spies hat gesagt: // Johann Spies wrote:

> I am trying to compile the programs in /usr/share/doc/libfltk1/examples/.
> 
> After copying the files to /tmp and gunzipping the .gz files I get the 
> following error when I run "make":
> 
> c++ -I.. -g  -fPIC -Wall -Wno-return-type   -I/usr/X11R6/include CubeMain.cxx 
> -cCubeMain.cxx:26: config.h: No such file or directory
> In file included from CubeViewUI.h:12,
>  from CubeMain.cxx:28:
> CubeView.h:28: config.h: No such file or directory
> make: *** [CubeMain.o] Error 1
> 
> There are no config.h in the fltk-packages and there are many
> 
> [...] 
> I thought just typing "make" was supposed to work :(

I tested this here and I found, that you do not need any config.h at
all. So you can remove or uncomment every line with "# include config.h"
in it, e.g with this perl oneliner:

$ perl -pi.bak -e 's+#include +// #include +' *.h *.cxx

There is another error in the Makefile. It looks for libfltk in the
directory "../lib" and it does not find it. Just replace every "../lib" in
the Makefile with "/usr/lib". 

After this repairs, just typing "make" did indeed work. 

bye
-- 
 ____
 Frank Barknecht    __    __ trip\ \  / /wire __
  / __// __  /__/ __// // __  \ \/ /  __ \\  ___\   
 / /  / /  / /  / // // /\ \\  ___\\ \  
/_/  /_/  /_/  /_//_// /  \ \\_\\_\
/_/\_\ 



Re: libfltk-dev: which "config.h"

2000-05-19 Thread Oswald Buddenhagen
> I am trying to compile the programs in /usr/share/doc/libfltk1/examples/.
> 
> After copying the files to /tmp and gunzipping the .gz files I get the 
> following error when I run "make":
> 
is there a file named configure? did you run it before "make"ing?

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
If Windows is the answer, I want the problems back!



libfltk-dev: which "config.h"

2000-05-19 Thread Johann Spies
I am trying to compile the programs in /usr/share/doc/libfltk1/examples/.

After copying the files to /tmp and gunzipping the .gz files I get the 
following error when I run "make":

c++ -I.. -g  -fPIC -Wall -Wno-return-type   -I/usr/X11R6/include CubeMain.cxx 
-cCubeMain.cxx:26: config.h: No such file or directory
In file included from CubeViewUI.h:12,
 from CubeMain.cxx:28:
CubeView.h:28: config.h: No such file or directory
make: *** [CubeMain.o] Error 1

There are no config.h in the fltk-packages and there are many

config.h's on my system.  Which one is supposed to do the job?

I have tried the one in /usr/include/linux and then later in the
compilation process all sorts of errors show up like

In file included from /usr/include/stdio.h:57,
 from CubeViewUI.h:9,
 from CubeMain.cxx:28:
/usr/include/libio.h:263: type specifier omitted for parameter
/usr/include/libio.h:263: parse error before `)'
/usr/include/libio.h:272: type specifier omitted for parameter
/usr/include/libio.h:272: parse error before `)'
/usr/include/libio.h:368: syntax error before `('

I thought just typing "make" was supposed to work :(

Johann

-- 
J.H. Spies, Hugenotestraat 29, Posbus 80, Franschhoek, 7690, South Africa
Tel/Faks 021-876-2337 Sel/Cell 082 898 1528(Johann) 082 255 2388(Hester)
 "But as it is written, Eye hath not seen, nor ear 
  heard, neither have entered into the heart of man, the
  things which God hath prepared for them that love 
  him."  I Corinthians 2:9