> On Tue, Nov 22, 2011 at 8:44 PM, Josh Blum <
address@hidden> wrote:
>
>>
>>
>> On 11/22/2011 06:38 PM, Alex Zhang wrote:
>>> This is my error of make if I use the cmake-gui to configure and generate
>>> firstly.
>>
>> My confusion. I thought you said the error was during configure, not make.
>>
>> So, it looks like the gruel unit tests must be linked to boost. This is
>> interesting because I do not see the issue on my Ubuntu 10.11, and boost
>> is indirectly linked via gruel. (I head indirectly linking may be a
>> thing of the past...)
>>
>> Can you try this diff, where I add boost libraries to the test
>> application:
http://pastebin.com/61uerB5y
>>
>> -josh
>>
>>> --------------------------------------------------------
>>> address@hidden:~/build$ sudo make
>>> [sudo] password for xxx:
>>> Sorry, try again.
>>> [sudo] password for xxx:
>>> [ 1%] Built target volk
>>> [ 1%] Built target test_all
>>> [ 2%] Built target volk_profile
>>> Scanning dependencies of target gruel
>>> [ 2%] Building CXX object
>>> gruel/src/lib/CMakeFiles/gruel.dir/msg/msg_accepter.cc.o
>>> [ 2%] Building CXX object
>>> gruel/src/lib/CMakeFiles/gruel.dir/msg/msg_accepter_msgq.cc.o
>>> [ 2%] Building CXX object
>>> gruel/src/lib/CMakeFiles/gruel.dir/msg/msg_queue.cc.o
>>> [ 3%] Building CXX object
>>> gruel/src/lib/CMakeFiles/gruel.dir/pmt/pmt_unv.cc.o
>>> [ 3%] Building CXX object
>> gruel/src/lib/CMakeFiles/gruel.dir/pmt/pmt.cc.o
>>> [ 3%] Building CXX object
>>> gruel/src/lib/CMakeFiles/gruel.dir/pmt/pmt_io.cc.o
>>> [ 3%] Building CXX object
>>> gruel/src/lib/CMakeFiles/gruel.dir/pmt/pmt_serialize.cc.o
>>> Linking CXX shared library
libgruel-3.5.0rc0.so
>>> [ 3%] Built target gruel
>>> Scanning dependencies of target test_gruel
>>> [ 3%] Building CXX object
>>> gruel/src/lib/CMakeFiles/test_gruel.dir/pmt/qa_pmt_unv.cc.o
>>> [ 4%] Building CXX object
>>> gruel/src/lib/CMakeFiles/test_gruel.dir/pmt/qa_pmt_prims.cc.o
>>> Linking CXX executable test_gruel
>>> CMakeFiles/test_gruel.dir/test_gruel.cc.o: In function
>>> `boost::filesystem3::operator/(boost::filesystem3::path const&,
>>> boost::filesystem3::path const&)':
>>>
>> test_gruel.cc:(.text._ZN5boost11filesystem3dvERKNS0_4pathES3_[boost::filesystem3::operator/(boost::filesystem3::path
>>> const&, boost::filesystem3::path const&)]+0x29): undefined reference to
>>> `boost::filesystem3::path::operator/=(boost::filesystem3::path const&)'
>>> CMakeFiles/test_gruel.dir/test_gruel.cc.o: In function `main':
>>> test_gruel.cc:(.text.startup+0x54): undefined reference to
>>> `boost::filesystem3::detail::current_path(boost::system::error_code*)'
>>> test_gruel.cc:(.text.startup+0x9a): undefined reference to
>>> `boost::filesystem3::detail::status(boost::filesystem3::path const&,
>>> boost::system::error_code*)'
>>> test_gruel.cc:(.text.startup+0xb6): undefined reference to
>>> `boost::filesystem3::detail::create_directory(boost::filesystem3::path
>>> const&, boost::system::error_code*)'
>>> CMakeFiles/test_gruel.dir/test_gruel.cc.o: In function
>>> `_GLOBAL__sub_I_main':
>>> test_gruel.cc:(.text.startup+0x35c): undefined reference to
>>> `boost::system::generic_category()'
>>> test_gruel.cc:(.text.startup+0x366): undefined reference to
>>> `boost::system::generic_category()'
>>> test_gruel.cc:(.text.startup+0x370): undefined reference to
>>> `boost::system::system_category()'
>>> collect2: ld returned 1 exit status
>>> make[2]: *** [gruel/src/lib/test_gruel] Error 1
>>> make[1]: *** [gruel/src/lib/CMakeFiles/test_gruel.dir/all] Error 2
>>> make: *** [all] Error 2
>>>
>>>
>>> On Tue, Nov 22, 2011 at 8:09 PM, Josh Blum <
address@hidden> wrote:
>>>
>>>>
>>>>
>>>> On 11/22/2011 05:59 PM, Alex Zhang wrote:
>>>>> I just use the ./bootstrap and then ./configure and make.
>>>>> Previously, I used the cmake_gui to configure/generate but then failed
>> to
>>>>> make due to some not foudn reference to boost files. Even I changed the
>>>>> parameter of BOOST_ROOT to the directory of my boost directory, it
>> still
>>>>> fails.
>>>>>
>>>>
>>>> Thats odd. Can you post the verbose?
>>>>
>>>> Usually cmake finds boost automatically unless its a "custom" boost
>>>> install. What OS do you have? Did you install boost from the OS's
>>>> package manager?
>>>>
>>>> Also, I may suggest that you manually set BOOST_LIBRARYDIR and
>>>> BOOST_INCLUDEDIR
>>>>
>>>> -Josh
>>>>
>>>
>>>
>>>
>>
>
>
>