Hi I am trying to build Organic Maps desktop app using this guide:
install.md(click to expand)
system (click to expand)
wsl --version
Wersja podsystemu WSL: 2.2.4.0
Wersja jądra: 5.15.153.1-2
Wersja usługi WSLg: 1.0.61
Wersja MSRDC: 1.2.5326
Wersja Direct3D: 1.611.1-81528511
Wersja DXCore: 10.0.26091.1-240325-1447.ge-release
Wersja systemu Windows: 10.0.19045.4894
wsl lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 24.04 LTS
Release: 24.04
Codename: noble
I had some errors while running configure.sh and they seem to be boost related. After downloading boost from its github page and putting it back into the project, the scirpt finishes like that :
configure.sh output(click to expand)
D:\DANE\SEALCODE\organicmaps>wsl ./configure.sh
Initializing repository with default values in Open-Source mode.
Building B2 engine..
###
###
### Using 'gcc' toolset.
###
###
g++ (Ubuntu 13.2.0-23ubuntu4) 13.2.0
Copyright (C) 2023 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
###
###
> g++ -x c++ -std=c++11 -pthread -O2 -s -DNDEBUG bindjam.cpp builtins.cpp class.cpp command.cpp compile.cpp constants.cpp cwd.cpp debug.cpp debugger.cpp events.cpp execcmd.cpp execnt.cpp execunix.cpp filent.cpp filesys.cpp fileunix.cpp frames.cpp function.cpp glob.cpp hash.cpp hcache.cpp hdrmacro.cpp headers.cpp jam_strings.cpp jam.cpp jamgram.cpp lists.cpp make.cpp make1.cpp md5.cpp mem.cpp modules.cpp native.cpp option.cpp output.cpp parse.cpp pathnt.cpp pathsys.cpp pathunix.cpp regexp.cpp rules.cpp scan.cpp search.cpp startup.cpp tasks.cpp timestamp.cpp value.cpp variable.cpp w32_getreg.cpp mod_command_db.cpp mod_db.cpp mod_jam_builtin.cpp mod_jam_class.cpp mod_jam_errors.cpp mod_jam_modules.cpp mod_order.cpp mod_path.cpp mod_property_set.cpp mod_regex.cpp mod_sequence.cpp mod_set.cpp mod_string.cpp mod_summary.cpp mod_sysinfo.cpp mod_version.cpp -o b2
tools/build/src/engine/b2
Unicode/ICU support for Boost.Regex?... /usr
Backing up existing B2 configuration in project-config.jam.2
Generating B2 configuration in project-config.jam for gcc...
Bootstrapping is done. To build, run:
./b2
To generate header files, run:
./b2 headers
The configuration generated uses gcc to build by default. If that is
unintended either use the --with-toolset option or adjust configuration, by
editing 'project-config.jam'.
Further information:
- Command line help:
./b2 --help
- Getting started guide:
http://www.boost.org/more/getting_started/unix-variants.html
- B2 documentation:
http://www.boost.org/build/
Performing configuration checks
- default address-model : 64-bit (cached) [1]
- default architecture : x86 (cached) [1]
- symlinks supported : yes (cached)
[1] gcc-13
...found 1252 targets...
Build encounters an error.
wsl tools/unix/build_omim.sh -r desktop output(click to expand)
D:\DANE\SEALCODE\organicmaps>wsl tools/unix/build_omim.sh -r desktop
-- Using compiler GNU 13.2.0
-- Using Unity Build with batch 50, export UNITY_DISABLE=1 or use -DUNITY_DISABLE=ON to disable it.
-- export COLORS_DISABLE=1 or use -DCOLORS_DISABLE=ON to disable colored compiler output.
-- Build type: Release
-- Using ld.gold
-- Could NOT find XKB (missing: XKB_LIBRARY XKB_INCLUDE_DIR) (Required is at least version "0.5.0")
-- Found Qt version: 6.4.2
-- Found the following ICU libraries:
-- uc (required): /usr/lib/x86_64-linux-gnu/libicuuc.so
-- i18n (required): /usr/lib/x86_64-linux-gnu/libicui18n.so
-- data (required): /usr/lib/x86_64-linux-gnu/libicudata.so
-- ===========================================================================
--
-- Configuration
-- Generator .................. Ninja
-- Build type ................. Release
-- Prefix ..................... /usr/local
-- Shared libraries ........... OFF
-- Character type ............. char (UTF-8)
-- Library name postfix .......
--
-- Build documentation ........ OFF
-- Build examples ............. OFF
-- Build fuzzers .............. OFF
-- Build tests ................ OFF
-- Build tools (xmlwf) ........ OFF
-- Build pkg-config file ...... OFF
-- Install files .............. OFF
--
-- Features
-- // Advanced options, changes not advised
-- Attributes info .......... OFF
-- Context bytes ............ 1024
-- DTD support .............. OFF
-- General entities ......... OFF
-- Large size ............... OFF
-- Minimum size ............. OFF
-- Namespace support ........ ON
--
-- Entropy sources
-- getrandom ................ 1
-- syscall SYS_getrandom .... 1
-- libbsd ................... OFF
-- /dev/random .............. ON
--
-- ===========================================================================
C compiler: GNU
Building with Qt Positioning
-- Configuring done (34.8s)
-- Generating done (11.1s)
-- Build files have been written to: /mnt/d/DANE/SEALCODE/omim-build-release
[1/58] Building CXX object coding/CMakeFiles/coding.dir/Unity/unity_0_cxx.cxx.o
FAILED: coding/CMakeFiles/coding.dir/Unity/unity_0_cxx.cxx.o
/usr/bin/c++ -DRELEASE -DUSE_FILE32API -I/mnt/d/DANE/SEALCODE/organicmaps -I/mnt/d/DANE/SEALCODE/omim-build-release/3party/gflags/include -I/mnt/d/DANE/SEALCODE/organicmaps/3party/utfcpp/source -I/mnt/d/DANE/SEALCODE/organicmaps/3party/expat/expat/lib -I/mnt/d/DANE/SEALCODE/omim-build-release/3party/expat/expat -I/mnt/d/DANE/SEALCODE/omim-build-release/3party/jansson/jansson/include -isystem /mnt/d/DANE/SEALCODE/organicmaps/3party/boost -O3 -DNDEBUG -std=c++20 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -fdiagnostics-color=always -ffast-math -Ofast -Wall -Wextra -Wpedantic -Wno-unused-parameter -MD -MT coding/CMakeFiles/coding.dir/Unity/unity_0_cxx.cxx.o -MF coding/CMakeFiles/coding.dir/Unity/unity_0_cxx.cxx.o.d -o coding/CMakeFiles/coding.dir/Unity/unity_0_cxx.cxx.o -c /mnt/d/DANE/SEALCODE/omim-build-release/coding/CMakeFiles/coding.dir/Unity/unity_0_cxx.cxx
In file included from /mnt/d/DANE/SEALCODE/omim-build-release/coding/CMakeFiles/coding.dir/Unity/unity_0_cxx.cxx:58:
/mnt/d/DANE/SEALCODE/organicmaps/coding/sha1.cpp: In function ‘coding::SHA1::Hash coding::{anonymous}::ExtractHash(boost::uuids::detail::sha1&)’:
/mnt/d/DANE/SEALCODE/organicmaps/coding/sha1.cpp:23:19: error: cannot convert ‘uint32_t [5]’ {aka ‘unsigned int [5]’} to ‘unsigned char (&)[20]’
23 | sha1.get_digest(digest);
| ^~~~~~
| |
| uint32_t [5] {aka unsigned int [5]}
In file included from /mnt/d/DANE/SEALCODE/organicmaps/coding/sha1.cpp:11:
/mnt/d/DANE/SEALCODE/organicmaps/3party/boost/boost/uuid/detail/sha1.hpp:179:43: note: initializing argument 1 of ‘void boost::uuids::detail::sha1::get_digest(unsigned char (&)[20])’
179 | inline void sha1::get_digest(digest_type& digest)
| ~~~~~~~~~~~~~^~~~~~
ninja: build stopped: subcommand failed.
.ninja_log: (click to expand)
# ninja log v5
8048 8228 1727549789198110900 libgflags_nothreads.a ea8d69221206fdf6
4904 20843 1727549802015700100 3party/succinct/CMakeFiles/succinct.dir/Unity/unity_0_cxx.cxx.o cf1e614b06b782d2
7305 7461 1727549788414099100 libvulkan_wrapper.a 96f328efe1687218
5801 6693 1727549787638320800 3party/jansson/jansson/lib/libjansson.a 4f05523819b1a5e5
7652 8037 1727549977654621600 libbase.a b7132c9452a784b0
9386 9496 1727549790481433400 libtess2.a b80d1a655eea245e
13650 13976 1727549795027809300 libprotobuf.a 447c1e6b26ad5af3
6703 7294 1727549788241824800 3party/vulkan_wrapper/CMakeFiles/vulkan_wrapper.dir/Unity/unity_0_cxx.cxx.o 6680e0ff63e892d
2045 2880 1727549784457633500 libagg.a bd3dea0d195fc75f
10642 10853 1727549791856664300 libpugixml.a 8c3a1b310177a233
9497 21460 1727549802649527200 ge0/CMakeFiles/ge0.dir/Unity/unity_0_cxx.cxx.o c90d876e97c23984
2886 63146 1727549844535420000 3party/opening_hours/CMakeFiles/opening_hours.dir/Unity/unity_0_cxx.cxx.o 3aa45ddb5d951fa4
7462 39544 1727549820491587300 base/CMakeFiles/base.dir/Unity/unity_0_cxx.cxx.o 427a1c4284611bbf
571 13605 1727549794643688100 3party/protobuf/CMakeFiles/protobuf.dir/Unity/unity_0_cxx.cxx.o 5da8ae40fd674af
578 1678 1727549783232466900 3party/minizip/CMakeFiles/minizip.dir/Unity/unity_0_cxx.cxx.o 8fac3dbe0b78e64c
562 7202 1727549788149478400 3party/expat/expat/CMakeFiles/expat.dir/Unity/unity_0_c.c.o ccf5d031d9ea04f
8040 8141 1727549977759723800 libcppjansson.a dbf325238f200979
2589 2873 1727549784445634100 libbsdiff.a 3ce7fa292eab7ecb
573 2025 1727549783571885400 3party/agg/CMakeFiles/agg.dir/Unity/unity_0_cxx.cxx.o d984b8ca7381b212
1728 2996 1727549784565266900 3party/minizip/CMakeFiles/minizip.dir/Unity/unity_0_c.c.o 4052c64f46db9fc2
2875 4677 1727549786266365600 3party/open-location-code/CMakeFiles/openlocationcode.dir/Unity/unity_0_cxx.cxx.o 972ac398d0642962
3003 3198 1727549784770500600 libminizip.a f833ec8a349ea059
7210 7388 1727549788344504000 libexpat.a af7d4ad8db845891
567 8023 1727549788977594800 3party/gflags/CMakeFiles/gflags_nothreads_static.dir/Unity/unity_0_cxx.cxx.o 3fb37a0ddbb73845
569 10634 1727549791627125300 3party/pugixml/CMakeFiles/pugixml.dir/Unity/unity_0_cxx.cxx.o 83ae4fb877df96c
15200 20142 1727549801298384700 cppjansson/CMakeFiles/cppjansson.dir/Unity/unity_0_cxx.cxx.o d798088bdbae6cc2
4693 4903 1727549786503689200 libopenlocationcode.a 19b135f821ae7910
3199 15015 1727549796074485400 3party/stb_image/CMakeFiles/stb_image.dir/Unity/unity_0_cxx.cxx.o a380321241da9a26
7390 9371 1727549790350908500 3party/libtess2/CMakeFiles/tess2.dir/Unity/unity_0_c.c.o a08f20e3a5fc4a99
575 2585 1727549784147388900 3party/bsdiff-courgette/CMakeFiles/bsdiff.dir/Unity/unity_0_cxx.cxx.o 13af61c48e58803e
7651 8264 1727549977882624800 libopening_hours.a fac8dc15be1e5709
565 5787 1727549787381028500 3party/jansson/jansson/CMakeFiles/jansson.dir/Unity/unity_0_c.c.o e8f7045c97156853
15024 15198 1727549796268097200 libstb_image.a 2c6ef74f1420248f
13977 34242 1727549815673879500 geometry/CMakeFiles/geometry.dir/Unity/unity_0_cxx.cxx.o bfaf0f258be07302
8040 8236 1727549977855625800 libgeometry.a 8e2375c716033695
20912 21021 1727549802198797000 libsuccinct.a 21263d1b9d841677
10854 18704 1727549799823445600 generator/mwm_diff/CMakeFiles/mwm_diff.dir/Unity/unity_0_cxx.cxx.o c8bcacd14fde9bc1