简体   繁体   English

Qt Visual Studio 2015 插件编译问题

[英]Qt Visual Studio 2015 Add-in compilation problem

I use Qt Add-in in my project.我在我的项目中使用 Qt 插件。 But i dont understand, what i do uncorrect.但我不明白,我做的不正确。

My.pro file:我的简历:

QT       += core gui network
TEMPLATE = app
TARGET = MMworker
DESTDIR = ../Debug
CONFIG += debug
LIBS += -L"../../../../boost_1_70_0/stage/lib"
DEPENDPATH += .
MOC_DIR += .
OBJECTS_DIR += debug
UI_DIR += .
RCC_DIR += .

Get a lot of errors.得到很多错误。 For example例如

Error   LNK2019 unresolved external symbol "__declspec(dllimport) public: __thiscall QHostAddress::QHostAddress(void)" (__imp_??0QHostAddress@@QAE@XZ) referenced in function...
Error   LNK2019 unresolved external symbol "__declspec(dllimport) public: bool __thiscall QHostAddress::setAddress(class QString const &)" (__imp_?setAddress@QHostAddress@@QAE_NABVQString@@@Z) referenced in function ...
Error   LNK2019 unresolved external symbol "public: void __thiscall TcpServer::connectToServer(class QHostAddress,int)" (?connectToServer@TcpServer@@QAEXVQHostAddress@@H@Z) referenced in function...
Error   LNK2019 unresolved external symbol "public: bool __thiscall MainTimer::timeAfterMomentExceeds(__int64,__int64)" (?timeAfterMomentExceeds@MainTimer@@QAE_N_J0@Z) referenced in function ...
Error   LNK2019 unresolved external symbol "private: __int64 __thiscall MainTimer::getMilliseconds(void)" (?getMilliseconds@MainTimer@@AAE_JXZ) referenced in function "public: __int64 __thiscall MainTimer::time_ms(void)" (?time_ms@MainTimer@@QAE_JXZ)...
Error   LNK2019 unresolved external symbol "public: void __thiscall Channel::readData(class QString &)" (?readData@Channel@@QAEXAAVQString@@@Z) referenced in function ...
Error   LNK2001 unresolved external symbol "public: virtual void * __thiscall SimpleDevice::qt_metacast(char const *)" (?qt_metacast@SimpleDevice@@UAEPAXPBD@Z)...

PS: Also I look in qt simple tcp communication with ui projects . PS:我还查看了qt 简单的 tcp 与 ui 项目的通信 I dont understand how I can "You need to enable modules you're using in Qt Project Settings".我不明白我怎么能“您需要启用您在 Qt 项目设置中使用的模块”。

UPD1: compile was sucsess, but build still falling. UPD1:编译成功,但构建仍在下降。

Error was in inlcude additional dependensies(removed) and included dirs(added)错误包括附加依赖项(已删除)并包含目录(已添加)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM