boost + barry + Ubuntu/Feisty = ?
I am trying to configure barry 0.8 CVS with boost. What path do I give for boost?
That is configuring for my install I am trying to: ./configure --prefix=/usr --with-boost=$BOOST and I need and don't know $BOOST? I used $BOOST=/usr/include/boost as I used "locate boost" and this seemed to be the root location of "boost" but it doesn't work. I also used $BOOST=/usr but the output with both configurations using btool and the -f option, for example "btool -f text.txt -t" is always: -f option not supported - no Boost serialization support available |
Not an Ubuntu guy, but I'll try. Do you have the -devel equivalent installed on your machine for the Boost libraries? I'm assuming you do since you have /usr/include/boost, but you also have /usr/lib/libboost_* there as well?
On Fedora the --with-boost=/usr is what you have to do for 0.7 (which is actually a bug, see here). When you run the ./configure --with-boot=/usr, what does the config.status and config.log have to say when it tests a boost compile? |
I attempted to post this at 1:20AM PST but the server seemed to be down.
1st) As a test for whether boost is working I used, $sudo btool -f phone_logs.txt -d "Phone Call Logs" for which the output indicates a negative indicator that boost was compiled into the make, with the following output, -f option not supported - no Boost serialization support available as stated previously. Is this a proper test for whether I have boost enabled? 2nd) As to whether I installed what was required for boost to work correctly I am not sure. For Debian (and therefore and I am assuming Ubuntu) these consist of: pkg-config libusb-dev libssl-dev libboost-serialization-dev which comes from the Barry main "README" file. I am not sure if I have to compile a package "boost" as there is none in the official repository or if the development package is good enough. 3rd) Here are some initial tests of what you asked: config.status $grep -in boost config.status (Output) 338: with options \"'--prefix=/usr' '--with-boost=/usr'\" 413: echo "running CONFIG_SHELL=/bin/bash /bin/bash ./configure " '--prefix=/usr' '--with-boost=/usr' $ac_configure_extra_args " --no-create --no-recursion" >&6 416: exec /bin/bash "./configure" '--prefix=/usr' '--with-boost=/usr' $ac_configure_extra_args --no-create --no-recursion 613:s,@BOOST_LIB_PATH@,|#_!!_#|/usr/lib,g 614:s,@BOOST_INC_PATH@,|#_!!_#|/usr/include,g 615:s,@WITH_BOOST_TRUE@,|#_!!_#|,g 616:s,@WITH_BOOST_FALSE@,|#_!!_#|#,g config.log $grep -in boost config.log (Output) 7: $ ./configure --prefix=/usr --with-boost=/usr 1146:BOOST_INC_PATH='/usr/include' 1147:BOOST_LIB_PATH='/usr/lib' 1198:WITH_BOOST_FALSE='#' 1199:WITH_BOOST_TRUE='' 4th) Thanks for looking :) |
Let's do this the easy way - using ldd. :)
Run this (assuming the right path on Ubuntu): Code:
ldd /usr/bin/btool | grep boost Code:
libboost_serialization.so.2 => /usr/lib/libboost_serialization.so.2 (0x00269000) |
No :( I do not have boost by the test you mentioned. There is no output.
|
Quote:
|
It seems that I have the static libraries only and not the shared libraries, most specifically, I have no way of knowing if this has anything to do with no boost support.
I tested the library using a simple c++ code another Ubuntu user had created when they thought they had a problem with libboost-serialization-dev, the Ubuntu package in question. Code:
#include <string> Code:
g++ -o Test main.cpp -lboost_serialization Code:
make rivviepop could you by any chance tell me what your config.log is for the successful build of barry with boost for my equivalent failed lines? In my config.log they are lines 1175-6 Code:
WITH_BOOST_FALSE='#' |
This is beginning to be a gigantic post. I decided what the heck it is really low level stuff we are adding so I used Gutsy (Feisty+1) repositories and installed the serialization boost dev package. The new version, I checked before installing, has the shared libraries, but to no avail I compiled, make, make install again and still
Code:
ldd /usr/bin/btool | grep -i boost What a drag, maybe I don't even need boost but I think it will be helpful in the future. |
Quote:
Quote:
So, I think you'll need to figure out how to get the boost shared libraries installed on Ubuntu; check out this URL that has a snippet: Code:
boost (1.33.1+1.34.0-cvs20070326-1) experimental; urgency=low Dig around your Ubuntu packages, it might be a bug in the specific one you have installed, missing the shared libraries. doh! :) |
I added the newest Ubuntu libboost-serialization-dev and libboost-serialization1.34.0. Now when I try to make I finally get an error - this is better than the make working and boost not.
The error is it thinks I don't have a boost_serialization library, Code:
g++ -D__BARRY_BOOST_MODE__ -D_REENTRANT -I/usr/include -ansi -Wall -g -g -O2 -o .libs/btool btool-btool.o -L/usr/lib ../src/.libs/libbarry.so /usr/lib/libusb.so -lboost_serialization -lpthread |
Quote:
Code:
ls -l /usr/lib/libboost_serialization.* Code:
-rwxr-xr-x 1 root root 860768 Jan 23 04:06 /usr/lib/libboost_serialization.a |
thank you rivvie for all of your help. I got it working by using gutsy's packages.
|
All times are GMT -5. The time now is 02:58 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.