testuser2 / hadesmem

Automatically exported from code.google.com/p/hadesmem
0 stars 0 forks source link

Building HadesMem - Rev. 916 #6

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'm trying to build HadesMem against boost_1_45_0, this is my first time trying 
to use the Boost.Build system and the log file outputs the following. Any help 
would be appreciated. Thanks.

Notice: No Python configured in user-config.jam. Will use default configuration.
error: Unable to find file or target named
error:     '/boost//filesystem'
error: referred from project at
error:     'Src/Memory'

Original issue reported on code.google.com by brko...@gmail.com on 1 Feb 2011 at 2:25

GoogleCodeExporter commented 9 years ago
You need to instruct Boost.Build where to find various tools/libraries/etc. 
Currently the HadesMem library depends on Boost, the scripting bindings depend 
on Boost and Python, and the documentation depends on Boost.Quickbook and a few 
of its dependencies (see the Quickbook documetnation for where to download and 
install those).

In order to do this, you simply add these tools/libraries to your 
'user-config.jam' or 'site-config.jam' files. Consult the Boost.Build 
doucmentation for detailed information on these files (in the PDF it will be 
under Overview > Configuration).

For example, here is my user-config.jam file (which I store at "C:\Users\Josh", 
which is my profile directory). I've delimited it using "#####" so it's obvious 
what's part of the file:

#####
use-project /boost 
  : "C:/Users/Josh/Documents/Boost" 
  ;

using python 
  : 2.7 
  : "C:/Python27" 
  : 
  : 
  : <address-model>32 
  ;

using python 
  : 2.7 
  : "C:/Python27_64" 
  : 
  : 
  : <address-model>64 
  ;

using python 
  : 3.1 
  : "C:/Python31" 
  : 
  : 
  : <address-model>32 
  ;

using python 
  : 3.1 
  : "C:/Python31_64" 
  : 
  : 
  : <address-model>64 
  ;

using xsltproc 
  : "C:/Users/Josh/Documents/Boost-XML/bin/xsltproc.exe" 
  ;

using boostbook 
  : "C:/Users/Josh/Documents/Boost-XML/docbook-xsl" 
  : "C:/Users/Josh/Documents/Boost-XML/docbook-xml" 
  ;

using quickbook 
  : "C:/Users/Josh/Documents/Boost-XML/bin/quickbook.exe" 
  ;
#####

P.S. Sorry there is no documentation currently describing this process, I know 
it's difficult to set up if you're new to Boost.Build. Documentation is on the 
high priority list, it's just taking a while to get going.

Original comment by therapto...@gmail.com on 2 Feb 2011 at 9:19

GoogleCodeExporter commented 9 years ago

Original comment by therapto...@gmail.com on 2 Feb 2011 at 9:21

GoogleCodeExporter commented 9 years ago
Hi, Sorry for writing in an old topic
I have the same error, use boost 1_52_0

error: Unable to find file or target named
error:     '/boost//filesystem'
error: referred from project at
error:     'Src/Memory'

Any help would be appreciated. Thanks.

Original comment by KasiroP...@gmail.com on 20 Jan 2013 at 9:44

GoogleCodeExporter commented 9 years ago
What does your user-config.jam look like?

Original comment by raptorfactor@raptorfactor.com on 22 Jan 2013 at 9:56

GoogleCodeExporter commented 9 years ago
Here is:

# Copyright 2003, 2005 Douglas Gregor
# Copyright 2004 John Maddock
# Copyright 2002, 2003, 2004, 2007 Vladimir Prus
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or 
http://www.boost.org/LICENSE_1_0.txt)

#   This file is used to configure your Boost.Build installation. You can modify
# this file in place, or you can place it in a permanent location so that it
# does not get overwritten should you get a new version of Boost.Build. See:
#
#   http://www.boost.org/boost-build2/doc/html/bbv2/overview/configuration.html
#
# for documentation about possible permanent locations.

#   This file specifies which toolsets (C++ compilers), libraries, and other
# tools are available. Often, you should be able to just uncomment existing
# example lines and adjust them to taste. The complete list of supported tools,
# and configuration instructions can be found at:
#
#   http://boost.org/boost-build2/doc/html/bbv2/reference/tools.html
#

#   This file uses Jam language syntax to describe available tools. Mostly,
# there are 'using' lines, that contain the name of the used tools, and
# parameters to pass to those tools -- where paremeters are separated by
# semicolons. Important syntax notes:
#
#   - Both ':' and ';' must be separated from other tokens by whitespace
#   - The '\' symbol is a quote character, so when specifying Windows paths you
#     should use '/' or '\\' instead.
#
# More details about the syntax can be found at:
#
#   
http://boost.org/boost-build2/doc/html/bbv2/advanced.html#bbv2.advanced.jam_lang
uage
#

# ------------------
# GCC configuration.
# ------------------

# Configure gcc (default version).
# using gcc ;

# Configure specific gcc version, giving alternative name to use.
# using gcc : 3.2 : g++-3.2 ;

# -------------------
# MSVC configuration.
# -------------------

# Configure msvc (default version, searched for in standard locations and PATH).
# using msvc ;

# Configure specific msvc version (searched for in standard locations and PATH).
# using msvc : 8.0 ;

# ----------------------
# Borland configuration.
# ----------------------
# using borland ;

# ----------------------
# STLPort configuration.
# ----------------------

#   Configure specifying location of STLPort headers. Libraries must be either
# not needed or available to the compiler by default.
# using stlport : : /usr/include/stlport ;

# Configure specifying location of both headers and libraries explicitly.
# using stlport : : /usr/include/stlport /usr/lib ;

# -----------------
# QT configuration.
# -----------------

# Configure assuming QTDIR gives the installation prefix.
# using qt ;

# Configure with an explicit installation prefix.
# using qt : /usr/opt/qt ;

# ---------------------
# Python configuration.
# ---------------------

# Configure specific Python version.
# using python : 3.1 : /usr/bin/python3 : /usr/include/python3.1 : /usr/lib ;

Original comment by ZT.Kas...@gmail.com on 22 Jan 2013 at 7:01

GoogleCodeExporter commented 9 years ago
any ideas how to solve the problem?

Original comment by ZT.Kas...@gmail.com on 24 Jan 2013 at 9:59

GoogleCodeExporter commented 9 years ago
The solution is the same one that I gave in response to the original person 
with that problem.

You have not set the location of boost in your user-config.jam. You need to 
have a user-config.jam in your user directory, and it needs to contain the 
correct directives for the build system to locate Boost (and if appliciable, 
also Python and the Quickbook/Boostbook tools).

I understand this process is a bit difficult and confusing. It should hopefully 
be a bit better when I finish v2. For now however you do need to use a 
user-config or a site-config file.

Original comment by raptorfactor@raptorfactor.com on 25 Jan 2013 at 8:43