Reply to topic

Unable to Compile Marble on Windows

dmc
Registered Member
Posts
1
Karma
0

Unable to Compile Marble on Windows

Thu Oct 05, 2017 12:16 am
I am attempting to compile Marble on Windows 8.1 in order to build a Qt project that builds successfully on Linux (tried on an Ubuntu system). I am following the instructions found here: https://community.kde.org/Marble/WindowsCompiling. I have downloaded and installed Qt Creator 4.4.0, and included both Qt 5.9.1 and Qt 5.5.1. The latter, earlier version is due to complications with building the project on Ubuntu with 5.9.1 due to a dependency on QtWebKit.

Following the "Compiling Marble using MinGW and mingw32-make" section of the instructions at the page linked above, I get to running the command:

Code: Select all
mingw32-make


And eventually receive the following messages, which goes on for quite awhile, but I will only include a few here:

Code: Select all
[  5%] Linking CXX shared library libmarblewidget-qt5.dll
CMakeFiles\marblewidget.dir/objects.a(LonLatParser.cpp.obj):LonLatParser.cpp:(.t
ext+0x34): undefined reference to `_imp___ZN10QArrayData10deallocateEPS_jj'
CMakeFiles\marblewidget.dir/objects.a(LonLatParser.cpp.obj):LonLatParser.cpp:(.t
ext+0x76): undefined reference to `_imp___ZN7QLocale6systemEv'
CMakeFiles\marblewidget.dir/objects.a(LonLatParser.cpp.obj):LonLatParser.cpp:(.t
ext+0x7e): undefined reference to `_imp___ZNK7QLocale12decimalPointEv'
CMakeFiles\marblewidget.dir/objects.a(LonLatParser.cpp.obj):LonLatParser.cpp:(.t
ext+0x88): undefined reference to `_imp___ZN7QLocaleD1Ev'
CMakeFiles\marblewidget.dir/objects.a(LonLatParser.cpp.obj):LonLatParser.cpp:(.t
ext+0xab): undefined reference to `_imp___ZN7QStringC1EiN2Qt14InitializationE'
CMakeFiles\marblewidget.dir/objects.a(LonLatParser.cpp.obj):LonLatParser.cpp:(.t
ext+0xcd): undefined reference to `_imp___ZN21QAbstractConcatenable14appendLatin
1ToEPKciP5QChar'
CMakeFiles\marblewidget.dir/objects.a(LonLatParser.cpp.obj):LonLatParser.cpp:(.t
ext+0xdf): undefined reference to `_imp___ZN9QListData11shared_nullE'
CMakeFiles\marblewidget.dir/objects.a(LonLatParser.cpp.obj):LonLatParser.cpp:(.t
ext+0xf9): undefined reference to `_imp___ZN10QArrayData11shared_nullE'
CMakeFiles\marblewidget.dir/objects.a(LonLatParser.cpp.obj):LonLatParser.cpp:(.t
ext+0x122): undefined reference to `_imp___ZN7QLocaleD1Ev'
CMakeFiles\marblewidget.dir/objects.a(LonLatParser.cpp.obj):LonLatParser.cpp:(.t
ext+0x173): undefined reference to `_imp___ZN7QLocale6systemEv'
CMakeFiles\marblewidget.dir/objects.a(LonLatParser.cpp.obj):LonLatParser.cpp:(.t
ext+0x17b): undefined reference to `_imp___ZNK7QLocale12decimalPointEv'
CMakeFiles\marblewidget.dir/objects.a(LonLatParser.cpp.obj):LonLatParser.cpp:(.t
ext+0x197): undefined reference to `_imp___ZNK7QString7indexOfE5QChariN2Qt15Case
SensitivityE'


And for reference, after running:

Code: Select all
cmake -G "MinGW Makefiles" -DQTONLY=TRUE -DQT5BUILD=TRUE -DCMAKE_BUILD_TYPE=Release  ..\source


The resulting output is:

Code: Select all
-- The C compiler identification is GNU 6.3.0
-- The CXX compiler identification is GNU 6.3.0
-- Check for working C compiler: C:/MinGW/bin/gcc.exe
-- Check for working C compiler: C:/MinGW/bin/gcc.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: C:/MinGW/bin/g++.exe
-- Check for working CXX compiler: C:/MinGW/bin/g++.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success
-- Could NOT find Perl (missing: PERL_EXECUTABLE)
-- Could NOT find libgps (missing: LIBGPS_INCLUDE_DIR LIBGPS_LIBRARIES)
-- Could NOT find libwlocate (missing: LIBWLOCATE_INCLUDE_DIR LIBWLOCATE_LIBRARI
ES)
-- Could NOT find libshp (missing: LIBSHP_INCLUDE_DIR LIBSHP_LIBRARIES)
-- The following features have been enabled:

 * Unit tests, Build unit tests. Toggle with BUILD_MARBLE_TESTS=YES/NO. 'make te
st' will run all.
 * Qt Designer plugins, Marble widget support in Qt Designer. Toggle with WITH_D
ESIGNER_PLUGIN=YES/NO
 * Marble Desktop/Mobile applications, Build Marble Desktop/Mobile applications.
 Toggle with BUILD_MARBLE_APPS=YES/NO.

-- The following OPTIONAL packages have been found:

 * Qt5LinguistTools
 * Qt5WebKit
 * Qt5WebKitWidgets
 * ZLIB, general-purpose lossless data-compression library, <http://www.zlib.net
/>
   When found, system zlib is used. When not found, a Marble internal zlib is us
ed.
 * Qt5Designer
   Required to build Qt Designer plugins
 * Qt5UiPlugin
   Required to build Qt Designer plugins
 * Qt5Positioning, a collection of APIs and frameworks, <http://qt.digia.com/>
   position information via Qt5Positioning

-- The following REQUIRED packages have been found:

 * Qt5Core
 * Qt5Xml
 * Qt5Network
 * Qt5Test
 * Qt5Gui (required version >= 5.6.0)
 * Qt5Widgets
 * Qt5Svg
 * Qt5Sql
 * Qt5Concurrent
 * Qt5Qml (required version >= 5.6.0)
 * Qt5Quick
 * Qt5PrintSupport
 * Qt5 (required version >= 5.3.0)

-- The following features have been disabled:

 * Marble tools, Build various Marble tools for e.g. file format conversion. Tog
gle with BUILD_MARBLE_TOOLS=YES/NO.
 * Marble library C++ examples, Build C++ examples showing how to use the Marble
 library. Toggle with BUILD_MARBLE_EXAMPLES=YES/NO.

-- The following OPTIONAL packages have not been found:

 * Phonon4Qt5, Qt-based audio library, <https://phonon.kde.org/>
   Support for playback of soundcue elements
   Voice navigation (sound or human speakers)
 * Perl, <http://www.perl.org>
   generation of sources in the APRS plugin
 * libgps, communicating with the GPS daemon, <http://catb.org/gpsd/>
   position information via gpsd
 * libwlocate, WLAN-based geolocation, <http://www.openwlanmap.org/>
   Position information based on neighboring WLAN networks
 * libshp, reading and writing of ESRI Shapefiles (.shp), <http://shapelib.mapto
ols.org/>
   reading and displaying .shp files
 * ECM (required version >= 1.7.0)

-- Configuring done
-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    QT5BUILD
    QTONLY


-- Build files have been written to: zzzzzzz


I am unsure of how to proceed in order to build Marble for this Qt project. Would anyone be able to help me with this? Thank you.
rjmrohit
Registered Member
Posts
1
Karma
0
Do you have libmarblewidget-qt5.dll in the directory?

 
Reply to topic

Bookmarks



Who is online

Registered users: Baidu [Spider], bgomes, Bing [Bot], boudewijn, capslock, Exabot [Bot], Google [Bot], hhiya, Kaelygon, srgmro33, stefano, Thommen, tymond, Yahoo [Bot]