jboone / gr-tpms

Tire Pressure Monitor tools for GNU Radio
GNU General Public License v2.0
165 stars 36 forks source link

Unable to Make -- numerous errors #11

Open chrlymurphy opened 7 years ago

chrlymurphy commented 7 years ago

I believe I have all of the pre-requisites installed. Ideas? Help please :) Sorry for the formatting, but I copied the error and inserted into a new text file. Error: [ 14%] Built target gnuradio-tpms [ 18%] Linking CXX executable test-tpms CMakeFiles/test-tpms.dir/test_tpms.cc.o: In functionmain': test_tpms.cc:(.text.startup+0x223): undefined reference to CppUnit::XmlOutputter::XmlOutputter(CppUnit::TestResultCollector*, std::ostream&, std::string)' test_tpms.cc:(.text.startup+0x294): undefined reference toCppUnit::TextTestRunner::run(std::string, bool, bool, bool)' CMakeFiles/test-tpms.dir/qa_tpms.cc.o: In function qa_tpms::suite()': qa_tpms.cc:(.text+0x41): undefined reference toCppUnit::TestSuite::TestSuite(std::string)' qa_tpms.cc:(.text+0x79): undefined reference to CppUnit::TestNamer::getFixtureName() const' qa_tpms.cc:(.text+0x98): undefined reference toCppUnit::TestSuite::TestSuite(std::string)' qa_tpms.cc:(.text+0x1e5): undefined reference to CppUnit::TestSuiteBuilderContextBase::getTestNameFor(std::string const&) const' qa_tpms.cc:(.text+0x21c): undefined reference toCppUnit::TestCase::TestCase(std::string const&)' qa_tpms.cc:(.text+0x2cc): undefined reference to CppUnit::TestNamer::getFixtureName() const' qa_tpms.cc:(.text+0x2eb): undefined reference toCppUnit::TestSuite::TestSuite(std::string)' qa_tpms.cc:(.text+0x42d): undefined reference to CppUnit::TestSuiteBuilderContextBase::getTestNameFor(std::string const&) const' qa_tpms.cc:(.text+0x464): undefined reference toCppUnit::TestCase::TestCase(std::string const&)' CMakeFiles/test-tpms.dir/qa_tpms.cc.o:(.rodata._ZTVN2gr4tpms10qa_ask_envE[_ZTVN2gr4tpms10qa_ask_envE]+0x40): undefined reference to CppUnit::TestCase::getName() const' CMakeFiles/test-tpms.dir/qa_tpms.cc.o:(.rodata._ZTVN2gr4tpms10qa_ask_envE[_ZTVN2gr4tpms10qa_ask_envE]+0x48): undefined reference toCppUnit::Test::findTestPath(std::string const&, CppUnit::TestPath&) const' CMakeFiles/test-tpms.dir/qa_tpms.cc.o:(.rodata._ZTVN2gr4tpms10qa_ask_envE[_ZTVN2gr4tpms10qa_ask_envE]+0x58): undefined reference to CppUnit::Test::findTest(std::string const&) const' CMakeFiles/test-tpms.dir/qa_tpms.cc.o:(.rodata._ZTVN2gr4tpms10qa_ask_envE[_ZTVN2gr4tpms10qa_ask_envE]+0x60): undefined reference toCppUnit::Test::resolveTestPath(std::string const&) const' CMakeFiles/test-tpms.dir/qa_tpms.cc.o:(.rodata._ZTVN7CppUnit10TestCallerIN2gr4tpms10qa_ask_envEEE[_ZTVN7CppUnit10TestCallerIN2gr4tpms10qa_ask_envEEE]+0x40): undefined reference to CppUnit::TestCase::getName() const' CMakeFiles/test-tpms.dir/qa_tpms.cc.o:(.rodata._ZTVN7CppUnit10TestCallerIN2gr4tpms10qa_ask_envEEE[_ZTVN7CppUnit10TestCallerIN2gr4tpms10qa_ask_envEEE]+0x48): undefined reference toCppUnit::Test::findTestPath(std::string const&, CppUnit::TestPath&) const' CMakeFiles/test-tpms.dir/qa_tpms.cc.o:(.rodata._ZTVN7CppUnit10TestCallerIN2gr4tpms10qa_ask_envEEE[_ZTVN7CppUnit10TestCallerIN2gr4tpms10qa_ask_envEEE]+0x58): undefined reference to CppUnit::Test::findTest(std::string const&) const' CMakeFiles/test-tpms.dir/qa_tpms.cc.o:(.rodata._ZTVN7CppUnit10TestCallerIN2gr4tpms10qa_ask_envEEE[_ZTVN7CppUnit10TestCallerIN2gr4tpms10qa_ask_envEEE]+0x60): undefined reference toCppUnit::Test::resolveTestPath(std::string const&) const' CMakeFiles/test-tpms.dir/qa_tpms.cc.o:(.rodata._ZTVN2gr4tpms26qa_fixed_length_frame_sinkE[_ZTVN2gr4tpms26qa_fixed_length_frame_sinkE]+0x40): undefined reference to CppUnit::TestCase::getName() const' CMakeFiles/test-tpms.dir/qa_tpms.cc.o:(.rodata._ZTVN2gr4tpms26qa_fixed_length_frame_sinkE[_ZTVN2gr4tpms26qa_fixed_length_frame_sinkE]+0x48): undefined reference toCppUnit::Test::findTestPath(std::string const&, CppUnit::TestPath&) const' CMakeFiles/test-tpms.dir/qa_tpms.cc.o:(.rodata._ZTVN2gr4tpms26qa_fixed_length_frame_sinkE[_ZTVN2gr4tpms26qa_fixed_length_frame_sinkE]+0x58): undefined reference to CppUnit::Test::findTest(std::string const&) const' CMakeFiles/test-tpms.dir/qa_tpms.cc.o:(.rodata._ZTVN2gr4tpms26qa_fixed_length_frame_sinkE[_ZTVN2gr4tpms26qa_fixed_length_frame_sinkE]+0x60): undefined reference toCppUnit::Test::resolveTestPath(std::string const&) const' CMakeFiles/test-tpms.dir/qa_tpms.cc.o:(.rodata._ZTVN7CppUnit10TestCallerIN2gr4tpms26qa_fixed_length_frame_sinkEEE[_ZTVN7CppUnit10TestCallerIN2gr4tpms26qa_fixed_length_frame_sinkEEE]+0x40): undefined reference to CppUnit::TestCase::getName() const' CMakeFiles/test-tpms.dir/qa_tpms.cc.o:(.rodata._ZTVN7CppUnit10TestCallerIN2gr4tpms26qa_fixed_length_frame_sinkEEE[_ZTVN7CppUnit10TestCallerIN2gr4tpms26qa_fixed_length_frame_sinkEEE]+0x48): undefined reference toCppUnit::Test::findTestPath(std::string const&, CppUnit::TestPath&) const' CMakeFiles/test-tpms.dir/qa_tpms.cc.o:(.rodata._ZTVN7CppUnit10TestCallerIN2gr4tpms26qa_fixed_length_frame_sinkEEE[_ZTVN7CppUnit10TestCallerIN2gr4tpms26qa_fixed_length_frame_sinkEEE]+0x58): undefined reference to CppUnit::Test::findTest(std::string const&) const' CMakeFiles/test-tpms.dir/qa_tpms.cc.o:(.rodata._ZTVN7CppUnit10TestCallerIN2gr4tpms26qa_fixed_length_frame_sinkEEE[_ZTVN7CppUnit10TestCallerIN2gr4tpms26qa_fixed_length_frame_sinkEEE]+0x60): undefined reference toCppUnit::Test::resolveTestPath(std::string const&) const' libgnuradio-tpms.so: undefined reference to gr::block::block(std::string const&, boost::shared_ptr<gr::io_signature>, boost::shared_ptr<gr::io_signature>)' libgnuradio-tpms.so: undefined reference togr::sync_block::sync_block(std::string const&, boost::shared_ptr, boost::shared_ptr)' libgnuradio-tpms.so: undefined reference to pmt::string_to_symbol(std::string const&)' collect2: error: ld returned 1 exit status lib/CMakeFiles/test-tpms.dir/build.make:187: recipe for target 'lib/test-tpms' failed make[2]: *** [lib/test-tpms] Error 1 CMakeFiles/Makefile2:174: recipe for target 'lib/CMakeFiles/test-tpms.dir/all' failed make[1]: *** [lib/CMakeFiles/test-tpms.dir/all] Error 2 Makefile:138: recipe for target 'all' failed make: *** [all] Error 2

jboone commented 7 years ago

Sorry for the delay. It seems as though you do not have CppUnit installed, or perhaps it's not finding the library to link against, or... Not sure. Based on the error messages, it does seem to be finding at least the CppUnit headers. Perhaps partial or multiple CppUnit installs throughout your filesystem?