GammaRay icon indicating copy to clipboard operation
GammaRay copied to clipboard

nmake failed with fatal error LNK1120

Open TrigoldenZx opened this issue 7 years ago • 0 comments

Hi,everyone: This is my first time to compile GammaRay with camke, qt4.8.2/cmake2.8.12 have been installed, i tried to compile GammaRay following the install.txt, but i got fatal error LNK1120:2 unresolved external symbol after namke executed:

kmodelindexproxymapper.cpp.obj : error LNK2019: unresolved external symbol "__declspec(d
llimport) public: __thiscall QItemSelection::QItemSelection(class QItemSelection
 &&)" (__imp_??0QItemSelection@@QAE@$$QAV0@@Z)
kmodelindexproxymapper.cpp.obj : error LNK2019: unresolved external symbol "__declspec(d
llimport) public: class QItemSelection & __thiscall QItemSelection::operator=(cl
ass QItemSelection &&)" (__imp_??4QItemSelection@@QAEAAV0@$$QAV0@@Z)

it looks like failed to find the path of qt lib, but at the beginning,camke told me qt4 has been founded,

> F:\MyPrj\Qt\GammaRay-master\GammaRay-master\build>cmake -G "NMake Makefiles" ..
-- The C compiler identification is MSVC 19.13.26128.0
-- The CXX compiler identification is MSVC 19.13.26128.0
-- Check for working C compiler: d:/Program Files (x86)/Microsoft Visual Studio/
2017/Community/VC/Tools/MSVC/14.13.26128/bin/Hostx86/x86/cl.exe
-- Check for working C compiler: d:/Program Files (x86)/Microsoft Visual Studio/
2017/Community/VC/Tools/MSVC/14.13.26128/bin/Hostx86/x86/cl.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: d:/Program Files (x86)/Microsoft Visual Studi
o/2017/Community/VC/Tools/MSVC/14.13.26128/bin/Hostx86/x86/cl.exe
-- Check for working CXX compiler: d:/Program Files (x86)/Microsoft Visual Studi
o/2017/Community/VC/Tools/MSVC/14.13.26128/bin/Hostx86/x86/cl.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Building GammaRay 2.1.50 in Debug mode
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - not found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - found
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found
-- Found Qt4: D:/Qt/4.8.2/bin/qmake.exe (found suitable version "4.8.2", minimum
 required is "4.7")
-- Looking for include file stdint.h
-- Looking for include file stdint.h - found
-- Looking for include file graphviz/graphviz_version.h
-- Looking for include file graphviz/graphviz_version.h - not found
-- VTK not found.  Set the VTK_DIR cmake cache entry to the directory containing
 VTKConfig.cmake.  This is either the root of the build tree, or PREFIX/lib/vtk
for an installation.  For VTK 4.0, this is the location of UseVTK.cmake.  This i
s either the root of the build tree or PREFIX/include/vtk for an installation.
-- Building probe for ABI: qt4.8-MSVC-debug-i686
-- Could NOT find Doxygen (missing:  DOXYGEN_EXECUTABLE)
--
-- The following features have been enabled:

 * QPainter analyzer , You must have a build version of Qt available. Make sure
the qmake found first in your execute comes from this build version.
 * QtScript debugger , Requires QtScript and QtScriptTools.
 * Web inspector , Requires QtWebKit.
 * Widget .ui file export , Requires QtDesigner library.

-- The following REQUIRED packages have been found:

 * Qt4 (required version >= 4.7) , <http://qt-project.org/>

-- The following features have been disabled:

 * ELF ABI detection , Automatic probe ABI detection on ELF-based systems. Requi
res elf.h.
 * QtQuick 2 inspector , Requires private Qt headers and Qt >= 5.2.0 to be avail
able.

-- The following OPTIONAL packages have not been found:

 * VTK , Visualization Toolkit. , <http://www.vtk.org>
   Needed for the object visualizer plugin.
 * Doxygen , API Documentation system , <http://www.doxygen.org>
   Needed to build the API documention.
 * KDE4 , KDE libraries , <http://www.kde.org/>
   Required for the KJob tracker plug-in.

-- The following RECOMMENDED packages have not been found:

 * Graphviz , Graph visualization software , <http://www.graphviz.org/>
   Needed for the state machine visualizer plugin.

-- Configuring done
-- Generating done
-- Build files have been written to: F:/MyPrj/Qt/GammaRay-master/GammaRay-master
/build

anyone can tell me how to fix it?

TrigoldenZx avatar May 24 '18 01:05 TrigoldenZx