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 [2013/06/02 16:11]
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 ======+ 
 +====== Build on Mac OS X 11.5+ ======
  
   * Requirements:​   * Requirements:​
Line 7: Line 8:
 <​code>​ <​code>​
  
-$ brew install git automake fltk pkg-config libsamplerate portaudio curl libpng+$ brew install git automake fltk pkg-config libsamplerate portaudio curl libpng ​openssl
 </​code>​ </​code>​
  
Line 23: Line 24:
 $ cp /​usr/​local/​Cellar/​curl/​7.28.1/​lib/​pkgconfig/​libcurl.pc /​usr/​local/​lib/​pkgconfig/​ $ cp /​usr/​local/​Cellar/​curl/​7.28.1/​lib/​pkgconfig/​libcurl.pc /​usr/​local/​lib/​pkgconfig/​
 </​code>​ </​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>​ <​code>​
 $ autoreconf -vfi $ autoreconf -vfi
-$ ./configure --disable-flarq ​+</​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>​
Line 32: Line 55:
 <​code>​ <​code>​
 $ src/​dl-fldigi --hab $ 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.1370189482.txt.gz · Last modified: 2013/06/02 16:11 by jcoxon