[Marble-devel] Windows - unable to create a custom widget of the class 'Marble::MarbleWidget'

Phil phil.beadling at googlemail.com
Thu Mar 18 02:38:41 CET 2010


Hi,

I'm trying to package an application I've written for Windows.  I've 
taken the approach below, packaging my exe with the below Qt, MingGW and 
Marble files.  Everything was built using the same version MinGW.

On execution on my (Windows 7) dev machine this works fine, even after 
removing my PATH and QTDIR (in case it picks stuff up from elsewhere).  
However if I zip it up and try it on an XP machine with no Qt or Marble 
installations I get the below issue - the GUI starts up but the map is 
missing, stdout gives me:

"QFormBuilder was unable to create a custom widget of the class 'Marble::MarbleWidget'; defaulting to base class 'QWidget'."

I've seen this on my Dev box, and to be honest I'm not sure how I fixed 
it - I assume it is Qt complaining it can't see libmarblewidget.dll?

I'm pretty new to Qt and Marble (and much more at home on Linux!) - does 
anyone know what I'm doing wrong?  Can anyone provide a minimum set of 
Windows files to ship if it is different to the below?  Any ideas how to 
get more info on the error or investigate what it is searching for and 
where?

I'm programming in Haskell via qtHaskell - this is almost certainly not 
the problem, but precludes me from using any of the Qt Creator 
functionality you get for free - so any resolution has to be fairly 
manual.  Obviously I have the qtHaskell dlls in the below directory too, 
but I've removed them in the example below - as this is just noise.

Thanks in advance,

Phil.

Release directory contents (also my .exe):

data/
libmarblewidget.dll
mingwm10.dll
plugins/
QtCore4.dll
QtGui4.dll
QtNetwork4.dll
QtOpenGL4.dll
QtSvg4.dll
QtWebKit4.dll
QtXml4.dll







More information about the Marble-devel mailing list