Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [SOLVED]Problems with building a dll library for widgets in Visual Studio
Forum Updated to NodeBB v4.3 + New Features

[SOLVED]Problems with building a dll library for widgets in Visual Studio

Scheduled Pinned Locked Moved General and Desktop
6 Posts 2 Posters 2.8k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    SeedOfLife
    wrote on 7 Jul 2011, 13:48 last edited by
    #1

    Im trying to build a widget library in a dll so that I can share it among other apps. This library uses dialogs (made from form files) to present information to the user. I have built a tester appliction to test the library as well. I am using MSVC 2008.

    The problems I have are

    • can't seem to compile the library nor the tester at times. There are linker errors (cant rememebr the exact wording but something with regards to metacall). But they can be avoided if I right click on the project in Solutions Explorer and set Qt Project settings -> Moc Directory (i have to toggle between . and ./GeneratedFiles each time i make a change to the dll project)
    • Even when I do get the solution compiled successfully (by managing to swtich the MocDirectory of Qt Project Settings that is), I am unable to debug into the dll project's source. This is something I can't seem to get to work no matter i tinker with.

    Can anyone tell me what steps I need to take to get my project to compile proerply without messing with the MocDirectory and also to allow debugging to step into the dll project.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SeedOfLife
      wrote on 8 Jul 2011, 03:23 last edited by
      #2

      Can someone please provide some help ? I'm sure many wud have experience building dlls from visual studio and using them.

      1 Reply Last reply
      0
      • J Offline
        J Offline
        jensen82
        wrote on 8 Jul 2011, 13:06 last edited by
        #3

        Please help us to help you :-)

        Which linker errors do you mean? Paste the output of the build-procoss at pastebin.com und paste the url here. I'm sure we can help you a bit more...

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SeedOfLife
          wrote on 11 Jul 2011, 05:49 last edited by
          #4

          Here is the link to pastebin when compiling the application (Tester) using the shared library dll.
          "http://pastebin.com/6q2L0msF":http://pastebin.com/6q2L0msF

          edit: Pardon me, the error was actually from another library that Im using at the moment. I had failed to include the lib of that library and that was causing the abiove link errors.
          Anyways I seemed to have grasped some idea about the sitution and hope to present the problem in a more meaningful manner.

          1 Reply Last reply
          0
          • S Offline
            S Offline
            SeedOfLife
            wrote on 12 Jul 2011, 04:56 last edited by
            #5

            Solved. Problem was related to "this":http://stackoverflow.com/questions/1200268/qt4-in-visual-studio-2008-moc-ed-files-get-excluded-from-build Had to set the MocDirectory in relation to the BuildConfiguration.

            1 Reply Last reply
            0
            • J Offline
              J Offline
              jensen82
              wrote on 12 Jul 2011, 08:22 last edited by
              #6

              Nice. Congrats. Please add [SOLVED] to your thread. Have a nice day.

              1 Reply Last reply
              0

              1/6

              7 Jul 2011, 13:48

              • Login

              • Login or register to search.
              1 out of 6
              • First post
                1/6
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved