mavak / trucov

True coverage tool for C / C++
1 stars 1 forks source link

Error building with boost v1.47 in Fedora #173

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. cmake ../../../ -DBOOST_VERSION=Old
2. make

What is the expected output? What do you see instead?
Should compile. The errors are first in compilation. When those are fixed, 
linking problems arise.

What version of the product are you using? On what operating system?
trucov 10.1. Fedora 14, gcc 4.5.1.

Please provide any additional information below.
Problems are fixed with the following patches:

CMakeLists.txt
132a133
>        boost_system
138a140
>        boost_system-mt

src/tru_utility.cpp
45c45
<       m_curr_dir = fs::current_path<fs::path>();

---
>       m_curr_dir = fs::current_path();
69c69
<       string s = fs::system_complete(".").directory_string();

---
>       string s = fs::system_complete(".").string();
127c127
<       result.push_back( dir_itr->path().file_string() );

---
>       result.push_back( dir_itr->path().string() );

Original issue reported on code.google.com by dan.schm...@maidsafe.net on 11 Oct 2011 at 6:00

GoogleCodeExporter commented 9 years ago
Any chance this could get fixed? Is trucov still maintained?

Original comment by fullung@gmail.com on 10 Mar 2012 at 5:50

GoogleCodeExporter commented 9 years ago
I have the same compile errors with Boost 1.46.1 on Ubuntu 11.10 with gcc 4.6.1 
with -DBOOST_VERSION=New
The patches in the original report fix it for me.

Original comment by alan.bra...@gmail.com on 10 May 2012 at 5:04

GoogleCodeExporter commented 9 years ago
I have compilation issues on Debian too (patch included).

After that, I still get ld errors:
/usr/bin/ld: cannot find -lboost_program_options-mt
/usr/bin/ld: cannot find -lboost_filesystem-mt
/usr/bin/ld: cannot find -lboost_thread-mt
/usr/bin/ld: cannot find -lboost_regex-mt
collect2: error: ld returned 1 exit status

Original comment by prog...@gmail.com on 18 Feb 2014 at 8:38

Attachments:

GoogleCodeExporter commented 9 years ago
It should link if you add boost_system/boost_system-mt to BOOST_LIBS in 
CMakeLists.txt

Original comment by stilew...@gmail.com on 22 Nov 2014 at 2:35