UKHAS Wiki

UK High Altitude Society

User Tools

Site Tools


projects:dl-fldigi:build-osx

Build on Mac OS X 11.5+

  • Requirements:
    • Xcode (once installed you need to install the commandline bundle from Xcode itself (from preferences)
    • Homebrew (use the auto install script)
$ brew install git automake fltk pkg-config libsamplerate portaudio curl libpng openssl
$ git clone git://github.com/jamescoxon/dl-fldigi.git
$ cd dl-fldigi
$ git submodule init
$ git submodule update
$ cd m4
$ cp /usr/local/share/aclocal/pkg.m4 pkg.m4
$ cd ..
$ cp /usr/local/Cellar/curl/7.28.1/lib/pkgconfig/libcurl.pc /usr/local/lib/pkgconfig/

May need to do a similar thing for libpng (on Mac OS X 10.6.8)

As Apple have stopped using openssl you'll need to symlink it

$ cd /usr/local/include 
$ ln -s ../opt/openssl/include/openssl .

Might also need you to install the latest xcode command tools:

$ xcode-select --install

Then start the it for real:

$ autoreconf -vfi

On OS X 10.9+ (Mavericks and Yosemite)

$ CXXFLAGS="-stdlib=libstdc++" ./configure --disable-flarq

Otherwise

$ ./configure --disable-flarq
$ make
$ src/dl-fldigi --hab

Mac OS X 10.5.8

  • issues with trl/hashcodes
  • need to edit spot/notify.cxx and remove reference:
//#if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 1)
//  #define MAP_TYPE std::tr1::unordered_map
//  #include <tr1/unordered_map>
//#else
// use the non-standard gnu hash_map on gcc <= 4.0.x,
// which has a broken tr1::unordered_map::operator=
#  define MAP_TYPE __gnu_cxx::hash_map
#  include <ext/hash_map>
namespace __gnu_cxx {
        // define the missing hash specialisation for std::string
        // using the 'const char*' hash function
                template<> struct hash<std::string> {
                size_t operator()(const std::string& s) const { return __stl_ha$
        };
}
//#endif
projects/dl-fldigi/build-osx.txt · Last modified: 2016/08/02 19:46 by jcoxon

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki