Alan W. Irwin wrote: > On 2009-11-19 17:12-0500 Hazen Babcock wrote: > >> I get the following warning messages when building the Qt bindings on >> win32 with mingw32: > > Hi Hazen: > > I am really pleased you are testing qt on mingw. > > The first warning above says there is a casting problem on ling 195. Can't > that be solved by > > p->drawPicture((int) ( xOffset + bounding.width() / 2. ), -yOffset, tempPic ); > ==> > p->drawPicture((int) ( xOffset + bounding.width() / 2. ), -(int)yOffset, > tempPic ); > ? > > The second warning above says there is a casting problem on line 749. Can't > that be solved by > > el.Data.ColourStruct->A = alpha * 255.; > ==> > el.Data.ColourStruct->A = (PLINT)(alpha * 255.); > ? > > And similarly for the rest or the warnings? > > I don't have sufficient C++/Qt knowledge to check up on these informed > guesses (and I believe you may be in the same boat). However, unless some > C++/qt expert here objects, I suggest you trust what your compiler warning > messages say and simply blindly fix all these issues as above. If that gets > rid of most or all of the warnings and you still have good qt results, > commit the changes with the appropriate commit message saying you did > warnings fixes without a lot of deep knowledge by trusting your compiler > warning messages. That may still leave a few warnings, but your commit > dealing with the easy ones that can be fixed by casts is still worthwhile to > make the C++ experts job of getting rid of the more difficult warnings much > easier.
Ok. I got rid of all the warning (v10617) with mingw32 on Windows (Qt4.5.3). Hopefully this doesn't cause other problems. It is actually quite easy to install Qt (and PyQt) on Windows and our pyqt bindings even compiled without needing any modification. Unfortunately I have yet to figure out how to get anything Python (v2.6) related to work. -Hazen ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel