one detail
I am using a statically built Qt version
this can be done with
git clone https://code.qt.io/qt/qt5.git qt-everywhere-opensource-src-5.5.1
cd qt-everywhere-opensource-src-5.5.1
git checkout 5.5
perl init-repository
--module-subset=qtbase,qtimageformats,-qtwebkit,-qtwebkit-examples,-qtwebengine
git checkout v5.5.1
cd qtimageformats && git checkout v5.5.1 && cd ..
configure -prefix I:/qt-win32-msvc2015 -debug -static -static-runtime -platform
win32-msvc2015 -confirm-license -nomake examples -no-compile-examples -nomake
tests -no-opengl
jom -j 4
nmake install
also these changes have to be made for msvc-desktop.conf
QMAKE_CFLAGS_DEBUG = -Zi -MTd
QMAKE_CFLAGS_RELEASE = -O2 -MT
----- Original Message -----
From: Pedro Vicente
To: plplot-devel@lists.sourceforge.net ; plplot-gene...@lists.sourceforge.net
Sent: Tuesday, October 11, 2016 10:08 PM
Subject: [Plplot-general] cmake error Qt build
Hi
I get an error build with Qt driver, the call and error are below
The home page documenation seems not to have much information about all the
cmake options .
this is probably the most complex cmake build system I have ever found, and
without documenation makes it difficult to use.
Would it be possible to add some simple usage ?
thanks
using
Windows Visual Studio 2015
Qt version 5.5.1
PLpot version 5.11.1
call used:
cmake ".." -G "Visual Studio 14" -DPL_DOUBLE:BOOL=ON -DBUILD_TEST:BOOL=ON
-DCMAKE_CONFIGURATION_TYPES:STRING="Debug" -DCMAKE_BUILD_TYPE:STRING="Debug"
-DBUILD_SHARED_LIBS:BOOL=OFF -DSTATIC_RUNTIME:BOOL=ON -DPLD_wxwidgets:BOOL=ON
-DwxWidgets_ROOT_DIR:PATH=%WXWIN% -DwxWidgets_LIB_DIR:PATH=%WXWIN%\lib\vc_lib
-DwxWidgets_CONFIGURATION=mswud -DENABLE_MIX_CXX=ON
-DwxWidgets_EXCLUDE_COMMON_LIBRARIES:BOOL=OFF -DANY_QT_DEVICE:BOOL=ON
-DPLPLOT_USE_QT5:BOOL=ON -DPLPLOT_USE_QT5=ON -DDEFAULT_ALL_DEVICES=ON
relevant output relevant to Qt and error seems to be
DEFAULT_NO_BINDINGS=OFF
ENABLE_qt=
PLPLOT_USE_QT5=ON
ENABLE_pyqt4=
-- Attempting to use Qt5 so have set PLD_epsqt to OFF since Qt5 does not
support PostScript
PLPLOT_USE_QT5=ON
-- Qt5_library_fullpath_list =
I:/qt-win32-msvc2015/lib/Qt5Cored.lib;I:/qt-win32-msvc2015/lib/Qt5Guid.lib;I:/qt-win32-msvc2015/lib/Qt5PrintSupportd.lib;I:/qt
-win32-msvc2015/lib/Qt5Widgetsd.lib;I:/qt-win32-msvc2015/lib/Qt5Svgd.lib
-- Qt5_library_LINK_FLAGS = I:/qt-win32-msvc2015/lib/Qt5Cored.lib
I:/qt-win32-msvc2015/lib/Qt5Guid.lib
I:/qt-win32-msvc2015/lib/Qt5PrintSupportd.lib I:/qt-wi
n32-msvc2015/lib/Qt5Widgetsd.lib I:/qt-win32-msvc2015/lib/Qt5Svgd.lib
ANY_QT_DEVICE=ON
-- WARNING: ENABLE_python is OFF so setting ENABLE_pyqt4 to OFF.
CMake Error at src/CMakeLists.txt:314 (target_link_libraries):
The plain signature for target_link_libraries has already been used with
the target "plplot". All uses of target_link_libraries with a target must
be either all-keyword or all-plain.
The uses of the plain signature are here:
* I:/qt-win32-msvc2015/lib/cmake/Qt5Core/Qt5CoreMacros.cmake:330
(target_link_libraries)
libplplot_LINK_FLAGS = C:/Program Files (x86)/Windows
Kits/8.1/Lib/winv6.3/um/x86/Gdi32.Lib;C:/Program Files (x86)/Windows
Kits/8.1/Lib/winv6.3/um/x86/ComDlg
32.Lib;M:/wx/wxwidgets-3.1.0/lib/vc_lib/wxbase31ud.lib;M:/wx/wxwidgets-3.1.0/lib/vc_lib/wxmsw31ud_core.lib;M:/wx/wxwidgets-3.1.0/lib/vc_lib/wxpngd.lib;M:/wx/
wxwidgets-3.1.0/lib/vc_lib/wxtiffd.lib;M:/wx/wxwidgets-3.1.0/lib/vc_lib/wxjpegd.lib;M:/wx/wxwidgets-3.1.0/lib/vc_lib/wxzlibd.lib;M:/wx/wxwidgets-3.1.0/lib/vc
_lib/wxregexud.lib;M:/wx/wxwidgets-3.1.0/lib/vc_lib/wxexpatd.lib;winmm;comctl32;rpcrt4;wsock32;-lcsirocsa;-lnistcd;-lqsastime;I:/qt-win32-msvc2015/lib/Qt5Cor
ed.lib I:/qt-win32-msvc2015/lib/Qt5Guid.lib
I:/qt-win32-msvc2015/lib/Qt5PrintSupportd.lib
I:/qt-win32-msvc2015/lib/Qt5Widgetsd.lib I:/qt-win32-msvc2015/lib/Q
t5Svgd.lib
-- WARNING: Perl modules XML::Parser and/or XML::DOM not available
so cannot check that swig_documentation.i is up to date.
CMake Error at bindings/qt_gui/CMakeLists.txt:56 (target_link_libraries):
The plain signature for target_link_libraries has already been used with
the target "plplotqt". All uses of target_link_libraries with a target
must be either all-keyword or all-plain.
The uses of the plain signature are here:
* I:/qt-win32-msvc2015/lib/cmake/Qt5Core/Qt5CoreMacros.cmake:330
(target_link_libraries)
----------------------
Pedro Vicente
pedro.vice...@space-research.org
http://www.space-research.org/
------------------------------------------------------------------------------
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
------------------------------------------------------------------------------
_______________________________________________
Plplot-general mailing list
plplot-gene...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-general
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel