Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export LibreOffice : "couldn't find configuration to export" #94

Open
magicvince opened this issue Jan 24, 2024 · 8 comments
Open

Export LibreOffice : "couldn't find configuration to export" #94

magicvince opened this issue Jan 24, 2024 · 8 comments
Labels
question Further information is requested

Comments

@magicvince
Copy link

I am using vym 2.9.22 on LMDE5 (Linux Mint Debian Edition based on debian 11)

When I try to export with LibreOffice option, I've got a message "Attention : couldn't find configuration to export."

I have no parameters to setup LibreOffice in VYm.

Is there a way to configure this export?

Thank you

@insilmaril
Copy link
Owner

In the vym base directory there should be another dir "exports", e.g. on openSUSE there is:

/usr/share/vym/exports/orange-blue.conf
/usr/share/vym/exports/template-orange-blue
/usr/share/vym/exports/template-orange-blue/META-INF
/usr/share/vym/exports/template-orange-blue/META-INF/manifest.xml
/usr/share/vym/exports/template-orange-blue/Pictures
/usr/share/vym/exports/template-orange-blue/Pictures/1000000000000040000000400142E835.png
/usr/share/vym/exports/template-orange-blue/Thumbnails
/usr/share/vym/exports/template-orange-blue/Thumbnails/thumbnail.png
/usr/share/vym/exports/template-orange-blue/content-template.xml
/usr/share/vym/exports/template-orange-blue/content.xml
/usr/share/vym/exports/template-orange-blue/meta.xml
/usr/share/vym/exports/template-orange-blue/mimetype
/usr/share/vym/exports/template-orange-blue/page-template.xml
/usr/share/vym/exports/template-orange-blue/settings.xml
/usr/share/vym/exports/template-orange-blue/styles.xml

The used vymBaseDir you can see with Help->Debug info

Is that available?

@magicvince
Copy link
Author

magicvince commented Jan 25, 2024

With LMDE5/Debian11 the vymBaseDir is at the same place than yours.

@insilmaril
Copy link
Owner

And even with these files you get a warning?

The warning is generated in https://github.com/insilmaril/vym/blob/release/src/mainwindow.cpp#L4501

The files are searched here

void ExportOOFileDialog::init()

Don't see why it isn't found then

@insilmaril insilmaril added the question Further information is requested label Jan 31, 2024
@magicvince
Copy link
Author

Yes I've got the warning in 2.9.26-1
I saw you made specific change for LibreOffice export and I tried to compil the source with qtcreator, but I had some warnings:

/usr/lib/x86_64-linux-gnu/cmake/Qt5/Qt5Config.cmake:28: erreur : Could not find a package configuration file provided by "Qt5Script" with any of the following names: Qt5ScriptConfig.cmake qt5script-config.cmake Add the installation prefix of "Qt5Script" to CMAKE_PREFIX_PATH or set "Qt5Script_DIR" to a directory containing one of the above files. If "Qt5Script" provides a separate development package or SDK, be sure it has been installed. CMakeLists.txt:67 (find_package)

It's the first time I try to use qtcreator.
I got similar error (could find a package provided by qt5script" when I try to compil in command line.

@insilmaril
Copy link
Owner

Uh, looks like your Linux installation is missing some development package of Qt, namely Qt5Script. Not sure how to install this...

The change I have done in de0b06b was just replacing the hardcoded path with the variable vymBaseDir, shouldn't really change something.

I still don't get, why the /usr/share/vym/exports/orange-blue.conf config file isn't found in your installation. Next places, which are searched are $HOME/.vym/exports (which I have never used) and finally relative to current directory in ./exports, which I only use when coding.

@magicvince
Copy link
Author

Ok I have no time yet to learn how to add the forgotten package, but I try something "dirty" after reading your last message.
I copy the /usr/share/vym/exports/ in a MyHome/.vym/exports and it works.
So the problem isn't really solve but I can work with vym
Thanks
Hope it helps
(Now I have to understand how to customize the presentation template :) )

@insilmaril
Copy link
Owner

Indeed that was my idea, trying it in your $HOME dir. Sorry, could have been more explicit.

The libreoffice export template is really old, maybe it could be reworked meanwhile. Though I am quite busy to stabilize vym 3.0 and just today I have the first build running on Qt6, which also will need a lot of love before becoming fully usable :-/

Any help is welcome ;-)

@magicvince
Copy link
Author

Thanks,
I'm also busy, but if I have some indication and a bit of time, I could try to renew the libreoffice template.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants