mariuz / flamerobin

FlameRobin is a database administration tool for Firebird RDBMS. Our goal is to build a tool that is: lightweight (small footprint, fast execution) cross-platform (Linux, Windows, Mac OS X, FreeBSD) dependent only on other Open Source software
http://flamerobin.org
MIT License
211 stars 64 forks source link

Build on MacOS 13 (M1) error `no member named 'SetInstallPrefix' in 'wxStandardPaths'` #290

Closed jan-vaclavik closed 1 year ago

jan-vaclavik commented 1 year ago

Hi, Im trying to build project Flamerobin on MacOS 13 with M1 chip. When I run make command, I get in log following message „MacOS build is untested. Please get in contact to tell us of your results.“ So im letting you know about my result.

Im followed the instructions from Build.txt for Unix systems. In step 8. $ make I run make and get error from Config.cpp:56. Here is output from log:

-- Configuring done
-- Generating done
-- Build files have been written to: /Users/janvaclavik/Desktop/projekty/flamerobin/build
[ 15%] Built target IBPP
[ 16%] Building CXX object CMakeFiles/flamerobin.dir/src/config/Config.cpp.o
/Users/janvaclavik/Desktop/projekty/flamerobin/src/config/Config.cpp:56:48: error: no member named 'SetInstallPrefix' in 'wxStandardPaths'
    ((wxStandardPaths&)wxStandardPaths::Get()).SetInstallPrefix(FR_INSTALL_PREFIX);
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
1 error generated.
make[2]: *** [CMakeFiles/flamerobin.dir/src/config/Config.cpp.o] Error 1
make[1]: *** [CMakeFiles/flamerobin.dir/all] Error 2
make: *** [all] Error 2

wxWidgets verison: 3.2.1 ( using brew )

Have you encountered this error before or do you have any information that could lead me to a solution? Thank you

jan-vaclavik commented 1 year ago

I got around this problem by editing directly in wxWidgets where I added SetInstallPrefix to the wxStandardPathsBase class. I think it's not the right solution but it worked. This error was followed by many other problems which I finally solved and successfully built FlameRobin for MacOS on M1(ARM).