----------------------------------------------------------------------------------------------------------------------
I have modified the top level CMakeLists file to use conan to bring down OpenSSl/Zlib/Postgress.
Them I tweaked the src and network CMakeLists to include ZLIB in the include dirs
Code: Select all
if(ZLIB_FOUND)
if(ZLIB_INCLUDE_DIR)
message(STATUS "setting ZLib found looking for ZLIB_INCLUDE_DIR")
include_directories(${ZLIB_INCLUDE_DIR})
endif(ZLIB_INCLUDE_DIR)
endif(ZLIB_FOUND)
Then my cmake line is :
cmake .. -G Ninja -DCMAKE_BUILD_TYPE=Release
Follow it up with a ninja command and get:
Code: Select all
[96/3824] Building CXX object src\core\CMakeFiles\CsCore.dir\json\qjsonvalue.cpp.obj
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\include\memory(1801): warning C4244: 'argument': conversion from 'qint64' to 'double', possible loss of data
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\include\memory(1865): note: see reference to function template instantiation 'std::_Ref_count_obj<_Ty>::_Ref_count_obj<qint64&>(qint64 &)' being compiled
with
[
_Ty=QJsonDataNumber
]
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\include\memory(1866): note: see reference to function template instantiation 'std::_Ref_count_obj<_Ty>::_Ref_count_obj<qint64&>(qint64 &)' being compiled
with
[
_Ty=QJsonDataNumber
]
..\src\core\json\qjsonvalue.cpp(71): note: see reference to function template instantiation 'std::shared_ptr<QJsonDataNumber> std::make_shared<QJsonDataNumber,qint64&>(qint64 &)' being compiled
Code: Select all
[190/3824] Building CXX object src\core\CMakeFiles\CsCore.dir\__\3rdparty\harfbuzz\src\hb-blob.cc.obj
..\src\3rdparty\harfbuzz\src\hb-blob.cc(34): warning C4068: unknown pragma
..\src\3rdparty\harfbuzz\src\hb-blob.cc(35): warning C4068: unknown pragma
..\src\3rdparty\harfbuzz\src\hb-blob.cc(37): warning C4068: unknown pragma
[200/3824] Building CXX object src\core\CMakeFiles\CsCore.dir\__\3rdparty\harfbuzz\src\hb-ot-cff1-table.cc.obj
c:\users\210008258\github\copperspice\src\3rdparty\harfbuzz\src\hb-ot-cff-common.hh(591): warning C4138: '*/' found outside of comment
Code: Select all
#ifndef _POSIX_C_SOURCE line 33
#pragma GCC diagnostic push line 34
#pragma GCC diagnostic ignored "-Wunused-macros" line 35
#define _POSIX_C_SOURCE 200809L
#pragma GCC diagnostic pop
#endif
Looking at hb-ot-cff-common.hh (line 591)
Code: Select all
bool sanitize (hb_sanitize_context_t *c, const void */*nullptr*/, unsigned int fdcount) const
Pushing on I see ...
Code: Select all
[200/3824] Building CXX object src\core\CMakeFiles\CsCore.dir\__\3rdparty\harfbuzz\src\hb-ot-map.cc.obj
..\src\3rdparty\harfbuzz\src\hb-ot-map.cc(243): warning C4805: '|=': unsafe mix of type 'hb_bool_t' and type 'bool' in operation
[253/3824] Building CXX object src\core\CMakeFiles\CsCore.dir\xml\qxmlstream.cpp.obj
include\QtCore\qvector.h(456): warning C4661: 'bool QVector<QXmlStreamAttribute>::removeOne(const T &)': no suitable definition provided for explicit template instantiation request
with
[
T=QXmlStreamAttribute
]
include\QtCore\qvector.h(285): note: see declaration of 'QVector<QXmlStreamAttribute>::removeOne'
include\QtCore\qvector.h(461): warning C4661: 'bool QVector<QXmlStreamAttribute>::removeOne(const T &)': no suitable definition provided for explicit template instantiation request
with
[
T=QXmlStreamAttribute
]
include\QtCore\qvector.h(285): note: see declaration of 'QVector<QXmlStreamAttribute>::removeOne'
include\QtCore\qvector.h(78): warning C4661: 'bool QVector<QXmlStreamAttribute>::removeOne(const T &)': no suitable definition provided for explicit template instantiation request
with
[
T=QXmlStreamAttribute
]
include\QtCore\qvector.h(285): note: see declaration of 'QVector<QXmlStreamAttribute>::removeOne'
[254/3824] Building CXX object src\network\CMakeFiles\CsNetwork.dir\access\qabstractprotocolhandler.cpp.obj
include\QtCore\csmeta_internal_2.h(118): warning C4273: 'cs_typeName_internal<T1,void>::typeName': inconsistent dll linkage
with
[
T1=QNetworkAccessManager::NetworkAccessibility
]
include\QtCore\csmeta.h(393): note: see previous definition of 'typeName'
include\QtCore\csmeta_internal_2.h(118): note: while compiling class template member function 'const QString &cs_typeName_internal<T1,void>::typeName(void)'
with
[
T1=QNetworkAccessManager::NetworkAccessibility
]
include\QtCore\csmeta.h(432): note: see reference to function template instantiation 'const QString &cs_typeName_internal<T1,void>::typeName(void)' being compiled
with
[
T1=QNetworkAccessManager::NetworkAccessibility
]
include\QtCore\csmeta.h(432): note: see reference to class template instantiation 'cs_typeName_internal<T1,void>' being compiled
with
[
T1=QNetworkAccessManager::NetworkAccessibility
]
..\src\network\access\qnetworkaccessmanager.h(63): note: see reference to function template instantiation 'const QString &cs_typeName<QNetworkAccessManager::NetworkAccessibility>(void)' being compiled