Hi

> Nick Østergaard [2015-08-13 16:24 +0200]:
> > You can use the cmake option -DKICAD_SKIP_BOOST=ON  to fix this issue.
> > Make sure this only happens for systems with boost version above 1.54.

The -DKICAD_SKIP_BOOST=ON option doesn't work in the kicad stable branch (bzr4029) currently in Debian and Ubuntu.

CMake Warning:
  Manually-specified variables were not used by the project:

    KICAD_SKIP_BOOST

I made the following change to CMakeLists.txt and also removed include/boost/ :

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -285,8 +285,8 @@
 # kicad now includes needed boost files.
 # the two next lines can be uncommented to use the native boost lib.
 # but this is not a good idea
-#find_package(Boost 1.36 QUIET)
-#check_find_package_result(Boost_FOUND "Boost")
+find_package(Boost 1.36 QUIET)
+check_find_package_result(Boost_FOUND "Boost")

 ##########################
 # Find wxWidgets library #

...and still I am getting tons of errors like the following:

In file included from /usr/include/c++/5/list:63:0,
                 from /usr/include/boost/polygon/isotropy.hpp:20,
                 from /usr/include/boost/polygon/polygon.hpp:12,
from /«BUILDDIR»/kicad-0.20141025+bzr4029/common/../polygon/polygons_defs.h:9, from /«BUILDDIR»/kicad-0.20141025+bzr4029/common/../polygon/PolyLine.h:23, from /«BUILDDIR»/kicad-0.20141025+bzr4029/common/../pcbnew/class_pad.h:37, from /«BUILDDIR»/kicad-0.20141025+bzr4029/common/footprint_info.cpp:22: /usr/include/c++/5/bits/stl_list.h:1807:22: error: reference to 'list' is ambiguous
     operator==(const list<_Tp, _Alloc>& __x, const list<_Tp, _Alloc>& __y)

> This worked well, thank you! Fedora does the same. I uploaded this a
> few days ago to Ubuntu.

Your upload failed to build [1]. Fedora are using a newer revision (bzr6041).

Any ideas?

Regards
Graham


[1] https://launchpad.net/ubuntu/+source/kicad/0.20141025+bzr4029-2ubuntu1

Reply via email to