On 12.06.2010 11:11, Ruben Van Boxem wrote:
>
>     Hello Zhau,
>
>     the FLTK 1.1.x devel library on [1] is not usable. There are missing
>
>     some basic libraries (libfltk.a, libfltk_images.a).
>     I think the build was incomplete, because the GCC stops on such errors:
>
>     FL/Fl_Menu_Item.H:91: error: cast from 'void*' to 'long int' loses 
> precision
>
>     fl_open_uri.cxx:117: error: cast from 'HINSTANCE__*' to 'int' loses
>     precision
>
>     I know, that is not a MinGW problem. I would only note this here, and
>     ask for an idea to build FLTK 1.1.x with MinGW-w64.
>
>
>     [1]http://www.drangon.org/mingw/    "fltk 1.1.10 library for mingw-w64"
>
>     -- 
>     Henry N.
>
>
> Hi,
>
> There are certainly some things you can do yourself in a first attempt:
> 1. Try a development version (preferably the latest stable snapshot). 
> To see if perhaps the patches have already been done.
> 2.  Errors like this "cast from <sometype> to <someint> loses 
> precision are in most cases easy to fix. You should locate the files 
> g++ points you to and replace the cast to something of the type 
> (u)intptr_t. This might involve editing some other types as well, for 
> example:
>
> long int result = getWindowHandle(blablabla);
>
> where getWindowHandle returns a pointer. Replace long int with intptr_t.
> Heck, it might be helpful to look at this original bug 
> <http://bugreports.qt.nokia.com/browse/QTBUG-7318> report of mine. It 
> contains a bunch of errors you'll be bound to come accross with the 
> correct fixes. The site isn't loading for me right now, but it should 
> work again soon.

OK, found solution. With the patch [1] in bug #2308 on FLTK [2] can 
build and use FLTK 1.1.10 under MinGW-w64.

[1] http://www.fltk.org/strfiles/2308/changes.txt
[2] http://www.fltk.org/str.php?L2308

-- 
Henry N.


------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to