Results 1 to 10 of 10

Thread: Q_init_resource

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts

    Default Re: Q_init_resource

    How does this problem differ from the problem in this another thread of yours: Q_init_resource?
    J-P Nurmi

  2. #2
    Join Date
    Oct 2007
    Posts
    201
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    19
    Thanked 1 Time in 1 Post

    Default Re: Q_init_resource

    Quote Originally Posted by jpn View Post
    How does this problem differ from the problem in this another thread of yours: Q_init_resource?
    This is because i was only trying to execute that example alone.
    But I'm trying to add it in my project as a DLL. so im getting so much error. I ve a small doubt. Can i add Ui files in dll.?

    Plz do a reply.
    Cheers,
    Phillip



    --- Please post the solution you got to solve your problem. It may help others.

  3. #3
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts

    Default Re: Q_init_resource

    Wait, your first post states nothing about DLL, but main(). Could you clearly state
    - where do you have Q_INIT_RESOURCES()
    - in which .pro file you have the corresponding resource file
    J-P Nurmi

  4. #4
    Join Date
    Oct 2007
    Posts
    201
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    19
    Thanked 1 Time in 1 Post

    Default Re: Q_init_resource

    Quote Originally Posted by jpn View Post
    Wait, your first post states nothing about DLL, but main(). Could you clearly state
    - where do you have Q_INIT_RESOURCES()
    - in which .pro file you have the corresponding resource file
    K. In my project some 15 modules are there. one module is a exe. But my module is a dll. i ve include the Q_INIT_RESOURCES in the main() of that exe module. and created a pointer of stylesheet there. while trying to allocate memory its showing
    error LNK2019: unresolved external symbol "public: __thiscall StyleSheet::StyleSheetEditor::StyleSheetEditor(cla ss QWidget *)"

    and error LNK2019: unresolved external symbol "int __cdecl qInitResources_stylesheet(void)" (?qInitResources_stylesheet@@YAHXZ) referenced in function _main for Q_INIT_RESOURCES. I'm doing all these through cmake.i cannt understand what to do. Can u help me?
    Cheers,
    Phillip



    --- Please post the solution you got to solve your problem. It may help others.

  5. #5
    Join Date
    Oct 2007
    Posts
    201
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    19
    Thanked 1 Time in 1 Post

    Default Re: Q_init_resource

    Quote Originally Posted by phillip_Qt View Post
    K. In my project some 15 modules are there. one module is a exe. But my module is a dll. i ve include the Q_INIT_RESOURCES in the main() of that exe module. and created a pointer of stylesheet there. while trying to allocate memory its showing
    error LNK2019: unresolved external symbol "public: __thiscall StyleSheet::StyleSheetEditor::StyleSheetEditor(cla ss QWidget *)"

    and error LNK2019: unresolved external symbol "int __cdecl qInitResources_stylesheet(void)" (?qInitResources_stylesheet@@YAHXZ) referenced in function _main for Q_INIT_RESOURCES. I'm doing all these through cmake.i cannt understand what to do. Can u help me?


    I'm building the solution by using CMake.
    Cheers,
    Phillip



    --- Please post the solution you got to solve your problem. It may help others.

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.