Greg Ercolano wrote:
> Greg Ercolano wrote:
>> imm wrote:
>>> I just built this test for fltk-1.1 and fltk-2 on my Mac(10.4.10) and  
>>> linux(FC7) using fltk-2-r5940 and in both cases it works just fine.
>>      Ya, I tested with r5940 (I think).
>>      Probably isn't the latest SVN, which is maybe what gga is using.
> 
>    Ya, I confirmed I tested with the latest svn (r5940).
>    I even blew away my old fltk2 svn, and re-downloaded it, rebuilt.
>    Works with both Fl_Native versions, the original and the IMGLIB fix.
> 
>> If you are using r5940, fltk2_images should never appear in your link line.
> 
>    gga, I think you must have a stale fltk2-config.in file.
>    I just diffed yours against the current svn; the file you sent
>    seems to have the LIBS lines missing which is why it works for us:
> 

Nope.  Try the different fltk2-config switches I sent and you'll see 
fltk2-config is doing all sorts of crappy stuff.
And fltk2-r5940 is afaik, broken on windows, where it won't even compile 
due to scandir issues.

It is however a bad practice to have a variable called FLTK2CONFIG and 
need that to be set with different switches, thou.
The reason it was not working for me originally was I was calling the 
Makefile-fltk2 directly as:

make -f Makefile.fltk2 FLTK2CONFIG=fltk2-config

Totally logical.  The reason was that the main Makefile does not work 
when you don't have fltk1 installed.

I had also tried with --use-images, but then the error would be 
different, as the --use-images flag would lead to fltk2_images appearing 
twice and leading to other link problems (but that was probably after I 
added $(IMGLIB) to Greg's makefile).

The reason why it works for you guys is that the --ldstaticflags is 
magically adding the image library.

That is, fltk2-config is broken.  Period.


In my Makefile I sent, I removed the LIBS line and just made it print 
LDLIBS, which is simpler.  It is not correct, either, as I said before.

I'll be fixing fltk2-config to work correctly for the .git version.

fltk2-config is currently *severely* broken, as it just outputs a lot of 
incorrect crap whenever you ask for different flags.

--ldflags and --ldstaticflags will return libraries (!), instead of just 
the flags.  And "--use-images --libs" does nothing.

-- 
Gonzalo Garramuño
[EMAIL PROTECTED]

AMD4400 - ASUS48N-E
GeForce7300GT
Kubuntu Edgy

_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to