alicevision / QtOIIO

Qt Image IO plugin based on OpenImageIO.
http://www.openimageio.org
Other
41 stars 14 forks source link

error occured after typing "nmake install" on windows, seems does not linked to some libs #20

Open SoninnM opened 3 years ago

SoninnM commented 3 years ago

While I was building QtOIIO following Install.md on win10,error occured after typing "nmake install",it seems does not linked to some lib files,but I have no idea which should be linked.Here are part of the log.The whole printed log is copied to the log.txt file. Any suggestions will be appreciated!

E:\SoftInstall\QtOIIO\build>nmake install

Microsoft (R) Program Maintenance Utility Version 14.28.29913.0 Copyright (C) Microsoft Corporation. All rights reserved.

[ 11%] Automatic MOC for target QtOIIOPlugin [ 11%] Built target QtOIIOPlugin_autogen [ 22%] Building CXX object src/imageIOHandler/CMakeFiles/QtOIIOPlugin.dir/QtOIIOPlugin_autogen/mocs_compilation.cpp.obj mocs_compilation.cpp [ 33%] Building CXX object src/imageIOHandler/CMakeFiles/QtOIIOPlugin.dir/QtOIIOHandler.cpp.obj QtOIIOHandler.cpp [ 44%] Building CXX object src/imageIOHandler/CMakeFiles/QtOIIOPlugin.dir/QtOIIOPlugin.cpp.obj QtOIIOPlugin.cpp [ 55%] Linking CXX shared library QtOIIOPlugin.dll LINK: command "E:\SoftInstall\VisualStdio2019\VC\Tools\MSVC\14.28.29910\bin\Hostx86\x86\link.exe /nologo @CMakeFiles\QtOIIOPlugin.dir\objects1.rsp /out:QtOIIOPlugin.dll /implib:QtOIIOPlugin.lib /pdb:E:\SoftInstall\QtOIIO\build\src\imageIOHandler\QtOIIOPlugin.pdb /dll /version:0.0 /machine:X86 /INCREMENTAL:NO E:\vcpkg\installed\x64-windows\lib\OpenImageIO.lib E:\vcpkg\installed\x64-windows\lib\Imath-2_5.lib E:\vcpkg\installed\x64-windows\lib\Iex-2_5.lib E:\vcpkg\installed\x64-windows\lib\Half-2_5.lib E:\vcpkg\installed\x64-windows\lib\IlmThread-2_5.lib E:\SoftInstall\QT\5.14.1\msvc2017_64\lib\Qt5Gui.lib E:\SoftInstall\QT\5.14.1\msvc2017_64\lib\Qt5Core.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST /MANIFESTFILE:QtOIIOPlugin.dll.manifest" failed (exit code 1120) with the following output: Creating library QtOIIOPlugin.lib and object QtOIIOPlugin.exp mocs_compilation.cpp.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: struct QMetaObject thiscall QObjectData::dynamicMetaObject(void)const " (imp_?dynamicMetaObject@QObjectData@@QBEPAUQMetaObject@@XZ) referenced in function "public: virtual struct QMetaObject const __thiscall QtOIIOPlugin::metaObject(void)const " (?metaObject@QtOIIOPlugin@@UBEPBUQMetaObject@@XZ)

mocs_compilation.cpp.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static struct QtSharedPointer::ExternalRefCountData __cdecl QtSharedPointer::ExternalRefCountData::getAndRef(class QObject const )" (_imp?getAndRef@ExternalRefCountData@QtSharedPointer@@SAPAU12@PBVQObject@@@Z) referenced in function "private: __thiscall QWeakPointer::QWeakPointer<class QObject,1>(class QObject *,bool)" (??$?0VQObject@@$00@?$QWeakPointer@VQObject@@@@AAE@PAVQObject@@_N@Z)

mocs_compilation.cpp.obj : error LNK2019: unresolved external symbol "declspec(dllimport) public: virtual void * thiscall QImageIOPlugin::qt_metacast(char const )" (_imp?qt_metacast@QImageIOPlugin@@UAEPAXPBD@Z) referenced in function "public: virtual void __thiscall QtOIIOPlugin::qt_metacast(char const *)" (?qt_metacast@QtOIIOPlugin@@UAEPAXPBD@Z)

mocs_compilation.cpp.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual int __thiscall QImageIOPlugin::qt_metacall(enum QMetaObject::Call,int,void )" (imp_?qt_metacall@QImageIOPlugin@@UAEHW4Call@QMetaObject@@HPAPAX@Z) referenced in function "public: virtual int thiscall QtOIIOPlugin::qt_metacall(enum QMetaObject::Call,int,void )" (?qt_metacall@QtOIIOPlugin@@UAEHW4Call@QMetaObject@@HPAPAX@Z)

log.txt