KDSoap icon indicating copy to clipboard operation
KDSoap copied to clipboard

(CMake-VCPKG) KDSoap 1.9 build issue

Open VictorKozachek opened this issue 10 months ago • 6 comments

Hello,

Trying to build build our project which deals with KDSoap. We use QT5. As for KDSoap 1.8 we can't see any problem. We are trying to get KDSoapfrom VCPKG and that's OK. We can see libraries ets. The only problem is that KDSoap installs kdwsdl2cpp.exe into incorrect folder. It installs it to \builds\vcpkg-static\vcpkg_installed\x86-windows-static\tools instead of builds\vcpkg-static\vcpkg_installed\x86-windows-static\tools\kd-soap and thentrying to find it by correct path. That's not a big problem, we can move it manually. But.... Ok.

The bigest problem is that we can't build project due to linker problems. Wecan see such errors:

[build] mocs_compilation_Debug.cpp.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual void * __thiscall KDSoapJob::qt_metacast(char const *)" (__imp_?qt_metacast@KDSoapJob@@UAEPAXPBD@Z) referenced in function "public: virtual void * __thiscall AbdicateDomOwnershipJob::qt_metacast(char const *)" (?qt_metacast@AbdicateDomOwnershipJob@@UAEPAXPBD@Z)
[build] mocs_compilation_Debug.cpp.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual int __thiscall KDSoapJob::qt_metacall(enum QMetaObject::Call,int,void * *)" (__imp_?qt_metacall@KDSoapJob@@UAEHW4Call@QMetaObject@@HPAPAX@Z) referenced in function "public: virtual int __thiscall AbdicateDomOwnershipJob::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall@AbdicateDomOwnershipJob@@UAEHW4Call@QMetaObject@@HPAPAX@Z)
[build] mocs_compilation_Debug.cpp.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static struct QMetaObject const KDSoapJob::staticMetaObject" (__imp_?staticMetaObject@KDSoapJob@@2UQMetaObject@@B) referenced in function "public: static struct QMetaObject const * __cdecl QMetaObject::staticMetaObject<&public: static struct QMetaObject const KDSoapJob::staticMetaObject>(void)" (??$staticMetaObject@$1?staticMetaObject@KDSoapJob@@2UQMetaObject@@B@QMetaObject@@SAPBU0@XZ)
[build] error LNK2001: unresolved external symbol "__declspec(dllimport) public: static struct QMetaObject const KDSoapJob::staticMetaObject" (__imp_?staticMetaObject@KDSoapJob@@2UQMetaObject@@B)
[build] error LNK2001: unresolved external symbol "__declspec(dllimport) public: static struct QMetaObject const KDSoapJob::staticMetaObject" (__imp_?staticMetaObject@KDSoapJob@@2UQMetaObject@@B)
[build] error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall KDSoapJob::start(void)" (__imp_?start@KDSoapJob@@QAEXXZ) referenced in function "protected: class KDSoapJob * __thiscall EsxiClient::startJob(class KDSoapJob *)" (?startJob@EsxiClient@@IAEPAVKDSoapJob@@PAV2@@Z)
[build] error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall KDSoapJob::start(void)" (__imp_?start@KDSoapJob@@QAEXXZ)
[build] error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall KDSoapJob::finished(class KDSoapJob *)" (__imp_?finished@KDSoapJob@@QAEXPAV1@@Z) referenced in function "protected: class KDSoapJob * __thiscall EsxiClient::startJob(class KDSoapJob *)" (?startJob@EsxiClient@@IAEPAVKDSoapJob@@PAV2@@Z)
[build] error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall KDSoapJob::finished(class KDSoapJob *)" (__imp_?finished@KDSoapJob@@QAEXPAV1@@Z)
[build] error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall KDSoapClientInterface::setSslConfiguration(class QSslConfiguration const &)" (__imp_?setSslConfiguration@KDSoapClientInterface@@QAEXABVQSslConfiguration@@@Z) referenced in function "public: void __thiscall EsxiClient::init(class QString const &)" (?init@EsxiClient@@QAEXABVQString@@@Z)
[build] error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall KDSoapClientInterface::setSslConfiguration(class QSslConfiguration const &)" (__imp_?setSslConfiguration@KDSoapClientInterface@@QAEXABVQSslConfiguration@@@Z)
[build] error LNK2019: unresolved external symbol "__declspec(dllimport) public: int __thiscall KDSoapClientInterface::timeout(void)const " (__imp_?timeout@KDSoapClientInterface@@QBEHXZ) referenced in function "public: int __thiscall EsxiClient::timeout(void)const " (?timeout@EsxiClient@@QBEHXZ)
[build] error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall KDSoapClientInterface::setTimeout(int)" (__imp_?setTimeout@KDSoapClientInterface@@QAEXH@Z) referenced in function "public: void __thiscall EsxiClient::setTimeout(int)" (?setTimeout@EsxiClient@@QAEXH@Z)

We can't see such problem for KDSoap 1.8

Thanks

VictorKozachek avatar Aug 21 '23 13:08 VictorKozachek