Build OOT gr-test2

Ok… building my first OOT to play with his counter.

git clone git://github.com/activecat/gr-test2

cmake seems to work (after I change boost version to 1.55 in
CMakeLists.txt)

on make i get this error. Searching the net leads me to believe it isnt
linking pmt but I can’t decipher the solution. I thought maybe the move
from 3-6 to 3-7 was the issue but it appears to be set up as recommended
http://gnuradio.org/redmine/projects/gnuradio/wiki/Move_3-6_to_3-7

I am not great with Builds but I have precariously gotten things done.
(recipes and searching) Any tips?

bills-MacBook-Pro:build willy$ build
-bash: build: command not found
bills-MacBook-Pro:build willy$ make
Scanning dependencies of target gnuradio-test1
[ 5%] Building CXX object
lib/CMakeFiles/gnuradio-test1.dir/pulse1_impl.cc.o
[ 10%] Building CXX object
lib/CMakeFiles/gnuradio-test1.dir/freq_counter2_impl.cc.o
[ 15%] Building CXX object
lib/CMakeFiles/gnuradio-test1.dir/freq_counter1_impl.cc.o
[ 20%] Building CXX object
lib/CMakeFiles/gnuradio-test1.dir/streamer1_impl.cc.o
Linking CXX shared library libgnuradio-test1.dylib
Undefined symbols for architecture x86_64:
“pmt::dict_has_key(boost::intrusive_ptrpmt::pmt_base const&,
boost::intrusive_ptrpmt::pmt_base const&)”, referenced from:
gr::basic_block::has_msg_port(boost::intrusive_ptrpmt::pmt_base)
in
pulse1_impl.cc.o
gr::basic_block::has_msg_port(boost::intrusive_ptrpmt::pmt_base)
in
freq_counter2_impl.cc.o
gr::basic_block::has_msg_port(boost::intrusive_ptrpmt::pmt_base)
in
freq_counter1_impl.cc.o
gr::basic_block::has_msg_port(boost::intrusive_ptrpmt::pmt_base)
in
streamer1_impl.cc.o
“pmt::intrusive_ptr_add_ref(pmt::pmt_base*)”, referenced from:
gr::basic_block::dispatch_msg(boost::intrusive_ptrpmt::pmt_base,
boost::intrusive_ptrpmt::pmt_base) in pulse1_impl.cc.o
std::__1::map<boost::intrusive_ptrpmt::pmt_base,
boost::function<void (boost::intrusive_ptrpmt::pmt_base)>,
pmt::comparator,
std::__1::allocator<std::__1::pair<boost::intrusive_ptrpmt::pmt_base
const, boost::function<void (boost::intrusive_ptrpmt::pmt_base)> > >

::operator[](boost::intrusive_ptrpmt::pmt_base const&) in
pulse1_impl.cc.o
boost::function1<void, boost::intrusive_ptrpmt::pmt_base
::operator()(boost::intrusive_ptrpmt::pmt_base) const in pulse1_impl.cc.o
gr::basic_block::dispatch_msg(boost::intrusive_ptrpmt::pmt_base,
boost::intrusive_ptrpmt::pmt_base) in freq_counter2_impl.cc.o
std::__1::map<boost::intrusive_ptrpmt::pmt_base,
boost::function<void (boost::intrusive_ptrpmt::pmt_base)>,
pmt::comparator,
std::__1::allocator<std::__1::pair<boost::intrusive_ptrpmt::pmt_base
const, boost::function<void (boost::intrusive_ptrpmt::pmt_base)> > >
::operator[](boost::intrusive_ptrpmt::pmt_base const&) in
freq_counter2_impl.cc.o
boost::function1<void, boost::intrusive_ptrpmt::pmt_base
::operator()(boost::intrusive_ptrpmt::pmt_base) const in
freq_counter2_impl.cc.o
gr::basic_block::dispatch_msg(boost::intrusive_ptrpmt::pmt_base,
boost::intrusive_ptrpmt::pmt_base) in freq_counter1_impl.cc.o

“pmt::intrusive_ptr_release(pmt::pmt_base*)”, referenced from:
gr::basic_block::dispatch_msg(boost::intrusive_ptrpmt::pmt_base,
boost::intrusive_ptrpmt::pmt_base) in pulse1_impl.cc.o
boost::function1<void, boost::intrusive_ptrpmt::pmt_base
::operator()(boost::intrusive_ptrpmt::pmt_base) const in pulse1_impl.cc.o
gr::basic_block::dispatch_msg(boost::intrusive_ptrpmt::pmt_base,
boost::intrusive_ptrpmt::pmt_base) in freq_counter2_impl.cc.o
boost::function1<void, boost::intrusive_ptrpmt::pmt_base
::operator()(boost::intrusive_ptrpmt::pmt_base) const in
freq_counter2_impl.cc.o
gr::basic_block::dispatch_msg(boost::intrusive_ptrpmt::pmt_base,
boost::intrusive_ptrpmt::pmt_base) in freq_counter1_impl.cc.o
boost::function1<void, boost::intrusive_ptrpmt::pmt_base
::operator()(boost::intrusive_ptrpmt::pmt_base) const in
freq_counter1_impl.cc.o
gr::basic_block::dispatch_msg(boost::intrusive_ptrpmt::pmt_base,
boost::intrusive_ptrpmt::pmt_base) in streamer1_impl.cc.o

