Wxicon_warning zeigt ein falsches Symbol auf macOS? [geschlossen]
Posted: 21 Feb 2025, 22:32
Wenn ich versuche, Symbole zu laden, einschließlich der Standards: < /p>
Code: Select all
#include
class currentApp : public wxApp {
public:
virtual bool OnInit() {
wxMessageBox("text here", "Testing Warning Icon", wxOK | wxICON_WARNING);
// its icon doesn't load and gets replaced by the default macos blue folder icon
return false;
}
};
wxIMPLEMENT_APP(currentApp);
< /code>
... Sie laden nicht und werden stattdessen durch das Standardsymbol für Mac Blue -Ordner ersetzt. < /p>
Ich habe es versucht: < /p>
[list]
[*] Starten Sie wxWidgets < /li>
Neustart neu Gerät
[*] Initialisierung aller Bildhandler im Voraus (wxinitallimageHandlers ();)
[/list]
Hier ist mein Makefile:
CXX = clang++
CXXFLAGS = -std=c++17 $(shell wx-config --cxxflags) \
-I/opt/homebrew/include/wx-3.2
LDFLAGS = $(shell wx-config --libs) \
LIBS = -lpng -ltiff -ljpeg
TARGET = iconTest
SRC = iconTest.cpp
all: $(TARGET)
$(TARGET): $(SRC)
$(CXX) $(CXXFLAGS) $(LDFLAGS) $(SRC) -o $(TARGET) $(LIBS)
clean:
rm -f $(TARGET)