LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 11-14-2009, 10:26 PM   #1
Metal_Koola
LQ Newbie
 
Registered: Nov 2009
Posts: 3

Rep: Reputation: 0
Compilation errors with compiling a program with boost libraries 1.39


Hello, I am trying to compile an C++ program on Linux(Most distros) called GHost One. Some Linux distributions have problems with the makefile not containing the correct references to boost libraries. Is there a way to add something to the makefile to fix this, or to anything else?
If it makes any difference I compiled boost by:
Code:
wget http://ihigh.myvnc.com/koola_project/boost_1_39_0.tar.gz2
tar xjf boost_1_39_0.tar.gz2
cd boost_1_39_0
./boostrap.sh --with-libraries=filesystem,program_options,system,regex,thread,date_time --libdir=/usr/lib/
./bjam
./bjam install
It usually comes up with errors(during compilation of program)of something like: Missing Filesystem.hpp and other boost libs.

I know that one way is to find out the exact names of the boost lib .so files and using them by
Code:
ls -l /usr/lib/libboost*.so
and using the result names in the makefile but I'd like to somehow make it easier.
 
Old 12-01-2009, 05:28 PM   #2
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
Welcome to LQ.

Which Linux are you using ?
Like Fedora 11, Ubuntu 9.04, CentOS 5.4 .

And please provide a valid link to Ghost_One

.....
 
Old 12-01-2009, 06:33 PM   #3
neonsignal
Senior Member
 
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Bookworm (Fluxbox WM)
Posts: 1,391
Blog Entries: 54

Rep: Reputation: 360Reputation: 360Reputation: 360Reputation: 360
If you are building your own version of boost (instead of using the one that is in the repository for your distro), you need the header files to be accessible by the compiler. This means that they will need to be somewhere like /usr/include or /usr/local/include.

You could make a symbolic link from the boost headers directory to '/usr/include/boost', or use compiler flags so that the headers can be found. For example, you might move the headers to /usr/include/boost_1-39 and then make a symbolic link to /usr/include/boost.

Last edited by neonsignal; 12-01-2009 at 06:36 PM.
 
Old 12-02-2009, 05:09 AM   #4
Metal_Koola
LQ Newbie
 
Registered: Nov 2009
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by knudfl View Post
Welcome to LQ.
And please provide a valid link to Ghost_One
.....
Sorry forum had an breakdown and link changed.
http://www.codelain.com/forum/index.php
Quote:
Originally Posted by knudfl View Post
Which Linux are you using ?
Like Fedora 11, Ubuntu 9.04, CentOS 5.4 .
All distros, since it's supposed to be able to be compiled in every Linux.

Quote:
If you are building your own version of boost (instead of using the one that is in the repository for your distro), you need the header files to be accessible by the compiler. This means that they will need to be somewhere like /usr/include or /usr/local/include.

You could make a symbolic link from the boost headers directory to '/usr/include/boost', or use compiler flags so that the headers can be found. For example, you might move the headers to /usr/include/boost_1-39 and then make a symbolic link to /usr/include/boost.
Kinda have to, It needs Boost 1.36 or newer, and most distro repos come with 1.34
 
Old 12-03-2009, 11:53 AM   #5
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
So where are the headers hiding ?

Example using headers in e.g.
/usr/local/include/boost_1-39/boost/<files.hpp> :

1) cd /usr/local/include/
2) su
3) ln -s boost_1-39/boost/

... which will create /usr/local/include/boost
.....
.....

P.S. : I am still interested in a link to the software,
and an exact file / package name. Chop++ ? ?
.....

Last edited by knudfl; 12-03-2009 at 12:05 PM.
 
Old 12-04-2009, 07:13 PM   #6
Metal_Koola
LQ Newbie
 
Registered: Nov 2009
Posts: 3

Original Poster
Rep: Reputation: 0
http://maxdevlon.com/ghost/GHostOne1.6.262.zip
 
  


Reply

Tags
boost139, compile error



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
Boost 1.39 Libraries on RHEL 5 gilly1409 Linux - Newbie 4 07-28-2009 12:52 AM
Problems compiling kernel, after compilation modprobe errors! q6z4k Linux - Newbie 2 06-18-2006 05:04 AM
my first C++ program, errors while compiling lu543285 Programming 11 09-26-2004 03:42 AM
Major compilation errors in emacs while compiling c code dualcyclone Linux - Software 0 03-26-2004 01:31 PM
cryptic errors compiling simplest C program code_noc Slackware 4 10-06-2003 08:38 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:12 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