|
From: | monika bansal |
Subject: | Re: [Discuss-gnuradio] Creating New Module |
Date: | Wed, 15 Jul 2015 11:27:46 +0530 |
Hii,
gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1)
I think Boost version is 1.48.0-3
I run the command " dpkg -l '*boost*' " and i got
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-================-=============-=============-======================================
un boost-build <none> <none> (no description available)
ii libboost-chrono1 1.48.0-3 amd64 C++ representation of time duration, t
ii libboost-chrono1 1.48.0-3 amd64 C++ representation of time duration, t
un libboost-date-ti <none> <none> (no description available)
un libboost-date-ti <none> <none> (no description available)
ii libboost-date-ti 1.48.0-3 amd64 set of date-time libraries based on ge
ii libboost-date-ti 1.48.0-3 amd64 set of date-time libraries based on ge
ii libboost-date-ti 1.54.0-4ubunt amd64 set of date-time libraries based on ge
un libboost-filesys <none> <none> (no description available)
un libboost-filesys <none> <none> (no description available)
ii libboost-filesys 1.48.0-3 amd64 filesystem operations (portable paths,
ii libboost-filesys 1.48.0-3 amd64 filesystem operations (portable paths,
un libboost-graph-p <none> <none> (no description available)
un libboost-graph-p <none> <none> (no description available)
ii libboost-graph-p 1.48.0-3 amd64 generic graph components and algorithm
ii libboost-graph-p 1.48.0-3 amd64 generic graph components and algorithm
un libboost-graph1. <none> <none> (no description available)
un libboost-graph1. <none> <none> (no description available)
ii libboost-graph1. 1.48.0-3 amd64 generic graph components and algorithm
ii libboost-graph1. 1.48.0-3 amd64 generic graph components and algorithm
un libboost-iostrea <none> <none> (no description available)
un libboost-iostrea <none> <none> (no description available)
ii libboost-iostrea 1.48.0-3 amd64 Boost.Iostreams Library development fi
ii libboost-iostrea 1.48.0-3 amd64 Boost.Iostreams Library
ii libboost-locale1 1.48.0-3 amd64 C++ facilities for localization
ii libboost-locale1 1.48.0-3 amd64 C++ facilities for localization
un libboost-math1.4 <none> <none> (no description available)
un libboost-math1.4 <none> <none> (no description available)
ii libboost-math1.4 1.48.0-3 amd64 Boost.Math Library development files
ii libboost-math1.4 1.48.0-3 amd64 Boost.Math Library
un libboost-mpi-pyt <none> <none> (no description available)
un libboost-mpi-pyt <none> <none> (no description available)
un libboost-mpi-pyt <none> <none> (no description available)
un libboost-mpi-pyt <none> <none> (no description available)
un libboost-mpi-pyt <none> <none> (no description available)
un libboost-mpi-pyt <none> <none> (no description available)
un libboost-mpi-pyt <none> <none> (no description available)
ii libboost-mpi-pyt 1.48.0-3 amd64 C++ interface to the Message Passing I
ii libboost-mpi-pyt 1.48.0-3 amd64 C++ interface to the Message Passing I
un libboost-mpi1.42 <none> <none> (no description available)
un libboost-mpi1.46 <none> <none> (no description available)
ii libboost-mpi1.48 1.48.0-3 amd64 C++ interface to the Message Passing I
ii libboost-mpi1.48 1.48.0-3 amd64 C++ interface to the Message Passing I
un libboost-program <none> <none> (no description available)
un libboost-program <none> <none> (no description available)
ii libboost-program 1.46.1-7ubunt amd64 program options library for C++
ii libboost-program 1.48.0-3 amd64 program options library for C++
ii libboost-program 1.48.0-3 amd64 program options library for C++
ii libboost-program 1.54.0-4ubunt amd64 program options library for C++
un libboost-python1 <none> <none> (no description available)
un libboost-python1 <none> <none> (no description available)
ii libboost-python1 1.48.0-3 amd64 Boost.Python Library development files
ii libboost-python1 1.48.0-3 amd64 Boost.Python Library
ii libboost-random1 1.48.0-3 amd64 Boost Random Number Library
ii libboost-random1 1.48.0-3 amd64 Boost Random Number Library
un libboost-regex1. <none> <none> (no description available)
un libboost-regex1. <none> <none> (no description available)
ii libboost-regex1. 1.48.0-3 amd64 regular _expression_ library for C++
ii libboost-regex1. 1.48.0-3 amd64 regular _expression_ library for C++
un libboost-seriali <none> <none> (no description available)
un libboost-seriali <none> <none> (no description available)
ii libboost-seriali 1.46.1-7ubunt amd64 serialization library for C++
ii libboost-seriali 1.48.0-3 amd64 serialization library for C++
ii libboost-seriali 1.48.0-3 amd64 serialization library for C++
un libboost-signals <none> <none> (no description available)
un libboost-signals <none> <none> (no description available)
ii libboost-signals 1.48.0-3 amd64 managed signals and slots library for
ii libboost-signals 1.48.0-3 amd64 managed signals and slots library for
un libboost-system1 <none> <none> (no description available)
un libboost-system1 <none> <none> (no description available)
ii libboost-system1 1.48.0-3 amd64 Operating system (e.g. diagnostics sup
ii libboost-system1 1.48.0-3 amd64 Operating system (e.g. diagnostics sup
ii libboost-system1 1.54.0-4ubunt amd64 Operating system (e.g. diagnostics sup
un libboost-test1.4 <none> <none> (no description available)
un libboost-test1.4 <none> <none> (no description available)
ii libboost-test1.4 1.48.0-3 amd64 components for writing and executing t
ii libboost-test1.4 1.48.0-3 amd64 components for writing and executing t
un libboost-thread1 <none> <none> (no description available)
un libboost-thread1 <none> <none> (no description available)
ii libboost-thread1 1.46.1-7ubunt amd64 portable C++ multi-threading
ii libboost-thread1 1.48.0-3 amd64 portable C++ multi-threading
ii libboost-thread1 1.48.0-3 amd64 portable C++ multi-threading
ii libboost-thread1 1.54.0-4ubunt amd64 portable C++ multi-threading
ii libboost-timer1. 1.48.0-3 amd64 C++ wall clock and CPU process timers
ii libboost-timer1. 1.48.0-3 amd64 C++ wall clock and CPU process timers
un libboost-wave1.4 <none> <none> (no description available)
un libboost-wave1.4 <none> <none> (no description available)
ii libboost-wave1.4 1.48.0-3 amd64 C99/C++ preprocessor library
ii libboost-wave1.4 1.48.0-3 amd64 C99/C++ preprocessor library
un libboost1.42-dev <none> <none> (no description available)
un libboost1.46-dev <none> <none> (no description available)
ii libboost1.48-all 1.48.0-3 amd64 Boost C++ Libraries development files
ii libboost1.48-dev 1.48.0-3 amd64 Boost C++ Libraries development files
un libboost1.48-doc <none> <none> (no description available)
Do i need to update ?
Hii,
gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1)I think Boost version is 1.48.0-3
I run the command " dpkg -l '*boost*' " and i got
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-================-=============-=============-======================================
un boost-build <none> <none> (no description available)
ii libboost-chrono1 1.48.0-3 amd64 C++ representation of time duration, t
ii libboost-chrono1 1.48.0-3 amd64 C++ representation of time duration, t
un libboost-date-ti <none> <none> (no description available)
un libboost-date-ti <none> <none> (no description available)
ii libboost-date-ti 1.48.0-3 amd64 set of date-time libraries based on ge
ii libboost-date-ti 1.48.0-3 amd64 set of date-time libraries based on ge
ii libboost-date-ti 1.54.0-4ubunt amd64 set of date-time libraries based on ge
un libboost-filesys <none> <none> (no description available)
un libboost-filesys <none> <none> (no description available)
ii libboost-filesys 1.48.0-3 amd64 filesystem operations (portable paths,
ii libboost-filesys 1.48.0-3 amd64 filesystem operations (portable paths,
un libboost-graph-p <none> <none> (no description available)
un libboost-graph-p <none> <none> (no description available)
ii libboost-graph-p 1.48.0-3 amd64 generic graph components and algorithm
ii libboost-graph-p 1.48.0-3 amd64 generic graph components and algorithm
un libboost-graph1. <none> <none> (no description available)
un libboost-graph1. <none> <none> (no description available)
ii libboost-graph1. 1.48.0-3 amd64 generic graph components and algorithm
ii libboost-graph1. 1.48.0-3 amd64 generic graph components and algorithm
un libboost-iostrea <none> <none> (no description available)
un libboost-iostrea <none> <none> (no description available)
ii libboost-iostrea 1.48.0-3 amd64 Boost.Iostreams Library development fi
ii libboost-iostrea 1.48.0-3 amd64 Boost.Iostreams Library
ii libboost-locale1 1.48.0-3 amd64 C++ facilities for localization
ii libboost-locale1 1.48.0-3 amd64 C++ facilities for localization
un libboost-math1.4 <none> <none> (no description available)
un libboost-math1.4 <none> <none> (no description available)
ii libboost-math1.4 1.48.0-3 amd64 Boost.Math Library development files
ii libboost-math1.4 1.48.0-3 amd64 Boost.Math Library
un libboost-mpi-pyt <none> <none> (no description available)
un libboost-mpi-pyt <none> <none> (no description available)
un libboost-mpi-pyt <none> <none> (no description available)
un libboost-mpi-pyt <none> <none> (no description available)
un libboost-mpi-pyt <none> <none> (no description available)
un libboost-mpi-pyt <none> <none> (no description available)
un libboost-mpi-pyt <none> <none> (no description available)
ii libboost-mpi-pyt 1.48.0-3 amd64 C++ interface to the Message Passing I
ii libboost-mpi-pyt 1.48.0-3 amd64 C++ interface to the Message Passing I
un libboost-mpi1.42 <none> <none> (no description available)
un libboost-mpi1.46 <none> <none> (no description available)
ii libboost-mpi1.48 1.48.0-3 amd64 C++ interface to the Message Passing I
ii libboost-mpi1.48 1.48.0-3 amd64 C++ interface to the Message Passing I
un libboost-program <none> <none> (no description available)
un libboost-program <none> <none> (no description available)
ii libboost-program 1.46.1-7ubunt amd64 program options library for C++
ii libboost-program 1.48.0-3 amd64 program options library for C++
ii libboost-program 1.48.0-3 amd64 program options library for C++
ii libboost-program 1.54.0-4ubunt amd64 program options library for C++
un libboost-python1 <none> <none> (no description available)
un libboost-python1 <none> <none> (no description available)
ii libboost-python1 1.48.0-3 amd64 Boost.Python Library development files
ii libboost-python1 1.48.0-3 amd64 Boost.Python Library
ii libboost-random1 1.48.0-3 amd64 Boost Random Number Library
ii libboost-random1 1.48.0-3 amd64 Boost Random Number Library
un libboost-regex1. <none> <none> (no description available)
un libboost-regex1. <none> <none> (no description available)
ii libboost-regex1. 1.48.0-3 amd64 regular _expression_ library for C++
ii libboost-regex1. 1.48.0-3 amd64 regular _expression_ library for C++
un libboost-seriali <none> <none> (no description available)
un libboost-seriali <none> <none> (no description available)
ii libboost-seriali 1.46.1-7ubunt amd64 serialization library for C++
ii libboost-seriali 1.48.0-3 amd64 serialization library for C++
ii libboost-seriali 1.48.0-3 amd64 serialization library for C++
un libboost-signals <none> <none> (no description available)
un libboost-signals <none> <none> (no description available)
ii libboost-signals 1.48.0-3 amd64 managed signals and slots library for
ii libboost-signals 1.48.0-3 amd64 managed signals and slots library for
un libboost-system1 <none> <none> (no description available)
un libboost-system1 <none> <none> (no description available)
ii libboost-system1 1.48.0-3 amd64 Operating system (e.g. diagnostics sup
ii libboost-system1 1.48.0-3 amd64 Operating system (e.g. diagnostics sup
ii libboost-system1 1.54.0-4ubunt amd64 Operating system (e.g. diagnostics sup
un libboost-test1.4 <none> <none> (no description available)
un libboost-test1.4 <none> <none> (no description available)
ii libboost-test1.4 1.48.0-3 amd64 components for writing and executing t
ii libboost-test1.4 1.48.0-3 amd64 components for writing and executing t
un libboost-thread1 <none> <none> (no description available)
un libboost-thread1 <none> <none> (no description available)
ii libboost-thread1 1.46.1-7ubunt amd64 portable C++ multi-threading
ii libboost-thread1 1.48.0-3 amd64 portable C++ multi-threading
ii libboost-thread1 1.48.0-3 amd64 portable C++ multi-threading
ii libboost-thread1 1.54.0-4ubunt amd64 portable C++ multi-threading
ii libboost-timer1. 1.48.0-3 amd64 C++ wall clock and CPU process timers
ii libboost-timer1. 1.48.0-3 amd64 C++ wall clock and CPU process timers
un libboost-wave1.4 <none> <none> (no description available)
un libboost-wave1.4 <none> <none> (no description available)
ii libboost-wave1.4 1.48.0-3 amd64 C99/C++ preprocessor library
ii libboost-wave1.4 1.48.0-3 amd64 C99/C++ preprocessor library
un libboost1.42-dev <none> <none> (no description available)
un libboost1.46-dev <none> <none> (no description available)
ii libboost1.48-all 1.48.0-3 amd64 Boost C++ Libraries development files
ii libboost1.48-dev 1.48.0-3 amd64 Boost C++ Libraries development files
un libboost1.48-doc <none> <none> (no description available)Do i need to update ?
On Tue, Jul 14, 2015 at 5:13 PM, Tom Rondeau <address@hidden> wrote:On Tue, Jul 14, 2015 at 5:54 AM, monika bansal <address@hidden> wrote:I am trying to make the module from
https://gnuradio.org/redmine/projects/gnuradio/wiki/OutOfTreeModulesI am following the same steps. Till "cmake ../ " everything has correctly done.But when i m running "make" the following error comes. please help :)
Scanning dependencies of target gnuradio-howto
[ 6%] Building CXX object lib/CMakeFiles/gnuradio-howto.dir/square_ff_impl.cc.o
In file included from /usr/include/boost/smart_ptr/detail/yield_k.hpp:89:0,
from /usr/include/boost/smart_ptr/detail/spinlock_sync.hpp:18,
from /usr/include/boost/smart_ptr/detail/spinlock.hpp:41,
from /usr/include/boost/smart_ptr/detail/spinlock_pool.hpp:25,
from /usr/include/boost/smart_ptr/shared_ptr.hpp:37,
from /usr/include/boost/shared_ptr.hpp:17,
from /usr/local/include/gnuradio/types.h:27,
from /usr/local/include/gnuradio/runtime_types.h:27,
from /usr/local/include/gnuradio/io_signature.h:27,
from /home/spclab/Desktop/Monika/gr-howto/lib/square_ff_impl.cc:25:
/usr/include/boost/thread/xtime.hpp:23:5: error: expected identifier before numeric constant
TIME_UTC=1
^
/usr/include/boost/thread/xtime.hpp:23:5: error: expected ‘}’ before numeric constant
/usr/include/boost/thread/xtime.hpp:23:5: error: expected unqualified-id before numeric constant
In file included from /usr/include/boost/thread/pthread/mutex.hpp:14:0,
from /usr/include/boost/thread/mutex.hpp:16,
from /usr/include/boost/thread/pthread/thread_data.hpp:12,
from /usr/include/boost/thread/thread.hpp:17,
from /usr/local/include/gnuradio/thread/thread.h:26,
from /usr/local/include/gnuradio/basic_block.h:31,
from /usr/local/include/gnuradio/block.h:27,
from /home/spclab/Desktop/Monika/gr-howto/include/howto/square_ff.h:26,
from /home/spclab/Desktop/Monika/gr-howto/lib/square_ff_impl.h:24,
from /home/spclab/Desktop/Monika/gr-howto/lib/square_ff_impl.cc:26:
/usr/include/boost/thread/xtime.hpp:46:14: error: expected type-specifier before ‘system_time’
operator system_time() const
^
In file included from /usr/include/boost/thread/pthread/mutex.hpp:14:0,
from /usr/include/boost/thread/mutex.hpp:16,
from /usr/include/boost/thread/pthread/thread_data.hpp:12,
from /usr/include/boost/thread/thread.hpp:17,
from /usr/local/include/gnuradio/thread/thread.h:26,
from /usr/local/include/gnuradio/basic_block.h:31,
from /usr/local/include/gnuradio/block.h:27,
from /home/spclab/Desktop/Monika/gr-howto/include/howto/square_ff.h:26,
from /home/spclab/Desktop/Monika/gr-howto/lib/square_ff_impl.h:24,
from /home/spclab/Desktop/Monika/gr-howto/lib/square_ff_impl.cc:26:
/usr/include/boost/thread/xtime.hpp: In function ‘int xtime_get(xtime*, int)’:
/usr/include/boost/thread/xtime.hpp:73:40: error: ‘get_system_time’ was not declared in this scope
*xtp=get_xtime(get_system_time());
^
/usr/include/boost/thread/xtime.hpp:73:40: note: suggested alternative:
In file included from /usr/include/boost/thread/locks.hpp:12:0,
from /usr/include/boost/thread/pthread/mutex.hpp:12,
from /usr/include/boost/thread/mutex.hpp:16,
from /usr/include/boost/thread/pthread/thread_data.hpp:12,
from /usr/include/boost/thread/thread.hpp:17,
from /usr/local/include/gnuradio/thread/thread.h:26,
from /usr/local/include/gnuradio/basic_block.h:31,
from /usr/local/include/gnuradio/block.h:27,
from /home/spclab/Desktop/Monika/gr-howto/include/howto/square_ff.h:26,
from /home/spclab/Desktop/Monika/gr-howto/lib/square_ff_impl.h:24,
from /home/spclab/Desktop/Monika/gr-howto/lib/square_ff_impl.cc:26:
/usr/include/boost/thread/thread_time.hpp:19:24: note: ‘boost::get_system_time’
inline system_time get_system_time()
^
In file included from /usr/include/boost/thread/pthread/mutex.hpp:14:0,
from /usr/include/boost/thread/mutex.hpp:16,
from /usr/include/boost/thread/pthread/thread_data.hpp:12,
from /usr/include/boost/thread/thread.hpp:17,
from /usr/local/include/gnuradio/thread/thread.h:26,
from /usr/local/include/gnuradio/basic_block.h:31,
from /usr/local/include/gnuradio/block.h:27,
from /home/spclab/Desktop/Monika/gr-howto/include/howto/square_ff.h:26,
from /home/spclab/Desktop/Monika/gr-howto/lib/square_ff_impl.h:24,
from /home/spclab/Desktop/Monika/gr-howto/lib/square_ff_impl.cc:26:
/usr/include/boost/thread/xtime.hpp: At global scope:
/usr/include/boost/thread/xtime.hpp:88:1: error: expected declaration before ‘}’ token
} // namespace boost
^
make[2]: *** [lib/CMakeFiles/gnuradio-howto.dir/square_ff_impl.cc.o] Error 1
make[1]: *** [lib/CMakeFiles/gnuradio-howto.dir/all] Error 2
make: *** [all] Error 2I think this might be a Boost version conflicting with your compiler version. What versions of Boost and GCC are you using? You might need to update Boost to something newer.Tom
[Prev in Thread] | Current Thread | [Next in Thread] |