[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Is there any interest in including Mac OS patches for Gambas?
[Thread Prev] | [Thread Next]
- Subject: Is there any interest in including Mac OS patches for Gambas?
- From: Geoff Beier <geoff@xxxxxxxxxx>
- Date: Fri, 6 Nov 2026 10:17:18 -0500
- To: user@xxxxxxxxxxxxxxxxxxxxxx
Hi, I'm new here. I played with Gambas many years ago, and have always thought nice things about it, but have never used it for Serious Things™. Somewhere in the Fediverse, a few of us started discussing next month's Advent of Code puzzles, and the idea of doing them in a BASIC came up and sounded kind of fun to me. I thought of Gambas. Unfortunately, my "daily driver" lately is a Mac, and I won't really be able to alter that for next month's puzzles. I looked for something similar to Gambas for Mac, and couldn't find anything other than Xojo (formerly known as RealBASIC). Their licensing makes that a poor choice for me just for a few fun puzzles, so I started looking at whether/how Gambas could work on Mac. I saw there was some work a very long time ago, and couldn't find more recent efforts, or discussions, really. But since Mac is still UNIX-ish, Qt has good Mac support for a while now, and some of the old work was still helpful, I decided to see how far I can get. So far, I've got the IDE working well enough that I can probably do the puzzles. Though some of my "fixes" are very quick and dirty hacks. Here's a screenshot of my "big button test app" with the IDE running in the background: https://l.e42.us/kHGD07mL I'd definitely need to do considerable cleanup to be able to contribute these changes back to the project. So my question for the group is: would people consider these changes interesting, and is it the kind of thing that you might be willing to merge into the project? I know this message is already long, so thanks for reading this far. At the bottom of the message, I'll list out things I did so it can be considered a little more. Thanks for a fun project! Best, Geoff ---------- Build system: - fix autotools stuff to work with clang and homebrew-installed packages on mac os - fix autotools stuff to find mac os sdk, homebrew kegs (mostly by manipulating PKG_CONFIG_PATH for mac) - fix autotools stuff to find things like postgres drivers where it isn't currently using pkgconfig - don't disable components that can work with qt when x11 is not found - various compiler/linker flag updates Low level stuff: - various changes to accommodate libc differences on mac. most notable: add a fallback memrchr() and fix overlapping strcpy calls that cause an abort on mac but not on glibc - make missing manual components just warn instead of exiting. e.g. gb.inotify - make pseudo-terminals work on mac os - fix IDE console to accommodate quirks of mac FIONREAD so that F5 works to run a program - fix a crash when an event handler raises an error (probably not mac specific, but easier to trigger on mac, especially with a rough WIP of a port ;-) ) - a small pile of little library fixes. things like using /dev/null instead of /dev/full on mac - JIT fixes for current mac linker flags - system family/architecture cases for mac GUI: - add a cocoa component so gb.qt6 no longer requires X11. i've been adding features to that as i spot them. the window management stuff is starting to be reasonably well exercised. - add warnings for things qt6 supports on X11 but not mac. (i think one of those shows in my screenshot and could be silenced) - add support for qt's native mac menubar ^^^ that might be helpful on certain KDE configurations, too - add support for naming the application after its title, even when it's not in a bundle - map fontconfig aliases to sensible defaults on mac os - default to gb.qt6 on mac os IDE: - adapt IDE menus to mac os menubar - generate a mac os application bundle for the IDE - ignore inability to use inotify on mac... if i wanted to invite others to use this, adding an FSEvents based replacement would be important Things that currently build but that I haven't tried to use: - sdl2 - ncurses - dbus (probably doesn't make any sense on mac, but i could be persuaded) - httpd 3 selftests don't work because of differences in libm between mac and linux
| Re: Is there any interest in including Mac OS patches for Gambas? | Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx> |
| Re: Is there any interest in including Mac OS patches for Gambas? | Martin Cristia <tercoide@xxxxxxxxxxx> |