Hi Guillaume,
Guillaume DIDIER schrieb am Freitag, 21. November 2025 um 10:56:16 UTC+1:
The good news is that I have successfully compiled a Hugin.app standalone
bundle for Apple Silicon macOS Tahoe & Sequoia.
Good to hear.
The first one is that in MainFrame::MainFrame, the call to
GetDPIScaleFactor() triggers a null pointer dereference
in wxWindow::GetContentScaleFactor
(/wxWidgets-3.3.1/src/osx/window_osx.cpp:1188).
(This could either be caused by wxWindowMac::GetPeer (window_osx.cpp:278
in wxWidgets-3.3.1) returning nullptr, OR an issue
in wxWidgetCocoaImpl::GetContentScaleFactor (wxWidgets-3.3.1/src/osx/cocoa/
window.mm:2840)
With your description I tried to fix it. Please test if the attached patch
fixes the issue.
Once I replace this call with returning the 1.5 DPI scale factor that
Retina display is supposed to use, I get the splash screen to appear, but
get an error message about missing SVG assets. (The 1.5 factor might be
wrong though).
The svg files should be installed from
src/hugin1/hugin/xrc/data/CMakeLists.txt, lines 2 and 3
Is there a filename mentioned? Which svg files is missing?
Thomas
--
A list of frequently asked questions is available at:
http://wiki.panotools.org/Hugin_FAQ
---
You received this message because you are subscribed to the Google Groups
"hugin and other free panoramic software" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/hugin-ptx/dfeba1db-1873-4ca2-a58a-55edc3cec28dn%40googlegroups.com.
diff -r 056053dc1de5 src/hugin1/hugin/MainFrame.cpp
--- a/src/hugin1/hugin/MainFrame.cpp Wed Nov 19 11:16:09 2025 +0100
+++ b/src/hugin1/hugin/MainFrame.cpp Fri Nov 21 16:52:53 2025 +0100
@@ -94,6 +94,7 @@
{
SetExtraStyle(GetExtraStyle() | wxWS_EX_TRANSIENT);
wxSizer* topSizer=new wxBoxSizer(wxVERTICAL);
+ bitmap.SetScaleFactor(GetDPIScaleFactor());
wxStaticBitmap* staticBitmap=new wxStaticBitmap(this,wxID_ANY,bitmap);
topSizer->Add(staticBitmap,1,wxEXPAND);
SetSizerAndFit(topSizer);
@@ -297,7 +298,6 @@
dc.DrawText(version, bitmap.GetWidth() - tw - 3, bitmap.GetHeight() - th - 3);
dc.SelectObject(wxNullBitmap);
}
- bitmap.SetScaleFactor(GetDPIScaleFactor());
splash = new HuginSplashScreen(NULL, bitmap);
} else {
wxLogFatalError(_("Fatal installation error\nThe file data/splash.png was not found at:") + huginApp::Get()->GetXRCPath());