[Qt-interest] Problem in created DLL using QT
Yuvaraj R
yuvaraj at ongobiz.com
Fri Oct 9 12:29:24 CEST 2009
Hi
Can you tell me Why you need to create dll here.
Thanks
Yuvaraj R
On Fri, Oct 9, 2009 at 3:44 PM, Chakresh Sharma <cxs at tetrahedrix.com> wrote:
> Hi Srdjan,
>
> Thanx for replying.
>
> When I create a new Project in Qt Creator, i select c++ library.
> I select Shared Library option and then it asks for "Select required
> modules". Where by default "Qt Core Module" is checked. I UNCHECKED it and
> went ahead.
>
> It creates a ***_global.h files and following is the content.
>
> #ifndef HELLOWORLD_GLOBAL_H
>
> #define HELLOWORLD_GLOBAL_H
>
> *#include <QtCore/qglobal.h>*
>
> #if defined(HELLOWORLD_LIBRARY)
>
> # define HELLOWORLDSHARED_EXPORT Q_DECL_EXPORT
>
> #else
>
> # define HELLOWORLDSHARED_EXPORT Q_DECL_IMPORT
>
> #endif
>
> #endif // HELLOWORLD_GLOBAL_H
>
>
> Whenever I'll deploy a dll created in this way I also have to provide this
> global.h file with the dll and other headers.
>
> It'll certainly ask for QT files on other platforms where Qt is not there.
> What to do of this problem?
>
>
> On Fri, Oct 9, 2009 at 3:40 PM, Chakresh Sharma <cxs at tetrahedrix.com>wrote:
>
>> Hi Srdjan,
>>
>> Thanx for replying.
>>
>> When I create a new Project in Qt Creator, i select c++ library.
>> I select Shared Library option and then it asks for "Select
>>
>> On Fri, Oct 9, 2009 at 3:34 PM, Srdjan Todorovic <
>> todorovic.s at googlemail.com> wrote:
>>
>>> Hi,
>>>
>>> On 09/10/2009, Chakresh Sharma <cxs at tetrahedrix.com> wrote:
>>>
>>> > I tried to test my created dll, so i wrote a simple program in VC++
>>> .NET.
>>> > using functions of the dll created in QT.
>>>
>>> > - If a library is created using QT and I deploy it to another
>>> machine
>>> > which does not have QT ----------does it like that QT need to be
>>> > installed
>>> > there. (I think it should not be the case at all).
>>>
>>> If your dll is a Qt dll (a dll you created that uses Qt classes), then
>>> you must have been planning to make an application that links to this
>>> library and also the Qt libraries. Therefore, you need Qt to also be
>>> installed.
>>>
>>> Srdjan
>>> _______________________________________________
>>> Qt-interest mailing list
>>> Qt-interest at trolltech.com
>>> http://lists.trolltech.com/mailman/listinfo/qt-interest
>>>
>>
>>
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091009/75c6c94e/attachment.html
More information about the Qt-interest-old
mailing list