<div dir="ltr"><div><div><div><div><div><div>
Hello everybody,<br><br>My name is Anthony and I looking for updgrading
the MarbleWidget library that I already use from its (very) old version
0.19.2 to the last one 17.12.<br><br></div><div>I already know the widget, I integrated the old version 5 years ago.<br></div><div><br>I try to compile the new library and I get a compiler error.
<br><br>Please, firstly, take a look to my CMake configuration (I can give you the CMakeCache.txt too):<br><br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><font size="1">The C compiler identification is MSVC 19.12.25835.0</font></p><font size="1">
</font><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><font size="1">The CXX compiler identification is MSVC 19.12.25835.0</font></p><font size="1">
</font><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><font size="1">Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Professional/VC/Tools/MSVC/14.12.25827/bin/Hostx86/x64/cl.exe</font></p><font size="1">
</font><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><font size="1">Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Professional/VC/Tools/MSVC/14.12.25827/bin/Hostx86/x64/cl.exe -- works</font></p><font size="1">
</font><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><font size="1">Detecting C compiler ABI info</font></p><font size="1">
</font><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><font size="1">Detecting C compiler ABI info - done</font></p><font size="1">
</font><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><font size="1">Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Professional/VC/Tools/MSVC/14.12.25827/bin/Hostx86/x64/cl.exe</font></p><font size="1">
</font><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><font size="1">Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Professional/VC/Tools/MSVC/14.12.25827/bin/Hostx86/x64/cl.exe -- works</font></p><font size="1">
</font><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><font size="1">Detecting CXX compiler ABI info</font></p><font size="1">
</font><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><font size="1">Detecting CXX compiler ABI info - done</font></p><font size="1">
</font><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><font size="1">Detecting CXX compile features</font></p><font size="1">
</font><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><font size="1">Detecting CXX compile features - done</font></p><font size="1">
</font><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><font size="1"><span style="color:rgb(255,0,0)">CMake Warning (dev) at CMakeLists.txt:23 (if):<br> Policy CMP0054 is not set: Only interpret if() arguments as variables or<br> keywords when unquoted. Run "cmake --help-policy CMP0054" for policy<br> details. Use the cmake_policy command to set the policy and suppress this<br> warning.<br><br> Quoted variables like "MSVC" will no longer be dereferenced when the policy<br> is set to NEW. Since the policy is not set the OLD behavior will be used.<br>This warning is for project developers. Use -Wno-dev to suppress it.<br></span></font></p><font size="1">
</font><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><font size="1"><span style="color:rgb(255,0,0)">CMake Warning (dev) at CMakeLists.txt:28 (if):<br> Policy CMP0054 is not set: Only interpret if() arguments as variables or<br> keywords when unquoted. Run "cmake --help-policy CMP0054" for policy<br> details. Use the cmake_policy command to set the policy and suppress this<br> warning.<br><br> Quoted variables like "MSVC" will no longer be dereferenced when the policy<br> is set to NEW. Since the policy is not set the OLD behavior will be used.<br>This warning is for project developers. Use -Wno-dev to suppress it.<br></span></font></p><font size="1">
</font><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><font size="1"><span style="color:rgb(255,0,0)">CMake Warning (dev) at CMakeLists.txt:30 (elseif):<br> Policy CMP0054 is not set: Only interpret if() arguments as variables or<br> keywords when unquoted. Run "cmake --help-policy CMP0054" for policy<br> details. Use the cmake_policy command to set the policy and suppress this<br> warning.<br><br> Quoted variables like "MSVC" will no longer be dereferenced when the policy<br> is set to NEW. Since the policy is not set the OLD behavior will be used.<br>This warning is for project developers. Use -Wno-dev to suppress it.<br></span></font></p><font size="1">
</font><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><font size="1">Could NOT find Qt5WebKit (missing: Qt5WebKit_DIR)</font></p><font size="1">
</font><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><font size="1">Could NOT find Qt5WebKitWidgets (missing: Qt5WebKitWidgets_DIR)</font></p><font size="1">
</font><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><font size="1"><span style="color:rgb(255,0,0)">CMake Warning at CMakeLists.txt:131 (find_package):<br> Found package configuration file:<br><br> Z:/trunk/ThirdParty/Lib/Qt/5.9.4_x64/lib/cmake/Qt5/Qt5Config.cmake<br><br> but it set Qt5_FOUND to FALSE so package "Qt5" is considered to be NOT<br> FOUND. Reason given by package:<br><br> Failed to find Qt5 component "WebKit" config file at<br> "Z:/trunk/ThirdParty/Lib/Qt/5.9.4_x64/lib/cmake/Qt5WebKit/Qt5WebKitConfig.cmake"<br><br><br> Failed to find Qt5 component "WebKitWidgets" config file at<br> "Z:/trunk/ThirdParty/Lib/Qt/5.9.4_x64/lib/cmake/Qt5WebKitWidgets/Qt5WebKitWidgetsConfig.cmake"<br><br><br> <br><br><br></span></font></p><font size="1">
</font><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><font size="1">The following features have been enabled:</font></p><font size="1">
</font><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><font size="1"><br></font></p><font size="1">
</font><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><font size="1"> * Marble Desktop/Mobile applications, Build Marble Desktop/Mobile applications. Toggle with BUILD_MARBLE_APPS=YES/NO.</font></p><font size="1">
</font><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><font size="1"><br></font></p><font size="1">
</font><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><font size="1">-- The following OPTIONAL packages have been found:</font></p><font size="1">
</font><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><font size="1"><br></font></p><font size="1">
</font><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><font size="1"> * Qt5LinguistTools</font></p><font size="1">
</font><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><font size="1"> * Perl, <<a href="http://www.perl.org">http://www.perl.org</a>></font></p><font size="1">
</font><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><font size="1"> generation of sources in the APRS plugin</font></p><font size="1">
</font><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><font size="1"> * Qt5SerialPort, Provides access to hardware and virtual serial ports.</font></p><font size="1">
</font><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><font size="1"> Reading from serial port in APRS plugin</font></p><font size="1">
</font><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><font size="1"> * Qt5Positioning, a collection of APIs and frameworks, <<a href="http://qt.digia.com/">http://qt.digia.com/</a>></font></p><font size="1">
</font><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><font size="1"> position information via Qt5Positioning</font></p><font size="1">
</font><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><font size="1"><br></font></p><font size="1">
</font><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><font size="1">-- The following REQUIRED packages have been found:</font></p><font size="1">
</font><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><font size="1"><br></font></p><font size="1">
</font><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><font size="1"> * Qt5Core</font></p><font size="1">
</font><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><font size="1"> * Qt5Xml</font></p><font size="1">
</font><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><font size="1"> * Qt5Network</font></p><font size="1">
</font><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><font size="1"> * Qt5Test</font></p><font size="1">
</font><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><font size="1"> * Qt5Gui (required version >= 5.9.4)</font></p><font size="1">
</font><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><font size="1"> * Qt5Widgets</font></p><font size="1">
</font><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><font size="1"> * Qt5Svg</font></p><font size="1">
</font><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><font size="1"> * Qt5Sql</font></p><font size="1">
</font><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><font size="1"> * Qt5Concurrent</font></p><font size="1">
</font><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><font size="1"> * Qt5Qml (required version >= 5.9.4)</font></p><font size="1">
</font><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><font size="1"> * Qt5Quick</font></p><font size="1">
</font><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><font size="1"> * Qt5PrintSupport</font></p><font size="1">
</font><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><font size="1"> * Qt5 (required version >= 5.3.0)</font></p><font size="1">
</font><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><font size="1"><br></font></p><font size="1">
</font><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><font size="1">-- The following features have been disabled:</font></p><font size="1">
</font><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><font size="1"><br></font></p><font size="1">
</font><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><font size="1"> * Unit tests, Build unit tests. Toggle with BUILD_MARBLE_TESTS=YES/NO. 'make test' will run all.</font></p><font size="1">
</font><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><font size="1"> * Qt Designer plugins, Marble widget support in Qt Designer. Toggle with WITH_DESIGNER_PLUGIN=YES/NO</font></p><font size="1">
</font><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><font size="1"> * Marble tools, Build various Marble tools for e.g. file format conversion. Toggle with BUILD_MARBLE_TOOLS=YES/NO.</font></p><font size="1">
</font><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><font size="1"> * Marble library C++ examples, Build C++ examples showing how to use the Marble library. Toggle with BUILD_MARBLE_EXAMPLES=YES/NO.</font></p><font size="1">
</font><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><font size="1"><br></font></p><font size="1">
</font><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><font size="1">-- The following OPTIONAL packages have not been found:</font></p><font size="1">
</font><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><font size="1"><br></font></p><font size="1">
</font><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><font size="1"> * Qt5WebKit</font></p><font size="1">
</font><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><font size="1"> * Qt5WebKitWidgets</font></p><font size="1">
</font><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><font size="1"> * ECM (required version >= 1.7.0)</font></p><font size="1">
</font><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><font size="1"><br></font></p><font size="1">
</font><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><font size="1">Configuring done</font></p></blockquote><div> </div>Like all REQUIRED packages have been found, I suppose the configuration correctly done. Am I right ?<br></div><div><br>Once done, I compile in Debug x64 the ALL_BUILD project and I get no errors. Just some warnings ( 193, "C4996: This function or variable may be unsafe.", for most of them).<br><br></div>When I trying to compile in Release x64, during the marblewidget build, I get error:<br><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span style="color:rgb(255,0,0)">>z:\trunk\thirdparty\lib\qt\5.9.4_x64\include\qtcore\qstringbuilder.h(354): fatal error C1001: An internal error has occurred in the compiler.</span><br></blockquote><br></div>Have you any ideas or tricks to solve this error, please ?<br><br></div>I tried with the branch 17.08 and 17.04, I get the same behavior.<br><br></div>Thank you in advance for your help !<br><br></div>Best Regards,<br><br></div>Anthony<br><div><div><div><div><div><div><br><br><div><br></div></div></div></div></div></div></div></div>