“pmt::eqv(boost::intrusive_ptrpmt::pmt_base const&,
boost::intrusive_ptrpmt::pmt_base const&)”, referenced from:
gr::basic_block::has_msg_handler(boost::intrusive_ptrpmt::pmt_base)
in pulse1_impl.cc.o
gr::basic_block::has_msg_port(boost::intrusive_ptrpmt::pmt_base)
in
pulse1_impl.cc.o
std::__1::map<boost::intrusive_ptrpmt::pmt_base,
boost::function<void (boost::intrusive_ptrpmt::pmt_base)>,
pmt::comparator,
std::__1::allocator<std::__1::pair<boost::intrusive_ptrpmt::pmt_base
const, boost::function<void (boost::intrusive_ptrpmt::pmt_base)> > >
::operator[](boost::intrusive_ptrpmt::pmt_base const&) in
pulse1_impl.cc.o
gr::basic_block::has_msg_handler(boost::intrusive_ptrpmt::pmt_base)
in freq_counter2_impl.cc.o
gr::basic_block::has_msg_port(boost::intrusive_ptrpmt::pmt_base)
in
freq_counter2_impl.cc.o
std::__1::map<boost::intrusive_ptrpmt::pmt_base,
boost::function<void (boost::intrusive_ptrpmt::pmt_base)>,
pmt::comparator,
std::__1::allocator<std::__1::pair<boost::intrusive_ptrpmt::pmt_base
const, boost::function<void (boost::intrusive_ptrpmt::pmt_base)> > >
::operator[](boost::intrusive_ptrpmt::pmt_base const&) in
freq_counter2_impl.cc.o
gr::basic_block::has_msg_handler(boost::intrusive_ptrpmt::pmt_base)
in freq_counter1_impl.cc.o

ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
make[2]: *** [lib/libgnuradio-test1.dylib] Error 1
make[1]: *** [lib/CMakeFiles/gnuradio-test1.dir/all] Error 2
make: *** [all] Error 2


Doc

Bill D.
KXØO

Hi Bill,

cmake seems to work (after I change boost version to 1.55 in CMakeLists.txt)

Um, I don’t think it should be necessary to do that; the line
find_package(Boost “1.35” COMPONENTS filesystem system)
is in the new-OOT-Module template and I think it’s for compatibility
reasons; it works on my Boost 1.53 machine.

I assume that activecat’s module should build fine, it does on my
computer (however, activecat, remove the build folder from git; that
shouldn’t be included :wink: ).

So, my hints would be: empty the build directory, cmake … && make
again; make sure you have a recent GNU Radio version
(gnuradio-config-info -v should give something quite recent)

Greetings,
Marcus

On Sun, Jul 6, 2014 at 4:59 AM, Marcus Müller [email protected]
wrote:

Hi Bill,

cmake seems to work (after I change boost version to 1.55 in CMakeLists.txt)

Um, I don’t think it should be necessary to do that; the line
find_package(Boost “1.35” COMPONENTS filesystem system)
is in the new-OOT-Module template and I think it’s for compatibility
reasons; it works on my Boost 1.53 machine.

Right. That Boost line is saying that the minimum supported version of
Boost is 1.35. It will pick up and use 1.55 just fine without any
changes.

Yes, do what Marcus says. Make sure you’ve emptied the build directory
so
it’s not picking up any configuration settings from Activecat’s machine.

Tom

Bill,

Remember to give us details about your machine and installation setup.
Versions, OS, etc. But the fact that your machine’s name is
‘bill-sMacBook-Pro’ at least gives something away…

Have you looked at these instructions?
http://gnuradio.org/redmine/projects/gnuradio/wiki/MacInstall

They are mainly to help in building GNU Radio, but you’ll likely also
need
some of the CMake tweaks found near the bottom of the page to get CMake
to
properly pick up some things.

Also, if you’ve installed something with port, best to delete the
contents
of your build directory. CMake can cache results and not bother checking
again, so a clean start is useful.

Tom

On Sun, Jul 6, 2014 at 4:59 PM, Marcus Müller [email protected]
wrote:

I assume that activecat’s module should build fine, it does on my
computer (however, activecat, remove the build folder from git; that
shouldn’t be included :wink: ).

Sorry for that, I have now removed the “build” folder.

oops… accidently replied off list…

tom,

thats what I did and I get this from cmake and make

bills-MacBook-Pro:build willy$ cmake …/
– Build type not specified: defaulting to release.
– Boost version: 1.55.0
– Found the following Boost libraries:
– filesystem
– system
– checking for module ‘cppunit’
– package ‘cppunit’ not found
Checking for GNU Radio Module: RUNTIME
– checking for module ‘gnuradio-runtime’
– package ‘gnuradio-runtime’ not found

  • INCLUDES=/opt/local/include

  • LIBS=/opt/local/lib/libgnuradio-runtime.dylib
    GNURADIO_RUNTIME_FOUND = TRUE
    CMake Warning (dev) at /opt/local/share/cmake/gnuradio/GrSwig.cmake:25
    (include):
    Syntax Warning in cmake code at

    /opt/local/share/cmake/gnuradio/GrPython.cmake:210:44

Argument not separated from preceding token by whitespace.
Call Stack (most recent call first):
swig/CMakeLists.txt:36 (include)
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at /opt/local/share/cmake/gnuradio/GrSwig.cmake:25
(include):
Syntax Warning in cmake code at

/opt/local/share/cmake/gnuradio/GrPython.cmake:210:92

Argument not separated from preceding token by whitespace.
Call Stack (most recent call first):
swig/CMakeLists.txt:36 (include)
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at /opt/local/share/cmake/gnuradio/GrSwig.cmake:25
(include):
Syntax Warning in cmake code at

/opt/local/share/cmake/gnuradio/GrPython.cmake:210:100

