LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-25-2010, 07:18 AM   #1
Wed
Member
 
Registered: Sep 2005
Location: Sweden
Distribution: Slackware
Posts: 249

Rep: Reputation: 45
Could NOT find Boost


I am trying to compile and install the qt4-gui for Licq. The configure, or buildscript, don't end in an error. But on checking, it says
Code:
$ cmake -DCMAKE_INSTALL_PREFIX=/opt/licq/ ..
-- Could NOT find Boost
-- Found Licq include dir: /home/wed/licq-1.3.9/include
-- Configuring done
-- Generating done
-- Build files have been written to: /home/wed/licq-1.3.9/plugins/qt4-gui/build
bash-4.1$
The requirements state:
Quote:
Boost C++ Libraries >= 1.31.1. Portable and very useful C++ libraries, see http://www.boost.org/ for more information.
I have checked and my system holds boost-1.42.0-i486-1.txz. I even reinstalled it. The sources are downloaded from boost.org, so 1.43 is possible, but ought not to be necessary.

Do I need to specify some path?
 
Old 07-25-2010, 11:11 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,297

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Probably the pkgconfig path. The compile checks /usr/lib/pkgconfig, but if you installed in /usr/local, there might be a /usr/local/pkgconfig

Find pkgconfig directories, and try either specifying the pkgconfig path, or
cd /usr/lib(64)/pkgconfig
lndir /usr/local/lib/pkgconfig
lndir /opt/lib/pkgconfig
etc.
 
Old 07-25-2010, 12:20 PM   #3
Wed
Member
 
Registered: Sep 2005
Location: Sweden
Distribution: Slackware
Posts: 249

Original Poster
Rep: Reputation: 45
I compiled qt4 from source if that is of any help. But I installed qt3-compat from extra because of Qcad.

So a locate reports pkgconfig in:
  • /opt/kde3/lib/pkgconfig
  • /usr/lib/qt/lib/pkgconfig
  • /usr/lib/pkgconfig
  • /usr/share/pkgconfig

/usr/lib/pkgconfig holds by far the largest set of files. But as that directory is checked, wouldn't boost be found?
 
Old 07-25-2010, 06:25 PM   #4
larryhaja
Member
 
Registered: Jul 2008
Distribution: Slackware 13.1
Posts: 305

Rep: Reputation: 80
I just built licq 1.3.9 and Cmake reported the same thing about missing Boost. This is a full install and so I know I have Boost installed.

Looking inside CMakeLists.txt, Cmake is looking for a Boost component called smart_ptr. I have no idea what that is but there is an include directory inside /usr/include/boost called smart_ptr. I hacked CMakeLists.txt so that it just generically looks for Boost and Cmake reported that it found Boost but it doesn't look like it does anything.

However, even if Cmake finds boost or not for the qt4-gui I was still able to build licq as well as the qt4-gui plugin. So, whatever Cmake reports it seems to be irrelevant.
 
Old 07-26-2010, 02:54 AM   #5
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,297

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Will you post the exact error please, and we can see about sorting this?
 
Old 07-26-2010, 12:07 PM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
I have checked with boost 1.38 and 1.42 :

readelf -s /usr/lib/libboost_* | grep -i smart

My first guess was for a symbol not included in the "new boost".
But no luck with any of those versions.
So I don't know, what it could mean.

But : A Makefile is generated and 'make' = No errors.
( No boost is used.)

I looked into the licq.spec in licq-1.3.9-1.17.src.rpm
http://download.opensuse.org/source/...9-1.17.src.rpm
There are no workarounds for the qt-gui, I think.
So may be "Could NOT find Boost" is just to be ignored.
..
P.S. : #5 @business_kid : The exact error is : "Could NOT find Boost".
..

Last edited by knudfl; 07-26-2010 at 12:10 PM.
 
Old 07-27-2010, 08:59 AM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
.. Sorry ..

Last edited by knudfl; 07-27-2010 at 09:00 AM.
 
Old 07-27-2010, 10:15 AM   #8
tuxdev
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 2,012

Rep: Reputation: 115Reputation: 115
The reason is that CMake doesn't know about Boost 1.42.0, only up to 1.41.0. Try putting this in the CMakeLists.txt:
Code:
SET(Boost_ADDITIONAL_VERSIONS "1.42" "1.42.0")
 
