Re: How to compile LyX in Win64?

2015-09-16 Thread Pål Næverlid Sævik
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 

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 

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








Re: How to compile LyX in Win64?

2015-09-16 Thread 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 

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 

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






Re: How to compile LyX in Win64?

2015-09-16 Thread Kornel Benko
Am Dienstag, 15. September 2015 um 15:53:19, schrieb 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.

That's why more Windows developers are desired.
Apparently lyx needs a hint, where his system  files resides.

1.) determine the directory containing the file 'unicodesymbols'. (Be it 'xyz' 
for example)
2.) open a command window
3.) use this dir in calling lyx from the command window
# lyx -sysdir xyz
4.) To see, where lyx searches for files, use the '-dbg files', e.g.
# lyx -sysdir xyz -dbg files

> 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.

eps != svg

> - 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

Kornel

signature.asc
Description: This is a digitally signed message part.


Re: How to compile LyX in Win64?

2015-09-15 Thread Guillaume Munch

Le 14/09/2015 09:17, Pål Næverlid Sævik a écrit :

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...



Aside from getting everything set up, a good advice which worked for me 
is to start with things simple to fix that annoy you personally, which 
is a good way to know the code. You can find a list of ideas on the bug 
tracker: 
, 
though you seem to have your own ideas. Once you get more familiar with 
the code it gets easier to think of bigger projects.




Re: How to compile LyX in Win64?

2015-09-15 Thread 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 


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 


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




Re: How to compile LyX in Win64?

2015-09-15 Thread Kornel Benko
Am Dienstag, 15. September 2015 um 15:01:37, schrieb Pål Næverlid Sævik 

> 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 
> > 
> >> 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
> 

signature.asc
Description: This is a digitally signed message part.


Re: How to compile LyX in Win64?

2015-09-15 Thread Pål Næverlid Sævik
Thanks for the hint. I guess a quick fix would be to copy the missing 
files from my LyX 2.1 installation. 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.


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 


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




Re: How to compile LyX in Win64?

2015-09-15 Thread Kornel Benko
Am Dienstag, 15. September 2015 um 14:03:11, schrieb Pål Næverlid Sævik 

> 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

signature.asc
Description: This is a digitally signed message part.


Re: How to compile LyX in Win64?

2015-09-15 Thread Pål Næverlid Sævik

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


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



Re: How to compile LyX in Win64?

2015-09-14 Thread Georg Baum
Kornel Benko wrote:

> Am Montag, 14. September 2015 um 10:17:02, schrieb Pål Næverlid Sævik
> 
>> 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



Re: How to compile LyX in Win64?

2015-09-14 Thread Scott Kostyshak
On Mon, Sep 14, 2015 at 01:57:53PM +0200, Jean-Marc Lasgouttes wrote:
> Le 14/09/15 10:17, Pål Næverlid Sævik a écrit :
> >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 hope you will manage to set it up. I cannot help unfortunately, but we
> could definitely use a new Windows developer !

Indeed, we have very few developers who choose to use Windows and many
users who choose to use Windows, so it would be great to get more help
with Windows-specific issues that affect a lot of our users.

Unfortunately I cannot help because I do not use Windows. If you wanted
to dual boot with Ubuntu or install Ubuntu in a virtual box (very easy),
let me know and then I would be able to help with that.

Hopefully we are able to get you set up.

Best,

Scott


Re: How to compile LyX in Win64?

2015-09-14 Thread Jean-Marc Lasgouttes

Le 14/09/15 10:17, Pål Næverlid Sævik a écrit :

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 hope you will manage to set it up. I cannot help unfortunately, but we 
could definitely use a new Windows developer !


JMarc



Re: How to compile LyX in Win64?

2015-09-14 Thread Kornel Benko
Am Montag, 14. September 2015 um 10:17:02, schrieb Pål Næverlid Sævik 

> 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.

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.

> 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?
> 
> Regards,
> Pål Næverlid Sævik, University of Bergen, Norway.

Kornel

signature.asc
Description: This is a digitally signed message part.