UKHAS Wiki

UK High Altitude Society

User Tools

Site Tools


projects:dl-fldigi:build-osx

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
projects:dl-fldigi:build-osx [2012/12/29 22:26]
jcoxon
projects:dl-fldigi:build-osx [2016/08/02 19:46] (current)
jcoxon
Line 1: Line 1:
-====== Build on Mac OS X 10.8.2 ====== 
  
-**Work in progress**+====== 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)
  
 <​code>​ <​code>​
  
-$ brew install git automake fltk pkg-config libsamplerate portaudio ​libcurl +$ brew install git automake fltk pkg-config libsamplerate portaudio ​curl libpng openssl 
 +</​code>​
  
 +<​code>​
 $ git clone git://​github.com/​jamescoxon/​dl-fldigi.git $ git clone git://​github.com/​jamescoxon/​dl-fldigi.git
 $ cd dl-fldigi $ cd dl-fldigi
 $ git submodule init $ git submodule init
 $ git submodule update $ git submodule update
 +</​code>​
  
 +<​code>​
 $ cd m4 $ cd m4
 $ cp /​usr/​local/​share/​aclocal/​pkg.m4 pkg.m4 $ cp /​usr/​local/​share/​aclocal/​pkg.m4 pkg.m4
 $ cd .. $ cd ..
 +$ cp /​usr/​local/​Cellar/​curl/​7.28.1/​lib/​pkgconfig/​libcurl.pc /​usr/​local/​lib/​pkgconfig/​
 +</​code>​
 +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
 +<​code>​
 +$ cd /​usr/​local/​include ​
 +$ ln -s ../​opt/​openssl/​include/​openssl .
 +</​code>​
 +
 +Might also need you to install the latest xcode command tools:
 +<​code>​
 +$ xcode-select --install
 +</​code>​
 +
 +Then start the it for real:
 +<​code>​
 $ autoreconf -vfi $ autoreconf -vfi
-$ ./configure --disable-flarq ​CURL_CFLAGS="​-I/usr/local/​opt/​curl/​include"​ CURL_LIBS="​-L/usr/local/opt/​curl/​lib"​+</​code>​ 
 +On OS X 10.9+ (Mavericks and Yosemite) 
 +<​code>​ 
 +CXXFLAGS="​-stdlib=libstdc++" ​./configure --disable-flarq 
 +</code> 
 +Otherwise 
 +<​code>​ 
 +$ ./configure ​--disable-flarq 
 +</code> 
 +<​code>​
 $ make $ make
 +</​code>​
  
 +<​code>​
 +$ src/​dl-fldigi --hab
 +</​code>​
 +
 +====== Mac OS X 10.5.8 ======
 +
 +  * issues with trl/​hashcodes
 +  * need to edit spot/​notify.cxx and remove reference:
 +<​code>​
 +//#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
 </​code>​ </​code>​
projects/dl-fldigi/build-osx.1356819979.txt.gz · Last modified: 2012/12/29 22:26 by jcoxon