Argument not separated from preceding token by whitespace.
Call Stack (most recent call first):
swig/CMakeLists.txt:36 (include)
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at swig/CMakeLists.txt:37 (include):
Syntax Warning in cmake code at

/opt/local/share/cmake/gnuradio/GrPython.cmake:210:44

Argument not separated from preceding token by whitespace.
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at swig/CMakeLists.txt:37 (include):
Syntax Warning in cmake code at

/opt/local/share/cmake/gnuradio/GrPython.cmake:210:92

Argument not separated from preceding token by whitespace.
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at swig/CMakeLists.txt:37 (include):
Syntax Warning in cmake code at

/opt/local/share/cmake/gnuradio/GrPython.cmake:210:100

Argument not separated from preceding token by whitespace.
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at /opt/local/share/cmake/gnuradio/GrSwig.cmake:200
(include):
Syntax Warning in cmake code at

/opt/local/share/cmake/gnuradio/GrPython.cmake:210:44

Argument not separated from preceding token by whitespace.
Call Stack (most recent call first):
swig/CMakeLists.txt:55 (GR_SWIG_INSTALL)
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at /opt/local/share/cmake/gnuradio/GrSwig.cmake:200
(include):
Syntax Warning in cmake code at

/opt/local/share/cmake/gnuradio/GrPython.cmake:210:92

Argument not separated from preceding token by whitespace.
Call Stack (most recent call first):
swig/CMakeLists.txt:55 (GR_SWIG_INSTALL)
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at /opt/local/share/cmake/gnuradio/GrSwig.cmake:200
(include):
Syntax Warning in cmake code at

/opt/local/share/cmake/gnuradio/GrPython.cmake:210:100

Argument not separated from preceding token by whitespace.
Call Stack (most recent call first):
swig/CMakeLists.txt:55 (GR_SWIG_INSTALL)
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at python/CMakeLists.txt:23 (include):
Syntax Warning in cmake code at

/opt/local/share/cmake/gnuradio/GrPython.cmake:210:44

Argument not separated from preceding token by whitespace.
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at python/CMakeLists.txt:23 (include):
Syntax Warning in cmake code at

/opt/local/share/cmake/gnuradio/GrPython.cmake:210:92

Argument not separated from preceding token by whitespace.
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at python/CMakeLists.txt:23 (include):
Syntax Warning in cmake code at

/opt/local/share/cmake/gnuradio/GrPython.cmake:210:100

Argument not separated from preceding token by whitespace.
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at apps/CMakeLists.txt:20 (include):
Syntax Warning in cmake code at

/opt/local/share/cmake/gnuradio/GrPython.cmake:210:44

Argument not separated from preceding token by whitespace.
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at apps/CMakeLists.txt:20 (include):
Syntax Warning in cmake code at

/opt/local/share/cmake/gnuradio/GrPython.cmake:210:92

Argument not separated from preceding token by whitespace.
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at apps/CMakeLists.txt:20 (include):
Syntax Warning in cmake code at

/opt/local/share/cmake/gnuradio/GrPython.cmake:210:100

Argument not separated from preceding token by whitespace.
This warning is for project developers. Use -Wno-dev to suppress it.

– Configuring done
– Generating done
– Build files have been written to: /Users/willy/gr-test2/build
bills-MacBook-Pro:build willy$ sudo port install cppunit
Password:
—> Cleaning cppunit
—> Scanning binaries for linking errors
—> No broken files found.
bills-MacBook-Pro:build willy$ cmake …/
– Build type not specified: defaulting to release.
– Boost version: 1.55.0
– Found the following Boost libraries:
– filesystem
– system
– checking for module ‘cppunit’
– package ‘cppunit’ not found
Checking for GNU Radio Module: RUNTIME
– checking for module ‘gnuradio-runtime’
– package ‘gnuradio-runtime’ not found

  • INCLUDES=/opt/local/include

  • LIBS=/opt/local/lib/libgnuradio-runtime.dylib
    GNURADIO_RUNTIME_FOUND = TRUE
    CMake Warning (dev) at /opt/local/share/cmake/gnuradio/GrSwig.cmake:25
    (include):
    Syntax Warning in cmake code at

    /opt/local/share/cmake/gnuradio/GrPython.cmake:210:44

Argument not separated from preceding token by whitespace.
Call Stack (most recent call first):
swig/CMakeLists.txt:36 (include)
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at /opt/local/share/cmake/gnuradio/GrSwig.cmake:25
(include):
Syntax Warning in cmake code at

/opt/local/share/cmake/gnuradio/GrPython.cmake:210:92

Argument not separated from preceding token by whitespace.
Call Stack (most recent call first):
swig/CMakeLists.txt:36 (include)
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at /opt/local/share/cmake/gnuradio/GrSwig.cmake:25
(include):
Syntax Warning in cmake code at

/opt/local/share/cmake/gnuradio/GrPython.cmake:210:100

Argument not separated from preceding token by whitespace.
Call Stack (most recent call first):
swig/CMakeLists.txt:36 (include)
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at swig/CMakeLists.txt:37 (include):
Syntax Warning in cmake code at

/opt/local/share/cmake/gnuradio/GrPython.cmake:210:44

Argument not separated from preceding token by whitespace.
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at swig/CMakeLists.txt:37 (include):
Syntax Warning in cmake code at

/opt/local/share/cmake/gnuradio/GrPython.cmake:210:92

Argument not separated from preceding token by whitespace.
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at swig/CMakeLists.txt:37 (include):
Syntax Warning in cmake code at

/opt/local/share/cmake/gnuradio/GrPython.cmake:210:100

Argument not separated from preceding token by whitespace.
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at /opt/local/share/cmake/gnuradio/GrSwig.cmake:200
(include):
Syntax Warning in cmake code at

/opt/local/share/cmake/gnuradio/GrPython.cmake:210:44

Argument not separated from preceding token by whitespace.
Call Stack (most recent call first):
swig/CMakeLists.txt:55 (GR_SWIG_INSTALL)
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at /opt/local/share/cmake/gnuradio/GrSwig.cmake:200
(include):
Syntax Warning in cmake code at

/opt/local/share/cmake/gnuradio/GrPython.cmake:210:92

Argument not separated from preceding token by whitespace.
Call Stack (most recent call first):
swig/CMakeLists.txt:55 (GR_SWIG_INSTALL)
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at /opt/local/share/cmake/gnuradio/GrSwig.cmake:200
(include):
Syntax Warning in cmake code at

/opt/local/share/cmake/gnuradio/GrPython.cmake:210:100

Argument not separated from preceding token by whitespace.
Call Stack (most recent call first):
swig/CMakeLists.txt:55 (GR_SWIG_INSTALL)
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at python/CMakeLists.txt:23 (include):
Syntax Warning in cmake code at

/opt/local/share/cmake/gnuradio/GrPython.cmake:210:44

Argument not separated from preceding token by whitespace.
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at python/CMakeLists.txt:23 (include):
Syntax Warning in cmake code at

/opt/local/share/cmake/gnuradio/GrPython.cmake:210:92

Argument not separated from preceding token by whitespace.
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at python/CMakeLists.txt:23 (include):
Syntax Warning in cmake code at

/opt/local/share/cmake/gnuradio/GrPython.cmake:210:100

Argument not separated from preceding token by whitespace.
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at apps/CMakeLists.txt:20 (include):
Syntax Warning in cmake code at

/opt/local/share/cmake/gnuradio/GrPython.cmake:210:44

Argument not separated from preceding token by whitespace.
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at apps/CMakeLists.txt:20 (include):
Syntax Warning in cmake code at

/opt/local/share/cmake/gnuradio/GrPython.cmake:210:92

Argument not separated from preceding token by whitespace.
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at apps/CMakeLists.txt:20 (include):
Syntax Warning in cmake code at

/opt/local/share/cmake/gnuradio/GrPython.cmake:210:100

Argument not separated from preceding token by whitespace.
This warning is for project developers. Use -Wno-dev to suppress it.

– Configuring done
– Generating done
– Build files have been written to: /Users/willy/gr-test2/build

bills-MacBook-Pro:build willy$ make
[ 5%] Building CXX object
lib/CMakeFiles/gnuradio-test1.dir/pulse1_impl.cc.o
[ 10%] Building CXX object
lib/CMakeFiles/gnuradio-test1.dir/freq_counter2_impl.cc.o
[ 15%] Building CXX object
lib/CMakeFiles/gnuradio-test1.dir/freq_counter1_impl.cc.o
[ 20%] Building CXX object
lib/CMakeFiles/gnuradio-test1.dir/streamer1_impl.cc.o
Linking CXX shared library libgnuradio-test1.dylib
Undefined symbols for architecture x86_64:
“pmt::dict_has_key(boost::intrusive_ptrpmt::pmt_base const&,
boost::intrusive_ptrpmt::pmt_base const&)”, referenced from:
gr::basic_block::has_msg_port(boost::intrusive_ptrpmt::pmt_base)
in
pulse1_impl.cc.o
gr::basic_block::has_msg_port(boost::intrusive_ptrpmt::pmt_base)
in
freq_counter2_impl.cc.o
gr::basic_block::has_msg_port(boost::intrusive_ptrpmt::pmt_base)
in
freq_counter1_impl.cc.o
gr::basic_block::has_msg_port(boost::intrusive_ptrpmt::pmt_base)
in
streamer1_impl.cc.o
“pmt::intrusive_ptr_add_ref(pmt::pmt_base*)”, referenced from:
gr::basic_block::dispatch_msg(boost::intrusive_ptrpmt::pmt_base,
boost::intrusive_ptrpmt::pmt_base) in pulse1_impl.cc.o
std::__1::map<boost::intrusive_ptrpmt::pmt_base,
boost::function<void (boost::intrusive_ptrpmt::pmt_base)>,
pmt::comparator,
std::__1::allocator<std::__1::pair<boost::intrusive_ptrpmt::pmt_base
const, boost::function<void (boost::intrusive_ptrpmt::pmt_base)> > >

::operator[](boost::intrusive_ptrpmt::pmt_base const&) in
pulse1_impl.cc.o
boost::function1<void, boost::intrusive_ptrpmt::pmt_base
::operator()(boost::intrusive_ptrpmt::pmt_base) const in pulse1_impl.cc.o
gr::basic_block::dispatch_msg(boost::intrusive_ptrpmt::pmt_base,
boost::intrusive_ptrpmt::pmt_base) in freq_counter2_impl.cc.o
std::__1::map<boost::intrusive_ptrpmt::pmt_base,
boost::function<void (boost::intrusive_ptrpmt::pmt_base)>,
pmt::comparator,
std::__1::allocator<std::__1::pair<boost::intrusive_ptrpmt::pmt_base
const, boost::function<void (boost::intrusive_ptrpmt::pmt_base)> > >
::operator[](boost::intrusive_ptrpmt::pmt_base const&) in
freq_counter2_impl.cc.o
boost::function1<void, boost::intrusive_ptrpmt::pmt_base
::operator()(boost::intrusive_ptrpmt::pmt_base) const in
freq_counter2_impl.cc.o
gr::basic_block::dispatch_msg(boost::intrusive_ptrpmt::pmt_base,
boost::intrusive_ptrpmt::pmt_base) in freq_counter1_impl.cc.o

