[SOLVED]Problems with building a dll library for widgets in Visual Studio
-
wrote on 7 Jul 2011, 13:48 last edited by
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.
-
wrote on 8 Jul 2011, 03:23 last edited by
Can someone please provide some help ? I'm sure many wud have experience building dlls from visual studio and using them.
-
wrote on 8 Jul 2011, 13:06 last edited by
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...
-
wrote on 11 Jul 2011, 05:49 last edited by
Here is the link to pastebin when compiling the application (Tester) using the shared library dll.
"http://pastebin.com/6q2L0msF":http://pastebin.com/6q2L0msFedit: 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. -
wrote on 12 Jul 2011, 04:56 last edited by
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.
-
wrote on 12 Jul 2011, 08:22 last edited by
Nice. Congrats. Please add [SOLVED] to your thread. Have a nice day.
1/6