kakwa / libvisio2svg

Library/Tools to convert Microsoft (MS) Visio documents (VSS and VSD) to SVG
GNU General Public License v2.0
112 stars 21 forks source link

I'm getting errors when trying to build this on ubuntu 16.04 #17

Closed justbill2020 closed 7 years ago

justbill2020 commented 7 years ago

When i run the cmake command i get the following. I'm very new to building projects any and all help would be awesome! thank you

$ cmake . -DCMAKE_INSTALL_PREFIX=/usr/
-- Find Header Directory for libemf2svg: LIBEMF2SVG_INCLUDE_DIR-NOTFOUND
-- Find Dynamic Library for libemf2svg:  LIBEMF2SVG_LIBRARIES-NOTFOUND
-- Find Header Directory for libwmf: LIBWMF_INCLUDE_DIR-NOTFOUND
-- Find Dynamic Library for libwmf:  LIBWMF_LIBRARIES-NOTFOUND
-- Find Dynamic Library for libwmflite:  LIBWMFLITE_LIBRARIES-NOTFOUND
-- Find Header Directory for librevenge: LIBREVENGE_INCLUDE_DIR-NOTFOUND
-- Find Header Directory for librevenge: LIBREVENGE_STREAM_INCLUDE_DIR-NOTFOUND
-- Find Dynamic Library for librevenge:  LIBREVENGE_LIBRARIES-NOTFOUND
-- Find Dynamic Library for librevenge:  LIBREVENGE_STREAM_LIBRARY-NOTFOUND
-- Find Header Directory for libvisio: LIBVISIO_INCLUDE_DIR-NOTFOUND
-- Find Dynamic Library for libvisio:  
CMake Error at /usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:148 (message):
  Could NOT find Freetype (missing: FREETYPE_LIBRARY FREETYPE_INCLUDE_DIRS)
Call Stack (most recent call first):
  /usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake-3.5/Modules/FindFreetype.cmake:151 (find_package_handle_standard_args)
  CMakeLists.txt:12 (find_package)

-- Configuring incomplete, errors occurred!
See also "/home/<USER>/libvisio2svg/CMakeFiles/CMakeOutput.log".
kakwa commented 7 years ago

Hello,

You need to install the dependencies, including their header packages:

sudo apt-get install librevenge-dev libvisio-dev libxml2-dev libwmf-dev

libemf2svg is not package by ubuntu, it must installed manually from source, it's the same process, but with different dependencies:

You must recover the sources here: https://github.com/kakwa/libemf2svg