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.

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.

Pål

Kornel Benko wrote:

Am Montag, 14. September 2015 um 10:17:02, schrieb Pål Næverlid Sævik
<pnsae...@gmail.com>
Salutations!

I have been using LyX since writing my master's thesis. Now I've used it
for academic papers, coursework, my phd thesis and more. A big thank you
to the development team, the software has saved me a lot of work and
made writing academic documents much easier!

But, of course, there are always features I would like included and
certain improvements that I can envision. I know c++ pretty well, and am
curious if I would be able to make some contributions to the source
code. But I have never participated in an open source project before,
and the initial effort required to get involved is somewhat daunting...
I tried to compile LyX from the source code, but I use a 64-bit Windows
computer for work, and it seems like this platform is incompatible with
the source code package from the web site.

Your help would be very much appreciated!

You may try to compile with help of cmake. There is a batch file
"development/cmake/build.bat"
which you may adapt to your need.
Why do you think, the source code packaging is incompatible to 64bit
Windows? Anyway, you can always use the git repository as source.

He probably refers to the precompiled dependencies (search
LYX_DEPENDENCIES_DOWNLOAD in toplevel CMakeLists.txt). This is all the stuff
we install on linux with a few clicks in the package manager like spell
check libraries, iconv etc.

Is there any possibility for packaging the source code so that it would
work with Win64 and a collection of free (as in no-cost) software?

I believe there are three options:

- cygwin (works out of the box)
- MSVC (you need to compile the dependencies on your own for 64bit, but I
don't know whether a 64bit MSVC version exists which is given away for free)
- mingw32 (IIRC Enrico knows how this works)

If you want to try to compile the dependencies on your own I can help
answering questions, but I don't have a MSVC installation here, so I cannot
try it out.


Georg

Reply via email to