Found the solution. Having the libraries FLTK 1.3.1 compiled (it can be easily done using the shell of MSYS (rxvt) with MinGW 4.6.2), this is to give the MSYS (rxvt) shell prompt the following command:
fltk-config --ldstaticflags
fltk-config --ldstaticflags
To copy to clipboard, switch view to plain text mode
in this way we obtain the flags necessary for the compilation of any example of using FLTK MinGW and consequently amche our beloved Qt Creator 2.6.0
In my case for example I got:
-mwindows /usr/local/lib/libfltk.a -lole32 -luuid -lcomctl32
-mwindows /usr/local/lib/libfltk.a -lole32 -luuid -lcomctl32
To copy to clipboard, switch view to plain text mode
Please note that:
/usr/local/
/usr/local/
To copy to clipboard, switch view to plain text mode
is in
C:\MinGW\msys\1.0\local
C:\MinGW\msys\1.0\local
To copy to clipboard, switch view to plain text mode
So in the project file of Qt we get:
#------------------------------------------------
#
# Uso librerie FLTK 1.3.1
#
#------------------------------------------------
INCLUDEPATH += C:/MinGW/include
LIBS += -mwindows C:/MinGW/lib/libfltk.a \
C:/MinGW/lib/libfltk_forms.a \
C:/MinGW/lib/libfltk_gl.a \
C:/MinGW/lib/libfltk_images.a \
C:/MinGW/lib/libfltk_jpeg.a \
C:/MinGW/lib/libfltk_png.a \
C:/MinGW/lib/libfltk_z.a \
-lole32 -luuid -lcomctl32
#------------------------------------------------
#
# Uso librerie FLTK 1.3.1
#
#------------------------------------------------
INCLUDEPATH += C:/MinGW/include
LIBS += -mwindows C:/MinGW/lib/libfltk.a \
C:/MinGW/lib/libfltk_forms.a \
C:/MinGW/lib/libfltk_gl.a \
C:/MinGW/lib/libfltk_images.a \
C:/MinGW/lib/libfltk_jpeg.a \
C:/MinGW/lib/libfltk_png.a \
C:/MinGW/lib/libfltk_z.a \
-lole32 -luuid -lcomctl32
To copy to clipboard, switch view to plain text mode
For the curious here is the procedure to follow to compile the libraries FLTK 1.3.1 with MinGW 4.6.2 using MSYS (rxvt):
1- copy the file fltk-1.3.1-source.tar.gz in /home/your-username/ of msys\1.0\ then give the command to
MSYS shell (rxvt):
tar xvzf fltk-1.3.1-source.tar.gz
tar xvzf fltk-1.3.1-source.tar.gz
To copy to clipboard, switch view to plain text mode
2-
cd fltk-1.3.1
cd fltk-1.3.1
To copy to clipboard, switch view to plain text mode
3-
./configure & make & make install
./configure & make & make install
To copy to clipboard, switch view to plain text mode
will be installed in /usr/local/lib, /usr/local/include/FL, /usr/local/bin, /usr/local/share. Please note that /usr/local is C:\MinGW\msys\1.0\local
Have fun with FLTK
Bookmarks