Results 1 to 2 of 2

Thread: Marble as QT Designer Plugin

  1. #1

    Default Marble as QT Designer Plugin

    Hello,
    I am trying to build Marble(version 0.8.0) as a QT Designer plugin. I am using MinGW on Windows XP. My QT libraries (I have tried versions 4.5 and 4.6) were built with both debugging and release libraries. I built marble using the following
    cmake -DQTONLY=ON -G "MinGW Makefiles" -DWITH_DESIGNER_PLUGIN=ON ../marble
    mingw32-make
    mingw32-make install

    This seemed to work fine, but when I ran designer it complained that the marble plugin uses an incompatible QT library. Doing some research, apparently QT Designer is build as release when you configure QT for debug-and-release, and therefore, plugins should be release as well. Is there a way to make marble build in release mode? This is easy with qmake and .pro files, but Marble uses cmake.

    I have also tried building marble against qt libraries configured with release only, and debug only. But this failed when linking libmarblewidget.dll.

    Any suggestions?

    Thanks in advance,
    Chris

  2. #2
    Join Date
    Oct 2009
    Posts
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Marble as QT Designer Plugin

    to specify the build type for cmake projects, simply add -DCMAKE_BUILD_TYPE=<buildtype> where buildtype is one of RelWithDebInfo, Release, Debug,... so to build Marble as Release use
    cmake -DQTONLY=ON -G "MinGW Makefiles" -DWITH_DESIGNER_PLUGIN=ON -DCMAKE_BUILD_TYPE=Release ../marble
    mingw32-make
    mingw32-make install
    (be aware that RelWithDebInfo should work too, but increases the size of the executables by a lot.).

Similar Threads

  1. problem loading custom plugin on Qt Designer 4
    By raman_31181 in forum Qt Tools
    Replies: 18
    Last Post: 26th September 2008, 09:42
  2. Qt designer plugin errors on OSX Leopard
    By mpotocnik in forum Qt Tools
    Replies: 10
    Last Post: 21st January 2008, 09:45
  3. Replies: 4
    Last Post: 9th August 2007, 08:20
  4. Qt Designer plugin on windows
    By big4mil in forum Newbie
    Replies: 4
    Last Post: 30th May 2007, 17:33
  5. Replies: 13
    Last Post: 15th December 2006, 11:52

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.