I have tried to compile this software " opencamlib " but I have received this error, the developer has said that the problem for this error is with something in the installation of boost not is correct. the url: My packages installed for compiling opencamlib are dev-lang/python-2.6.5 dev-libs/boost-1.41.0-r3 The error : make [ 4%] Building CXX object CMakeFiles/ocl.dir/arc.o [ 8%] Building CXX object CMakeFiles/ocl.dir/ballcutter.o In file included from /usr/include/boost-1_41/boost/python/detail/wrap_python.hpp:50, from /usr/include/boost-1_41/boost/python/detail/prefix.hpp:13, from /usr/include/boost-1_41/boost/python/args.hpp:8, from /usr/include/boost-1_41/boost/python.hpp:11, from /usr/local/src/work-cnc/HeeksCAD/HeeksCNC/opencamlib/src/millingcutter.h:28, from /usr/local/src/work-cnc/HeeksCAD/HeeksCNC/opencamlib/src/ballcutter.cpp:28: /usr/include/python2.6/pyconfig.h:1067:1: warning: "_POSIX_C_SOURCE" redefined In file included from /usr/lib/gcc/i686-pc-linux-gnu/4.3.4/include/g++-v4/i686-pc-linux-gnu/bits/os_defines.h:44, from /usr/lib/gcc/i686-pc-linux-gnu/4.3.4/include/g++-v4/i686-pc-linux-gnu/bits/c++config.h:40, from /usr/lib/gcc/i686-pc-linux-gnu/4.3.4/include/g++-v4/cstddef:48, from /usr/include/boost-1_41/boost/foreach.hpp:26, from /usr/local/src/work-cnc/HeeksCAD/HeeksCNC/opencamlib/src/ballcutter.cpp:26: /usr/include/features.h:158:1: warning: this is the location of the previous definition In file included from /usr/include/boost-1_41/boost/python/detail/wrap_python.hpp:50, from /usr/include/boost-1_41/boost/python/detail/prefix.hpp:13, from /usr/include/boost-1_41/boost/python/args.hpp:8, from /usr/include/boost-1_41/boost/python.hpp:11, from /usr/local/src/work-cnc/HeeksCAD/HeeksCNC/opencamlib/src/millingcutter.h:28, from /usr/local/src/work-cnc/HeeksCAD/HeeksCNC/opencamlib/src/ballcutter.cpp:28: /usr/include/python2.6/pyconfig.h:1079:1: warning: "_XOPEN_SOURCE" redefined In file included from /usr/lib/gcc/i686-pc-linux-gnu/4.3.4/include/g++-v4/i686-pc-linux-gnu/bits/os_defines.h:44, from /usr/lib/gcc/i686-pc-linux-gnu/4.3.4/include/g++-v4/i686-pc-linux-gnu/bits/c++config.h:40, from /usr/lib/gcc/i686-pc-linux-gnu/4.3.4/include/g++-v4/cstddef:48, from /usr/include/boost-1_41/boost/foreach.hpp:26, from /usr/local/src/work-cnc/HeeksCAD/HeeksCNC/opencamlib/src/ballcutter.cpp:26: /usr/include/features.h:160:1: warning: this is the location of the previous definition [ 12%] Building CXX object CMakeFiles/ocl.dir/batchdropcutter.o In file included from /usr/include/boost-1_41/boost/python/detail/wrap_python.hpp:50, from /usr/include/boost-1_41/boost/python/detail/prefix.hpp:13, from /usr/include/boost-1_41/boost/python/args.hpp:8, from /usr/include/boost-1_41/boost/python.hpp:11, from /usr/local/src/work-cnc/HeeksCAD/HeeksCNC/opencamlib/src/millingcutter.h:28, from /usr/local/src/work-cnc/HeeksCAD/HeeksCNC/opencamlib/src/batchdropcutter.cpp:30: /usr/include/python2.6/pyconfig.h:1067:1: warning: "_POSIX_C_SOURCE" redefined In file included from /usr/lib/gcc/i686-pc-linux-gnu/4.3.4/include/g++-v4/i686-pc-linux-gnu/bits/os_defines.h:44, from /usr/lib/gcc/i686-pc-linux-gnu/4.3.4/include/g++-v4/i686-pc-linux-gnu/bits/c++config.h:40, from /usr/lib/gcc/i686-pc-linux-gnu/4.3.4/include/g++-v4/cstddef:48, from /usr/include/boost-1_41/boost/foreach.hpp:26, from /usr/local/src/work-cnc/HeeksCAD/HeeksCNC/opencamlib/src/batchdropcutter.cpp:25: /usr/include/features.h:158:1: warning: this is the location of the previous definition In file included from /usr/include/boost-1_41/boost/python/detail/wrap_python.hpp:50, from /usr/include/boost-1_41/boost/python/detail/prefix.hpp:13, from /usr/include/boost-1_41/boost/python/args.hpp:8, from /usr/include/boost-1_41/boost/python.hpp:11, from /usr/local/src/work-cnc/HeeksCAD/HeeksCNC/opencamlib/src/millingcutter.h:28, from /usr/local/src/work-cnc/HeeksCAD/HeeksCNC/opencamlib/src/batchdropcutter.cpp:30: /usr/include/python2.6/pyconfig.h:1079:1: warning: "_XOPEN_SOURCE" redefined In file included from /usr/lib/gcc/i686-pc-linux-gnu/4.3.4/include/g++-v4/i686-pc-linux-gnu/bits/os_defines.h:44, from /usr/lib/gcc/i686-pc-linux-gnu/4.3.4/include/g++-v4/i686-pc-linux-gnu/bits/c++config.h:40, from /usr/lib/gcc/i686-pc-linux-gnu/4.3.4/include/g++-v4/cstddef:48, from /usr/include/boost-1_41/boost/foreach.hpp:26, from /usr/local/src/work-cnc/HeeksCAD/HeeksCNC/opencamlib/src/batchdropcutter.cpp:25: /usr/include/features.h:160:1: warning: this is the location of the previous definition /usr/local/src/work-cnc/HeeksCAD/HeeksCNC/opencamlib/src/batchdropcutter.cpp: In member function ‘void ocl::BatchDropCutter::dropCutter4()’: /usr/local/src/work-cnc/HeeksCAD/HeeksCNC/opencamlib/src/batchdropcutter.cpp:186: error: ‘cutref’ is predetermined ‘shared’ for ‘shared’ /usr/local/src/work-cnc/HeeksCAD/HeeksCNC/opencamlib/src/batchdropcutter.cpp:186: error: ‘ccref’ is predetermined ‘shared’ for ‘shared’ /usr/local/src/work-cnc/HeeksCAD/HeeksCNC/opencamlib/src/batchdropcutter.cpp:186: error: ‘clref’ is predetermined ‘shared’ for ‘shared’ /usr/local/src/work-cnc/HeeksCAD/HeeksCNC/opencamlib/src/batchdropcutter.cpp:187: warning: iteration variable ‘n’ is unsigned make[2]: *** [CMakeFiles/ocl.dir/batchdropcutter.o] Error 1 make[1]: *** [CMakeFiles/ocl.dir/all] Error 2 make: *** [all] Error 2 thanks, salvarane.
Seeing that this package is NOT in portage, wouldn't the forum be a better place for this *question* ? The other part is, that the error doesn't look as if it had anything to do with boost - it comes from this line: #pragma omp parallel for shared( calls, clref, ccref, cutref) private(n,t,tris,it,cc)
As said, this package is not in our portage so we cannot actively support it Please contact the ebuild author or the overlay from which you got this package
(In reply to comment #1) > Seeing that this package is NOT in portage, > wouldn't the forum be a better place for this *question* ? > > The other part is, that the error doesn't look as if it had anything to do with > boost - it comes from this line: > #pragma omp parallel for shared( calls, clref, ccref, cutref) > private(n,t,tris,it,cc) > Many thanks for your patience, sorry for my location for this message, but the developers for this package "opencamlib" they have told me who this package successfully compile on ubuntu 10.04LTS . In this moment I have suggest to manager of the opencamlib your info. Special thanks Markos Chandras , Rafał Mużyło and everyone. Sincerely, Palumbo Eugenio.
(In reply to comment #2) > As said, this package is not in our portage so we cannot actively support it > > Please contact the ebuild author or the overlay from which you got this package > Sorry for location for this message, I can ask you if is possible insert the HeeksCAD and HeeksCNC and all library into portage or into one overlay. The url http://code.google.com/p/heekscad/ for HeeksCAD and http://code.google.com/p/heekscnc/ for CNC tutorial for ubuntu distro, opencamlib not compile into gentoo http://code.google.com/p/heekscad/wiki/UbuntuInstallation Thanks Palumbo Eugenio.
...and it seems the lib builds just fine - as long as you remove '-Werror' from src/CMakeLists.txt
(In reply to comment #5) > ...and it seems the lib builds just fine - > as long as you remove '-Werror' from src/CMakeLists.txt > I have build opencamlib fine with gcc-4.4.3 and boost-1.41 Thanks, for your help
and I disabled -Werror on CMakeList.txt