Hi,
I have been trying to install all pybombs targets on ubuntu 14.04 amd64
with the followiing result.
Pybomb targets that failed to build and install out of the box on ubuntu
14.04 with all requirements (base) installed and DCMAKE_INSTALL_PREFIX
set to /opt/pybombs
Category: common
gnss-sdr configure inventory
gr-as configure inventory
gr-baz configure inventory
gr-bluetooth configure inventory
gr-extras None
gr-gsm make inventory
gr-pocsag None
gr-radar configure inventory
gr-smartnet fetch inventory
niusprio configure inventory
pocsag-mrt None
simple_radio_astronomy None
A few targets just fail to download their source, since it still points
to the now disabled cgran repository.
gnss-sdr fails to build due to include errors and an ORC problem.
In file included from
/pub/pybombs_2015010801/src/gnss-sdr/build/volk_gnsssdr_module/build/lib/volk_gnsssdr_machine_generic_orc.c:38:0:
/pub/pybombs_2015010801/src/gnss-sdr/src/algorithms/libs/volk_gnsssdr_module/volk_gnsssdr/kernels/volk_gnsssdr/volk_gnsssdr_32fc_convert_16ic.h:171:30:
fatal error: volk/volk_common.h: No such file or directory
I managed to get gnss-sdr to build and install with the attached patch,
but this is just a dirty hack, disbling ORC and hardcoding a volk
include directory.
The addition of ${GNURADIO_RUNTIME_INCLUDE_DIRS} to the
include_directories in
src/algorithms/libs/volk_gnsssdr_module/volk_gnsssdr/lib/CMakeLists.txt
should make the volk_common.h include error go away. But somehow
GNURADIO_RUNTIME_INCLUDE_DIRS is not defined there.
I don't know yet how to properly get gnss-sdr and the other targets to
build.
Cheers,
Martin Dudok van Heel
diff -urN gnss-sdr/src/algorithms/libs/volk_gnsssdr_module/volk_gnsssdr/CMakeLists.txt gnss-sdr.mdvh2/src/algorithms/libs/volk_gnsssdr_module/volk_gnsssdr/CMakeLists.txt
--- gnss-sdr/src/algorithms/libs/volk_gnsssdr_module/volk_gnsssdr/CMakeLists.txt 2015-01-12 23:24:20.479953853 +0100
+++ gnss-sdr.mdvh2/src/algorithms/libs/volk_gnsssdr_module/volk_gnsssdr/CMakeLists.txt 2015-01-12 23:51:07.620033893 +0100
@@ -56,8 +56,21 @@
# Dependencies setup
########################################################################
+#MDVH added include directories to get it to compile
+# this should work by just adding ${GNURADIO_RUNTIME_INCLUDE_DIRS}, but this does not seem to work
+# so I hardcoded the install prefix, where gnuradio is installed which is in my case /opt/pybombs/include
+# without the added include directort the build fails with
+#[ 1%] Building C object lib/CMakeFiles/volk_gnsssdr.dir/volk_gnsssdr_machine_generic_orc.c.o
+#cd /pub/projects/gnuradio/pybombs/pybombs_ub1404_amd64_rojo/pybombs_2015010801/src/gnss-sdr/build/volk_gnsssdr_module/build/lib && /usr/bin/cc -DHAVE_AVX_CVTPI32_PS -DHAVE_CPUID_H -DHAVE_DLFCN_H -DHAVE_FENV_H -DHAVE_POSIX_MEMALIGN -DHAVE_XGETBV -std=c11 -fvisibility=hidden -O3 -DNDEBUG -I/pub/projects/gnuradio/pybombs/pybombs_ub1404_amd64_rojo/pybombs_2015010801/src/gnss-sdr/build/volk_gnsssdr_module/build/include -I/pub/projects/gnuradio/pybombs/pybombs_ub1404_amd64_rojo/pybombs_2015010801/src/gnss-sdr/src/algorithms/libs/volk_gnsssdr_module/volk_gnsssdr/include -I/pub/projects/gnuradio/pybombs/pybombs_ub1404_amd64_rojo/pybombs_2015010801/src/gnss-sdr/src/algorithms/libs/volk_gnsssdr_module/volk_gnsssdr/kernels -I/pub/projects/gnuradio/pybombs/pybombs_ub1404_amd64_rojo/pybombs_2015010801/src/gnss-sdr/build/volk_gnsssdr_module/build/lib -I/pub/projects/gnuradio/pybombs/pybombs_ub1404_amd64_rojo/pybombs_2015010801/src/gnss-sdr/src/algorithms/libs/volk_gnsssdr_module/volk_gnsssdr/lib -I/usr/include/orc-0.4 -o CMakeFiles/volk_gnsssdr.dir/volk_gnsssdr_machine_generic_orc.c.o -c /pub/projects/gnuradio/pybombs/pybombs_ub1404_amd64_rojo/pybombs_2015010801/src/gnss-sdr/build/volk_gnsssdr_module/build/lib/volk_gnsssdr_machine_generic_orc.c
+#In file included from /pub/projects/gnuradio/pybombs/pybombs_ub1404_amd64_rojo/pybombs_2015010801/src/gnss-sdr/build/volk_gnsssdr_module/build/lib/volk_gnsssdr_machine_generic_orc.c:38:0:
+#/pub/projects/gnuradio/pybombs/pybombs_ub1404_amd64_rojo/pybombs_2015010801/src/gnss-sdr/src/algorithms/libs/volk_gnsssdr_module/volk_gnsssdr/kernels/volk_gnsssdr/volk_gnsssdr_32fc_convert_16ic.h:171:30: fatal error: volk/volk_common.h: No such file or directory
+# #include <volk/volk_common.h>
+# ^
+#compilation terminated.
include_directories(
+ /opt/pybombs/include
${GNURADIO_RUNTIME_INCLUDE_DIRS}
+
)
include(GrPython) #sets PYTHON_EXECUTABLE and PYTHON_DASH_B
diff -urN gnss-sdr/src/algorithms/libs/volk_gnsssdr_module/volk_gnsssdr/lib/CMakeLists.txt gnss-sdr.mdvh2/src/algorithms/libs/volk_gnsssdr_module/volk_gnsssdr/lib/CMakeLists.txt
--- gnss-sdr/src/algorithms/libs/volk_gnsssdr_module/volk_gnsssdr/lib/CMakeLists.txt 2015-01-08 12:25:36.249794643 +0100
+++ gnss-sdr.mdvh2/src/algorithms/libs/volk_gnsssdr_module/volk_gnsssdr/lib/CMakeLists.txt 2015-01-13 01:21:56.784305278 +0100
@@ -240,10 +240,10 @@
# implement overruling in the ORC case,
# since ORC always passes flag detection
########################################################################
-find_package(ORC)
-if(NOT ORC_FOUND)
+# find_package(ORC)
+# if(NOT ORC_FOUND)
OVERRULE_ARCH(orc "ORC support not found")
-endif()
+# endif()
########################################################################
# implement overruling in the non-multilib case
diff -urN gnss-sdr/src/main/CMakeLists.txt gnss-sdr.mdvh2/src/main/CMakeLists.txt
--- gnss-sdr/src/main/CMakeLists.txt 2015-01-08 12:25:36.473794655 +0100
+++ gnss-sdr.mdvh2/src/main/CMakeLists.txt 2015-01-13 01:21:56.784305278 +0100
@@ -74,7 +74,7 @@
${GFlags_LIBS}
${GLOG_LIBRARIES}
${ARMADILLO_LIBRARIES}
- ${VOLK_GNSSSDR_LIBRARIES} ${ORC_LIBRARIES}
+ ${VOLK_GNSSSDR_LIBRARIES}
${GNSS_SDR_OPTIONAL_LIBS}
gnss_sp_libs
gnss_rx
@@ -119,4 +119,4 @@
install(FILES ${CMAKE_BINARY_DIR}/volk_gnsssdr_profile.1.gz DESTINATION share/man/man1)
endif(NOT VOLK_GNSSSDR_FOUND)
-endif(NOT GZIP_NOTFOUND)
\ No newline at end of file
+endif(NOT GZIP_NOTFOUND)
_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio