Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fatal error: boost/config.hpp #17

Closed
EoAelinr opened this issue Sep 30, 2019 · 4 comments
Closed

fatal error: boost/config.hpp #17

EoAelinr opened this issue Sep 30, 2019 · 4 comments
Labels
question Further information is requested

Comments

@EoAelinr
Copy link

EoAelinr commented Sep 30, 2019

Hi,

Following the installation instructions, I strumble upon an error (fatal error: boost/config.hpp) when calling make

locate boost/config.hpp outputs

/home/oliviern/Software/anaconda2/pkgs/libboost-1.65.1-habcd387_4/include/boost/config.hpp
/home/oliviern/Software/anaconda3/envs/coma/include/boost/config.hpp
/home/oliviern/Software/anaconda3/pkgs/libboost-1.67.0-h46d08c1_4/include/boost/config.hpp
/usr/include/boost/config.hpp
/usr/local/cuda-10.1/samples/6_Advanced/interval/boost/config.hpp
/usr/local/cuda-8.0/samples/6_Advanced/interval/boost/config.hpp

echo $BOOST_ROOT outputs
/usr/include/boost

What could explain this behavior ?

I have no issue compiling with g++ test.cpp a test.cpp file containing

#include <boost/config.hpp>
#include <iostream>
int main() {
	std::cout << "test" << std::endl;
}

Here is the full error :

\033[0;36m
********
********
******** mesh_package : Building the virtualenv for installation
********
********
\033[0m
Running virtualenv with interpreter /home/username/Software/anaconda3/envs/facet/bin/python2
New python executable in /home/username/Software/mesh/temporary_test/venv/bin/python2
Not overwriting existing python script /home/username/Software/mesh/temporary_test/venv/bin/python (you must use /home/username/Software/mesh/temporary_test/venv/bin/python2)
Installing setuptools, pkg_resources, pip, wheel...done.
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Requirement already up-to-date: pip in ./temporary_test/venv/lib/python2.7/site-packages (19.2.3)
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Requirement already up-to-date: virtualenv in ./temporary_test/venv/lib/python2.7/site-packages (16.7.5)
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Requirement already satisfied: nose2 in ./temporary_test/venv/lib/python2.7/site-packages (0.9.1)
Requirement already satisfied: coverage>=4.4.1 in ./temporary_test/venv/lib/python2.7/site-packages (from nose2) (4.5.4)
Requirement already satisfied: mock==2.0.0; python_version < "3.6" in ./temporary_test/venv/lib/python2.7/site-packages (from nose2) (2.0.0)
Requirement already satisfied: six>=1.7 in /home/username/Software/anaconda3/envs/facet/lib/python2.7/site-packages (from nose2) (1.12.0)
Requirement already satisfied: funcsigs>=1; python_version < "3.3" in /home/username/Software/anaconda3/envs/facet/lib/python2.7/site-packages (from mock==2.0.0; python_version < "3.6"->nose2) (1.0.2)
Requirement already satisfied: pbr>=0.11 in ./temporary_test/venv/lib/python2.7/site-packages (from mock==2.0.0; python_version < "3.6"->nose2) (5.4.3)
/home/username/Software/mesh/temporary_test/venv/bin/pip
pip 19.2.3 from /home/username/Software/mesh/temporary_test/venv/lib/python2.7/site-packages/pip (python 2.7)
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Requirement already up-to-date: setuptools in ./temporary_test/venv/lib/python2.7/site-packages (41.2.0)
/home/username/Software/mesh/temporary_test/venv/bin/pip
pip 19.2.3 from /home/username/Software/mesh/temporary_test/venv/lib/python2.7/site-packages/pip (python 2.7)
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Requirement already up-to-date: wheel in ./temporary_test/venv/lib/python2.7/site-packages (0.33.6)
/home/username/Software/mesh/temporary_test/venv/bin/pip
pip 19.2.3 from /home/username/Software/mesh/temporary_test/venv/lib/python2.7/site-packages/pip (python 2.7)
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Requirement already satisfied: numpy in /home/username/Software/anaconda3/envs/facet/lib/python2.7/site-packages (1.15.4)
Requirement already satisfied: scipy in /home/username/Software/anaconda3/envs/facet/lib/python2.7/site-packages (0.19.1)
Requirement already satisfied: pyopengl in /home/username/Software/anaconda3/envs/facet/lib/python2.7/site-packages (3.1.0)
Requirement already satisfied: pillow in /home/username/Software/anaconda3/envs/facet/lib/python2.7/site-packages (4.2.1)
Requirement already satisfied: pyzmq in /home/username/Software/anaconda3/envs/facet/lib/python2.7/site-packages (17.1.2)
Requirement already satisfied: pyyaml in /home/username/Software/anaconda3/envs/facet/lib/python2.7/site-packages (3.13)
Requirement already satisfied: olefile in /home/username/Software/anaconda3/envs/facet/lib/python2.7/site-packages (from pillow) (0.46)
/home/username/Software/mesh/temporary_test/venv/bin/pip
pip 19.2.3 from /home/username/Software/mesh/temporary_test/venv/lib/python2.7/site-packages/pip (python 2.7)
####### PACKAGE: creating SDIST target
\033[0;33m----- [ mesh_package ] Creating the source distribution\033[0m
[VERSION] read version is 0.1
running sdist
running check
warning: sdist: manifest template 'MANIFEST.in' does not exist (using default file list)

warning: sdist: standard file not found: should have one of README, README.txt

writing manifest file 'MANIFEST'
[SDIST] file list is:
[SDIST] 	"setup.py"
[SDIST] 	"mesh/__init__.py"
[SDIST] 	"mesh/arcball.py"
[SDIST] 	"mesh/colors.py"
[SDIST] 	"mesh/errors.py"
[SDIST] 	"mesh/fonts.py"
[SDIST] 	"mesh/landmarks.py"
[SDIST] 	"mesh/lines.py"
[SDIST] 	"mesh/mesh.py"
[SDIST] 	"mesh/meshviewer.py"
[SDIST] 	"mesh/processing.py"
[SDIST] 	"mesh/search.py"
[SDIST] 	"mesh/sphere.py"
[SDIST] 	"mesh/texture.py"
[SDIST] 	"mesh/utils.py"
[SDIST] 	"mesh/version.py"
[SDIST] 	"mesh/geometry/__init__.py"
[SDIST] 	"mesh/geometry/barycentric_coordinates_of_projection.py"
[SDIST] 	"mesh/geometry/cross_product.py"
[SDIST] 	"mesh/geometry/rodrigues.py"
[SDIST] 	"mesh/geometry/tri_normals.py"
[SDIST] 	"mesh/geometry/triangle_area.py"
[SDIST] 	"mesh/geometry/vert_normals.py"
[SDIST] 	"mesh/serialization/__init__.py"
[SDIST] 	"mesh/serialization/serialization.py"
[SDIST] 	"mesh/src/aabb_normals.cpp"
[SDIST] 	"mesh/src/plyutils.c"
[SDIST] 	"mesh/src/py_loadobj.cpp"
[SDIST] 	"mesh/src/py_visibility.cpp"
[SDIST] 	"mesh/src/rply.c"
[SDIST] 	"mesh/src/spatialsearchmodule.cpp"
[SDIST] 	"mesh/src/visibility.cpp"
[SDIST] 	"mesh/topology/__init__.py"
[SDIST] 	"mesh/topology/connectivity.py"
[SDIST] 	"mesh/topology/decimation.py"
[SDIST] 	"mesh/topology/linear_mesh_transform.py"
[SDIST] 	"mesh/topology/subdivision.py"
[SDIST] 	"psbody-mesh-namespace/__init__.py"
[SDIST] 	"mesh/thirdparty/CGAL-4.7.tar.gz"
[SDIST] 	"tests/test_aabb_n_tree.py"
[SDIST] 	"tests/unittest_extensions.py"
[SDIST] 	"tests/test_topology.py"
[SDIST] 	"tests/test_arcball.py"
[SDIST] 	"tests/test_visibility.py"
[SDIST] 	"tests/__init__.py"
[SDIST] 	"tests/test_meshviewer.py"
[SDIST] 	"tests/test_geometry.py"
[SDIST] 	"tests/test_mesh.py"
[SDIST] 	"tests/test_spheres.py"
creating psbody-mesh-0.1
creating psbody-mesh-0.1/mesh
creating psbody-mesh-0.1/mesh/geometry
creating psbody-mesh-0.1/mesh/serialization
creating psbody-mesh-0.1/mesh/src
creating psbody-mesh-0.1/mesh/thirdparty
creating psbody-mesh-0.1/mesh/topology
creating psbody-mesh-0.1/psbody-mesh-namespace
creating psbody-mesh-0.1/tests
making hard links in psbody-mesh-0.1...
hard linking setup.py -> psbody-mesh-0.1
hard linking mesh/__init__.py -> psbody-mesh-0.1/mesh
hard linking mesh/arcball.py -> psbody-mesh-0.1/mesh
hard linking mesh/colors.py -> psbody-mesh-0.1/mesh
hard linking mesh/errors.py -> psbody-mesh-0.1/mesh
hard linking mesh/fonts.py -> psbody-mesh-0.1/mesh
hard linking mesh/landmarks.py -> psbody-mesh-0.1/mesh
hard linking mesh/lines.py -> psbody-mesh-0.1/mesh
hard linking mesh/mesh.py -> psbody-mesh-0.1/mesh
hard linking mesh/meshviewer.py -> psbody-mesh-0.1/mesh
hard linking mesh/processing.py -> psbody-mesh-0.1/mesh
hard linking mesh/search.py -> psbody-mesh-0.1/mesh
hard linking mesh/sphere.py -> psbody-mesh-0.1/mesh
hard linking mesh/texture.py -> psbody-mesh-0.1/mesh
hard linking mesh/utils.py -> psbody-mesh-0.1/mesh
hard linking mesh/version.py -> psbody-mesh-0.1/mesh
hard linking mesh/geometry/__init__.py -> psbody-mesh-0.1/mesh/geometry
hard linking mesh/geometry/barycentric_coordinates_of_projection.py -> psbody-mesh-0.1/mesh/geometry
hard linking mesh/geometry/cross_product.py -> psbody-mesh-0.1/mesh/geometry
hard linking mesh/geometry/rodrigues.py -> psbody-mesh-0.1/mesh/geometry
hard linking mesh/geometry/tri_normals.py -> psbody-mesh-0.1/mesh/geometry
hard linking mesh/geometry/triangle_area.py -> psbody-mesh-0.1/mesh/geometry
hard linking mesh/geometry/vert_normals.py -> psbody-mesh-0.1/mesh/geometry
hard linking mesh/serialization/__init__.py -> psbody-mesh-0.1/mesh/serialization
hard linking mesh/serialization/serialization.py -> psbody-mesh-0.1/mesh/serialization
hard linking mesh/src/aabb_normals.cpp -> psbody-mesh-0.1/mesh/src
hard linking mesh/src/plyutils.c -> psbody-mesh-0.1/mesh/src
hard linking mesh/src/py_loadobj.cpp -> psbody-mesh-0.1/mesh/src
hard linking mesh/src/py_visibility.cpp -> psbody-mesh-0.1/mesh/src
hard linking mesh/src/rply.c -> psbody-mesh-0.1/mesh/src
hard linking mesh/src/spatialsearchmodule.cpp -> psbody-mesh-0.1/mesh/src
hard linking mesh/src/visibility.cpp -> psbody-mesh-0.1/mesh/src
hard linking mesh/topology/__init__.py -> psbody-mesh-0.1/mesh/topology
hard linking mesh/topology/connectivity.py -> psbody-mesh-0.1/mesh/topology
hard linking mesh/topology/decimation.py -> psbody-mesh-0.1/mesh/topology
hard linking mesh/topology/linear_mesh_transform.py -> psbody-mesh-0.1/mesh/topology
hard linking mesh/topology/subdivision.py -> psbody-mesh-0.1/mesh/topology
hard linking psbody-mesh-namespace/__init__.py -> psbody-mesh-0.1/psbody-mesh-namespace
hard linking mesh/thirdparty/CGAL-4.7.tar.gz -> psbody-mesh-0.1/mesh/thirdparty
hard linking tests/test_aabb_n_tree.py -> psbody-mesh-0.1/tests
hard linking tests/unittest_extensions.py -> psbody-mesh-0.1/tests
hard linking tests/test_topology.py -> psbody-mesh-0.1/tests
hard linking tests/test_arcball.py -> psbody-mesh-0.1/tests
hard linking tests/test_visibility.py -> psbody-mesh-0.1/tests
hard linking tests/__init__.py -> psbody-mesh-0.1/tests
hard linking tests/test_meshviewer.py -> psbody-mesh-0.1/tests
hard linking tests/test_geometry.py -> psbody-mesh-0.1/tests
hard linking tests/test_mesh.py -> psbody-mesh-0.1/tests
hard linking tests/test_spheres.py -> psbody-mesh-0.1/tests
Creating tar archive
removing 'psbody-mesh-0.1' (and everything under it)
####### PACKAGE: creating WHEEL target
\033[0;33m----- [ mesh_package ] Creating the wheel distribution\033[0m
[VERSION] read version is 0.1
running bdist_wheel
running build
running build_py
not copying psbody-mesh-namespace/__init__.py (output up-to-date)
not copying mesh/mesh.py (output up-to-date)
not copying mesh/meshviewer.py (output up-to-date)
not copying mesh/sphere.py (output up-to-date)
not copying mesh/landmarks.py (output up-to-date)
not copying mesh/errors.py (output up-to-date)
not copying mesh/colors.py (output up-to-date)
not copying mesh/fonts.py (output up-to-date)
not copying mesh/arcball.py (output up-to-date)
not copying mesh/utils.py (output up-to-date)
not copying mesh/texture.py (output up-to-date)
not copying mesh/__init__.py (output up-to-date)
not copying mesh/processing.py (output up-to-date)
not copying mesh/search.py (output up-to-date)
not copying mesh/version.py (output up-to-date)
not copying mesh/lines.py (output up-to-date)
not copying mesh/topology/linear_mesh_transform.py (output up-to-date)
not copying mesh/topology/decimation.py (output up-to-date)
not copying mesh/topology/subdivision.py (output up-to-date)
not copying mesh/topology/connectivity.py (output up-to-date)
not copying mesh/topology/__init__.py (output up-to-date)
not copying mesh/geometry/tri_normals.py (output up-to-date)
not copying mesh/geometry/cross_product.py (output up-to-date)
not copying mesh/geometry/triangle_area.py (output up-to-date)
not copying mesh/geometry/vert_normals.py (output up-to-date)
not copying mesh/geometry/barycentric_coordinates_of_projection.py (output up-to-date)
not copying mesh/geometry/__init__.py (output up-to-date)
not copying mesh/geometry/rodrigues.py (output up-to-date)
not copying mesh/serialization/serialization.py (output up-to-date)
not copying mesh/serialization/__init__.py (output up-to-date)
running build_ext
[CGAL] deflating cgal from "mesh/thirdparty/CGAL-4.7.tar.gz" to "/home/username/Software/mesh/build/temp.linux-x86_64-2.7"
building 'psbody.mesh.aabb_normals' extension
/home/username/Software/anaconda3/envs/facet/bin/x86_64-conda_cos6-linux-gnu-cc -DNDEBUG -fwrapv -O3 -Wall -Wstrict-prototypes -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -fPIC -DNDEBUG=1 -DCGAL_NDEBUG=1 -DMESH_CGAL_AVOID_COMPILED_VERSION=1 -DCGAL_HAS_NO_THREADS=1 -DCGAL_NO_AUTOLINK_CGAL=1 -Imesh/src -I/home/username/Software/anaconda3/envs/facet/lib/python2.7/site-packages/numpy/core/include -I/home/username/Software/mesh/build/temp.linux-x86_64-2.7/CGAL-4.7/include -I/home/username/Software/anaconda3/envs/facet/include/python2.7 -c mesh/src/aabb_normals.cpp -o build/temp.linux-x86_64-2.7/mesh/src/aabb_normals.o -O3 -fopenmp
cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
In file included from /home/username/Software/anaconda3/envs/facet/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1823:0,
                 from /home/username/Software/anaconda3/envs/facet/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:18,
                 from /home/username/Software/anaconda3/envs/facet/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,
                 from mesh/src/aabb_normals.cpp:7:
/home/username/Software/anaconda3/envs/facet/lib/python2.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
 #warning "Using deprecated NumPy API, disable it by " \
  ^~~~~~~
In file included from /home/username/Software/mesh/build/temp.linux-x86_64-2.7/CGAL-4.7/include/CGAL/Profile_counter.h:53:0,
                 from /home/username/Software/mesh/build/temp.linux-x86_64-2.7/CGAL-4.7/include/CGAL/internal/AABB_tree/AABB_node.h:24,
                 from /home/username/Software/mesh/build/temp.linux-x86_64-2.7/CGAL-4.7/include/CGAL/internal/AABB_tree/AABB_traversal_traits.h:24,
                 from /home/username/Software/mesh/build/temp.linux-x86_64-2.7/CGAL-4.7/include/CGAL/AABB_tree.h:26,
                 from mesh/src/AABB_n_tree.h:12,
                 from mesh/src/aabb_normals.cpp:13:
/home/username/Software/mesh/build/temp.linux-x86_64-2.7/CGAL-4.7/include/CGAL/config.h:85:10: fatal error: boost/config.hpp: No such file or directory
 #include <boost/config.hpp>
          ^~~~~~~~~~~~~~~~~~
compilation terminated.
error: command '/home/username/Software/anaconda3/envs/facet/bin/x86_64-conda_cos6-linux-gnu-cc' failed with exit status 1
Makefile:48: recipe for target 'temporary_test/package_creation' failed
make: *** [temporary_test/package_creation] Error 1
@EoAelinr
Copy link
Author

I solved the problem by using sudo make instead of make.
Unsure if that it meant to be done.

@ioreshnikov
Copy link
Collaborator

@EoAelinr Hi! Sorry for the late reply. Glad that you found a workaround, but to properly figure out what is going on can you please try the default installation process outside of anaconda environment? I have a suspicion that conda might mess up some of the path variables used by the installation process.

@ioreshnikov ioreshnikov added the question Further information is requested label Apr 6, 2020
@jcpassy
Copy link
Member

jcpassy commented Apr 6, 2020

Hi @EoAelinr and @ioreshnikov ,
I think the issue is due to your BOOST_PATH environment variable, which is one level too deep I believe. Could you please try:
BOOST_ROOT=/usr/include make all

and let us know?
Also, please use Python 3. Python 2.7 is not supported anymore.

@jcpassy jcpassy closed this as completed May 28, 2020
jcpassy added a commit that referenced this issue May 28, 2020
…onal minor updates of the README, the Makefile, the documentation, and the .gitignore.

(cherry picked from commit da99787)
jcpassy added a commit that referenced this issue May 28, 2020
* issues/BGS-393-github-issues:
  Added matplotlib requirement.
  Added a `meshviewer` utility. One now can view the remote meshes.
  Sleep on server, not on client.
  Fixed the snapshot issue, due to a race condition. We now wait a bit after starting the saving process.
  Fixed bug when deleting a MeshViewers: the subprocess was not correctly terminated. Additional: * changed the default behavior of a MeshViewers to keepalive=True.
  BOOST_ROOT renamed BOOST_INCLUDE_DIRS for clarity (issue #17). Additional minor updates of the README, the Makefile, the documentation, and the .gitignore.
@HoBeedzc
Copy link

I solved the problem by using sudo make instead of make. Unsure if that it meant to be done.

it's seems that work for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants