On 28 Dec 2012, at 21:02, giorgio wrote:

> Hello everybody, I need to be able to use the fltk-config script in Windows 
> inside an IDE for example QtCreator which uses MinGW as a compiler. I noticed 
> that using the fltk-config script I can get the exact order of libraries to 
> link in my project that uses FLTK 1.3.1
> As a result I need a version of this script that can run under Windows (for 
> example, as a dos batch file or as an executable .exe)
> 
> Can you help me ?

I doubt this can be made to work easily, though I'll come back to that.

Note that the order and nature of the libs called seldom (if ever) changes on 
WinXX machines, they are all pretty much the same, so it may be easiest just to 
get a list of the required libs in Msys one time then code those into your IDE 
directly. 

They will not change anyway, so that should be fine, and once the IDE is set 
up, you will not have to adjust things again...

Actually making the fltk-config script run in a DOS shell is not really 
feasible, but you can create a DOS .bat file that calls the mingw sh.exe and 
have that invoke fltk-config via the "-c" option to sh...

Though far that to work, you'd need to have sh.exe installed in the path, or in 
the same "well known location" on every machine.

You would have to create something like:

------------
REM pseudo DOS batch script to get LDFLAGS

d:\path\to\mingw\sh.exe -c "d:\path\to\fltk-config --ldstaticflags"

REM end of DOS batch file
------------


... and so on...


I've used this approach before (though not with fltk-config) to run other 
Msys/mingw tools in a "DOS" shell and it works, but it does seem a bit clunky.




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

Reply via email to