Nuand / bladeRF

bladeRF USB 3.0 Superspeed Software Defined Radio Source Code
http://nuand.com
Other
1.15k stars 459 forks source link

mingwbuild of libbladeRF fails on file_ops.c (ShlObj.h) #305

Closed rtucker closed 10 years ago

rtucker commented 10 years ago

file_ops.c fails to compile under the docker-mingwbuild environment on the buildbot (https://github.com/rtucker/bladeRF-buildbot/tree/master/docker-mingwbuild):

-- Build files have been written to: /bladerf/bladeRF/host/build
Scanning dependencies of target win_postbuild
Scanning dependencies of target libbladerf_shared
[  1%] [  2%] Copying pthreadVC2.dll to output directory...
Copying libusb-1.0.dll to output directory...
[  2%] [  3%] Built target win_postbuild
[  4%] [  5%] Building C object libraries/libbladeRF/CMakeFiles/libbladerf_shared.dir/src/async.c.obj
Building C object libraries/libbladeRF/CMakeFiles/libbladerf_shared.dir/src/backend/backend.c.obj
Building C object libraries/libbladeRF/CMakeFiles/libbladerf_shared.dir/src/bladerf.c.obj
[  6%] Building C object libraries/libbladeRF/CMakeFiles/libbladerf_shared.dir/src/bladerf_priv.c.obj
[  8%] Building C object libraries/libbladeRF/CMakeFiles/libbladerf_shared.dir/src/config.c.obj
[  9%] Building C object libraries/libbladeRF/CMakeFiles/libbladerf_shared.dir/src/dc_cal_table.c.obj
[ 10%] Building C object libraries/libbladeRF/CMakeFiles/libbladerf_shared.dir/src/file_ops.c.obj
[ 11%] Building C object libraries/libbladeRF/CMakeFiles/libbladerf_shared.dir/src/fpga.c.obj
[ 12%] Building C object libraries/libbladeRF/CMakeFiles/libbladerf_shared.dir/src/gain.c.obj
/bladerf/bladeRF/host/libraries/libbladeRF/src/file_ops.c:170:20: fatal error: ShlObj.h: No such file or directory
 #include <ShlObj.h>
                    ^
compilation terminated.
[ 13%] Building C object libraries/libbladeRF/CMakeFiles/libbladerf_shared.dir/src/lms.c.obj
[ 15%] Building C object libraries/libbladeRF/CMakeFiles/libbladerf_shared.dir/src/si5338.c.obj
[ 16%] Building C object libraries/libbladeRF/CMakeFiles/libbladerf_shared.dir/src/xb.c.obj
make[2]: *** [libraries/libbladeRF/CMakeFiles/libbladerf_shared.dir/src/file_ops.c.obj] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [libraries/libbladeRF/CMakeFiles/libbladerf_shared.dir/all] Error 2
make: *** [all] Error 2

Looks like the ShlObj.h requirement came in on 67938789f9 ... haven't investigated any possible solutions to this, just documentin' it for the collective.

jynik commented 10 years ago

Closed with c631100589d86db708757d51f004cb36c06c5ec3.