“pmt::intrusive_ptr_release(pmt::pmt_base*)”, referenced from:
gr::basic_block::dispatch_msg(boost::intrusive_ptrpmt::pmt_base,
boost::intrusive_ptrpmt::pmt_base) in pulse1_impl.cc.o
boost::function1<void, boost::intrusive_ptrpmt::pmt_base
::operator()(boost::intrusive_ptrpmt::pmt_base) const in pulse1_impl.cc.o
gr::basic_block::dispatch_msg(boost::intrusive_ptrpmt::pmt_base,
boost::intrusive_ptrpmt::pmt_base) in freq_counter2_impl.cc.o
boost::function1<void, boost::intrusive_ptrpmt::pmt_base
::operator()(boost::intrusive_ptrpmt::pmt_base) const in
freq_counter2_impl.cc.o
gr::basic_block::dispatch_msg(boost::intrusive_ptrpmt::pmt_base,
boost::intrusive_ptrpmt::pmt_base) in freq_counter1_impl.cc.o
boost::function1<void, boost::intrusive_ptrpmt::pmt_base
::operator()(boost::intrusive_ptrpmt::pmt_base) const in
freq_counter1_impl.cc.o
gr::basic_block::dispatch_msg(boost::intrusive_ptrpmt::pmt_base,
boost::intrusive_ptrpmt::pmt_base) in streamer1_impl.cc.o

“pmt::eqv(boost::intrusive_ptrpmt::pmt_base const&,
boost::intrusive_ptrpmt::pmt_base const&)”, referenced from:
gr::basic_block::has_msg_handler(boost::intrusive_ptrpmt::pmt_base)
in pulse1_impl.cc.o
gr::basic_block::has_msg_port(boost::intrusive_ptrpmt::pmt_base)
in
pulse1_impl.cc.o
std::__1::map<boost::intrusive_ptrpmt::pmt_base,
boost::function<void (boost::intrusive_ptrpmt::pmt_base)>,
pmt::comparator,
std::__1::allocator<std::__1::pair<boost::intrusive_ptrpmt::pmt_base
const, boost::function<void (boost::intrusive_ptrpmt::pmt_base)> > >
::operator[](boost::intrusive_ptrpmt::pmt_base const&) in
pulse1_impl.cc.o
gr::basic_block::has_msg_handler(boost::intrusive_ptrpmt::pmt_base)
in freq_counter2_impl.cc.o
gr::basic_block::has_msg_port(boost::intrusive_ptrpmt::pmt_base)
in
freq_counter2_impl.cc.o
std::__1::map<boost::intrusive_ptrpmt::pmt_base,
boost::function<void (boost::intrusive_ptrpmt::pmt_base)>,
pmt::comparator,
std::__1::allocator<std::__1::pair<boost::intrusive_ptrpmt::pmt_base
const, boost::function<void (boost::intrusive_ptrpmt::pmt_base)> > >
::operator[](boost::intrusive_ptrpmt::pmt_base const&) in
freq_counter2_impl.cc.o
gr::basic_block::has_msg_handler(boost::intrusive_ptrpmt::pmt_base)
in freq_counter1_impl.cc.o

ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
make[2]: *** [lib/libgnuradio-test1.dylib] Error 1
make[1]: *** [lib/CMakeFiles/gnuradio-test1.dir/all] Error 2
make: *** [all] Error 2
bills-MacBook-Pro:build willy$

On Sun, Jul 6, 2014 at 8:38 AM, Tom R. [email protected] wrote:

is in the new-OOT-Module template and I think it’s for compatibility

-bash: build: command not found
Linking CXX shared library libgnuradio-test1.dylib
streamer1_impl.cc.o

std::__1::allocator<std::__1::pair<boost::intrusive_ptrpmt::pmt_base
gr::basic_block::dispatch_msg(boost::intrusive_ptrpmt::pmt_base,
boost::intrusive_ptrpmt::pmt_base) in freq_counter2_impl.cc.o

  std::__1::map<boost::intrusive_ptr<pmt::pmt_base>,
  gr::basic_block::has_msg_port(boost::intrusive_ptr<pmt::pmt_base>) in
  gr::basic_block::has_msg_handler(boost::intrusive_ptr<pmt::pmt_base>)

Discuss-gnuradio Info Page


Discuss-gnuradio mailing list
[email protected]
Discuss-gnuradio Info Page


Doc

Bill D.
KXØO

On Sun, Jul 6, 2014 at 11:31 AM, Bill D. [email protected]
wrote:

-DPYTHON_LIBRARY=/opt/local/Library/Frameworks/Python.framework/Versions/2.7/Python

– Detecting C compiler ABI info - done
– Found Doxygen: /opt/local/bin/doxygen (found version “1.8.7”)
Checking for GNU Radio Module: RUNTIME
– checking for module ‘gnuradio-runtime’
– package ‘gnuradio-runtime’ not found

  • INCLUDES=/opt/local/include
  • LIBS=/opt/local/lib/libgnuradio-runtime.dylib
    – Found GNURADIO_RUNTIME: /opt/local/lib/libgnuradio-runtime.dylib
    GNURADIO_RUNTIME_FOUND = TRUE

Looks like there’s a problem here. Do you have
/opt/local/lib/libgnuradio-pmt.dylib? I’m unsure why this is even
passing
at this point. This is what I get normally:

Checking for GNU Radio Module: RUNTIME
– checking for module ‘gnuradio-runtime’
– found gnuradio-runtime, version 3.7.4git

  • INCLUDES=/opt/gr/include

