[Hackrf-dev] how to build 32 bit version of libhackrf in Macports

Rick "Zero_Chaos" Farina zerochaos at gentoo.org
Thu Sep 4 09:40:14 EDT 2014


On 09/04/2014 12:38 AM, Tom Zicarelli wrote:
> Turned out to be basically the same as rtl-sdr:
> 
> in hackrf source tree:
> 
> cd host/libhackrf
> mkdir build
> cd build
> cmake .. -DCMAKE_OSX_ARCHITECTURES=i386 -DINSTALL_UDEV_RULES=ON
I'm fairly confident that MacOSX doesn't use udev, so you can probably
skip the -DINSTALL_UDEV_RULES=ON bit.

Thanks,
Zero

> make
> 
> This puts 32 bit library files in: src/ subfolder of build
> 
> 
> On Sep 3, 2014, at 8:51 PM, Tom Zicarelli <tkzic at megalink.net> wrote:
> 
>> Hi,
>>
>> Have been running hackrf in Mac Os 10.9.4 using macports (built with the following command)
>>
>> sudo port install gr-osmosdr +full
>>
>> The libhackrf libraries are 64 bit - because that is the native architecture of the machine. I would like to recompile some of the command line tools with a 32 bit library to use for building objects for Max/msp and Pd. With rtlsdr, you could run cmake with this flag to get a 32 bit library on a 64 bit machine:
>>
>> cmake ../ -DCMAKE_OSX_ARCHITECTURES=i386 
>>
>> Is there a similar thing that can be done to make a 32 bit libhackrf.a?
>>
>> Thanks,
>>
>> Tom
>>
>> _______________________________________________
>> HackRF-dev mailing list
>> HackRF-dev at greatscottgadgets.com
>> http://nine.pairlist.net/mailman/listinfo/hackrf-dev
> 
> 
> 
> 
> _______________________________________________
> HackRF-dev mailing list
> HackRF-dev at greatscottgadgets.com
> http://nine.pairlist.net/mailman/listinfo/hackrf-dev
> 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 884 bytes
Desc: OpenPGP digital signature
URL: <http://nine.pairlist.net/pipermail/hackrf-dev/attachments/20140904/cba20c36/attachment.pgp>


More information about the HackRF-dev mailing list