Changes between Version 1 and Version 2 of FAQ_general_tips


Ignore:
Timestamp:
11/27/14 18:20:06 (10 years ago)
Author:
phudelai
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • FAQ_general_tips

    v1 v2  
    11[[PageOutline(1-2,Contents,inline)]]
    22
    3 = FAQ -- common run-time errors =
     3= FAQ -- common tips =
    44
    55
    66
    7 == Plugin loader failure 1 ==
    8 === Error message ===
     7== Compilation without console in Microsoft Windows using CMake ==
     8=== Solution ===
     9Add in your CMakeLists.txt :
    910{{{
    10 #!div style="color: red"
    11 000038 [2014-02-28 15:50:58.750509] <error> cannot load plugin '!PluginName.dll'. Plugin loader returned
    12 error: The shared library was not found.
     11IF(WIN32)
     12        LINK_LIBRARIES(${QT_QTMAIN_LIBRARY})
     13        SET(GUI_TYPE WIN32)
     14ENDIF(WIN32)
    1315}}}
    14 
    15 === Solution ===
    16 
    17 See [http://qt-project.org/doc/qt-5/deployment-plugins.html] for more information about development of Qt plugins.
    18 You can set QT_DEBUG_PLUGINS environment variable to a non-zero value to see more information from plugin loader.
    19 
    20 1. Check if filename '!PluginName.dll' is correct in your XML file.
    21 X. Check if the correct version (release/debug) is used, see plugins ''postfix'' attribute in the XML.
    22 X. Check if this file exists in the same directory as the executable.