-
-
Save dtjohnso/abe2cf14e92c11cc2f9fd7f172058d94 to your computer and use it in GitHub Desktop.
| # Once you've done this you can then convert the VSS files to ODG files. It produces a picture per page, some of the layout is up the creek, but you have the image now. | |
| vss2odg Oracle-Server-Blade.vss Oracle-Server-Blade.odg |
| # Converting Visio templates (VSS) to Open Document Graphics (ODG) | |
| # From http://theengguy.blogspot.com/2013/06/although-open-office-or-libre-has-visio.html | |
| # Although Open Office or Libre has Visio support, it doesn't work on recent templates (.vss files) as they are wrappered EMF/WMF files, you need vss2odg which comes as part of writerperfect. | |
| # To install on Ubuntu/Debian Linux (suspect you actually only need libvisio and libboost, but I've included the other libraries writerperfect expects): | |
| sudo apt-get install libboost-dev | |
| sudo apt-get install git | |
| sudo apt-get install automake | |
| sudo apt-get install libtools | |
| sudo apt-get install doxygen | |
| sudo apt-get install libcppunit-dev | |
| sudo apt-get install gperf | |
| sudo apt-get install libicu-dev | |
| sudo apt-get install gnome-common | |
| sudo apt-get install gtk-doc-tools | |
| mkdir Code | |
| cd Code | |
| git clone git://git.code.sf.net/p/libwpd/librevenge | |
| cd librevenge | |
| ./autogen.sh | |
| ./configure | |
| make all | |
| sudo make install | |
| cd .. | |
| git clone git://git.code.sf.net/p/libwpd/libodfgen libwpd-libodfgen | |
| cd libpwd-libodfgen | |
| ./autogen.sh | |
| ./configure | |
| make all | |
| sudo make install | |
| cd .. | |
| git clone git://git.code.sf.net/p/libwpd/libabw libabw | |
| cd libabw | |
| ./autogen.sh | |
| ./configure | |
| make all | |
| sudo make install | |
| cd .. | |
| git clone git://git.code.sf.net/p/libwpd/libcdr libcdr | |
| cd libcdr | |
| ./autogen.sh | |
| ./configure | |
| make all | |
| sudo make install | |
| cd .. | |
| git clone git://git.code.sf.net/p/libebook/code libebook-code | |
| cd libebook-code | |
| ./autogen.sh | |
| ./configure | |
| make all | |
| sudo make install | |
| cd .. | |
| git clone git://git.code.sf.net/p/libepubgen/code libepubgen-code | |
| cd libepubgen-code | |
| ./autogen.sh | |
| ./configure | |
| make all | |
| sudo make install | |
| cd .. | |
| git clone git://gerrit.libreoffice.org/libetonyek libetonyek | |
| cd libetonyek | |
| ./autogen.sh | |
| ./configure | |
| make all | |
| sudo make install | |
| cd .. | |
| git clone git://gerrit.libreoffice.org/libfreehand libfreehand | |
| cd libfreehand | |
| ./autogen.sh | |
| ./configure | |
| make all | |
| sudo make install | |
| cd .. | |
| git clone git://gerrit.libreoffice.org/libfreehand libfreehand | |
| cd libfreehand | |
| ./autogen.sh | |
| ./configure | |
| make all | |
| sudo make install | |
| cd .. | |
| git clone https://github.com/GNOME/libgsf.git | |
| cd libgsf | |
| ./autogen.sh | |
| ./configure | |
| make all | |
| sudo make install | |
| cd .. | |
| git clone git://gerrit.libreoffice.org/libmspub.git | |
| cd libmspub | |
| ./autogen.sh | |
| ./configure | |
| make all | |
| sudo make install | |
| cd .. | |
| git clone git://git.code.sf.net/p/libmwaw/libmwaw libmwaw-libmwaw | |
| cd libmwaw-libmwaw | |
| ./autogen.sh | |
| ./configure | |
| make all | |
| sudo make install | |
| cd .. | |
| git clone git://gerrit.libreoffice.org/libvisio | |
| cd libvisio | |
| ./autogen.sh | |
| ./configure | |
| make all | |
| sudo make install | |
| cd .. | |
| git clone git://git.code.sf.net/p/libwpd/code libwpd-code | |
| cd libwpd-code | |
| ./autogen.sh | |
| ./configure | |
| make all | |
| sudo make install | |
| cd .. | |
| git clone git://git.code.sf.net/p/libwpg/code libwpg-code | |
| cd libwpg-code | |
| ./autogen.sh | |
| ./configure | |
| make all | |
| sudo make install | |
| cd .. | |
| git clone git://git.code.sf.net/p/libwps/code libwps-code | |
| cd libwps-code | |
| ./autogen.sh | |
| ./configure | |
| make all | |
| sudo make install | |
| cd .. | |
| git clone git://gerrit.libreoffice.org/libpagemaker.git | |
| cd libpagemaker | |
| ./autogen.sh | |
| ./configure | |
| make all | |
| sudo make install | |
| cd .. | |
| cd .. | |
| git clone git://git.code.sf.net/p/libwpd/writerperfect libwpd-writerperfect | |
| cd libwpd-writerperfect/ | |
| ./autogen.sh | |
| ./configure | |
| make all | |
| sudo make install | |
| sudo ldconfig -v |
Yah, I just checked and the comments aren't loading for me either. I got another error when running ./configure in the librevenge folder
cofigure: error: *** A compiler with support for C++11 language features is required.
Edit: Had to use (for ubuntu) sudo apt install g++ in order to update C++ compiler.
Edit 2:Man, either I'm really bad at all of this or just unlucky. Another package error-->
configure: error: Package requirements (zlib) were not met:
No package 'zlib' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables ZLIB_CFLAGS
and ZLIB_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
Ran sudo apt-get install zlib1g-dev. Will report if it works.
Edit 3: More errors-->
config.status: error: Something went wrong bootstrapping makefile fragments
for automatic dependency tracking. Try re-running configure with the
'--disable-dependency-tracking' option to at least be able to build
the package (albeit without support for automatic dependency tracking).
See `config.log' for more details
So I ran ./configure --disable-dependency-tracking and it seemed to have worked.
Edit 4: Also had to install 'make'
Edit 5:More errors and this time I can't figure it out :(
configure: error: Package requirements (
librevenge-0.0
librevenge-stream-0.0
) were not met:
No package 'librevenge-0.0' found
No package 'librevenge-stream-0.0' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables REVENGE_CFLAGS
and REVENGE_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
Edit 6: export PKG_CONFIG_LIBDIR=/usr/local/lib/pkgconfig:/usr/lib/pkgconfig/ didn't help.
Nor did running ./configure --prefix=/usr/local
Perhaps someone could give me some advice on how to set the environment variables of CPPUNIT_CFLAGS and CPPUNIT_LIBS. Because it seems like that could help.
Were you able to solve your error "librevenge-0.0 not found"?
I am facing a similar issue on Ubuntu.
Hmm, maybe check the comments on the original source and see if someone there has a solution: http://theengguy.blogspot.com/2013/06/although-open-office-or-libre-has-visio.html
(although I'm not sure there are any comments, it's not loading any for me)
Sorry, I don't even remember if this actually worked for me or not when I tried it. The original code is apparently from 2013. I do recall having difficulty when attempting to do this.