I’m working on updating the MacPorts port for Audacity, using master/HEAD. So far I’ve managed to build on OS X 10.9.5 using clang-9 and against a system wxWidgets 3.1.4-pre (3.1.3.1373, the latest commit to run on my OS version). I want to provide a port variant that uses Audacity’s own wxWidgets version, and am running into a few issues that suggest that either I’m doing something wrong, or something hasn’t been tested exhaustively:
missing headerfile search directives so the wx headers aren’t found
osx_cocoa-unicode-3.1/wx/setup.h isn’t copied into the appropriate //package install directory
WXOSX_COCOA is not defined
the wx libraries aren’t linked in (at least for the image-compiler target).
So far I have worked around the 1st three issues but I do not yet see how I could handle the last.
What version of conan are you using? conan unexpectedly released a 2.0 version a few days ago, Audacity still requires 1.x (I think 1.59.0 is the last version)
I noticed, pulled and got the fix (conan isn’t in MacPorts so I’m using whatever Audacity’s buildsystem decides in this matter). That was necessary for my “system wx” build too.
FWIW, I can’t say I like the move to conan over the previous implementation where the configure step was a configure step that didn’t build half the code already, pulling in things like ninja which I already have, and not giving me full control over how dependencies are built.
I got caught by that recently. My workaround was to create a Python virtual environment in the Audacity/ source tree (using pipenv Pipenv: Python Dev Workflow for Humans — pipenv 2023.11.16.dev0 documentation), then specified version “<2” when installing Conan into the virtual environment. I then activated the virtual environment before running the “cmake” configuration.
Dmitri (one of the developers) said that he’s aware of the problem and was working on a fix but that it was more complicated than he expected (that was a week ago). 2 days ago he added a warning in the source code to say:
At this time, Audacity > does not support Conan 2.0> . If you have Conan 2.0 installed, you will need to downgrade to Conan 1.59.0.
Don’t bother, I caved and decided to build audacity-wxWidgets as a system-level build dependency, and to tweak the fix_bundle.py script so it embeds the used libwx libraries into the bundle.
For future reference, the Audacity developer’s discord channel may be better than this forum for build related issues (this forum is a community forum where users help users). The dev’s discord channel is here: https://discord.gg/N3XKxzTrq3