UKHAS Wiki

UK High Altitude Society

User Tools

Site Tools


projects:dl-fldigi:build-osx

This is an old revision of the document!


Build on Mac OS X 10.8+

  • 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/
$ autoreconf -vfi

On OS X Mavericks (10.9)

$ 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.1385682426.txt.gz ยท Last modified: 2013/11/28 23:47 by jcoxon