LIBS=/opt/gr/lib/libgnuradio-runtime.dylib;/opt/gr/lib/libgnuradio-pmt.dylib
– Found GNURADIO_RUNTIME:
/opt/gr/lib/libgnuradio-runtime.dylib;/opt/gr/lib/libgnuradio-pmt.dylib
GNURADIO_RUNTIME_FOUND = TRUE

(Note that I’ve installed my GR into /opt/gr, so the paths will be
slightly
different).

If I move the pmt libraries to a backup location and rerun cmake, I get
this:

Checking for GNU Radio Module: RUNTIME
– checking for module ‘gnuradio-runtime’
– found gnuradio-runtime, version 3.7.4git

  • INCLUDES=/opt/gr/include

LIBS=/opt/gr/lib/libgnuradio-runtime.dylib;GNURADIO_RUNTIME_LIBRARIES_gnuradio-pmt-NOTFOUND
– Could NOT find GNURADIO_RUNTIME (missing:
GNURADIO_RUNTIME_LIBRARIES)
GNURADIO_RUNTIME_FOUND = FALSE

So I’m not sure why your setup is a) not finding libgnuradio-pmt.dylib
and
b) allowing the check to pass.

What version of GNU Radio are you using?

$ gnuradio-config-info --version
v3.7.4git-395-gc98699ee

And when you installed GNU Radio itself, did you do it from port using
“port install gnuradio” or “port install gnuradio-devel”?

Tom

yes it is there

port install gnuradio (just repeated that to make sure something wasnt
screwed up.)

3.7.3

On Sun, Jul 6, 2014 at 10:47 AM, Tom R. [email protected] wrote:

cmake -DPYTHON_EXECUTABLE=/opt/local/bin/python2.7
– Check for working C compiler: /usr/bin/llvm-gcc – works
– package ‘cppunit’ not found

– Found GNURADIO_RUNTIME:
Checking for GNU Radio Module: RUNTIME
b) allowing the check to pass.


Doc

Bill D.
KXØO

Bill,

Do you face these problems when building OOT newly created from
gr_modtool ?

I have never built OOT before…

I have given up on the mcbook pro…

now I am on my ubuntu box… it appears to have built fine but when I
try
to run I get this:

I am using a netsdr with osmsdr. Is this a path issue?

Generating: “/home/willy/top_block.py”

Executing: “/home/willy/top_block.py”

Traceback (most recent call last):
File “/home/willy/top_block.py”, line 132, in
tb = top_block()
File “/home/willy/top_block.py”, line 40, in init
self.test1_freq_counter2_0 = test1.freq_counter2(samp_rate, 0.1)
AttributeError: ‘module’ object has no attribute ‘freq_counter2’

Done

On Sun, Jul 6, 2014 at 8:27 PM, Activecat [email protected] wrote:

Bill,

Do you face these problems when building OOT newly created from gr_modtool
?


Doc

Bill D.
KXØO

yes Tom, I did try that from the mac specific stuff. redone here…

PMT still seems to be an issue.

bills-MacBook-Pro:gr-test2 willy$ rm -rf build
bills-MacBook-Pro:gr-test2 willy$ mkdir build
bills-MacBook-Pro:gr-test2 willy$ cd build
bills-MacBook-Pro:build willy$ CC=/usr/bin/llvm-gcc
CXX=/usr/bin/llvm-g++
cmake -DPYTHON_EXECUTABLE=/opt/local/bin/python2.7
-DPYTHON_INCLUDE_DIR=/opt/local/Library/Frameworks/Python.framework/Versions/2.7/Headers
-DPYTHON_LIBRARY=/opt/local/Library/Frameworks/Python.framework/Versions/2.7/Python
-DSPHINX_EXECUTABLE=/opt/local/bin/rst2html-2.7.py …/
– The CXX compiler identification is Clang 5.1.0
– The C compiler identification is Clang 5.1.0
– Check for working CXX compiler: /usr/bin/llvm-g++
– Check for working CXX compiler: /usr/bin/llvm-g++ – works
– Detecting CXX compiler ABI info
– Detecting CXX compiler ABI info - done
– Check for working C compiler: /usr/bin/llvm-gcc
– Check for working C compiler: /usr/bin/llvm-gcc – works
– Detecting C compiler ABI info
– Detecting C compiler ABI info - done
– Build type not specified: defaulting to release.
– Boost version: 1.55.0
– Found the following Boost libraries:
– filesystem
– system
– Found PkgConfig: /usr/local/bin/pkg-config (found version “0.28”)
– checking for module ‘cppunit’
– package ‘cppunit’ not found
– Found CPPUNIT: /opt/local/lib/libcppunit.dylib
– Found Doxygen: /opt/local/bin/doxygen (found version “1.8.7”)
Checking for GNU Radio Module: RUNTIME
– checking for module ‘gnuradio-runtime’
– package ‘gnuradio-runtime’ not found

  • INCLUDES=/opt/local/include

  • LIBS=/opt/local/lib/libgnuradio-runtime.dylib
    – Found GNURADIO_RUNTIME: /opt/local/lib/libgnuradio-runtime.dylib
    GNURADIO_RUNTIME_FOUND = TRUE
    – Found SWIG: /usr/local/bin/swig (found version “2.0.11”)
    – Found PythonLibs:
    /opt/local/Library/Frameworks/Python.framework/Versions/2.7/Python
    (found
    suitable version “2.7.8”, minimum required is “2”)
    CMake Warning (dev) at /opt/local/share/cmake/gnuradio/GrSwig.cmake:25
    (include):
    Syntax Warning in cmake code at

    /opt/local/share/cmake/gnuradio/GrPython.cmake:210:44

Argument not separated from preceding token by whitespace.
Call Stack (most recent call first):
swig/CMakeLists.txt:36 (include)
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at /opt/local/share/cmake/gnuradio/GrSwig.cmake:25
(include):
Syntax Warning in cmake code at

/opt/local/share/cmake/gnuradio/GrPython.cmake:210:92

Argument not separated from preceding token by whitespace.
Call Stack (most recent call first):
swig/CMakeLists.txt:36 (include)
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at /opt/local/share/cmake/gnuradio/GrSwig.cmake:25
(include):
Syntax Warning in cmake code at

/opt/local/share/cmake/gnuradio/GrPython.cmake:210:100

Argument not separated from preceding token by whitespace.
Call Stack (most recent call first):
swig/CMakeLists.txt:36 (include)
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at swig/CMakeLists.txt:37 (include):
Syntax Warning in cmake code at

/opt/local/share/cmake/gnuradio/GrPython.cmake:210:44

Argument not separated from preceding token by whitespace.
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at swig/CMakeLists.txt:37 (include):
Syntax Warning in cmake code at

/opt/local/share/cmake/gnuradio/GrPython.cmake:210:92

Argument not separated from preceding token by whitespace.
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at swig/CMakeLists.txt:37 (include):
Syntax Warning in cmake code at

/opt/local/share/cmake/gnuradio/GrPython.cmake:210:100

Argument not separated from preceding token by whitespace.
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at /opt/local/share/cmake/gnuradio/GrSwig.cmake:188
(include):
Syntax Warning in cmake code at

/opt/local/share/cmake/gnuradio/GrPython.cmake:210:44

Argument not separated from preceding token by whitespace.
Call Stack (most recent call first):
swig/CMakeLists.txt:55 (GR_SWIG_INSTALL)
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at /opt/local/share/cmake/gnuradio/GrSwig.cmake:188
(include):
Syntax Warning in cmake code at

/opt/local/share/cmake/gnuradio/GrPython.cmake:210:92

Argument not separated from preceding token by whitespace.
Call Stack (most recent call first):
swig/CMakeLists.txt:55 (GR_SWIG_INSTALL)
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at /opt/local/share/cmake/gnuradio/GrSwig.cmake:188
(include):
Syntax Warning in cmake code at

/opt/local/share/cmake/gnuradio/GrPython.cmake:210:100

Argument not separated from preceding token by whitespace.
Call Stack (most recent call first):
swig/CMakeLists.txt:55 (GR_SWIG_INSTALL)
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at python/CMakeLists.txt:23 (include):
Syntax Warning in cmake code at

/opt/local/share/cmake/gnuradio/GrPython.cmake:210:44

Argument not separated from preceding token by whitespace.
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at python/CMakeLists.txt:23 (include):
Syntax Warning in cmake code at

/opt/local/share/cmake/gnuradio/GrPython.cmake:210:92

Argument not separated from preceding token by whitespace.
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at python/CMakeLists.txt:23 (include):
Syntax Warning in cmake code at

/opt/local/share/cmake/gnuradio/GrPython.cmake:210:100

Argument not separated from preceding token by whitespace.
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at apps/CMakeLists.txt:20 (include):
Syntax Warning in cmake code at

/opt/local/share/cmake/gnuradio/GrPython.cmake:210:44

Argument not separated from preceding token by whitespace.
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at apps/CMakeLists.txt:20 (include):
Syntax Warning in cmake code at

/opt/local/share/cmake/gnuradio/GrPython.cmake:210:92

Argument not separated from preceding token by whitespace.
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at apps/CMakeLists.txt:20 (include):
Syntax Warning in cmake code at

/opt/local/share/cmake/gnuradio/GrPython.cmake:210:100

Argument not separated from preceding token by whitespace.
This warning is for project developers. Use -Wno-dev to suppress it.

– Configuring done
– Generating done
CMake Warning:
Manually-specified variables were not used by the project:

SPHINX_EXECUTABLE

– Build files have been written to: /Users/willy/gr-test2/build
bills-MacBook-Pro:build willy$ make clean
bills-MacBook-Pro:build willy$ make
Scanning dependencies of target gnuradio-test1
[ 5%] Building CXX object
lib/CMakeFiles/gnuradio-test1.dir/pulse1_impl.cc.o
[ 10%] Building CXX object
lib/CMakeFiles/gnuradio-test1.dir/freq_counter2_impl.cc.o
[ 15%] Building CXX object
lib/CMakeFiles/gnuradio-test1.dir/freq_counter1_impl.cc.o
[ 20%] Building CXX object
lib/CMakeFiles/gnuradio-test1.dir/streamer1_impl.cc.o
Linking CXX shared library libgnuradio-test1.dylib
Undefined symbols for architecture x86_64:
“pmt::dict_has_key(boost::intrusive_ptrpmt::pmt_base const&,
boost::intrusive_ptrpmt::pmt_base const&)”, referenced from:
gr::basic_block::has_msg_port(boost::intrusive_ptrpmt::pmt_base)
in
pulse1_impl.cc.o
gr::basic_block::has_msg_port(boost::intrusive_ptrpmt::pmt_base)
in
freq_counter2_impl.cc.o
gr::basic_block::has_msg_port(boost::intrusive_ptrpmt::pmt_base)
in
freq_counter1_impl.cc.o
gr::basic_block::has_msg_port(boost::intrusive_ptrpmt::pmt_base)
in
streamer1_impl.cc.o
“pmt::intrusive_ptr_add_ref(pmt::pmt_base*)”, referenced from:
gr::basic_block::dispatch_msg(boost::intrusive_ptrpmt::pmt_base,
boost::intrusive_ptrpmt::pmt_base) in pulse1_impl.cc.o
std::__1::map<boost::intrusive_ptrpmt::pmt_base,
boost::function<void (boost::intrusive_ptrpmt::pmt_base)>,
pmt::comparator,
std::__1::allocator<std::__1::pair<boost::intrusive_ptrpmt::pmt_base
const, boost::function<void (boost::intrusive_ptrpmt::pmt_base)> > >

::operator[](boost::intrusive_ptrpmt::pmt_base const&) in
pulse1_impl.cc.o
boost::function1<void, boost::intrusive_ptrpmt::pmt_base
::operator()(boost::intrusive_ptrpmt::pmt_base) const in pulse1_impl.cc.o
gr::basic_block::dispatch_msg(boost::intrusive_ptrpmt::pmt_base,
boost::intrusive_ptrpmt::pmt_base) in freq_counter2_impl.cc.o
std::__1::map<boost::intrusive_ptrpmt::pmt_base,
boost::function<void (boost::intrusive_ptrpmt::pmt_base)>,
pmt::comparator,
std::__1::allocator<std::__1::pair<boost::intrusive_ptrpmt::pmt_base
const, boost::function<void (boost::intrusive_ptrpmt::pmt_base)> > >
::operator[](boost::intrusive_ptrpmt::pmt_base const&) in
freq_counter2_impl.cc.o
boost::function1<void, boost::intrusive_ptrpmt::pmt_base
::operator()(boost::intrusive_ptrpmt::pmt_base) const in
freq_counter2_impl.cc.o
gr::basic_block::dispatch_msg(boost::intrusive_ptrpmt::pmt_base,
boost::intrusive_ptrpmt::pmt_base) in freq_counter1_impl.cc.o

“pmt::intrusive_ptr_release(pmt::pmt_base*)”, referenced from:
gr::basic_block::dispatch_msg(boost::intrusive_ptrpmt::pmt_base,
boost::intrusive_ptrpmt::pmt_base) in pulse1_impl.cc.o
boost::function1<void, boost::intrusive_ptrpmt::pmt_base
::operator()(boost::intrusive_ptrpmt::pmt_base) const in pulse1_impl.cc.o
gr::basic_block::dispatch_msg(boost::intrusive_ptrpmt::pmt_base,
boost::intrusive_ptrpmt::pmt_base) in freq_counter2_impl.cc.o
boost::function1<void, boost::intrusive_ptrpmt::pmt_base
::operator()(boost::intrusive_ptrpmt::pmt_base) const in
freq_counter2_impl.cc.o
gr::basic_block::dispatch_msg(boost::intrusive_ptrpmt::pmt_base,
boost::intrusive_ptrpmt::pmt_base) in freq_counter1_impl.cc.o
boost::function1<void, boost::intrusive_ptrpmt::pmt_base
::operator()(boost::intrusive_ptrpmt::pmt_base) const in
freq_counter1_impl.cc.o
gr::basic_block::dispatch_msg(boost::intrusive_ptrpmt::pmt_base,
boost::intrusive_ptrpmt::pmt_base) in streamer1_impl.cc.o

“pmt::eqv(boost::intrusive_ptrpmt::pmt_base const&,
boost::intrusive_ptrpmt::pmt_base const&)”, referenced from:
gr::basic_block::has_msg_handler(boost::intrusive_ptrpmt::pmt_base)
in pulse1_impl.cc.o
gr::basic_block::has_msg_port(boost::intrusive_ptrpmt::pmt_base)
in
pulse1_impl.cc.o
std::__1::map<boost::intrusive_ptrpmt::pmt_base,
boost::function<void (boost::intrusive_ptrpmt::pmt_base)>,
pmt::comparator,
std::__1::allocator<std::__1::pair<boost::intrusive_ptrpmt::pmt_base
const, boost::function<void (boost::intrusive_ptrpmt::pmt_base)> > >
::operator[](boost::intrusive_ptrpmt::pmt_base const&) in
pulse1_impl.cc.o
gr::basic_block::has_msg_handler(boost::intrusive_ptrpmt::pmt_base)
in freq_counter2_impl.cc.o
gr::basic_block::has_msg_port(boost::intrusive_ptrpmt::pmt_base)
in
freq_counter2_impl.cc.o
std::__1::map<boost::intrusive_ptrpmt::pmt_base,
boost::function<void (boost::intrusive_ptrpmt::pmt_base)>,
pmt::comparator,
std::__1::allocator<std::__1::pair<boost::intrusive_ptrpmt::pmt_base
const, boost::function<void (boost::intrusive_ptrpmt::pmt_base)> > >
::operator[](boost::intrusive_ptrpmt::pmt_base const&) in
freq_counter2_impl.cc.o
gr::basic_block::has_msg_handler(boost::intrusive_ptrpmt::pmt_base)
in freq_counter1_impl.cc.o

ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
make[2]: *** [lib/libgnuradio-test1.dylib] Error 1
make[1]: *** [lib/CMakeFiles/gnuradio-test1.dir/all] Error 2
make: *** [all] Error 2
bills-MacBook-Pro:build willy$

On Sun, Jul 6, 2014 at 10:13 AM, Activecat [email protected] wrote:


Discuss-gnuradio mailing list
[email protected]
Discuss-gnuradio Info Page


Doc

Bill D.
KXØO

sudo ldconfig appears to have fixed that

On Sun, Jul 6, 2014 at 8:34 PM, Bill D. [email protected] wrote:

Generating: “/home/willy/top_block.py”

Done


Doc

Bill D.
KXØO