kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #21955
Re: Removal of download_boost.cmake.
Wayne Stambaugh <stambaughw@xxxxxxxxx> writes:
> The only boost patch that is not mingw or osx specific is
> boost_cstdint.patch and I'm not sure this patch makes any difference.
> There is one way to find out. Build kicad with stock boost on 14.04 and
> see there are any issues. Would someone please test this since there
> seems to be a lot of ubuntu 14.04 users out there?
I did a test build on a fresh Ubuntu 14.04 (amd64) that I had lying
around. It seems to work ok:
cmake -DKICAD_SKIP_BOOST=YES -DCMAKE_INSTALL_PREFIX=/home/knielsen/kicad ../
This was from newest Git (Bzr 6372, Git 5d429ed).
The build succeeds, and KiCAD seems to run ok (schematics, pcbnew,
3d-viewer, ...). So removing bundled boost seems ok from Ubuntu 14.04
perspective.
To get it to build, I had to install libwx 3.0.2 and GLM 0.9.6.3 from
source, since Ubuntu had too old versions. I used this to install remaining
dependencies:
sudo apt-get install git build-essential cmake checkinstall doxygen zlib1g-dev libwebkitgtk-dev libglew-dev libcairo2-dev libbz2-dev libssl-dev libgles2-mesa-dev libgl1-mesa-dev libglu1-mesa-dev libopenvg1-mesa-dev libosmesa6-dev libwebkitgtk-dev libboost-all-dev
I did have one issue with GLM, which should be unrelated to boost. I
installed GLM in CMAKE_INSTALL_PREFIX, and cmake finds it:
-- Found GLM: /home/knielsen/kicad/include (found suitable version "0.9.6.3", minimum required is "0.9.5.4")
But the build still fails, it looks like cmake did not add the required -I
option for the path it found:
cd /home/knielsen/kicad/kicad-source-mirror/build/3d-viewer && /usr/bin/c++ -DHAVE_STDINT_H -DKICAD_KEEPCASE -DPCBNEW -DUSE_OPENMP -DWXUSINGDLL -DWX_COMPATIBILITY -D_FILE_OFFSET_BITS=64 -D__WXGTK__ -Wall -fvisibility=hidden -fvisibility-inlines-hidden -Wno-unused-local-typedefs -Wno-strict-aliasing -fopenmp -pthread -O3 -DNDEBUG -DNDEBUG -fPIC -I/home/knielsen/kicad/kicad-source-mirror/include -I/home/knielsen/kicad/kicad-source-mirror/3d-viewer/. -isystem /home/knielsen/kicad/lib/wx/include/gtk2-unicode-3.0 -isystem /home/knielsen/kicad/include/wx-3.0 -I/home/knielsen/kicad/kicad-source-mirror/3d-viewer/textures -I/home/knielsen/kicad/kicad-source-mirror/3d-viewer/../pcbnew -I/home/knielsen/kicad/kicad-source-mirror/3d-viewer/../polygon -I/home/knielsen/kicad/kicad-source-mirror/build -o CMakeFiles/3d-viewer.dir/dialogs/dialog_3D_view_option.cpp.o -c /home/knielsen/kicad/kicad-source-mirror/3d-viewer/dialogs/dialog_3D_view_option.cpp
In file included from /home/knielsen/kicad/kicad-source-mirror/3d-viewer/./3d_struct.h:36:0,
from /home/knielsen/kicad/kicad-source-mirror/3d-viewer/./3d_viewer.h:40,
from /home/knielsen/kicad/kicad-source-mirror/3d-viewer/dialogs/dialog_3D_view_option.cpp:26:
/home/knielsen/kicad/kicad-source-mirror/3d-viewer/./3d_material.h:35:23: fatal error: glm/glm.hpp: No such file or directory
I fixed it with a quick hack (ln -s ../glm ~/kicad/include/wx-3.0/), as I
was too lazy to look up how to pass extra -I options with cmake. I should
probably try to come up with a small patch to make cmake add the required -I
automatically for GLM.
Hope this helps, let me know if there is anything further that needs
testing.
- Kristian.
Follow ups
References