I have to correct myself - not all dropdown menus have graphics, only
the following buttons:
- View other formats
- Update other formats
- Math spacings (Math toolbar)
- Styles (Math toolbar)
- Fractions (Math toolbar)
- Fonts (Math toolbar)
- Functions (Math toolbar)
And I see no reason of why these should work and not the others.. Any
hints would be appreciated.
Pål
Den 16.09.2015 21:54, skrev Pål Næverlid Sævik:
Now I've taken a closer look at my compiled project. It seems like the
version I get when I compile the Install project is fine, except that
most of the toolbar graphics is missing. Which is annoying, and I
would love to fix it.
Curiously, the toolbar graphics for the dropdown menus are working
fine (View other formats, update other formats, Math spacings etc.)
Any idea of why this is happening? What part of the code is
responsible for loading the images?
Pål
Den 15.09.2015 15:53, skrev Pål Næverlid Sævik:
It's not clear to me how to fix the dependencies... I'm going to
leave it for now, and give it another try later on. Just a summary:
- When I'm running LyX directly from MSVC (setting LyX as the startup
project), all QT libraries are missing. After manually copying them
into the Debug folder (MSVC output folder), I'm able to run LyX, but
it does not know where to find .layout files and help files, for
instance. And most of the toolbar graphics is gone. Which is weird
since LyX is able to render SVG pictures within the document, as well
as producing proper PDF output. So it has nothing to do with epstopdf
missing.
- After compiling the Install project and copying the relevant QT
files to the bin folder, I get a LyX distribution where the .layout
files are placed where LyX can find them. But the toolbar graphics is
still missing.
Pål
Den 15.09.2015 15:17, skrev Kornel Benko:
Am Dienstag, 15. September 2015 um 15:01:37, schrieb Pål Næverlid
Sævik <pnsae...@gmail.com>
Thanks for the hint. I guess a quick fix would be to copy the missing
files from my LyX 2.1 installation.
It should be sufficient to install the missing QT part. No lyx
recompilation needed.
I tried to copy everything from the
bin and Resources folders that was not already present in my compiled
version, but this does not solve the graphics issue. I can also add
that
I'm able to insert .SVG and .PNG graphics in the lyx document and
preview the content in the editor, but not .EPS files.
You need a converter for the eps files. Look into
Tools->Preferences...->File Handling->Converters->Converter
Definition: EPS->PDF (Graphics)
Probably missing exe like 'epstopdf'.
Kornel
Pål
Den 15.09.2015 14:25, skrev Kornel Benko:
Am Dienstag, 15. September 2015 um 14:03:11, schrieb Pål Næverlid
Sævik <pnsae...@gmail.com>
Hello everyone,
And thanks for the interest! I am pleased to say that I am now
able to compile and build LyX from the source code :-)
The thing I did differently on the second try, was to be
extremely careful to install the correct versions of everything.
In particular, I used the 32-bit versions of CMake, Python, Qt
and MSVC, and used only 32-bit compilers. Using the 64-bit
versions of some of these tools may also have been possible, but
I just wanted to be on the safe side. Also, I used Qt4 instead of
Qt5. Apart from this, I mostly followed the recipe containted in
the INSTALL.Win32 file.
The resulting program looks a bit uglier than LyX 2.1 release
version (e.g., a lot of toolbar options with no graphics), which
I guess is because LyX 2.2 is work in progress.
This is because of missing libQtSvg lib. We are using svg version
of our icons.
Don't know how to get this lib to Windows.
Under ubuntu it is part of 'libqt4-svg' package.
My question now is what you would recommend as a good development
workflow? Is it, for instance, possible to run LyX from within
MSVC and apply breakpoints to step through the program? This is
how I would usually debug my own small programming projects.
Don't know, but feels reasonable.
Kornel