compile on osx
This commit is contained in:
+1
-1
@@ -80,7 +80,7 @@ set(GRC_BLOCKS_DIR ${GR_PKG_DATA_DIR}/grc/blocks)
|
||||
########################################################################
|
||||
# Find gnuradio build dependencies
|
||||
########################################################################
|
||||
set(GR_REQUIRED_COMPONENTS RUNTIME FILTER FFT)
|
||||
set(GR_REQUIRED_COMPONENTS RUNTIME FILTER FFT PMT)
|
||||
find_package(Gnuradio)
|
||||
find_package(CppUnit)
|
||||
|
||||
|
||||
+2
-1
@@ -120,12 +120,13 @@ list(APPEND gr_ieee802_11_libs
|
||||
${Boost_LIBRARIES}
|
||||
${GNURADIO_RUNTIME_LIBRARIES}
|
||||
${GNURADIO_FFT_LIBRARIES}
|
||||
${GNURADIO_PMT_LIBRARIES}
|
||||
${GNURADIO_FILTER_LIBRARIES}
|
||||
)
|
||||
|
||||
add_library(gnuradio-ieee802_11 SHARED ${gr_ieee802_11_sources})
|
||||
add_dependencies(gnuradio-ieee802_11 ieee802_11_generated_includes)
|
||||
target_link_libraries(gnuradio-ieee802_11 ${gr_ieee802_11_libs} itpp)
|
||||
target_link_libraries(gnuradio-ieee802_11 ${gr_ieee802_11_libs} itpp log4cpp)
|
||||
set_target_properties(gnuradio-ieee802_11 PROPERTIES DEFINE_SYMBOL "gnuradio_ieee802_11_EXPORTS")
|
||||
|
||||
########################################################################
|
||||
|
||||
@@ -21,7 +21,12 @@
|
||||
|
||||
#include "utils.h"
|
||||
|
||||
#if defined(__APPLE__)
|
||||
#include <architecture/byte_order.h>
|
||||
#define htole16(x) OSSwapHostToLittleInt16(x)
|
||||
#else
|
||||
#include <endian.h>
|
||||
#endif
|
||||
|
||||
#include <boost/crc.hpp>
|
||||
#include <iostream>
|
||||
|
||||
Reference in New Issue
Block a user