Thanks Alex I will give that a go, thank you so much for the quick reply Mark G4LCH
> On 26 Sep 2021, at 19:35, Alex Lelievre via wsjt-devel > <[email protected]> wrote: > > Hi there, > > Building for MacOS X is fairly straightforward. I would recommend using Brew > and not MacPorts but really it shouldn’t matter. > > You need GCC6 for building the latest on Intel- I’ve tested the Mac build on > Intel with the latest version of gfortran (11) and the app won’t launch, it > dies inside of some date routines and I haven’t bothered to debug it. For > the Apple M1 build, there is no other compiler available for fortran other > than gcc 11. Unfortunately the M1 build has a crash bug in the FT8 decoder > that is actually a compiler bug in gfortran 11. So I don’t recommend trying > to build for M1. > > You can get gcc v6 here: > brew install gcc@6 > > Although I used: > https://github.com/fxcoudert/gfortran-for-macOS/releases > [Scroll down to gfortran 6.3 for Sierra (macOS 10.12)] > > You will also need to install the following (there could be more needed, > these are just the ones I was missing but I build a lot of open source and > have many packages already): > brew install qt@5 > brew install cmake > brew install boost > brew install fftw > brew install libomp > brew install libusb > brew install portaudio > > # for man pages: > brew install asciidoctor > brew install asciidoc > brew install docbook-xsl > > Also the main CMakeLists.txt for wsjt-x has a bug in it for Mac that you need > to fix in order to get the fortran code to compile… > I’ve been meaning to checkin a fix for this but the pull request process on > source forge is a bit much, so I haven’t motivated yet. The fix is on line > 1102 where it says: > if (OpenMP_C_FLAGS) > > Should read: > if (OpenMP_C_FLAGS AND NOT APPLE) > > You’ll want to make that CMakeLists.txt change after running the initial > CMake configure and generate because it unpacks the source and will overwrite > that file. > > You will also need to set some environment variables, these being the > important ones: > export Qt5Test_DIR="/usr/local/Cellar/qt@5/5.15.2" > export Qt5_DIR="/usr/local/Cellar/qt@5/5.15.2" > export XML_CATALOG_FILES="/usr/local/etc/xml/catalog” > [double check that your locations match mine, they may not] > > And when configuring from within CMake, be sure to set: > CMAKE_BUILD_TYPE > CMAKE_PREFIX_PATH > > > And if all goes well and you finally build everything, you will need to > codesign the application... > > security unlock-keychain login.keychain > codesign -s "Developer ID Application: xxx" --deep -f ~/wsjtx/wsjtx.app/ > > > Good luck! > alex K6LOT > >> On Sep 26, 2021, at 10:54 AM, Mark Gregory via wsjt-devel >> <[email protected]> wrote: >> >> Good evening >> >> I am trying to build WSJTX on OSX running Big Sur and Xcode 13 when I >> attempt to install using the normal command to install the required libs >> from MacPorts is fails telling me there is a problem with libgcc7 >> >> Am I ok to use gcc10 as I think gcc5 is quite out of date now and may not be >> compatible. >> >> I know there are others building for the Apple M1 chip what toolchains are >> used please and did you instal from MacPorts >> >> Any help would be appreciated. >> >> Regards >> Mark G4LCH >> >> _______________________________________________ >> wsjt-devel mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/wsjt-devel > > > > _______________________________________________ > wsjt-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/wsjt-devel _______________________________________________ wsjt-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wsjt-devel
