Results 1 to 6 of 6

Thread: Custom Plugin Trouble

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #5
    Join Date
    Mar 2006
    Posts
    140
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    8
    Thanked 4 Times in 3 Posts

    Default Re: Custom Plugin Trouble

    Ok, I also had to inherit from QObject and specify Q_OBJECT to avoid some further conflicts.

    So ... I compiled it on MacOS X but was having trouble debugging, due to the environment I have setup on the machine, so I moved it to my Windows box, but now I'm getting these errors:
    Running build steps for project TestAppCore...
    Configuration unchanged, skipping QMake step.
    Starting: C:/Program Files/Microsoft Visual Studio .NET 2003/VC7/BIN/nmake.exe
    nmake -f Makefile.Debug
    cl -c -nologo -Zm200 -Zc:wchar_t- -Zi -MDd -GR -EHsc -W3 -w34100 -w34189 -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DTESTAPPCORE_LIBRARY -DQT_DLL -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I"c:\Qt\4.5.2\include\QtCore" -I"c:\Qt\4.5.2\include" -I"c:\Qt\4.5.2\include\ActiveQt" -I"debug" -I"c:\Qt\4.5.2\mkspecs\win32-msvc2008" -Fodebug\ @C:\DOCUME~1\Steve\LOCALS~1\Temp\nm1895.tmp
    TestAppCore.cpp
    link /LIBPATH:"c:\Qt\4.5.2\lib" /NOLOGO /DEBUG /DLL /MANIFEST /MANIFESTFILE:"debug\TestAppCore.intermediate.manif est" /OUT:debug\TestAppCore.dll @C:\DOCUME~1\Steve\LOCALS~1\Temp\nm1896.tmp

    Microsoft (R) Program Maintenance Utility Version 7.10.3077
    Copyright (C) Microsoft Corporation. All rights reserved.


    Microsoft (R) Program Maintenance Utility Version 7.10.3077
    Copyright (C) Microsoft Corporation. All rights reserved.

    cl : Command line warning D4002 : ignoring unknown option '-Zc:-'
    LINK : warning LNK4044: unrecognized option '/MANIFEST'; ignored
    LINK : warning LNK4044: unrecognized option '/MANIFESTFILE:debug\TestAppCore.intermediate.manife st'; ignored
    Creating library debug\TestAppCore.lib and object debug\TestAppCore.exp
    mt.exe -nologo -manifest "debug\TestAppCore.intermediate.manifest" -outputresource:debug\TestAppCore.dll;2
    'mt.exe' is not recognized as an internal or external command,
    operable program or batch file.
    NMAKE : fatal error U1077: 'mt.exe' : return code '0x1'
    Stop.
    NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio .NET 2003\VC7\BIN\nmake.exe"' : return code '0x2'
    Stop.
    Exited with code 2.
    Error while building project TestAppCore
    When executing build step 'Make'
    Any idea how to get Qt Creator to find mt.exe? Is it possible to add environment variables to the build step via the .pro file? I'm surprised that mt.exe isn't in the path already after having installed Visual Studio.

    Will go with a system wide env var if I have to.

    Thanks,

    Steve
    Last edited by wysota; 3rd November 2009 at 17:07.

Similar Threads

  1. Trouble with plugin system's documentation
    By niklas in forum Qt Programming
    Replies: 8
    Last Post: 6th March 2009, 22:07
  2. problem loading custom plugin on Qt Designer 4
    By raman_31181 in forum Qt Tools
    Replies: 18
    Last Post: 26th September 2008, 09:42
  3. custom plugin load fails...
    By raman_31181 in forum Qt Tools
    Replies: 3
    Last Post: 3rd July 2008, 09:37
  4. QPluginLoader not recognizing a plugin
    By KShots in forum Qt Programming
    Replies: 3
    Last Post: 29th June 2007, 14:13
  5. Testing a custom Plugin
    By maluta in forum Qt Programming
    Replies: 5
    Last Post: 31st October 2006, 15:09

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
  •  
Qt is a trademark of The Qt Company.