Old 07-27-2010, 04:22 PM   #9
selfprogrammed
Member
 
Registered: Jan 2010
Location: Minnesota, USA
Distribution: Slackware 13.37, 14.2, 15.0
Posts: 635

Rep: Reputation: 154Reputation: 154
This is not going to be of much help. I tried to install the latest Boost
(Several times Jan..Apr 2010) and it would give error messages during compile (like 147 error messages). I could never get the program that needed it to recognize the incomplete library that did compile. Contacting the Boost team was futile.
I was using an older kernel and they would not help with any information so I could fix the incompatibility myself. When asked "Do you really want to support every port yourself" they replied "yes" and that they did not want anyone else messing around in the port configuration files, apparently not even on their own machine (etc. it went on for awhile).

If this is not the latest kernel, then it may not work, and you will not
get help about older kernels.

I think something in the installation is terribly fragile and may depend on which distribution you are using.

I gave up on Boost, but am now installing a new Slackware where it seems to come included, so maybe this one will work.

Sorry this is so negative, but I just pass this on so others know what
has been tried already.
 
Old 07-27-2010, 08:00 PM   #10
larryhaja
Member
 
Registered: Jul 2008
Distribution: Slackware 13.1
Posts: 305

Rep: Reputation: 80
Quote:
Originally Posted by tuxdev View Post
The reason is that CMake doesn't know about Boost 1.42.0, only up to 1.41.0. Try putting this in the CMakeLists.txt:
Code:
SET(Boost_ADDITIONAL_VERSIONS "1.42" "1.42.0")
That won't do anything. If simply replacing
Code:
find_package(Boost 1.31.1 COMPONENTS smart_ptr)
with
Code:
find_package(Boost)
then it will find the correct Boost version. The problem is searching for the smart_ptr component of Boost fails during configure.
 
Old 07-28-2010, 02:53 AM   #11
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,297

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
FWIW, I have boost installed (slackpkg) here and it did not seem to write a pkgconfig file anywhere.That could be part of the problem.
 
Old 07-28-2010, 04:16 AM   #12
Martinezio
Member
 
Registered: May 2009
Location: Warsaw, Poland
Distribution: Slackware64-current
Posts: 191

Rep: Reputation: 32
Yes, You can't use pkgconfig for boost presence detection, because boost don't ship pc file .
Try to figure out, how licq cmake script detect boost presence, but I think, that he's looking for library files in standard locations (ie. /usr/lib, /usr/local/lib) _and_ for boost headers in common locations.

Try to update Your ld cache, and look in common location for libboost* and include/boost

 
Old 07-28-2010, 06:19 AM   #13
Wed
Member
 
Registered: Sep 2005
Location: Sweden
Distribution: Slackware
Posts: 249

Original Poster
Rep: Reputation: 45
It was a few days ago I checked this thread last. Sorry about that. I wrote to the licq dev-list. They might have an idea.
 
Old 07-28-2010, 02:47 PM   #14
Wed
Member
 
Registered: Sep 2005
Location: Sweden
Distribution: Slackware
Posts: 249

Original Poster
Rep: Reputation: 45
Erik the dev, responded like this:
Quote:
The CMakeLists.txt for qt4-gui in 1.3.9 has this line:
find_package(Boost 1.31.1 COMPONENTS smart_ptr)

This is an error. Since smart_ptr is a header-only component it should
not be searched for using COMPONENTS since this only works for boost
components that have a library.

I have now changed (in r7729) this line to:
find_package(Boost 1.31.1)

Which is what we already have on trunk. It should be noted that as
long as it compiles you can safely ignore the Boost NOT found error.
If you have problem building qt4-gui, please try changing the line as
indicated above.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Wesnoth won't find boost headers >= 1.33 guille4ty Linux - Software 10 08-08-2008 01:05 AM
configure: error: Could not find Boost headers version >= 1.33 ????? BULPulse Slackware 2 03-11-2008 04:35 PM
Where to find C++ examples using boost:thread shreks Programming 4 09-06-2006 05:24 AM
g++ and boost problem mixx Programming 1 07-20-2005 12:53 PM
Boost threading brianvdc Programming 1 10-16-2003 04:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration