Skip to content

Conversation

@Osyotr
Copy link
Owner

@Osyotr Osyotr commented Apr 9, 2024

No description provided.

@Osyotr Osyotr marked this pull request as ready for review April 9, 2024 22:42
@Osyotr Osyotr force-pushed the wip-windows branch 7 times, most recently from 7e87848 to 7ea5d3d Compare April 9, 2024 23:40
@Osyotr Osyotr force-pushed the wip-windows branch 11 times, most recently from 55e42d8 to 674eafd Compare May 1, 2024 14:31
@vaanwd
Copy link

vaanwd commented Nov 17, 2024

Hello!
Do you have some instrunctions of how to build Organic Maps on Windows?
Thank`s!

@Osyotr
Copy link
Owner Author

Osyotr commented Nov 17, 2024

The build steps are there: https://github.com/Osyotr/organicmaps/blob/wip-windows/.github/workflows/windows-check.yaml
The important step is to skip some submodules.

PS: windows builds are not usable at this moment due to organicmaps#7838

@vaanwd
Copy link

vaanwd commented Nov 19, 2024

The build steps are there: https://github.com/Osyotr/organicmaps/blob/wip-windows/.github/workflows/windows-check.yaml The important step is to skip some submodules.

PS: windows builds are not usable at this moment due to organicmaps#7838

Yes, i have the same problem(Black screen) in Arch Linux with QT 6.8.
There is a posibility to downgrade QT in vcpkg?

@Osyotr
Copy link
Owner Author

Osyotr commented Nov 19, 2024

Yes but I think the OpenGL issue is deeper because with Qt 6.6 it will crash 9/10 times.
https://learn.microsoft.com/en-us/vcpkg/consume/lock-package-versions?tabs=inspect-powershell#5---force-a-specific-version

kirylkaveryn and others added 27 commits August 4, 2025 17:10
Signed-off-by: Viktor Govako <[email protected]>
Signed-off-by: Viktor Govako <[email protected]>
The bug is quite rare and happens when the user taps on the edit (pencil) button on the PlacePage. It seems like the tap happens during the PP data object reloading the and the object type has changed. It is better to avoid failing in such cases because we cannot prevent user interaction during the pp reloading.

Signed-off-by: Kiryl Kaveryn <[email protected]>
> При уходе с тропы если язык подсказок русский, говорит - «преращик маршрута».

Signed-off-by: Alexander Borsuk <[email protected]>
Co-authored-by: Ghost of Sparta <[email protected]>
Co-authored-by: Hosted Weblate <[email protected]>
Co-authored-by: Jim Kats <[email protected]>
Co-authored-by: Sveinn í Felli <[email protected]>
Co-authored-by: Weblate Translation Memory <[email protected]>
Co-authored-by: Максим Горпиніч <[email protected]>
Signed-off-by: Ghost of Sparta <[email protected]>
Signed-off-by: Jim Kats <[email protected]>
Signed-off-by: Sveinn í Felli <[email protected]>
Signed-off-by: Weblate Translation Memory <[email protected]>
Signed-off-by: Максим Горпиніч <[email protected]>
Translate-URL: https://hosted.weblate.org/projects/organicmaps/android/el/
Translate-URL: https://hosted.weblate.org/projects/organicmaps/android/hu/
Translate-URL: https://hosted.weblate.org/projects/organicmaps/android/is/
Translate-URL: https://hosted.weblate.org/projects/organicmaps/android/uk/
Translate-URL: https://hosted.weblate.org/projects/organicmaps/ios-plurals/af/
Translate-URL: https://hosted.weblate.org/projects/organicmaps/ios-plurals/ar/
Translate-URL: https://hosted.weblate.org/projects/organicmaps/ios-plurals/da/
Translate-URL: https://hosted.weblate.org/projects/organicmaps/ios-plurals/hi/
Translate-URL: https://hosted.weblate.org/projects/organicmaps/ios-plurals/ia/
Translate-URL: https://hosted.weblate.org/projects/organicmaps/ios-plurals/id/
Translate-URL: https://hosted.weblate.org/projects/organicmaps/ios-plurals/ja/
Translate-URL: https://hosted.weblate.org/projects/organicmaps/ios-plurals/nb_NO/
Translate-URL: https://hosted.weblate.org/projects/organicmaps/ios-plurals/ro/
Translate-URL: https://hosted.weblate.org/projects/organicmaps/ios-plurals/sv/
Translate-URL: https://hosted.weblate.org/projects/organicmaps/ios-plurals/tr/
Translate-URL: https://hosted.weblate.org/projects/organicmaps/ios-plurals/zh_Hant/
Translate-URL: https://hosted.weblate.org/projects/organicmaps/ios/el/
Translate-URL: https://hosted.weblate.org/projects/organicmaps/ios/hu/
Translate-URL: https://hosted.weblate.org/projects/organicmaps/ios/is/
Translate-URL: https://hosted.weblate.org/projects/organicmaps/ios/uk/
Translate-URL: https://hosted.weblate.org/projects/organicmaps/tts/en_GB/
Translate-URL: https://hosted.weblate.org/projects/organicmaps/tts/ia/
Windows is performing path normalization anyways.
Fixes some unit tests that expect the output to contain forward slashes.

Signed-off-by: Osyotr <[email protected]>
Signed-off-by: Osyotr <[email protected]>
Signed-off-by: Osyotr <[email protected]>
It's going to be maximized anyway.
@@ -227,15 +227,15 @@ void AsciiToUpper(std::string & s)

void Trim(std::string & s)
{
boost::trim_if(s, ::isspace);
boost::trim_if(s, [](unsigned char c){ return std::isspace(c); });
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[clang-format] reported by reviewdog 🐶

Suggested change
boost::trim_if(s, [](unsigned char c){ return std::isspace(c); });
boost::trim_if(s, [](unsigned char c) { return std::isspace(c); });

Comment on lines +51 to +52
std::tm tmp = tm;
return _mkgmtime(&tmp);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[clang-format] reported by reviewdog 🐶

Suggested change
std::tm tmp = tm;
return _mkgmtime(&tmp);
std::tm tmp = tm;
return _mkgmtime(&tmp);

std::tm tmp = tm;
return _mkgmtime(&tmp);
#else
return timegm(&tm);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[clang-format] reported by reviewdog 🐶

Suggested change
return timegm(&tm);
return timegm(&tm);

@@ -54,7 +54,7 @@ void TransliterateHiraganaToKatakana(UniString & s)

size_t GetMaxErrorsForToken(UniString const & token)
{
bool const digitsOnly = std::all_of(token.begin(), token.end(), ::isdigit);
bool const digitsOnly = std::all_of(token.begin(), token.end(), [](unsigned char c){ return std::isdigit(c); });
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[clang-format] reported by reviewdog 🐶

Suggested change
bool const digitsOnly = std::all_of(token.begin(), token.end(), [](unsigned char c){ return std::isdigit(c); });
bool const digitsOnly = std::all_of(token.begin(), token.end(), [](unsigned char c) { return std::isdigit(c); });

@@ -75,6 +75,9 @@ class DesktopLocationService
#if defined(OMIM_OS_LINUX)
m_services.push_back(CreateQtLocationService(*this, "geoclue2"));
#endif // OMIM_OS_LINUX
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[clang-format] reported by reviewdog 🐶

Suggested change
#endif // OMIM_OS_LINUX
#endif // OMIM_OS_LINUX

@@ -29,7 +29,7 @@ auto GetNextDayAtNight(int32_t startTimeZoneUTC)
std::tm * nextDayDate = std::localtime(&nextDay);

long constexpr kSecondsInHour = 3600;
int const curUTCOffset = static_cast<int>(nextDayDate->tm_gmtoff / kSecondsInHour);
int const curUTCOffset = static_cast<int>(0 / kSecondsInHour); // TODO
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[clang-format] reported by reviewdog 🐶

Suggested change
int const curUTCOffset = static_cast<int>(0 / kSecondsInHour); // TODO
int const curUTCOffset = static_cast<int>(0 / kSecondsInHour); // TODO

};
dataSource.ForEachInScale(fn, scales::GetUpperScale());
int count = 0;
auto const fn = [&](FeatureType & ft) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[clang-format] reported by reviewdog 🐶

Suggested change
auto const fn = [&](FeatureType & ft) {
auto const fn = [&](FeatureType & ft)
{

@@ -25,6 +25,10 @@
#include <CoreFoundation/CoreFoundation.h>
#endif

#ifdef OMIM_OS_WINDOWS
# include <windows.h>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[clang-format] reported by reviewdog 🐶

Suggested change
# include <windows.h>
#include <windows.h>

@@ -239,7 +239,7 @@ int main(int argc, char * argv[])
#endif // BUILD_DESIGNER

Framework framework(frameworkParams);
qt::MainWindow w(framework, std::move(screenshotParams), QApplication::primaryScreen()->geometry()
qt::MainWindow w(framework, std::move(screenshotParams)
#ifdef BUILD_DESIGNER
,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[clang-format] reported by reviewdog 🐶

Suggested change
,
,

android:padding="@dimen/margin_quarter_plus">
<ImageView
android:gravity="center">
<LinearLayout
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [Android Lint] reported by reviewdog 🐶
UseCompoundDrawables: This tag and its children can be replaced by one <TextView/> and a compound drawable

android:padding="@dimen/margin_quarter_plus">
<ImageView
android:gravity="center">
<LinearLayout
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [Android Lint] reported by reviewdog 🐶
UseCompoundDrawables: This tag and its children can be replaced by one <TextView/> and a compound drawable

<ImageView
android:gravity="center"
android:orientation="vertical">
<LinearLayout
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [Android Lint] reported by reviewdog 🐶
UseCompoundDrawables: This tag and its children can be replaced by one <TextView/> and a compound drawable

<ImageView
android:gravity="center"
android:orientation="vertical">
<LinearLayout
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [Android Lint] reported by reviewdog 🐶
UseCompoundDrawables: This tag and its children can be replaced by one <TextView/> and a compound drawable

app:tint="?elevationProfilePropIconTint" />
android:gravity="center_vertical"
android:orientation="horizontal">
<ImageView
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [Android Lint] reported by reviewdog 🐶
ContentDescription: Missing contentDescription attribute on image

<dimen name="elevation_profile_peek_height">260dp</dimen>
<dimen name="elevation_profile_chart_min_height">144dp</dimen>
<dimen name="elevation_profile_chart_info_min_height">68dp</dimen>
<dimen name="elevation_profile_chart_info_min_height">54dp</dimen>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [Android Lint] reported by reviewdog 🐶
UnusedResources: The resource R.dimen.elevation_profile_chart_info_min_height appears to be unused

<dimen name="text_size_body_3">14sp</dimen>
<dimen name="text_size_body_4">12sp</dimen>
<dimen name="text_size_body_5">10sp</dimen>
<dimen name="text_size_body_6">8sp</dimen>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [Android Lint] reported by reviewdog 🐶
UnusedResources: The resource R.dimen.text_size_body_6 appears to be unused

<item name="android:textColor">?android:textColorSecondary</item>
</style>

<style name="MwmTextAppearance.Body6">
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [Android Lint] reported by reviewdog 🐶
UnusedResources: The resource R.style.MwmTextAppearance_Body6 appears to be unused

android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?ppBackground">
<ImageView
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [Android Lint] reported by reviewdog 🐶
ContentDescription: Missing contentDescription attribute on image

android:paddingEnd="@dimen/margin_quarter"
android:textAllCaps="false"
tools:text="@string/categories" />
<ImageView
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [Android Lint] reported by reviewdog 🐶
ContentDescription: Missing contentDescription attribute on image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.