Re: Build LyX with MSVC 2017

2018-11-01 Thread Jean-Marc Lasgouttes

Le 23/10/2018 à 08:39, Kornel Benko a écrit :


Sure. They can and they would if not having the necessary tools.
OTOH, it makes sense to me to install with NLS if possible.

There is always the possibility to not use LYX_INSTALL (unfortunately i cannot 
test on Windows)


It is normal that NLS is on by default. But if people opt out of it, we 
should respect that.


JMarc


Re: Build LyX with MSVC 2017

2018-10-30 Thread Daniel

On 30/10/2018 12:51, Kornel Benko wrote:

Am Dienstag, 30. Oktober 2018 12:42:36 CET schrieb Daniel :

On 30/10/2018 12:19, Kornel Benko wrote:

Am Dienstag, 30. Oktober 2018 11:54:32 CET schrieb Daniel :

The spell checker seems not to be working on my self-compiled version.
What do I have to do to get it working?

Daniel



Configured with -DLYX_REQUIRE_SPELLCHECK=ON ?


Thanks. Just tried but didn't help. Independently of whether I set the
flag, spell checker says: "Spell checker has no dictionaries."

Daniel




I wanted to know, if lyx is compiled with spellcheck first.

But OK, if no dictionaries, you have to set the path to the dict-directory

See Tools->Preferences...->Paths->Hunspell ditionaries:
Don't ask me for the correct path on Windows though.


Great, it works now.

I hoped to just get it from my LyX version from the official installer 
but there the Hunspell dictionaries path is just empty - though spell 
checking works there anyway.


However, it seems LyX is installing the dictionaries into its

Resources\dicts

directory. (Where it probably needs no directory path then.) So I 
pointed my compiled version to the official version's dicts directory 
and now it works.


Daniel



Re: Build LyX with MSVC 2017

2018-10-30 Thread Kornel Benko
Am Dienstag, 30. Oktober 2018 12:42:36 CET schrieb Daniel :
> On 30/10/2018 12:19, Kornel Benko wrote:
> > Am Dienstag, 30. Oktober 2018 11:54:32 CET schrieb Daniel :
> >> The spell checker seems not to be working on my self-compiled version.
> >> What do I have to do to get it working?
> >>
> >> Daniel
> >>
> > 
> > Configured with -DLYX_REQUIRE_SPELLCHECK=ON ?
> 
> Thanks. Just tried but didn't help. Independently of whether I set the 
> flag, spell checker says: "Spell checker has no dictionaries."
> 
> Daniel
> 
> 

I wanted to know, if lyx is compiled with spellcheck first.

But OK, if no dictionaries, you have to set the path to the dict-directory

See Tools->Preferences...->Paths->Hunspell ditionaries:
Don't ask me for the correct path on Windows though.

Kornel


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


Re: Build LyX with MSVC 2017

2018-10-30 Thread Daniel

On 30/10/2018 12:19, Kornel Benko wrote:

Am Dienstag, 30. Oktober 2018 11:54:32 CET schrieb Daniel :

The spell checker seems not to be working on my self-compiled version.
What do I have to do to get it working?

Daniel



Configured with -DLYX_REQUIRE_SPELLCHECK=ON ?


Thanks. Just tried but didn't help. Independently of whether I set the 
flag, spell checker says: "Spell checker has no dictionaries."


Daniel



Re: Build LyX with MSVC 2017

2018-10-30 Thread Kornel Benko
Am Dienstag, 30. Oktober 2018 11:54:32 CET schrieb Daniel :
> The spell checker seems not to be working on my self-compiled version. 
> What do I have to do to get it working?
> 
> Daniel
> 

Configured with -DLYX_REQUIRE_SPELLCHECK=ON ?

Kornel


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


Re: Build LyX with MSVC 2017

2018-10-30 Thread Daniel
The spell checker seems not to be working on my self-compiled version. 
What do I have to do to get it working?


Daniel



Re: Build LyX with MSVC 2017

2018-10-29 Thread Daniel

On 29/10/2018 14:03, Daniel wrote:

On 29/10/2018 13:07, Daniel wrote:

On 29/10/2018 12:40, Kornel Benko wrote:
Am Montag, 29. Oktober 2018 12:05:29 CET schrieb Daniel 
:

On 29/10/2018 11:41, Kornel Benko wrote:
Am Montag, 29. Oktober 2018 11:27:48 CET schrieb Daniel 
:

On 29/10/2018 11:13, Kornel Benko wrote:
Am Montag, 29. Oktober 2018 10:42:09 CET schrieb Daniel 
:

On 25/10/2018 11:34, Daniel wrote:

On 25/10/2018 10:11, Kornel Benko wrote:

Am Donnerstag, 25. Oktober 2018 07:18:55 CEST schrieb Daniel
:

On 24/10/2018 20:00, Daniel wrote:

On 24/10/2018 17:48, Kornel Benko wrote:
Am Mittwoch, 24. Oktober 2018 17:34:45 CEST schrieb Kornel 
Benko

:


Actually, the LyX configure is not working so I have no
textclasses and
I cannot "Reconfigure...".

The console shows the following (which might be related):

support\Systemcall.cpp (261): Systemcall: 'python -tt
"C:/Users/Daniel/LyXSource/lyx/lib/configure.py"
--binary-dir="C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/bin/"' 



did not start!
support\Systemcall.cpp (262): error The process failed to 
start.

Either
the invoked program is missing, or you may have insufficient
permissions
to invoke the program.

Daniel


This looks wrong to me. Binary-dir and the path to 
configure.py

should be related.
I would have expected configure.py to lie in
"C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/Resources/" 



(I may be wrong of course)


Next question:
    How did you start lyx?
If you want to use the source dir as system dir (instead of 
installed

dir) then you may start lyx with
    # lyx -sysdir "C:/Users/Daniel/LyXSource/lyx/lib"

    Kornel



I was starting LyX from

C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/bin/


... But still get

Library directory: ~\LyXSource\lyx\lib\

Since configure.py is indeed in

"C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/Resources/"

I tried

# .\LyX.exe -sysdir "C:\Users\Daniel\LyXSource\lyx-build\LYX_INS
TALLED"

Expecting LyX to change the system directory accordingly. But 
still get

the same error.

Here is all the stuff I am seeing in the console until I have 
created a

new document. Maybe something makes sense:

PS C:\Users\Daniel\LyXSource\lyx-build\LYX_INSTALLED\bin> 
.\LyX.exe

-sysdir "C:\Users\Daniel\LyXSource\lyx-build\LYX_INS
TALLED"
Looking for python v2.x or 3.x ...
Examining C:/Program Files/MiKTeX 
2.9/miktex/bin/x64//pythontex.exe

Warning: No python v2.x or 3.x binary found.



That's a main reason. Without python in path, you can neither
configure nor read old lyx-files.
(lyx2lyx needs python for instance)


LyX: reconfiguring user directory
support\Systemcall.cpp (268): Systemcall: 'python -tt
"C:/Users/Daniel/LyXSource/lyx/lib/configure.py"
--binary-dir="C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/bin/"' 


did not start!
support\Systemcall.cpp (269): error The process failed to 
start. Either

the invoked program is missing,

^

   Kornel



I reinstalled Python and noticed that the option to set the 
PATH is not
checked by default. So I checked it. This should probably be 
mentioned

in the documentation on building LyX on Windows.


I am back to a python problem, I guess. I just redid the whole 
procedure
for compiling LyX. I have changed nothing else on my system. 
Here is the

error I get when (re)configuring LyX:

==
Looking for python v2.x or 3.x ...
Examining C:/Program Files/MiKTeX 2.9/miktex/bin/x64//pythontex.exe
Warning: No python v2.x or 3.x binary found.
LyX: reconfiguring user directory
support\Systemcall.cpp (268): Systemcall: 'python -tt
"C:/Users/Daniel/lyx/devel/lyx/lib/configure.py"
--binary-dir="C:/Users/Daniel/lyx/devel/build/LYX_INSTALLED/bin/"' 
did

not start!
support\Systemcall.cpp (269): error The process failed to start. 
Either
the invoked program is missing, or you may have insufficient 
permissions

to invoke the program.
LyX: Done!
==

Not sure why LyX does not find the python binary any more...

Daniel



How do you start lyx? You could write a wrapper .bat file which 
sets the PATH accordingly,

before starting lyx.


I guess I'll have to look into that then.

You know, this is not a python or lyx problem, but the 
environment in which

you start lyx is not OK.
Not sure I understand the comment about the environment. The 
environment
I am using is Windows 10, right? So Windows 10 is not OK? Not sure 
what

you mean. I have instructed python during installation to add to the
PATH and it was added. So, I don't see why LyX does not find it.

Daniel



No, the environment are the settings you use. One of them is PATH.
Some other are for example LANGUAGE, HOME, USER, NLSPATH, TMPDIR.


(Okay, maybe the right term is "environment variable"?)

So, my PATH (or LANGUAGE, etc.) is set wrong? I just had a look at it
and they seem all right. What

Re: Build LyX with MSVC 2017

2018-10-29 Thread Daniel

On 29/10/2018 16:10, Kornel Benko wrote:

Am Montag, 29. Oktober 2018 14:44:30 CET schrieb Daniel :

The python path is local while the MiKTeX path is global. So, I cannot
as easily move the one before the other. But I can try to move one over
the the other category and then have one before the other - just to test.


Yes, that does the trick. So, I guess LyX is unsuccessfully trying to
use the wrong python binary?


Yes, except that pythontex is _not_ python.


Should I file a bug report?

Daniel



Re: Build LyX with MSVC 2017

2018-10-29 Thread Kornel Benko
Am Montag, 29. Oktober 2018 14:44:30 CET schrieb Daniel :
> > The python path is local while the MiKTeX path is global. So, I cannot 
> > as easily move the one before the other. But I can try to move one over 
> > the the other category and then have one before the other - just to test.
> 
> Yes, that does the trick. So, I guess LyX is unsuccessfully trying to 
> use the wrong python binary?

Yes, except that pythontex is _not_ python.

> Daniel

Kornel



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


Re: Build LyX with MSVC 2017

2018-10-29 Thread Daniel

On 29/10/2018 14:36, Daniel wrote:

On 29/10/2018 14:19, Kornel Benko wrote:
Am Montag, 29. Oktober 2018 13:07:57 CET schrieb Daniel 
:

Could you post PATH?


echo $Env:PATH gives:

C:\Program Files (x86)\ImageMagick-7.0.7-Q16;
C:\Program Files (x86)\Common Files\Oracle\Java\javapath;
C:\WINDOWS\system32;
C:\WINDOWS;
C:\WINDOWS\System32\Wbem;
C:\WINDOWS\System32\WindowsPowerShell\v1.0\;
C:\WINDOWS\System32\OpenSSH\;
C:\Program Files\Git\cmd;
C:\Program Files\SumatraPDF;
C:\Program Files\nodejs\;
C:\xampp\php;
C:\ProgramData\ComposerSetup\bin;
C:\Program Files\Microsoft VS Code\bin;
C:\Program Files\MiKTeX 2.9\miktex\bin\x64\;

^^
Maybe this is the reason? It appears before the python path. I am not 
sure, how
lyx finds the python interpreter. Finding anything (e.g. python*) is 
wrong.

It may help, if you move the python path above this path.


The python path is local while the MiKTeX path is global. So, I cannot 
as easily move the one before the other. But I can try to move one over 
the the other category and then have one before the other - just to test.


Yes, that does the trick. So, I guess LyX is unsuccessfully trying to 
use the wrong python binary?


Daniel



Re: Build LyX with MSVC 2017

2018-10-29 Thread Daniel

On 29/10/2018 14:19, Kornel Benko wrote:

Am Montag, 29. Oktober 2018 13:07:57 CET schrieb Daniel :

Could you post PATH?


echo $Env:PATH gives:

C:\Program Files (x86)\ImageMagick-7.0.7-Q16;
C:\Program Files (x86)\Common Files\Oracle\Java\javapath;
C:\WINDOWS\system32;
C:\WINDOWS;
C:\WINDOWS\System32\Wbem;
C:\WINDOWS\System32\WindowsPowerShell\v1.0\;
C:\WINDOWS\System32\OpenSSH\;
C:\Program Files\Git\cmd;
C:\Program Files\SumatraPDF;
C:\Program Files\nodejs\;
C:\xampp\php;
C:\ProgramData\ComposerSetup\bin;
C:\Program Files\Microsoft VS Code\bin;
C:\Program Files\MiKTeX 2.9\miktex\bin\x64\;

^^
Maybe this is the reason? It appears before the python path. I am not sure, how
lyx finds the python interpreter. Finding anything (e.g. python*) is wrong.
It may help, if you move the python path above this path.


The python path is local while the MiKTeX path is global. So, I cannot 
as easily move the one before the other. But I can try to move one over 
the the other category and then have one before the other - just to test.


Daniel



Re: Build LyX with MSVC 2017

2018-10-29 Thread Kornel Benko
Am Montag, 29. Oktober 2018 13:07:57 CET schrieb Daniel :
> > Could you post PATH?
> 
> echo $Env:PATH gives:
> 
> C:\Program Files (x86)\ImageMagick-7.0.7-Q16;
> C:\Program Files (x86)\Common Files\Oracle\Java\javapath;
> C:\WINDOWS\system32;
> C:\WINDOWS;
> C:\WINDOWS\System32\Wbem;
> C:\WINDOWS\System32\WindowsPowerShell\v1.0\;
> C:\WINDOWS\System32\OpenSSH\;
> C:\Program Files\Git\cmd;
> C:\Program Files\SumatraPDF;
> C:\Program Files\nodejs\;
> C:\xampp\php;
> C:\ProgramData\ComposerSetup\bin;
> C:\Program Files\Microsoft VS Code\bin;
> C:\Program Files\MiKTeX 2.9\miktex\bin\x64\;
^^
Maybe this is the reason? It appears before the python path. I am not sure, how
lyx finds the python interpreter. Finding anything (e.g. python*) is wrong.
It may help, if you move the python path above this path.

> C:\Program Files (x86)\LyX 2.3\Perl\bin;
> C:\Program Files\Pandoc\;
> C:\Program Files\CMake\bin;
> C:\Program Files\TortoiseGit\bin;
> C:\Users\Daniel\AppData\Local\Programs\Python\Python37-32\Scripts\;
> C:\Users\Daniel\AppData\Local\Programs\Python\Python37-32\;
^

> C:\Program Files (x86)\Windows Kits\10\bin\10.0.17134.0\x64;
> C:\Users\Daniel\AppData\Local\Microsoft\WindowsApps;
> C:\Program Files\Microsoft VS Code\bin;
> C:\Users\Daniel\AppData\Roaming\npm;
> C:\Users\Daniel\AppData\Roaming\Composer\vendor\bin;

...
> But that is in PATH as well.
> 
> Daniel

Kornel



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


Re: Build LyX with MSVC 2017

2018-10-29 Thread Daniel

On 29/10/2018 13:07, Daniel wrote:

On 29/10/2018 12:40, Kornel Benko wrote:
Am Montag, 29. Oktober 2018 12:05:29 CET schrieb Daniel 
:

On 29/10/2018 11:41, Kornel Benko wrote:
Am Montag, 29. Oktober 2018 11:27:48 CET schrieb Daniel 
:

On 29/10/2018 11:13, Kornel Benko wrote:
Am Montag, 29. Oktober 2018 10:42:09 CET schrieb Daniel 
:

On 25/10/2018 11:34, Daniel wrote:

On 25/10/2018 10:11, Kornel Benko wrote:

Am Donnerstag, 25. Oktober 2018 07:18:55 CEST schrieb Daniel
:

On 24/10/2018 20:00, Daniel wrote:

On 24/10/2018 17:48, Kornel Benko wrote:
Am Mittwoch, 24. Oktober 2018 17:34:45 CEST schrieb Kornel 
Benko

:


Actually, the LyX configure is not working so I have no
textclasses and
I cannot "Reconfigure...".

The console shows the following (which might be related):

support\Systemcall.cpp (261): Systemcall: 'python -tt
"C:/Users/Daniel/LyXSource/lyx/lib/configure.py"
--binary-dir="C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/bin/"' 



did not start!
support\Systemcall.cpp (262): error The process failed to 
start.

Either
the invoked program is missing, or you may have insufficient
permissions
to invoke the program.

Daniel


This looks wrong to me. Binary-dir and the path to 
configure.py

should be related.
I would have expected configure.py to lie in
"C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/Resources/"

(I may be wrong of course)


Next question:
    How did you start lyx?
If you want to use the source dir as system dir (instead of 
installed

dir) then you may start lyx with
    # lyx -sysdir "C:/Users/Daniel/LyXSource/lyx/lib"

    Kornel



I was starting LyX from

C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/bin/


... But still get

Library directory: ~\LyXSource\lyx\lib\

Since configure.py is indeed in

"C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/Resources/"

I tried

# .\LyX.exe -sysdir "C:\Users\Daniel\LyXSource\lyx-build\LYX_INS
TALLED"

Expecting LyX to change the system directory accordingly. But 
still get

the same error.

Here is all the stuff I am seeing in the console until I have 
created a

new document. Maybe something makes sense:

PS C:\Users\Daniel\LyXSource\lyx-build\LYX_INSTALLED\bin> 
.\LyX.exe

-sysdir "C:\Users\Daniel\LyXSource\lyx-build\LYX_INS
TALLED"
Looking for python v2.x or 3.x ...
Examining C:/Program Files/MiKTeX 
2.9/miktex/bin/x64//pythontex.exe

Warning: No python v2.x or 3.x binary found.



That's a main reason. Without python in path, you can neither
configure nor read old lyx-files.
(lyx2lyx needs python for instance)


LyX: reconfiguring user directory
support\Systemcall.cpp (268): Systemcall: 'python -tt
"C:/Users/Daniel/LyXSource/lyx/lib/configure.py"
--binary-dir="C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/bin/"' 


did not start!
support\Systemcall.cpp (269): error The process failed to 
start. Either

the invoked program is missing,

^

   Kornel



I reinstalled Python and noticed that the option to set the PATH 
is not
checked by default. So I checked it. This should probably be 
mentioned

in the documentation on building LyX on Windows.


I am back to a python problem, I guess. I just redid the whole 
procedure
for compiling LyX. I have changed nothing else on my system. Here 
is the

error I get when (re)configuring LyX:

==
Looking for python v2.x or 3.x ...
Examining C:/Program Files/MiKTeX 2.9/miktex/bin/x64//pythontex.exe
Warning: No python v2.x or 3.x binary found.
LyX: reconfiguring user directory
support\Systemcall.cpp (268): Systemcall: 'python -tt
"C:/Users/Daniel/lyx/devel/lyx/lib/configure.py"
--binary-dir="C:/Users/Daniel/lyx/devel/build/LYX_INSTALLED/bin/"' did 


not start!
support\Systemcall.cpp (269): error The process failed to start. 
Either
the invoked program is missing, or you may have insufficient 
permissions

to invoke the program.
LyX: Done!
==

Not sure why LyX does not find the python binary any more...

Daniel



How do you start lyx? You could write a wrapper .bat file which 
sets the PATH accordingly,

before starting lyx.


I guess I'll have to look into that then.

You know, this is not a python or lyx problem, but the environment 
in which

you start lyx is not OK.
Not sure I understand the comment about the environment. The 
environment
I am using is Windows 10, right? So Windows 10 is not OK? Not sure 
what

you mean. I have instructed python during installation to add to the
PATH and it was added. So, I don't see why LyX does not find it.

Daniel



No, the environment are the settings you use. One of them is PATH.
Some other are for example LANGUAGE, HOME, USER, NLSPATH, TMPDIR.


(Okay, maybe the right term is "environment variable"?)

So, my PATH (or LANGUAGE, etc.) is set wrong? I just had a look at it
and they seem all right. What makes you think they are wrong?


Cou

Re: Build LyX with MSVC 2017

2018-10-29 Thread Daniel

On 29/10/2018 12:40, Kornel Benko wrote:

Am Montag, 29. Oktober 2018 12:05:29 CET schrieb Daniel :

On 29/10/2018 11:41, Kornel Benko wrote:

Am Montag, 29. Oktober 2018 11:27:48 CET schrieb Daniel :

On 29/10/2018 11:13, Kornel Benko wrote:

Am Montag, 29. Oktober 2018 10:42:09 CET schrieb Daniel :

On 25/10/2018 11:34, Daniel wrote:

On 25/10/2018 10:11, Kornel Benko wrote:

Am Donnerstag, 25. Oktober 2018 07:18:55 CEST schrieb Daniel
:

On 24/10/2018 20:00, Daniel wrote:

On 24/10/2018 17:48, Kornel Benko wrote:

Am Mittwoch, 24. Oktober 2018 17:34:45 CEST schrieb Kornel Benko
:


Actually, the LyX configure is not working so I have no
textclasses and
I cannot "Reconfigure...".

The console shows the following (which might be related):

support\Systemcall.cpp (261): Systemcall: 'python -tt
"C:/Users/Daniel/LyXSource/lyx/lib/configure.py"
--binary-dir="C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/bin/"'

did not start!
support\Systemcall.cpp (262): error The process failed to start.
Either
the invoked program is missing, or you may have insufficient
permissions
to invoke the program.

Daniel


This looks wrong to me. Binary-dir and the path to configure.py
should be related.
I would have expected configure.py to lie in
"C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/Resources/"

(I may be wrong of course)


Next question:
How did you start lyx?
If you want to use the source dir as system dir (instead of installed
dir) then you may start lyx with
# lyx -sysdir "C:/Users/Daniel/LyXSource/lyx/lib"

Kornel



I was starting LyX from

C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/bin/


... But still get

Library directory: ~\LyXSource\lyx\lib\

Since configure.py is indeed in

"C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/Resources/"

I tried

# .\LyX.exe -sysdir "C:\Users\Daniel\LyXSource\lyx-build\LYX_INS
TALLED"

Expecting LyX to change the system directory accordingly. But still get
the same error.

Here is all the stuff I am seeing in the console until I have created a
new document. Maybe something makes sense:

PS C:\Users\Daniel\LyXSource\lyx-build\LYX_INSTALLED\bin> .\LyX.exe
-sysdir "C:\Users\Daniel\LyXSource\lyx-build\LYX_INS
TALLED"
Looking for python v2.x or 3.x ...
Examining C:/Program Files/MiKTeX 2.9/miktex/bin/x64//pythontex.exe
Warning: No python v2.x or 3.x binary found.



That's a main reason. Without python in path, you can neither
configure nor read old lyx-files.
(lyx2lyx needs python for instance)


LyX: reconfiguring user directory
support\Systemcall.cpp (268): Systemcall: 'python -tt
"C:/Users/Daniel/LyXSource/lyx/lib/configure.py"
--binary-dir="C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/bin/"'
did not start!
support\Systemcall.cpp (269): error The process failed to start. Either
the invoked program is missing,

^

   Kornel



I reinstalled Python and noticed that the option to set the PATH is not
checked by default. So I checked it. This should probably be mentioned
in the documentation on building LyX on Windows.


I am back to a python problem, I guess. I just redid the whole procedure
for compiling LyX. I have changed nothing else on my system. Here is the
error I get when (re)configuring LyX:

==
Looking for python v2.x or 3.x ...
Examining C:/Program Files/MiKTeX 2.9/miktex/bin/x64//pythontex.exe
Warning: No python v2.x or 3.x binary found.
LyX: reconfiguring user directory
support\Systemcall.cpp (268): Systemcall: 'python -tt
"C:/Users/Daniel/lyx/devel/lyx/lib/configure.py"
--binary-dir="C:/Users/Daniel/lyx/devel/build/LYX_INSTALLED/bin/"' did
not start!
support\Systemcall.cpp (269): error The process failed to start. Either
the invoked program is missing, or you may have insufficient permissions
to invoke the program.
LyX: Done!
==

Not sure why LyX does not find the python binary any more...

Daniel



How do you start lyx? You could write a wrapper .bat file which sets the PATH 
accordingly,
before starting lyx.


I guess I'll have to look into that then.


You know, this is not a python or lyx problem, but the environment in which
you start lyx is not OK.

Not sure I understand the comment about the environment. The environment
I am using is Windows 10, right? So Windows 10 is not OK? Not sure what
you mean. I have instructed python during installation to add to the
PATH and it was added. So, I don't see why LyX does not find it.

Daniel



No, the environment are the settings you use. One of them is PATH.
Some other are for example LANGUAGE, HOME, USER, NLSPATH, TMPDIR.


(Okay, maybe the right term is "environment variable"?)

So, my PATH (or LANGUAGE, etc.) is set wrong? I just had a look at it
and they seem all right. What makes you think they are wrong?


Could you post PATH?


echo $Env:PATH gives:

C:\Program Files (x86)\ImageMagi

Re: Build LyX with MSVC 2017

2018-10-29 Thread Kornel Benko
Am Montag, 29. Oktober 2018 12:05:29 CET schrieb Daniel :
> On 29/10/2018 11:41, Kornel Benko wrote:
> > Am Montag, 29. Oktober 2018 11:27:48 CET schrieb Daniel :
> >> On 29/10/2018 11:13, Kornel Benko wrote:
> >>> Am Montag, 29. Oktober 2018 10:42:09 CET schrieb Daniel :
>  On 25/10/2018 11:34, Daniel wrote:
> > On 25/10/2018 10:11, Kornel Benko wrote:
> >> Am Donnerstag, 25. Oktober 2018 07:18:55 CEST schrieb Daniel
> >> :
> >>> On 24/10/2018 20:00, Daniel wrote:
>  On 24/10/2018 17:48, Kornel Benko wrote:
> > Am Mittwoch, 24. Oktober 2018 17:34:45 CEST schrieb Kornel Benko
> > :
> > 
> >>> Actually, the LyX configure is not working so I have no
> >>> textclasses and
> >>> I cannot "Reconfigure...".
> >>>
> >>> The console shows the following (which might be related):
> >>>
> >>> support\Systemcall.cpp (261): Systemcall: 'python -tt
> >>> "C:/Users/Daniel/LyXSource/lyx/lib/configure.py"
> >>> --binary-dir="C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/bin/"'
> >>>
> >>> did not start!
> >>> support\Systemcall.cpp (262): error The process failed to start.
> >>> Either
> >>> the invoked program is missing, or you may have insufficient
> >>> permissions
> >>> to invoke the program.
> >>>
> >>> Daniel
> >>
> >> This looks wrong to me. Binary-dir and the path to configure.py
> >> should be related.
> >> I would have expected configure.py to lie in
> >> "C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/Resources/"
> >>
> >> (I may be wrong of course)
> >
> > Next question:
> >How did you start lyx?
> > If you want to use the source dir as system dir (instead of 
> > installed
> > dir) then you may start lyx with
> ># lyx -sysdir "C:/Users/Daniel/LyXSource/lyx/lib"
> >
> >Kornel
> >
> 
>  I was starting LyX from
> 
>  C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/bin/
> >>>
> >>> ... But still get
> >>>
> >>> Library directory: ~\LyXSource\lyx\lib\
> >>>
> >>> Since configure.py is indeed in
> >>>
> >>> "C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/Resources/"
> >>>
> >>> I tried
> >>>
> >>> # .\LyX.exe -sysdir "C:\Users\Daniel\LyXSource\lyx-build\LYX_INS
> >>> TALLED"
> >>>
> >>> Expecting LyX to change the system directory accordingly. But still 
> >>> get
> >>> the same error.
> >>>
> >>> Here is all the stuff I am seeing in the console until I have created 
> >>> a
> >>> new document. Maybe something makes sense:
> >>>
> >>> PS C:\Users\Daniel\LyXSource\lyx-build\LYX_INSTALLED\bin> .\LyX.exe
> >>> -sysdir "C:\Users\Daniel\LyXSource\lyx-build\LYX_INS
> >>> TALLED"
> >>> Looking for python v2.x or 3.x ...
> >>> Examining C:/Program Files/MiKTeX 2.9/miktex/bin/x64//pythontex.exe
> >>> Warning: No python v2.x or 3.x binary found.
> >> 
> >>
> >> That's a main reason. Without python in path, you can neither
> >> configure nor read old lyx-files.
> >> (lyx2lyx needs python for instance)
> >>
> >>> LyX: reconfiguring user directory
> >>> support\Systemcall.cpp (268): Systemcall: 'python -tt
> >>> "C:/Users/Daniel/LyXSource/lyx/lib/configure.py"
> >>> --binary-dir="C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/bin/"'
> >>> did not start!
> >>> support\Systemcall.cpp (269): error The process failed to start. 
> >>> Either
> >>> the invoked program is missing,
> >> ^
> >>
> >>   Kornel
> >>
> >
> > I reinstalled Python and noticed that the option to set the PATH is not
> > checked by default. So I checked it. This should probably be mentioned
> > in the documentation on building LyX on Windows.
> 
>  I am back to a python problem, I guess. I just redid the whole procedure
>  for compiling LyX. I have changed nothing else on my system. Here is the
>  error I get when (re)configuring LyX:
> 
>  ==
>  Looking for python v2.x or 3.x ...
>  Examining C:/Program Files/MiKTeX 2.9/miktex/bin/x64//pythontex.exe
>  Warning: No python v2.x or 3.x binary found.
>  LyX: reconfiguring user directory
>  support\Systemcall.cpp (268): Systemcall: 'python -tt
>  "C:/Users/Daniel/lyx/devel/lyx/lib/configure.py"
>  --binary-dir="C:/Users/Daniel/lyx/devel/build/LYX_INSTALLED/bin/"' did
>  not start!
>  support\Systemcall.cpp (269): error The process failed to start. Either
>  the invoked program is missing, or you may have insufficient permissions
>  

Re: Build LyX with MSVC 2017

2018-10-29 Thread Daniel

On 29/10/2018 11:41, Kornel Benko wrote:

Am Montag, 29. Oktober 2018 11:27:48 CET schrieb Daniel :

On 29/10/2018 11:13, Kornel Benko wrote:

Am Montag, 29. Oktober 2018 10:42:09 CET schrieb Daniel :

On 25/10/2018 11:34, Daniel wrote:

On 25/10/2018 10:11, Kornel Benko wrote:

Am Donnerstag, 25. Oktober 2018 07:18:55 CEST schrieb Daniel
:

On 24/10/2018 20:00, Daniel wrote:

On 24/10/2018 17:48, Kornel Benko wrote:

Am Mittwoch, 24. Oktober 2018 17:34:45 CEST schrieb Kornel Benko
:


Actually, the LyX configure is not working so I have no
textclasses and
I cannot "Reconfigure...".

The console shows the following (which might be related):

support\Systemcall.cpp (261): Systemcall: 'python -tt
"C:/Users/Daniel/LyXSource/lyx/lib/configure.py"
--binary-dir="C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/bin/"'

did not start!
support\Systemcall.cpp (262): error The process failed to start.
Either
the invoked program is missing, or you may have insufficient
permissions
to invoke the program.

Daniel


This looks wrong to me. Binary-dir and the path to configure.py
should be related.
I would have expected configure.py to lie in
"C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/Resources/"

(I may be wrong of course)


Next question:
   How did you start lyx?
If you want to use the source dir as system dir (instead of installed
dir) then you may start lyx with
   # lyx -sysdir "C:/Users/Daniel/LyXSource/lyx/lib"

   Kornel



I was starting LyX from

C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/bin/


... But still get

Library directory: ~\LyXSource\lyx\lib\

Since configure.py is indeed in

"C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/Resources/"

I tried

# .\LyX.exe -sysdir "C:\Users\Daniel\LyXSource\lyx-build\LYX_INS
TALLED"

Expecting LyX to change the system directory accordingly. But still get
the same error.

Here is all the stuff I am seeing in the console until I have created a
new document. Maybe something makes sense:

PS C:\Users\Daniel\LyXSource\lyx-build\LYX_INSTALLED\bin> .\LyX.exe
-sysdir "C:\Users\Daniel\LyXSource\lyx-build\LYX_INS
TALLED"
Looking for python v2.x or 3.x ...
Examining C:/Program Files/MiKTeX 2.9/miktex/bin/x64//pythontex.exe
Warning: No python v2.x or 3.x binary found.



That's a main reason. Without python in path, you can neither
configure nor read old lyx-files.
(lyx2lyx needs python for instance)


LyX: reconfiguring user directory
support\Systemcall.cpp (268): Systemcall: 'python -tt
"C:/Users/Daniel/LyXSource/lyx/lib/configure.py"
--binary-dir="C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/bin/"'
did not start!
support\Systemcall.cpp (269): error The process failed to start. Either
the invoked program is missing,

^

  Kornel



I reinstalled Python and noticed that the option to set the PATH is not
checked by default. So I checked it. This should probably be mentioned
in the documentation on building LyX on Windows.


I am back to a python problem, I guess. I just redid the whole procedure
for compiling LyX. I have changed nothing else on my system. Here is the
error I get when (re)configuring LyX:

==
Looking for python v2.x or 3.x ...
Examining C:/Program Files/MiKTeX 2.9/miktex/bin/x64//pythontex.exe
Warning: No python v2.x or 3.x binary found.
LyX: reconfiguring user directory
support\Systemcall.cpp (268): Systemcall: 'python -tt
"C:/Users/Daniel/lyx/devel/lyx/lib/configure.py"
--binary-dir="C:/Users/Daniel/lyx/devel/build/LYX_INSTALLED/bin/"' did
not start!
support\Systemcall.cpp (269): error The process failed to start. Either
the invoked program is missing, or you may have insufficient permissions
to invoke the program.
LyX: Done!
==

Not sure why LyX does not find the python binary any more...

Daniel



How do you start lyx? You could write a wrapper .bat file which sets the PATH 
accordingly,
before starting lyx.


I guess I'll have to look into that then.


You know, this is not a python or lyx problem, but the environment in which
you start lyx is not OK.

Not sure I understand the comment about the environment. The environment
I am using is Windows 10, right? So Windows 10 is not OK? Not sure what
you mean. I have instructed python during installation to add to the
PATH and it was added. So, I don't see why LyX does not find it.

Daniel



No, the environment are the settings you use. One of them is PATH.
Some other are for example LANGUAGE, HOME, USER, NLSPATH, TMPDIR.


(Okay, maybe the right term is "environment variable"?)

So, my PATH (or LANGUAGE, etc.) is set wrong? I just had a look at it 
and they seem all right. What makes you think they are wrong?


LyX outputs:

Looking for python v2.x or 3.x ...
Examining C:/Program Files/MiKTeX 2.9/miktex/bin/x64//pythontex.exe
Warning: No python v2.x or 3.x binary found.

Doesn't that indica

Re: Build LyX with MSVC 2017

2018-10-29 Thread Kornel Benko
Am Montag, 29. Oktober 2018 11:27:48 CET schrieb Daniel :
> On 29/10/2018 11:13, Kornel Benko wrote:
> > Am Montag, 29. Oktober 2018 10:42:09 CET schrieb Daniel :
> >> On 25/10/2018 11:34, Daniel wrote:
> >>> On 25/10/2018 10:11, Kornel Benko wrote:
>  Am Donnerstag, 25. Oktober 2018 07:18:55 CEST schrieb Daniel
>  :
> > On 24/10/2018 20:00, Daniel wrote:
> >> On 24/10/2018 17:48, Kornel Benko wrote:
> >>> Am Mittwoch, 24. Oktober 2018 17:34:45 CEST schrieb Kornel Benko
> >>> :
> >>> 
> > Actually, the LyX configure is not working so I have no
> > textclasses and
> > I cannot "Reconfigure...".
> >
> > The console shows the following (which might be related):
> >
> > support\Systemcall.cpp (261): Systemcall: 'python -tt
> > "C:/Users/Daniel/LyXSource/lyx/lib/configure.py"
> > --binary-dir="C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/bin/"'
> >
> > did not start!
> > support\Systemcall.cpp (262): error The process failed to start.
> > Either
> > the invoked program is missing, or you may have insufficient
> > permissions
> > to invoke the program.
> >
> > Daniel
> 
>  This looks wrong to me. Binary-dir and the path to configure.py
>  should be related.
>  I would have expected configure.py to lie in
>  "C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/Resources/"
> 
>  (I may be wrong of course)
> >>>
> >>> Next question:
> >>>   How did you start lyx?
> >>> If you want to use the source dir as system dir (instead of installed
> >>> dir) then you may start lyx with
> >>>   # lyx -sysdir "C:/Users/Daniel/LyXSource/lyx/lib"
> >>>
> >>>   Kornel
> >>>
> >>
> >> I was starting LyX from
> >>
> >> C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/bin/
> >
> > ... But still get
> >
> > Library directory: ~\LyXSource\lyx\lib\
> >
> > Since configure.py is indeed in
> >
> > "C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/Resources/"
> >
> > I tried
> >
> > # .\LyX.exe -sysdir "C:\Users\Daniel\LyXSource\lyx-build\LYX_INS
> > TALLED"
> >
> > Expecting LyX to change the system directory accordingly. But still get
> > the same error.
> >
> > Here is all the stuff I am seeing in the console until I have created a
> > new document. Maybe something makes sense:
> >
> > PS C:\Users\Daniel\LyXSource\lyx-build\LYX_INSTALLED\bin> .\LyX.exe
> > -sysdir "C:\Users\Daniel\LyXSource\lyx-build\LYX_INS
> > TALLED"
> > Looking for python v2.x or 3.x ...
> > Examining C:/Program Files/MiKTeX 2.9/miktex/bin/x64//pythontex.exe
> > Warning: No python v2.x or 3.x binary found.
>  
> 
>  That's a main reason. Without python in path, you can neither
>  configure nor read old lyx-files.
>  (lyx2lyx needs python for instance)
> 
> > LyX: reconfiguring user directory
> > support\Systemcall.cpp (268): Systemcall: 'python -tt
> > "C:/Users/Daniel/LyXSource/lyx/lib/configure.py"
> > --binary-dir="C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/bin/"'
> > did not start!
> > support\Systemcall.cpp (269): error The process failed to start. Either
> > the invoked program is missing,
>  ^
> 
>   Kornel
> 
> >>>
> >>> I reinstalled Python and noticed that the option to set the PATH is not
> >>> checked by default. So I checked it. This should probably be mentioned
> >>> in the documentation on building LyX on Windows.
> >>
> >> I am back to a python problem, I guess. I just redid the whole procedure
> >> for compiling LyX. I have changed nothing else on my system. Here is the
> >> error I get when (re)configuring LyX:
> >>
> >> ==
> >> Looking for python v2.x or 3.x ...
> >> Examining C:/Program Files/MiKTeX 2.9/miktex/bin/x64//pythontex.exe
> >> Warning: No python v2.x or 3.x binary found.
> >> LyX: reconfiguring user directory
> >> support\Systemcall.cpp (268): Systemcall: 'python -tt
> >> "C:/Users/Daniel/lyx/devel/lyx/lib/configure.py"
> >> --binary-dir="C:/Users/Daniel/lyx/devel/build/LYX_INSTALLED/bin/"' did
> >> not start!
> >> support\Systemcall.cpp (269): error The process failed to start. Either
> >> the invoked program is missing, or you may have insufficient permissions
> >> to invoke the program.
> >> LyX: Done!
> >> ==
> >>
> >> Not sure why LyX does not find the python binary any more...
> >>
> >> Daniel
> >>
> > 
> > How do you start lyx? You could write a wrapper .bat file which sets the 
> > PATH accordingly,
> > before starting lyx.
> 
> I guess I'll have to look into that then.
> 
> 

Re: Build LyX with MSVC 2017

2018-10-29 Thread Daniel

On 29/10/2018 11:13, Kornel Benko wrote:

Am Montag, 29. Oktober 2018 10:42:09 CET schrieb Daniel :

On 25/10/2018 11:34, Daniel wrote:

On 25/10/2018 10:11, Kornel Benko wrote:

Am Donnerstag, 25. Oktober 2018 07:18:55 CEST schrieb Daniel
:

On 24/10/2018 20:00, Daniel wrote:

On 24/10/2018 17:48, Kornel Benko wrote:

Am Mittwoch, 24. Oktober 2018 17:34:45 CEST schrieb Kornel Benko
:


Actually, the LyX configure is not working so I have no
textclasses and
I cannot "Reconfigure...".

The console shows the following (which might be related):

support\Systemcall.cpp (261): Systemcall: 'python -tt
"C:/Users/Daniel/LyXSource/lyx/lib/configure.py"
--binary-dir="C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/bin/"'

did not start!
support\Systemcall.cpp (262): error The process failed to start.
Either
the invoked program is missing, or you may have insufficient
permissions
to invoke the program.

Daniel


This looks wrong to me. Binary-dir and the path to configure.py
should be related.
I would have expected configure.py to lie in
"C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/Resources/"

(I may be wrong of course)


Next question:
  How did you start lyx?
If you want to use the source dir as system dir (instead of installed
dir) then you may start lyx with
  # lyx -sysdir "C:/Users/Daniel/LyXSource/lyx/lib"

  Kornel



I was starting LyX from

C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/bin/


... But still get

Library directory: ~\LyXSource\lyx\lib\

Since configure.py is indeed in

"C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/Resources/"

I tried

# .\LyX.exe -sysdir "C:\Users\Daniel\LyXSource\lyx-build\LYX_INS
TALLED"

Expecting LyX to change the system directory accordingly. But still get
the same error.

Here is all the stuff I am seeing in the console until I have created a
new document. Maybe something makes sense:

PS C:\Users\Daniel\LyXSource\lyx-build\LYX_INSTALLED\bin> .\LyX.exe
-sysdir "C:\Users\Daniel\LyXSource\lyx-build\LYX_INS
TALLED"
Looking for python v2.x or 3.x ...
Examining C:/Program Files/MiKTeX 2.9/miktex/bin/x64//pythontex.exe
Warning: No python v2.x or 3.x binary found.



That's a main reason. Without python in path, you can neither
configure nor read old lyx-files.
(lyx2lyx needs python for instance)


LyX: reconfiguring user directory
support\Systemcall.cpp (268): Systemcall: 'python -tt
"C:/Users/Daniel/LyXSource/lyx/lib/configure.py"
--binary-dir="C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/bin/"'
did not start!
support\Systemcall.cpp (269): error The process failed to start. Either
the invoked program is missing,

^

 Kornel



I reinstalled Python and noticed that the option to set the PATH is not
checked by default. So I checked it. This should probably be mentioned
in the documentation on building LyX on Windows.


I am back to a python problem, I guess. I just redid the whole procedure
for compiling LyX. I have changed nothing else on my system. Here is the
error I get when (re)configuring LyX:

==
Looking for python v2.x or 3.x ...
Examining C:/Program Files/MiKTeX 2.9/miktex/bin/x64//pythontex.exe
Warning: No python v2.x or 3.x binary found.
LyX: reconfiguring user directory
support\Systemcall.cpp (268): Systemcall: 'python -tt
"C:/Users/Daniel/lyx/devel/lyx/lib/configure.py"
--binary-dir="C:/Users/Daniel/lyx/devel/build/LYX_INSTALLED/bin/"' did
not start!
support\Systemcall.cpp (269): error The process failed to start. Either
the invoked program is missing, or you may have insufficient permissions
to invoke the program.
LyX: Done!
==

Not sure why LyX does not find the python binary any more...

Daniel



How do you start lyx? You could write a wrapper .bat file which sets the PATH 
accordingly,
before starting lyx.


I guess I'll have to look into that then.


You know, this is not a python or lyx problem, but the environment in which
you start lyx is not OK.
Not sure I understand the comment about the environment. The environment 
I am using is Windows 10, right? So Windows 10 is not OK? Not sure what 
you mean. I have instructed python during installation to add to the 
PATH and it was added. So, I don't see why LyX does not find it.


Daniel



Re: Build LyX with MSVC 2017

2018-10-29 Thread Kornel Benko
Am Montag, 29. Oktober 2018 10:42:09 CET schrieb Daniel :
> On 25/10/2018 11:34, Daniel wrote:
> > On 25/10/2018 10:11, Kornel Benko wrote:
> >> Am Donnerstag, 25. Oktober 2018 07:18:55 CEST schrieb Daniel 
> >> :
> >>> On 24/10/2018 20:00, Daniel wrote:
>  On 24/10/2018 17:48, Kornel Benko wrote:
> > Am Mittwoch, 24. Oktober 2018 17:34:45 CEST schrieb Kornel Benko
> > :
> > 
> >>> Actually, the LyX configure is not working so I have no 
> >>> textclasses and
> >>> I cannot "Reconfigure...".
> >>>
> >>> The console shows the following (which might be related):
> >>>
> >>> support\Systemcall.cpp (261): Systemcall: 'python -tt
> >>> "C:/Users/Daniel/LyXSource/lyx/lib/configure.py"
> >>> --binary-dir="C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/bin/"'
> >>>  
> >>>
> >>> did not start!
> >>> support\Systemcall.cpp (262): error The process failed to start. 
> >>> Either
> >>> the invoked program is missing, or you may have insufficient
> >>> permissions
> >>> to invoke the program.
> >>>
> >>> Daniel
> >>
> >> This looks wrong to me. Binary-dir and the path to configure.py
> >> should be related.
> >> I would have expected configure.py to lie in
> >> "C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/Resources/"
> >>
> >> (I may be wrong of course)
> >
> > Next question:
> >  How did you start lyx?
> > If you want to use the source dir as system dir (instead of installed
> > dir) then you may start lyx with
> >  # lyx -sysdir "C:/Users/Daniel/LyXSource/lyx/lib"
> >
> >  Kornel
> >
> 
>  I was starting LyX from
> 
>  C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/bin/
> >>>
> >>> ... But still get
> >>>
> >>> Library directory: ~\LyXSource\lyx\lib\
> >>>
> >>> Since configure.py is indeed in
> >>>
> >>> "C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/Resources/"
> >>>
> >>> I tried
> >>>
> >>> # .\LyX.exe -sysdir "C:\Users\Daniel\LyXSource\lyx-build\LYX_INS
> >>> TALLED"
> >>>
> >>> Expecting LyX to change the system directory accordingly. But still get
> >>> the same error.
> >>>
> >>> Here is all the stuff I am seeing in the console until I have created a
> >>> new document. Maybe something makes sense:
> >>>
> >>> PS C:\Users\Daniel\LyXSource\lyx-build\LYX_INSTALLED\bin> .\LyX.exe
> >>> -sysdir "C:\Users\Daniel\LyXSource\lyx-build\LYX_INS
> >>> TALLED"
> >>> Looking for python v2.x or 3.x ...
> >>> Examining C:/Program Files/MiKTeX 2.9/miktex/bin/x64//pythontex.exe
> >>> Warning: No python v2.x or 3.x binary found.
> >> 
> >>
> >> That's a main reason. Without python in path, you can neither 
> >> configure nor read old lyx-files.
> >> (lyx2lyx needs python for instance)
> >>
> >>> LyX: reconfiguring user directory
> >>> support\Systemcall.cpp (268): Systemcall: 'python -tt
> >>> "C:/Users/Daniel/LyXSource/lyx/lib/configure.py"
> >>> --binary-dir="C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/bin/"'
> >>> did not start!
> >>> support\Systemcall.cpp (269): error The process failed to start. Either
> >>> the invoked program is missing,
> >> ^
> >>
> >> Kornel
> >>
> > 
> > I reinstalled Python and noticed that the option to set the PATH is not 
> > checked by default. So I checked it. This should probably be mentioned 
> > in the documentation on building LyX on Windows.
> 
> I am back to a python problem, I guess. I just redid the whole procedure 
> for compiling LyX. I have changed nothing else on my system. Here is the 
> error I get when (re)configuring LyX:
> 
> ==
> Looking for python v2.x or 3.x ...
> Examining C:/Program Files/MiKTeX 2.9/miktex/bin/x64//pythontex.exe
> Warning: No python v2.x or 3.x binary found.
> LyX: reconfiguring user directory
> support\Systemcall.cpp (268): Systemcall: 'python -tt 
> "C:/Users/Daniel/lyx/devel/lyx/lib/configure.py" 
> --binary-dir="C:/Users/Daniel/lyx/devel/build/LYX_INSTALLED/bin/"' did 
> not start!
> support\Systemcall.cpp (269): error The process failed to start. Either 
> the invoked program is missing, or you may have insufficient permissions 
> to invoke the program.
> LyX: Done!
> ==
> 
> Not sure why LyX does not find the python binary any more...
> 
> Daniel
> 

How do you start lyx? You could write a wrapper .bat file which sets the PATH 
accordingly,
before starting lyx.

You know, this is not a python or lyx problem, but the environment in which
you start lyx is not OK.

Kornel




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


Re: Build LyX with MSVC 2017

2018-10-29 Thread Daniel

On 25/10/2018 11:34, Daniel wrote:

On 25/10/2018 10:11, Kornel Benko wrote:
Am Donnerstag, 25. Oktober 2018 07:18:55 CEST schrieb Daniel 
:

On 24/10/2018 20:00, Daniel wrote:

On 24/10/2018 17:48, Kornel Benko wrote:

Am Mittwoch, 24. Oktober 2018 17:34:45 CEST schrieb Kornel Benko
:

Actually, the LyX configure is not working so I have no 
textclasses and

I cannot "Reconfigure...".

The console shows the following (which might be related):

support\Systemcall.cpp (261): Systemcall: 'python -tt
"C:/Users/Daniel/LyXSource/lyx/lib/configure.py"
--binary-dir="C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/bin/"' 


did not start!
support\Systemcall.cpp (262): error The process failed to start. 
Either

the invoked program is missing, or you may have insufficient
permissions
to invoke the program.

Daniel


This looks wrong to me. Binary-dir and the path to configure.py
should be related.
I would have expected configure.py to lie in
"C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/Resources/"

(I may be wrong of course)


Next question:
 How did you start lyx?
If you want to use the source dir as system dir (instead of installed
dir) then you may start lyx with
 # lyx -sysdir "C:/Users/Daniel/LyXSource/lyx/lib"

 Kornel



I was starting LyX from

C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/bin/


... But still get

Library directory: ~\LyXSource\lyx\lib\

Since configure.py is indeed in

"C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/Resources/"

I tried

# .\LyX.exe -sysdir "C:\Users\Daniel\LyXSource\lyx-build\LYX_INS
TALLED"

Expecting LyX to change the system directory accordingly. But still get
the same error.

Here is all the stuff I am seeing in the console until I have created a
new document. Maybe something makes sense:

PS C:\Users\Daniel\LyXSource\lyx-build\LYX_INSTALLED\bin> .\LyX.exe
-sysdir "C:\Users\Daniel\LyXSource\lyx-build\LYX_INS
TALLED"
Looking for python v2.x or 3.x ...
Examining C:/Program Files/MiKTeX 2.9/miktex/bin/x64//pythontex.exe
Warning: No python v2.x or 3.x binary found.



That's a main reason. Without python in path, you can neither 
configure nor read old lyx-files.

(lyx2lyx needs python for instance)


LyX: reconfiguring user directory
support\Systemcall.cpp (268): Systemcall: 'python -tt
"C:/Users/Daniel/LyXSource/lyx/lib/configure.py"
--binary-dir="C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/bin/"'
did not start!
support\Systemcall.cpp (269): error The process failed to start. Either
the invoked program is missing,

^

Kornel



I reinstalled Python and noticed that the option to set the PATH is not 
checked by default. So I checked it. This should probably be mentioned 
in the documentation on building LyX on Windows.


I am back to a python problem, I guess. I just redid the whole procedure 
for compiling LyX. I have changed nothing else on my system. Here is the 
error I get when (re)configuring LyX:


==
Looking for python v2.x or 3.x ...
Examining C:/Program Files/MiKTeX 2.9/miktex/bin/x64//pythontex.exe
Warning: No python v2.x or 3.x binary found.
LyX: reconfiguring user directory
support\Systemcall.cpp (268): Systemcall: 'python -tt 
"C:/Users/Daniel/lyx/devel/lyx/lib/configure.py" 
--binary-dir="C:/Users/Daniel/lyx/devel/build/LYX_INSTALLED/bin/"' did 
not start!
support\Systemcall.cpp (269): error The process failed to start. Either 
the invoked program is missing, or you may have insufficient permissions 
to invoke the program.

LyX: Done!
==

Not sure why LyX does not find the python binary any more...

Daniel



Re: Build LyX with MSVC 2017

2018-10-29 Thread Kornel Benko
Am Montag, 29. Oktober 2018 10:30:58 CET schrieb Daniel :
> On 29/10/2018 09:53, Kornel Benko wrote:
> > Am Montag, 29. Oktober 2018 09:15:19 CET schrieb Daniel :
> >> 2. There are many messages (though no warnings or errors)
> >>
> >> "Unknown compiler version - please run the configure tests and report
> >> the results"
> > 
> > Maybe too old cmake version, which does not yet know your new MSVC compiler.
> > Check for possible version in the cmake-module
> > Modules/Platform/Windows-MSVC.cmake
> > in your cmake installation.
> 
> Not sure what to check for. There are some mentionings of VS 2017.
> 
> But I take it that I can just disregard these messages, right?
> 
> Daniel
> 

I suppose so.

Kornel



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


Re: Build LyX with MSVC 2017

2018-10-29 Thread Daniel

On 29/10/2018 09:53, Kornel Benko wrote:

Am Montag, 29. Oktober 2018 09:15:19 CET schrieb Daniel :

2. There are many messages (though no warnings or errors)

"Unknown compiler version - please run the configure tests and report
the results"


Maybe too old cmake version, which does not yet know your new MSVC compiler.
Check for possible version in the cmake-module
Modules/Platform/Windows-MSVC.cmake
in your cmake installation.


Not sure what to check for. There are some mentionings of VS 2017.

But I take it that I can just disregard these messages, right?

Daniel



Re: Build LyX with MSVC 2017

2018-10-29 Thread Daniel

On 29/10/2018 09:53, Kornel Benko wrote:

Am Montag, 29. Oktober 2018 09:15:19 CET schrieb Daniel :

Seems like everything is building fine now. I'll send the steps I took
in a bit. Two things I noticed:

1. When running CMake "Configure" and the Qt directory is *not* found,
then LYX_USE_QT is changed from "AUTO" to "QT4". My guess is that it
should either stay on "AUTO" or change to "QT5" (since this is the
recommended/default version) in this situation, if possible.


No, this value goes to the cache and has to be QT4 or QT5 to be valid.
AUTO is used only the very first time.

The change to QT4 is done, because QT5 is not found (which is examined first).


Okay, so just an odd behaviour of CMake nothing can be done about. (Odd 
because it chooses the version it does not find that is least preferable 
by search order.)


Daniel



Re: Build LyX with MSVC 2017

2018-10-29 Thread Kornel Benko
Am Montag, 29. Oktober 2018 09:15:19 CET schrieb Daniel :
> Seems like everything is building fine now. I'll send the steps I took 
> in a bit. Two things I noticed:
> 
> 1. When running CMake "Configure" and the Qt directory is *not* found, 
> then LYX_USE_QT is changed from "AUTO" to "QT4". My guess is that it 
> should either stay on "AUTO" or change to "QT5" (since this is the 
> recommended/default version) in this situation, if possible.

No, this value goes to the cache and has to be QT4 or QT5 to be valid.
AUTO is used only the very first time.

The change to QT4 is done, because QT5 is not found (which is examined first).

> 2. There are many messages (though no warnings or errors)
> 
> "Unknown compiler version - please run the configure tests and report 
> the results"

Maybe too old cmake version, which does not yet know your new MSVC compiler.
Check for possible version in the cmake-module
Modules/Platform/Windows-MSVC.cmake
in your cmake installation.

> in MSVC. Not sure what that means and whether it is important.
> 
> Daniel

Kornel



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


Re: Build LyX with MSVC 2017

2018-10-29 Thread Daniel
Seems like everything is building fine now. I'll send the steps I took 
in a bit. Two things I noticed:


1. When running CMake "Configure" and the Qt directory is *not* found, 
then LYX_USE_QT is changed from "AUTO" to "QT4". My guess is that it 
should either stay on "AUTO" or change to "QT5" (since this is the 
recommended/default version) in this situation, if possible.


2. There are many messages (though no warnings or errors)

"Unknown compiler version - please run the configure tests and report 
the results"


in MSVC. Not sure what that means and whether it is important.

Daniel



Re: Build LyX with MSVC 2017

2018-10-28 Thread Kornel Benko
Am Sonntag, 28. Oktober 2018 17:31:15 CET schrieb Daniel :
> On 28/10/2018 07:36, Daniel wrote:
> > On 27/10/2018 20:50, Kornel Benko wrote:
> >> Am Samstag, 27. Oktober 2018 19:57:15 CEST schrieb Daniel 
> >> :
> >>> On 25/10/2018 14:20, Kornel Benko wrote:
>  Am Donnerstag, 25. Oktober 2018 14:00:35 CEST schrieb Daniel 
>  :
> > Obviously I should have changed back the first line:
> >
> > ...
> > else()
> >   set(LYX_USE_STD_REGEX 0)
> >   message(STATUS "Value of MSVC is \"${MSVC15}\"")
> >   message(STATUS "Version = \"${MSVC_VERSION}\"")
> >   if (MSVC_VERSION VERSION_GREATER "10.0")
> >   set(LYX_USE_STD_REGEX 1)
> >   endif()
> > endif()
> > ...
> >
> > And here is the output of CMake:
> >
> > Value of MSVC is ""
> > Version = "1915"
> >
> > Still compiles fine (without cleaning build directory).
> >
> > Best,
> > Daniel
> >
> 
>  OK, so the correct commands should be
>  else()
>  if (MSVC_VERSION LESS 1915)
>  set(LYX_USE_STD_REGEX 0)
>  else()
>  set(LYX_USE_STD_REGEX 1)
>  endif()
>  endif()
> 
>  Kornel
> 
> >>>
> >>> Can you put this in master?
> >>>
> >>> Daniel
> >>>
> >>>
> >>
> >> So you are not requiring  MSVC_VERSION LESS 1600?
> >>
> >> Will do.
> >>
> >> Kornel
> >>
> > 
> > No, for my personal convenience MSVC_VERSION LESS 1915 is sufficient.
> > 
> > Daniel
> 
> Also, could you add it to 2.3.x? That would be great.
> 
> Daniel
> 
> 

Unless really needed, i prefer not to.
It is 2.4 stuff IMHO.

Kornel



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


Re: Build LyX with MSVC 2017

2018-10-28 Thread Daniel

On 28/10/2018 07:36, Daniel wrote:

On 27/10/2018 20:50, Kornel Benko wrote:
Am Samstag, 27. Oktober 2018 19:57:15 CEST schrieb Daniel 
:

On 25/10/2018 14:20, Kornel Benko wrote:
Am Donnerstag, 25. Oktober 2018 14:00:35 CEST schrieb Daniel 
:

Obviously I should have changed back the first line:

...
else()
  set(LYX_USE_STD_REGEX 0)
  message(STATUS "Value of MSVC is \"${MSVC15}\"")
  message(STATUS "Version = \"${MSVC_VERSION}\"")
  if (MSVC_VERSION VERSION_GREATER "10.0")
  set(LYX_USE_STD_REGEX 1)
  endif()
endif()
...

And here is the output of CMake:

Value of MSVC is ""
Version = "1915"

Still compiles fine (without cleaning build directory).

Best,
Daniel



OK, so the correct commands should be
else()
if (MSVC_VERSION LESS 1915)
    set(LYX_USE_STD_REGEX 0)
else()
    set(LYX_USE_STD_REGEX 1)
endif()
endif()

Kornel



Can you put this in master?

Daniel




So you are not requiring  MSVC_VERSION LESS 1600?

Will do.

Kornel



No, for my personal convenience MSVC_VERSION LESS 1915 is sufficient.

Daniel


Also, could you add it to 2.3.x? That would be great.

Daniel




Re: Build LyX with MSVC 2017

2018-10-27 Thread Daniel

On 27/10/2018 20:50, Kornel Benko wrote:

Am Samstag, 27. Oktober 2018 19:57:15 CEST schrieb Daniel :

On 25/10/2018 14:20, Kornel Benko wrote:

Am Donnerstag, 25. Oktober 2018 14:00:35 CEST schrieb Daniel :

Obviously I should have changed back the first line:

...
else()
  set(LYX_USE_STD_REGEX 0)
  message(STATUS "Value of MSVC is \"${MSVC15}\"")
  message(STATUS "Version = \"${MSVC_VERSION}\"")
  if (MSVC_VERSION VERSION_GREATER "10.0")
  set(LYX_USE_STD_REGEX 1)
  endif()
endif()
...

And here is the output of CMake:

Value of MSVC is ""
Version = "1915"

Still compiles fine (without cleaning build directory).

Best,
Daniel



OK, so the correct commands should be
else()
if (MSVC_VERSION LESS 1915)
set(LYX_USE_STD_REGEX 0)
else()
set(LYX_USE_STD_REGEX 1)
endif()
endif()

Kornel



Can you put this in master?

Daniel




So you are not requiring  MSVC_VERSION LESS 1600?

Will do.

Kornel



No, for my personal convenience MSVC_VERSION LESS 1915 is sufficient.

Daniel



Re: Build LyX with MSVC 2017

2018-10-27 Thread Kornel Benko
Am Samstag, 27. Oktober 2018 19:57:15 CEST schrieb Daniel :
> On 25/10/2018 14:20, Kornel Benko wrote:
> > Am Donnerstag, 25. Oktober 2018 14:00:35 CEST schrieb Daniel 
> > :
> >> Obviously I should have changed back the first line:
> >>
> >> ...
> >> else()
> >>  set(LYX_USE_STD_REGEX 0)
> >>  message(STATUS "Value of MSVC is \"${MSVC15}\"")
> >>  message(STATUS "Version = \"${MSVC_VERSION}\"")
> >>  if (MSVC_VERSION VERSION_GREATER "10.0")
> >>  set(LYX_USE_STD_REGEX 1)
> >>  endif()
> >> endif()
> >> ...
> >>
> >> And here is the output of CMake:
> >>
> >> Value of MSVC is ""
> >> Version = "1915"
> >>
> >> Still compiles fine (without cleaning build directory).
> >>
> >> Best,
> >> Daniel
> >>
> > 
> > OK, so the correct commands should be
> > else()
> > if (MSVC_VERSION LESS 1915)
> > set(LYX_USE_STD_REGEX 0)
> > else()
> > set(LYX_USE_STD_REGEX 1)
> > endif()
> > endif()
> > 
> > Kornel
> > 
> 
> Can you put this in master?
> 
> Daniel
> 
> 

So you are not requiring  MSVC_VERSION LESS 1600?

Will do.

Kornel


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


Re: Build LyX with MSVC 2017

2018-10-27 Thread Daniel

On 25/10/2018 14:20, Kornel Benko wrote:

Am Donnerstag, 25. Oktober 2018 14:00:35 CEST schrieb Daniel :

Obviously I should have changed back the first line:

...
else()
 set(LYX_USE_STD_REGEX 0)
 message(STATUS "Value of MSVC is \"${MSVC15}\"")
 message(STATUS "Version = \"${MSVC_VERSION}\"")
 if (MSVC_VERSION VERSION_GREATER "10.0")
 set(LYX_USE_STD_REGEX 1)
 endif()
endif()
...

And here is the output of CMake:

Value of MSVC is ""
Version = "1915"

Still compiles fine (without cleaning build directory).

Best,
Daniel



OK, so the correct commands should be
else()
if (MSVC_VERSION LESS 1915)
set(LYX_USE_STD_REGEX 0)
else()
set(LYX_USE_STD_REGEX 1)
endif()
endif()

Kornel



Can you put this in master?

Daniel



Re: Build LyX with MSVC 2017

2018-10-27 Thread Daniel

On 27/10/2018 16:14, Stephan Witt wrote:

Am 27.10.2018 um 15:40 schrieb Kornel Benko :


Am Samstag, 27. Oktober 2018 15:20:02 CEST schrieb Stephan Witt 
:

Am 27.10.2018 um 15:05 schrieb Kornel Benko :


Am Samstag, 27. Oktober 2018 14:33:04 CEST schrieb Stephan Witt 
:

Am 26.10.2018 um 10:03 schrieb Kornel Benko :


Am Freitag, 26. Oktober 2018 07:58:21 CEST schrieb Daniel :

C:\Qt\5.9.7\msvc2015\include\QtCore\qcompilerdetection.h1352
Error   LNK2019 unresolved external symbol "public: class
std::basic_string,class std::allocator > const __thiscall
lyx::Messages::getIfFound(class std::basic_string,class std::allocator > const &)const "
(?getIfFound@Messages@lyx@@QBE?BV?$basic_string@IU?$char_traits@I@std@@V?


This is defined in src/support/Messages.cpp. Don't know why it is unresolved.
The support dir is always handled, independent of using install.


It depends on ENABLE_NLS. If it is not enabled getIfFound is missing.

I don’t know how the correct implementation of it should be if NLS is disabled.

Stephan



Create a dummy variant?


Of course. But should the implementation return an empty docstring or the 
parameter m?

Stephan



Since no translations are available, 'return docstring();' IMHO.

Kornel


I did it now. I read the comment of 30ec879d3a too and think it was the right 
thing.

Stephan



Thanks. Compiles for me quickly without errors with NLS (and INSTALL) 
deactivated.


Daniel



Re: Build LyX with MSVC 2017

2018-10-27 Thread Stephan Witt
Am 27.10.2018 um 15:40 schrieb Kornel Benko :
> 
> Am Samstag, 27. Oktober 2018 15:20:02 CEST schrieb Stephan Witt 
> :
>> Am 27.10.2018 um 15:05 schrieb Kornel Benko :
>>> 
>>> Am Samstag, 27. Oktober 2018 14:33:04 CEST schrieb Stephan Witt 
>>> :
 Am 26.10.2018 um 10:03 schrieb Kornel Benko :
> 
> Am Freitag, 26. Oktober 2018 07:58:21 CEST schrieb Daniel 
> :
>> C:\Qt\5.9.7\msvc2015\include\QtCore\qcompilerdetection.h1352
>> Error   LNK2019 unresolved external symbol "public: class 
>> std::basic_string> int>,class std::allocator > const __thiscall 
>> lyx::Messages::getIfFound(class std::basic_string> std::char_traits,class std::allocator > const &)const " 
>> (?getIfFound@Messages@lyx@@QBE?BV?$basic_string@IU?$char_traits@I@std@@V?
> 
> This is defined in src/support/Messages.cpp. Don't know why it is 
> unresolved.
> The support dir is always handled, independent of using install.
 
 It depends on ENABLE_NLS. If it is not enabled getIfFound is missing.
 
 I don’t know how the correct implementation of it should be if NLS is 
 disabled.
 
 Stephan
 
>>> 
>>> Create a dummy variant?
>> 
>> Of course. But should the implementation return an empty docstring or the 
>> parameter m?
>> 
>> Stephan 
>> 
> 
> Since no translations are available, 'return docstring();' IMHO.
> 
>   Kornel

I did it now. I read the comment of 30ec879d3a too and think it was the right 
thing.

Stephan

Re: Build LyX with MSVC 2017

2018-10-27 Thread Kornel Benko
Am Samstag, 27. Oktober 2018 15:20:02 CEST schrieb Stephan Witt 
:
> Am 27.10.2018 um 15:05 schrieb Kornel Benko :
> > 
> > Am Samstag, 27. Oktober 2018 14:33:04 CEST schrieb Stephan Witt 
> > :
> >> Am 26.10.2018 um 10:03 schrieb Kornel Benko :
> >>> 
> >>> Am Freitag, 26. Oktober 2018 07:58:21 CEST schrieb Daniel 
> >>> :
>  C:\Qt\5.9.7\msvc2015\include\QtCore\qcompilerdetection.h1352
>  Error   LNK2019 unresolved external symbol "public: class 
>  std::basic_string  int>,class std::allocator > const __thiscall 
>  lyx::Messages::getIfFound(class std::basic_string  std::char_traits,class std::allocator > const &)const " 
>  (?getIfFound@Messages@lyx@@QBE?BV?$basic_string@IU?$char_traits@I@std@@V?
> >>> 
> >>> This is defined in src/support/Messages.cpp. Don't know why it is 
> >>> unresolved.
> >>> The support dir is always handled, independent of using install.
> >> 
> >> It depends on ENABLE_NLS. If it is not enabled getIfFound is missing.
> >> 
> >> I don’t know how the correct implementation of it should be if NLS is 
> >> disabled.
> >> 
> >> Stephan
> >> 
> > 
> > Create a dummy variant?
> 
> Of course. But should the implementation return an empty docstring or the 
> parameter m?
> 
> Stephan 
> 

Since no translations are available, 'return docstring();' IMHO.

Kornel


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


Re: Build LyX with MSVC 2017

2018-10-27 Thread Stephan Witt
Am 27.10.2018 um 15:05 schrieb Kornel Benko :
> 
> Am Samstag, 27. Oktober 2018 14:33:04 CEST schrieb Stephan Witt 
> :
>> Am 26.10.2018 um 10:03 schrieb Kornel Benko :
>>> 
>>> Am Freitag, 26. Oktober 2018 07:58:21 CEST schrieb Daniel :
 C:\Qt\5.9.7\msvc2015\include\QtCore\qcompilerdetection.h1352
 Error   LNK2019 unresolved external symbol "public: class 
 std::basic_string>>> int>,class std::allocator > const __thiscall 
 lyx::Messages::getIfFound(class std::basic_string>>> std::char_traits,class std::allocator > const &)const " 
 (?getIfFound@Messages@lyx@@QBE?BV?$basic_string@IU?$char_traits@I@std@@V?
>>> 
>>> This is defined in src/support/Messages.cpp. Don't know why it is 
>>> unresolved.
>>> The support dir is always handled, independent of using install.
>> 
>> It depends on ENABLE_NLS. If it is not enabled getIfFound is missing.
>> 
>> I don’t know how the correct implementation of it should be if NLS is 
>> disabled.
>> 
>> Stephan
>> 
> 
> Create a dummy variant?

Of course. But should the implementation return an empty docstring or the 
parameter m?

Stephan 

Re: Build LyX with MSVC 2017

2018-10-27 Thread Kornel Benko
Am Samstag, 27. Oktober 2018 14:33:04 CEST schrieb Stephan Witt 
:
> Am 26.10.2018 um 10:03 schrieb Kornel Benko :
> > 
> > Am Freitag, 26. Oktober 2018 07:58:21 CEST schrieb Daniel :
> >> C:\Qt\5.9.7\msvc2015\include\QtCore\qcompilerdetection.h1352
> >> Error   LNK2019 unresolved external symbol "public: class 
> >> std::basic_string >> int>,class std::allocator > const __thiscall 
> >> lyx::Messages::getIfFound(class std::basic_string >> std::char_traits,class std::allocator > const &)const " 
> >> (?getIfFound@Messages@lyx@@QBE?BV?$basic_string@IU?$char_traits@I@std@@V?
> > 
> > This is defined in src/support/Messages.cpp. Don't know why it is 
> > unresolved.
> > The support dir is always handled, independent of using install.
> 
> It depends on ENABLE_NLS. If it is not enabled getIfFound is missing.
> 
> I don’t know how the correct implementation of it should be if NLS is 
> disabled.
> 
> Stephan
> 

Create a dummy variant?

Kornel


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


Re: Build LyX with MSVC 2017

2018-10-27 Thread Stephan Witt
Am 26.10.2018 um 10:03 schrieb Kornel Benko :
> 
> Am Freitag, 26. Oktober 2018 07:58:21 CEST schrieb Daniel :
>> C:\Qt\5.9.7\msvc2015\include\QtCore\qcompilerdetection.h1352
>> Error   LNK2019 unresolved external symbol "public: class 
>> std::basic_string> int>,class std::allocator > const __thiscall 
>> lyx::Messages::getIfFound(class std::basic_string> std::char_traits,class std::allocator > const &)const " 
>> (?getIfFound@Messages@lyx@@QBE?BV?$basic_string@IU?$char_traits@I@std@@V?
> 
> This is defined in src/support/Messages.cpp. Don't know why it is unresolved.
> The support dir is always handled, independent of using install.

It depends on ENABLE_NLS. If it is not enabled getIfFound is missing.

I don’t know how the correct implementation of it should be if NLS is disabled.

Stephan

Re: Build LyX with MSVC 2017

2018-10-26 Thread Daniel

On 26/10/2018 10:03, Kornel Benko wrote:

Am Freitag, 26. Oktober 2018 07:58:21 CEST schrieb Daniel :

C:\Qt\5.9.7\msvc2015\include\QtCore\qcompilerdetection.h1352
Error   LNK2019 unresolved external symbol "public: class
std::basic_string,class std::allocator > const __thiscall
lyx::Messages::getIfFound(class std::basic_string,class std::allocator > const &)const "
(?getIfFound@Messages@lyx@@QBE?BV?$basic_string@IU?$char_traits@I@std@@V?


This is defined in src/support/Messages.cpp. Don't know why it is unresolved.
The support dir is always handled, independent of using install.

Kornel


All I can say is that LYX_INSTALL makes the difference between night and 
day...


Daniel



Re: Build LyX with MSVC 2017

2018-10-26 Thread Kornel Benko
Am Freitag, 26. Oktober 2018 07:58:21 CEST schrieb Daniel :
> C:\Qt\5.9.7\msvc2015\include\QtCore\qcompilerdetection.h1352
> Error   LNK2019 unresolved external symbol "public: class 
> std::basic_string int>,class std::allocator > const __thiscall 
> lyx::Messages::getIfFound(class std::basic_string std::char_traits,class std::allocator > const &)const " 
> (?getIfFound@Messages@lyx@@QBE?BV?$basic_string@IU?$char_traits@I@std@@V?

This is defined in src/support/Messages.cpp. Don't know why it is unresolved.
The support dir is always handled, independent of using install.

Kornel

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


Re: Build LyX with MSVC 2017

2018-10-25 Thread Daniel

On 23/10/2018 10:07, Daniel wrote:

On 23/10/2018 09:39, Kornel Benko wrote:
Am Dienstag, 23. Oktober 2018 09:06:13 CEST schrieb Jean-Marc 
Lasgouttes :
Le 23 octobre 2018 08:44:20 GMT+02:00, Kornel Benko  
a écrit :

You are probably using -DLYX_INSTALL=ON, this implies also LYX_NLS=ON



Why is this necessary ? People may want to install without NLS AFAIU.

JMarc


Sure. They can and they would if not having the necessary tools.
OTOH, it makes sense to me to install with NLS if possible.

There is always the possibility to not use LYX_INSTALL (unfortunately 
i cannot test on Windows)


I disabled LYX_INSTALL and it works now. The difference I noticed was a 
console window that starts with LyX.


Daniel


Unfortunately, disabling LYX_INSTALL does not work when compiling 
current master. So, I am forced to regenerate the .gmo files. Any idea 
what might be going on?


Here are the MSVC errors:

SeverityCodeDescription Project FileLineSuppression 
State
Error (active)	E2512	the argument to a feature-test macro must be a 
simple identifier	frontend_qt 
C:\Qt\5.9.7\msvc2015\include\QtCore\qcompilerdetection.h	1350	
Error (active)	E2512	the argument to a feature-test macro must be a 
simple identifier	frontend_qt 
C:\Qt\5.9.7\msvc2015\include\QtCore\qcompilerdetection.h	1352	
Error	LNK2019	unresolved external symbol "public: class 
std::basic_stringint>,class std::allocator > const __thiscall 
lyx::Messages::getIfFound(class std::basic_stringstd::char_traits,class std::allocator > const &)const " 
(?getIfFound@Messages@lyx@@QBE?BV?$basic_string@IU?$char_traits@I@std@@V?$allocator@I@2@@std@@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@4@@Z) 
referenced in function "public: virtual class QString __thiscall 
lyx::frontend::GuiTranslator::translate(char const *,char const *,char 
const *,int)const " 
(?translate@GuiTranslator@frontend@lyx@@UBE?AVQString@@PBD00H@Z)	LyX 
(applications\LyX\LyX) 
C:\Users\Daniel\LyXSource\lyx-build\src\frontend_qt.lib(GuiApplication.obj) 
1	
Error	LNK1120	1 unresolved externals	LyX (applications\LyX\LyX) 
C:\Users\Daniel\LyXSource\lyx-build\bin\Debug\LyX.exe	1	

Error   MSB3073 The command "setlocal
"C:\Program Files\CMake\bin\cmake.exe" -DBUILD_TYPE=Debug -P 
cmake_install.cmake

if %errorlevel% neq 0 goto :cmEnd
:cmEnd
endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
:cmErrorLevel
exit /b %1
:cmDone
if %errorlevel% neq 0 goto :VCEnd
:VCEnd" exited with code 1.	INSTALL	C:\Program Files (x86)\Microsoft 
Visual 
Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets 
138	


Daniel



Re: Build LyX with MSVC 2017

2018-10-25 Thread Kornel Benko
Am Donnerstag, 25. Oktober 2018 14:16:20 CEST schrieb Daniel :
> On 25/10/2018 14:00, Daniel wrote:
> > On 25/10/2018 13:54, Daniel wrote:
> >> On 25/10/2018 13:00, Kornel Benko wrote:
> >>> Am Donnerstag, 25. Oktober 2018 12:28:25 CEST schrieb Daniel 
> >>> :
>  On 25/10/2018 11:55, Kornel Benko wrote:
> > Am Donnerstag, 25. Oktober 2018 11:36:58 CEST schrieb Daniel 
> > :
> >> On 25/10/2018 11:34, Daniel wrote:
> >>> On 25/10/2018 10:11, Kornel Benko wrote:
>  Am Donnerstag, 25. Oktober 2018 07:18:55 CEST schrieb Daniel
>  :
> > On 24/10/2018 20:00, Daniel wrote:
> >> On 24/10/2018 17:48, Kornel Benko wrote:
> >>> Am Mittwoch, 24. Oktober 2018 17:34:45 CEST schrieb Kornel Benko
> >>> :
> >>> 
> > Actually, the LyX configure is not working so I have no
> > textclasses and
> > I cannot "Reconfigure...".
> >
> > The console shows the following (which might be related):
> >
> > support\Systemcall.cpp (261): Systemcall: 'python -tt
> > "C:/Users/Daniel/LyXSource/lyx/lib/configure.py"
> > --binary-dir="C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/bin/"'
> >  
> >
> >
> > did not start!
> > support\Systemcall.cpp (262): error The process failed to 
> > start.
> > Either
> > the invoked program is missing, or you may have insufficient
> > permissions
> > to invoke the program.
> >
> > Daniel
> 
>  This looks wrong to me. Binary-dir and the path to configure.py
>  should be related.
>  I would have expected configure.py to lie in
>  "C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/Resources/"
> 
>  (I may be wrong of course)
> >>>
> >>> Next question:
> >>>How did you start lyx?
> >>> If you want to use the source dir as system dir (instead of 
> >>> installed
> >>> dir) then you may start lyx with
> >>># lyx -sysdir "C:/Users/Daniel/LyXSource/lyx/lib"
> >>>
> >>>Kornel
> >>>
> >>
> >> I was starting LyX from
> >>
> >> C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/bin/
> >
> > ... But still get
> >
> > Library directory: ~\LyXSource\lyx\lib\
> >
> > Since configure.py is indeed in
> >
> > "C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/Resources/"
> >
> > I tried
> >
> > # .\LyX.exe -sysdir "C:\Users\Daniel\LyXSource\lyx-build\LYX_INS
> > TALLED"
> >
> > Expecting LyX to change the system directory accordingly. But 
> > still get
> > the same error.
> >
> > Here is all the stuff I am seeing in the console until I have 
> > created a
> > new document. Maybe something makes sense:
> >
> > PS C:\Users\Daniel\LyXSource\lyx-build\LYX_INSTALLED\bin> 
> > .\LyX.exe
> > -sysdir "C:\Users\Daniel\LyXSource\lyx-build\LYX_INS
> > TALLED"
> > Looking for python v2.x or 3.x ...
> > Examining C:/Program Files/MiKTeX 
> > 2.9/miktex/bin/x64//pythontex.exe
> > Warning: No python v2.x or 3.x binary found.
>  
> 
>  That's a main reason. Without python in path, you can neither
>  configure nor read old lyx-files.
>  (lyx2lyx needs python for instance)
> 
> > LyX: reconfiguring user directory
> > support\Systemcall.cpp (268): Systemcall: 'python -tt
> > "C:/Users/Daniel/LyXSource/lyx/lib/configure.py"
> > --binary-dir="C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/bin/"'
> >  
> >
> > did not start!
> > support\Systemcall.cpp (269): error The process failed to 
> > start. Either
> > the invoked program is missing,
>  ^
> 
>    Kornel
> 
> >>>
> >>> I reinstalled Python and noticed that the option to set the PATH 
> >>> is not
> >>> checked by default. So I checked it. This should probably be 
> >>> mentioned
> >>> in the documentation on building LyX on Windows.
> >>>
> >>> Changed CMakeLists.txt:288 to
> >>>
> >>> set(LYX_USE_STD_REGEX 1)
> >>>
> >>> even with the latest changes you made it didn't work without, as I
> >>> commented previously. By the way what means
> >>>
> >>>if(MSVC10)
> >>>set(LYX_USE_STD_REGEX 1) #TODO should we use it in 
> >>> ECMAScript
> >>> mode?
> >>>endif()
> >>>
> >>> Shouldn't it

Re: Build LyX with MSVC 2017

2018-10-25 Thread Daniel

On 25/10/2018 14:20, Kornel Benko wrote:

Am Donnerstag, 25. Oktober 2018 14:00:35 CEST schrieb Daniel :

Obviously I should have changed back the first line:

...
else()
 set(LYX_USE_STD_REGEX 0)
 message(STATUS "Value of MSVC is \"${MSVC15}\"")
 message(STATUS "Version = \"${MSVC_VERSION}\"")
 if (MSVC_VERSION VERSION_GREATER "10.0")
 set(LYX_USE_STD_REGEX 1)
 endif()
endif()
...

And here is the output of CMake:

Value of MSVC is ""
Version = "1915"

Still compiles fine (without cleaning build directory).

Best,
Daniel



OK, so the correct commands should be
else()
if (MSVC_VERSION LESS 1915)
set(LYX_USE_STD_REGEX 0)
else()
set(LYX_USE_STD_REGEX 1)
endif()
endif()

Kornel



So what was the MSVC10 supposed to capture before? Shouldn't it be 
somethink like


else()
if (MSVC_VERSION LESS 1600)
set(LYX_USE_STD_REGEX 0)
else()
set(LYX_USE_STD_REGEX 1)
endif()
endif()

Daniel



Re: Build LyX with MSVC 2017

2018-10-25 Thread Kornel Benko
Am Donnerstag, 25. Oktober 2018 14:00:35 CEST schrieb Daniel :
> Obviously I should have changed back the first line:
> 
> ...
> else()
> set(LYX_USE_STD_REGEX 0)
> message(STATUS "Value of MSVC is \"${MSVC15}\"")
> message(STATUS "Version = \"${MSVC_VERSION}\"")
> if (MSVC_VERSION VERSION_GREATER "10.0")
> set(LYX_USE_STD_REGEX 1)
> endif()
> endif()
> ...
> 
> And here is the output of CMake:
> 
> Value of MSVC is ""
> Version = "1915"
> 
> Still compiles fine (without cleaning build directory).
> 
> Best,
> Daniel
> 

OK, so the correct commands should be
else()
if (MSVC_VERSION LESS 1915)
set(LYX_USE_STD_REGEX 0)
else()
set(LYX_USE_STD_REGEX 1)
endif()
endif()

Kornel

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


Re: Build LyX with MSVC 2017

2018-10-25 Thread Daniel

On 25/10/2018 14:00, Daniel wrote:

On 25/10/2018 13:54, Daniel wrote:

On 25/10/2018 13:00, Kornel Benko wrote:
Am Donnerstag, 25. Oktober 2018 12:28:25 CEST schrieb Daniel 
:

On 25/10/2018 11:55, Kornel Benko wrote:
Am Donnerstag, 25. Oktober 2018 11:36:58 CEST schrieb Daniel 
:

On 25/10/2018 11:34, Daniel wrote:

On 25/10/2018 10:11, Kornel Benko wrote:

Am Donnerstag, 25. Oktober 2018 07:18:55 CEST schrieb Daniel
:

On 24/10/2018 20:00, Daniel wrote:

On 24/10/2018 17:48, Kornel Benko wrote:

Am Mittwoch, 24. Oktober 2018 17:34:45 CEST schrieb Kornel Benko
:


Actually, the LyX configure is not working so I have no
textclasses and
I cannot "Reconfigure...".

The console shows the following (which might be related):

support\Systemcall.cpp (261): Systemcall: 'python -tt
"C:/Users/Daniel/LyXSource/lyx/lib/configure.py"
--binary-dir="C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/bin/"' 



did not start!
support\Systemcall.cpp (262): error The process failed to 
start.

Either
the invoked program is missing, or you may have insufficient
permissions
to invoke the program.

Daniel


This looks wrong to me. Binary-dir and the path to configure.py
should be related.
I would have expected configure.py to lie in
"C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/Resources/"

(I may be wrong of course)


Next question:
   How did you start lyx?
If you want to use the source dir as system dir (instead of 
installed

dir) then you may start lyx with
   # lyx -sysdir "C:/Users/Daniel/LyXSource/lyx/lib"

   Kornel



I was starting LyX from

C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/bin/


... But still get

Library directory: ~\LyXSource\lyx\lib\

Since configure.py is indeed in

"C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/Resources/"

I tried

# .\LyX.exe -sysdir "C:\Users\Daniel\LyXSource\lyx-build\LYX_INS
TALLED"

Expecting LyX to change the system directory accordingly. But 
still get

the same error.

Here is all the stuff I am seeing in the console until I have 
created a

new document. Maybe something makes sense:

PS C:\Users\Daniel\LyXSource\lyx-build\LYX_INSTALLED\bin> 
.\LyX.exe

-sysdir "C:\Users\Daniel\LyXSource\lyx-build\LYX_INS
TALLED"
Looking for python v2.x or 3.x ...
Examining C:/Program Files/MiKTeX 
2.9/miktex/bin/x64//pythontex.exe

Warning: No python v2.x or 3.x binary found.



That's a main reason. Without python in path, you can neither
configure nor read old lyx-files.
(lyx2lyx needs python for instance)


LyX: reconfiguring user directory
support\Systemcall.cpp (268): Systemcall: 'python -tt
"C:/Users/Daniel/LyXSource/lyx/lib/configure.py"
--binary-dir="C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/bin/"' 


did not start!
support\Systemcall.cpp (269): error The process failed to 
start. Either

the invoked program is missing,

^

  Kornel



I reinstalled Python and noticed that the option to set the PATH 
is not
checked by default. So I checked it. This should probably be 
mentioned

in the documentation on building LyX on Windows.

Changed CMakeLists.txt:288 to

set(LYX_USE_STD_REGEX 1)

even with the latest changes you made it didn't work without, as I
commented previously. By the way what means

   if(MSVC10)
   set(LYX_USE_STD_REGEX 1) #TODO should we use it in 
ECMAScript

mode?
   endif()

Shouldn't it be MSVC15 for Visual Studio 2017? Some something like
"MSVC10 or above"?

Daniel

Well, I forgot the most important part:

With that all being set everything seems to work now (as far as I 
have

checked)!

Daniel



Sure. What is the value of MSVC10, respective MSVC15?
message(STATUS "Value of MSVC is \"${MSVC15}\"")
Maybe asking for the version could help
message(STATUS "Version = \"${MSVC_VERSION}\"")


Are you asking me to try that out? I have been only using the CMake GUI
so far. But I do not see anything there to run commands. So, more
specific instructions would be helpful.


in that case the 'if' statement could be
if (MSVC_VERSION VERSION_GREATER "10.0")
    set(LYX_USE_STD_REGEX 1)
endif




Yes, please edit the CMakeLists.txt and add the commands.

Kornel


Okay. I believe there were brackets missing after endif. Looks like 
this now:



else()
 set(LYX_USE_STD_REGEX 1)
 message(STATUS "Value of MSVC is \"${MSVC15}\"")
 message(STATUS "Version = \"${MSVC_VERSION}\"")
 if (MSVC_VERSION VERSION_GREATER "10.0")
 set(LYX_USE_STD_REGEX 1)
 endif
endif()


Seems compiles fine. Though I have just reconfigured, generated and 
build and not erased the whole build directory. Let me know if that's 
necessary to test.


Daniel


Obviously I should have changed back the first line:


else()
 set(LYX_USE_STD_REGEX 0)
 message(STATUS "Value of MSVC is \"${MSVC15}\"")
 message(STATUS "Version = \"${MSVC_VERSION}\"")
 if (MSVC_VERSION VERSION_GREATER "10.0")
     set(LYX_USE_STD_REGEX 1

Re: Build LyX with MSVC 2017

2018-10-25 Thread Daniel

On 25/10/2018 13:54, Daniel wrote:

On 25/10/2018 13:00, Kornel Benko wrote:
Am Donnerstag, 25. Oktober 2018 12:28:25 CEST schrieb Daniel 
:

On 25/10/2018 11:55, Kornel Benko wrote:
Am Donnerstag, 25. Oktober 2018 11:36:58 CEST schrieb Daniel 
:

On 25/10/2018 11:34, Daniel wrote:

On 25/10/2018 10:11, Kornel Benko wrote:

Am Donnerstag, 25. Oktober 2018 07:18:55 CEST schrieb Daniel
:

On 24/10/2018 20:00, Daniel wrote:

On 24/10/2018 17:48, Kornel Benko wrote:

Am Mittwoch, 24. Oktober 2018 17:34:45 CEST schrieb Kornel Benko
:


Actually, the LyX configure is not working so I have no
textclasses and
I cannot "Reconfigure...".

The console shows the following (which might be related):

support\Systemcall.cpp (261): Systemcall: 'python -tt
"C:/Users/Daniel/LyXSource/lyx/lib/configure.py"
--binary-dir="C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/bin/"' 



did not start!
support\Systemcall.cpp (262): error The process failed to 
start.

Either
the invoked program is missing, or you may have insufficient
permissions
to invoke the program.

Daniel


This looks wrong to me. Binary-dir and the path to configure.py
should be related.
I would have expected configure.py to lie in
"C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/Resources/"

(I may be wrong of course)


Next question:
   How did you start lyx?
If you want to use the source dir as system dir (instead of 
installed

dir) then you may start lyx with
   # lyx -sysdir "C:/Users/Daniel/LyXSource/lyx/lib"

   Kornel



I was starting LyX from

C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/bin/


... But still get

Library directory: ~\LyXSource\lyx\lib\

Since configure.py is indeed in

"C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/Resources/"

I tried

# .\LyX.exe -sysdir "C:\Users\Daniel\LyXSource\lyx-build\LYX_INS
TALLED"

Expecting LyX to change the system directory accordingly. But 
still get

the same error.

Here is all the stuff I am seeing in the console until I have 
created a

new document. Maybe something makes sense:

PS C:\Users\Daniel\LyXSource\lyx-build\LYX_INSTALLED\bin> .\LyX.exe
-sysdir "C:\Users\Daniel\LyXSource\lyx-build\LYX_INS
TALLED"
Looking for python v2.x or 3.x ...
Examining C:/Program Files/MiKTeX 2.9/miktex/bin/x64//pythontex.exe
Warning: No python v2.x or 3.x binary found.



That's a main reason. Without python in path, you can neither
configure nor read old lyx-files.
(lyx2lyx needs python for instance)


LyX: reconfiguring user directory
support\Systemcall.cpp (268): Systemcall: 'python -tt
"C:/Users/Daniel/LyXSource/lyx/lib/configure.py"
--binary-dir="C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/bin/"' 


did not start!
support\Systemcall.cpp (269): error The process failed to start. 
Either

the invoked program is missing,

^

  Kornel



I reinstalled Python and noticed that the option to set the PATH 
is not
checked by default. So I checked it. This should probably be 
mentioned

in the documentation on building LyX on Windows.

Changed CMakeLists.txt:288 to

set(LYX_USE_STD_REGEX 1)

even with the latest changes you made it didn't work without, as I
commented previously. By the way what means

   if(MSVC10)
   set(LYX_USE_STD_REGEX 1) #TODO should we use it in 
ECMAScript

mode?
   endif()

Shouldn't it be MSVC15 for Visual Studio 2017? Some something like
"MSVC10 or above"?

Daniel

Well, I forgot the most important part:

With that all being set everything seems to work now (as far as I have
checked)!

Daniel



Sure. What is the value of MSVC10, respective MSVC15?
message(STATUS "Value of MSVC is \"${MSVC15}\"")
Maybe asking for the version could help
message(STATUS "Version = \"${MSVC_VERSION}\"")


Are you asking me to try that out? I have been only using the CMake GUI
so far. But I do not see anything there to run commands. So, more
specific instructions would be helpful.


in that case the 'if' statement could be
if (MSVC_VERSION VERSION_GREATER "10.0")
    set(LYX_USE_STD_REGEX 1)
endif




Yes, please edit the CMakeLists.txt and add the commands.

Kornel


Okay. I believe there were brackets missing after endif. Looks like this 
now:



else()
 set(LYX_USE_STD_REGEX 1)
 message(STATUS "Value of MSVC is \"${MSVC15}\"")
 message(STATUS "Version = \"${MSVC_VERSION}\"")
 if (MSVC_VERSION VERSION_GREATER "10.0")
     set(LYX_USE_STD_REGEX 1)
 endif
endif()


Seems compiles fine. Though I have just reconfigured, generated and 
build and not erased the whole build directory. Let me know if that's 
necessary to test.


Daniel


Obviously I should have changed back the first line:

...
else()
set(LYX_USE_STD_REGEX 0)
message(STATUS "Value of MSVC is \"${MSVC15}\"")
message(STATUS "Version = \"${MSVC_VERSION}\"")
if (MSVC_VERSION VERSION_GREATER "10.0")
set(LYX_USE_STD_REGEX 1)
endif()
endif(

Re: Build LyX with MSVC 2017

2018-10-25 Thread Daniel

On 25/10/2018 13:00, Kornel Benko wrote:

Am Donnerstag, 25. Oktober 2018 12:28:25 CEST schrieb Daniel :

On 25/10/2018 11:55, Kornel Benko wrote:

Am Donnerstag, 25. Oktober 2018 11:36:58 CEST schrieb Daniel :

On 25/10/2018 11:34, Daniel wrote:

On 25/10/2018 10:11, Kornel Benko wrote:

Am Donnerstag, 25. Oktober 2018 07:18:55 CEST schrieb Daniel
:

On 24/10/2018 20:00, Daniel wrote:

On 24/10/2018 17:48, Kornel Benko wrote:

Am Mittwoch, 24. Oktober 2018 17:34:45 CEST schrieb Kornel Benko
:


Actually, the LyX configure is not working so I have no
textclasses and
I cannot "Reconfigure...".

The console shows the following (which might be related):

support\Systemcall.cpp (261): Systemcall: 'python -tt
"C:/Users/Daniel/LyXSource/lyx/lib/configure.py"
--binary-dir="C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/bin/"'

did not start!
support\Systemcall.cpp (262): error The process failed to start.
Either
the invoked program is missing, or you may have insufficient
permissions
to invoke the program.

Daniel


This looks wrong to me. Binary-dir and the path to configure.py
should be related.
I would have expected configure.py to lie in
"C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/Resources/"

(I may be wrong of course)


Next question:
   How did you start lyx?
If you want to use the source dir as system dir (instead of installed
dir) then you may start lyx with
   # lyx -sysdir "C:/Users/Daniel/LyXSource/lyx/lib"

   Kornel



I was starting LyX from

C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/bin/


... But still get

Library directory: ~\LyXSource\lyx\lib\

Since configure.py is indeed in

"C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/Resources/"

I tried

# .\LyX.exe -sysdir "C:\Users\Daniel\LyXSource\lyx-build\LYX_INS
TALLED"

Expecting LyX to change the system directory accordingly. But still get
the same error.

Here is all the stuff I am seeing in the console until I have created a
new document. Maybe something makes sense:

PS C:\Users\Daniel\LyXSource\lyx-build\LYX_INSTALLED\bin> .\LyX.exe
-sysdir "C:\Users\Daniel\LyXSource\lyx-build\LYX_INS
TALLED"
Looking for python v2.x or 3.x ...
Examining C:/Program Files/MiKTeX 2.9/miktex/bin/x64//pythontex.exe
Warning: No python v2.x or 3.x binary found.



That's a main reason. Without python in path, you can neither
configure nor read old lyx-files.
(lyx2lyx needs python for instance)


LyX: reconfiguring user directory
support\Systemcall.cpp (268): Systemcall: 'python -tt
"C:/Users/Daniel/LyXSource/lyx/lib/configure.py"
--binary-dir="C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/bin/"'
did not start!
support\Systemcall.cpp (269): error The process failed to start. Either
the invoked program is missing,

^

  Kornel



I reinstalled Python and noticed that the option to set the PATH is not
checked by default. So I checked it. This should probably be mentioned
in the documentation on building LyX on Windows.

Changed CMakeLists.txt:288 to

set(LYX_USE_STD_REGEX 1)

even with the latest changes you made it didn't work without, as I
commented previously. By the way what means

   if(MSVC10)
   set(LYX_USE_STD_REGEX 1) #TODO should we use it in ECMAScript
mode?
   endif()

Shouldn't it be MSVC15 for Visual Studio 2017? Some something like
"MSVC10 or above"?

Daniel

Well, I forgot the most important part:

With that all being set everything seems to work now (as far as I have
checked)!

Daniel



Sure. What is the value of MSVC10, respective MSVC15?
message(STATUS "Value of MSVC is \"${MSVC15}\"")
Maybe asking for the version could help
message(STATUS "Version = \"${MSVC_VERSION}\"")


Are you asking me to try that out? I have been only using the CMake GUI
so far. But I do not see anything there to run commands. So, more
specific instructions would be helpful.


in that case the 'if' statement could be
if (MSVC_VERSION VERSION_GREATER "10.0")
set(LYX_USE_STD_REGEX 1)
endif




Yes, please edit the CMakeLists.txt and add the commands.

Kornel


Okay. I believe there were brackets missing after endif. Looks like this 
now:


...
else()
set(LYX_USE_STD_REGEX 1)
message(STATUS "Value of MSVC is \"${MSVC15}\"")
message(STATUS "Version = \"${MSVC_VERSION}\"")
if (MSVC_VERSION VERSION_GREATER "10.0")
set(LYX_USE_STD_REGEX 1)
endif
endif()
...

Seems compiles fine. Though I have just reconfigured, generated and 
build and not erased the whole build directory. Let me know if that's 
necessary to test.


Daniel



Re: Build LyX with MSVC 2017

2018-10-25 Thread Kornel Benko
Am Donnerstag, 25. Oktober 2018 12:28:25 CEST schrieb Daniel :
> On 25/10/2018 11:55, Kornel Benko wrote:
> > Am Donnerstag, 25. Oktober 2018 11:36:58 CEST schrieb Daniel 
> > :
> >> On 25/10/2018 11:34, Daniel wrote:
> >>> On 25/10/2018 10:11, Kornel Benko wrote:
>  Am Donnerstag, 25. Oktober 2018 07:18:55 CEST schrieb Daniel
>  :
> > On 24/10/2018 20:00, Daniel wrote:
> >> On 24/10/2018 17:48, Kornel Benko wrote:
> >>> Am Mittwoch, 24. Oktober 2018 17:34:45 CEST schrieb Kornel Benko
> >>> :
> >>> 
> > Actually, the LyX configure is not working so I have no
> > textclasses and
> > I cannot "Reconfigure...".
> >
> > The console shows the following (which might be related):
> >
> > support\Systemcall.cpp (261): Systemcall: 'python -tt
> > "C:/Users/Daniel/LyXSource/lyx/lib/configure.py"
> > --binary-dir="C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/bin/"'
> >
> > did not start!
> > support\Systemcall.cpp (262): error The process failed to start.
> > Either
> > the invoked program is missing, or you may have insufficient
> > permissions
> > to invoke the program.
> >
> > Daniel
> 
>  This looks wrong to me. Binary-dir and the path to configure.py
>  should be related.
>  I would have expected configure.py to lie in
>  "C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/Resources/"
> 
>  (I may be wrong of course)
> >>>
> >>> Next question:
> >>>   How did you start lyx?
> >>> If you want to use the source dir as system dir (instead of installed
> >>> dir) then you may start lyx with
> >>>   # lyx -sysdir "C:/Users/Daniel/LyXSource/lyx/lib"
> >>>
> >>>   Kornel
> >>>
> >>
> >> I was starting LyX from
> >>
> >> C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/bin/
> >
> > ... But still get
> >
> > Library directory: ~\LyXSource\lyx\lib\
> >
> > Since configure.py is indeed in
> >
> > "C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/Resources/"
> >
> > I tried
> >
> > # .\LyX.exe -sysdir "C:\Users\Daniel\LyXSource\lyx-build\LYX_INS
> > TALLED"
> >
> > Expecting LyX to change the system directory accordingly. But still get
> > the same error.
> >
> > Here is all the stuff I am seeing in the console until I have created a
> > new document. Maybe something makes sense:
> >
> > PS C:\Users\Daniel\LyXSource\lyx-build\LYX_INSTALLED\bin> .\LyX.exe
> > -sysdir "C:\Users\Daniel\LyXSource\lyx-build\LYX_INS
> > TALLED"
> > Looking for python v2.x or 3.x ...
> > Examining C:/Program Files/MiKTeX 2.9/miktex/bin/x64//pythontex.exe
> > Warning: No python v2.x or 3.x binary found.
>  
> 
>  That's a main reason. Without python in path, you can neither
>  configure nor read old lyx-files.
>  (lyx2lyx needs python for instance)
> 
> > LyX: reconfiguring user directory
> > support\Systemcall.cpp (268): Systemcall: 'python -tt
> > "C:/Users/Daniel/LyXSource/lyx/lib/configure.py"
> > --binary-dir="C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/bin/"'
> > did not start!
> > support\Systemcall.cpp (269): error The process failed to start. Either
> > the invoked program is missing,
>  ^
> 
>   Kornel
> 
> >>>
> >>> I reinstalled Python and noticed that the option to set the PATH is not
> >>> checked by default. So I checked it. This should probably be mentioned
> >>> in the documentation on building LyX on Windows.
> >>>
> >>> Changed CMakeLists.txt:288 to
> >>>
> >>> set(LYX_USE_STD_REGEX 1)
> >>>
> >>> even with the latest changes you made it didn't work without, as I
> >>> commented previously. By the way what means
> >>>
> >>>   if(MSVC10)
> >>>   set(LYX_USE_STD_REGEX 1) #TODO should we use it in ECMAScript
> >>> mode?
> >>>   endif()
> >>>
> >>> Shouldn't it be MSVC15 for Visual Studio 2017? Some something like
> >>> "MSVC10 or above"?
> >>>
> >>> Daniel
> >> Well, I forgot the most important part:
> >>
> >> With that all being set everything seems to work now (as far as I have
> >> checked)!
> >>
> >> Daniel
> >>
> > 
> > Sure. What is the value of MSVC10, respective MSVC15?
> > message(STATUS "Value of MSVC is \"${MSVC15}\"")
> > Maybe asking for the version could help
> > message(STATUS "Version = \"${MSVC_VERSION}\"")
> 
> Are you asking me to try that out? I have been only using the CMake GUI 
> so far. But I do not see anything there to run commands. So, more 
> specific instructions would be helpful.
> 
> > in that case the 'if' statement could be
> > if (MSVC_VERSION VERSION_GREATER "10.0")
> > set(LYX_USE_STD_REGEX 1)
> > endif
> > 


Yes, pleas

Re: Build LyX with MSVC 2017

2018-10-25 Thread Daniel

On 25/10/2018 11:55, Kornel Benko wrote:

Am Donnerstag, 25. Oktober 2018 11:36:58 CEST schrieb Daniel :

On 25/10/2018 11:34, Daniel wrote:

On 25/10/2018 10:11, Kornel Benko wrote:

Am Donnerstag, 25. Oktober 2018 07:18:55 CEST schrieb Daniel
:

On 24/10/2018 20:00, Daniel wrote:

On 24/10/2018 17:48, Kornel Benko wrote:

Am Mittwoch, 24. Oktober 2018 17:34:45 CEST schrieb Kornel Benko
:


Actually, the LyX configure is not working so I have no
textclasses and
I cannot "Reconfigure...".

The console shows the following (which might be related):

support\Systemcall.cpp (261): Systemcall: 'python -tt
"C:/Users/Daniel/LyXSource/lyx/lib/configure.py"
--binary-dir="C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/bin/"'

did not start!
support\Systemcall.cpp (262): error The process failed to start.
Either
the invoked program is missing, or you may have insufficient
permissions
to invoke the program.

Daniel


This looks wrong to me. Binary-dir and the path to configure.py
should be related.
I would have expected configure.py to lie in
"C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/Resources/"

(I may be wrong of course)


Next question:
  How did you start lyx?
If you want to use the source dir as system dir (instead of installed
dir) then you may start lyx with
  # lyx -sysdir "C:/Users/Daniel/LyXSource/lyx/lib"

  Kornel



I was starting LyX from

C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/bin/


... But still get

Library directory: ~\LyXSource\lyx\lib\

Since configure.py is indeed in

"C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/Resources/"

I tried

# .\LyX.exe -sysdir "C:\Users\Daniel\LyXSource\lyx-build\LYX_INS
TALLED"

Expecting LyX to change the system directory accordingly. But still get
the same error.

Here is all the stuff I am seeing in the console until I have created a
new document. Maybe something makes sense:

PS C:\Users\Daniel\LyXSource\lyx-build\LYX_INSTALLED\bin> .\LyX.exe
-sysdir "C:\Users\Daniel\LyXSource\lyx-build\LYX_INS
TALLED"
Looking for python v2.x or 3.x ...
Examining C:/Program Files/MiKTeX 2.9/miktex/bin/x64//pythontex.exe
Warning: No python v2.x or 3.x binary found.



That's a main reason. Without python in path, you can neither
configure nor read old lyx-files.
(lyx2lyx needs python for instance)


LyX: reconfiguring user directory
support\Systemcall.cpp (268): Systemcall: 'python -tt
"C:/Users/Daniel/LyXSource/lyx/lib/configure.py"
--binary-dir="C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/bin/"'
did not start!
support\Systemcall.cpp (269): error The process failed to start. Either
the invoked program is missing,

^

 Kornel



I reinstalled Python and noticed that the option to set the PATH is not
checked by default. So I checked it. This should probably be mentioned
in the documentation on building LyX on Windows.

Changed CMakeLists.txt:288 to

set(LYX_USE_STD_REGEX 1)

even with the latest changes you made it didn't work without, as I
commented previously. By the way what means

  if(MSVC10)
  set(LYX_USE_STD_REGEX 1) #TODO should we use it in ECMAScript
mode?
  endif()

Shouldn't it be MSVC15 for Visual Studio 2017? Some something like
"MSVC10 or above"?

Daniel

Well, I forgot the most important part:

With that all being set everything seems to work now (as far as I have
checked)!

Daniel



Sure. What is the value of MSVC10, respective MSVC15?
message(STATUS "Value of MSVC is \"${MSVC15}\"")
Maybe asking for the version could help
message(STATUS "Version = \"${MSVC_VERSION}\"")


Are you asking me to try that out? I have been only using the CMake GUI 
so far. But I do not see anything there to run commands. So, more 
specific instructions would be helpful.



in that case the 'if' statement could be
if (MSVC_VERSION VERSION_GREATER "10.0")
set(LYX_USE_STD_REGEX 1)
endif

Kornel







Re: Build LyX with MSVC 2017

2018-10-25 Thread Kornel Benko
Am Donnerstag, 25. Oktober 2018 11:36:58 CEST schrieb Daniel :
> On 25/10/2018 11:34, Daniel wrote:
> > On 25/10/2018 10:11, Kornel Benko wrote:
> >> Am Donnerstag, 25. Oktober 2018 07:18:55 CEST schrieb Daniel 
> >> :
> >>> On 24/10/2018 20:00, Daniel wrote:
>  On 24/10/2018 17:48, Kornel Benko wrote:
> > Am Mittwoch, 24. Oktober 2018 17:34:45 CEST schrieb Kornel Benko
> > :
> > 
> >>> Actually, the LyX configure is not working so I have no 
> >>> textclasses and
> >>> I cannot "Reconfigure...".
> >>>
> >>> The console shows the following (which might be related):
> >>>
> >>> support\Systemcall.cpp (261): Systemcall: 'python -tt
> >>> "C:/Users/Daniel/LyXSource/lyx/lib/configure.py"
> >>> --binary-dir="C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/bin/"'
> >>>  
> >>>
> >>> did not start!
> >>> support\Systemcall.cpp (262): error The process failed to start. 
> >>> Either
> >>> the invoked program is missing, or you may have insufficient
> >>> permissions
> >>> to invoke the program.
> >>>
> >>> Daniel
> >>
> >> This looks wrong to me. Binary-dir and the path to configure.py
> >> should be related.
> >> I would have expected configure.py to lie in
> >> "C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/Resources/"
> >>
> >> (I may be wrong of course)
> >
> > Next question:
> >  How did you start lyx?
> > If you want to use the source dir as system dir (instead of installed
> > dir) then you may start lyx with
> >  # lyx -sysdir "C:/Users/Daniel/LyXSource/lyx/lib"
> >
> >  Kornel
> >
> 
>  I was starting LyX from
> 
>  C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/bin/
> >>>
> >>> ... But still get
> >>>
> >>> Library directory: ~\LyXSource\lyx\lib\
> >>>
> >>> Since configure.py is indeed in
> >>>
> >>> "C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/Resources/"
> >>>
> >>> I tried
> >>>
> >>> # .\LyX.exe -sysdir "C:\Users\Daniel\LyXSource\lyx-build\LYX_INS
> >>> TALLED"
> >>>
> >>> Expecting LyX to change the system directory accordingly. But still get
> >>> the same error.
> >>>
> >>> Here is all the stuff I am seeing in the console until I have created a
> >>> new document. Maybe something makes sense:
> >>>
> >>> PS C:\Users\Daniel\LyXSource\lyx-build\LYX_INSTALLED\bin> .\LyX.exe
> >>> -sysdir "C:\Users\Daniel\LyXSource\lyx-build\LYX_INS
> >>> TALLED"
> >>> Looking for python v2.x or 3.x ...
> >>> Examining C:/Program Files/MiKTeX 2.9/miktex/bin/x64//pythontex.exe
> >>> Warning: No python v2.x or 3.x binary found.
> >> 
> >>
> >> That's a main reason. Without python in path, you can neither 
> >> configure nor read old lyx-files.
> >> (lyx2lyx needs python for instance)
> >>
> >>> LyX: reconfiguring user directory
> >>> support\Systemcall.cpp (268): Systemcall: 'python -tt
> >>> "C:/Users/Daniel/LyXSource/lyx/lib/configure.py"
> >>> --binary-dir="C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/bin/"'
> >>> did not start!
> >>> support\Systemcall.cpp (269): error The process failed to start. Either
> >>> the invoked program is missing,
> >> ^
> >>
> >> Kornel
> >>
> > 
> > I reinstalled Python and noticed that the option to set the PATH is not 
> > checked by default. So I checked it. This should probably be mentioned 
> > in the documentation on building LyX on Windows.
> > 
> > Changed CMakeLists.txt:288 to
> > 
> > set(LYX_USE_STD_REGEX 1)
> > 
> > even with the latest changes you made it didn't work without, as I 
> > commented previously. By the way what means
> > 
> >  if(MSVC10)
> >  set(LYX_USE_STD_REGEX 1) #TODO should we use it in ECMAScript 
> > mode?
> >  endif()
> > 
> > Shouldn't it be MSVC15 for Visual Studio 2017? Some something like 
> > "MSVC10 or above"?
> > 
> > Daniel
> Well, I forgot the most important part:
> 
> With that all being set everything seems to work now (as far as I have 
> checked)!
> 
> Daniel
> 

Sure. What is the value of MSVC10, respective MSVC15?
message(STATUS "Value of MSVC is \"${MSVC15}\"")
Maybe asking for the version could help
message(STATUS "Version = \"${MSVC_VERSION}\"")

in that case the 'if' statement could be
if (MSVC_VERSION VERSION_GREATER "10.0")
set(LYX_USE_STD_REGEX 1) 
endif

Kornel


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


Re: Build LyX with MSVC 2017

2018-10-25 Thread Daniel

On 25/10/2018 11:34, Daniel wrote:

On 25/10/2018 10:11, Kornel Benko wrote:
Am Donnerstag, 25. Oktober 2018 07:18:55 CEST schrieb Daniel 
:

On 24/10/2018 20:00, Daniel wrote:

On 24/10/2018 17:48, Kornel Benko wrote:

Am Mittwoch, 24. Oktober 2018 17:34:45 CEST schrieb Kornel Benko
:

Actually, the LyX configure is not working so I have no 
textclasses and

I cannot "Reconfigure...".

The console shows the following (which might be related):

support\Systemcall.cpp (261): Systemcall: 'python -tt
"C:/Users/Daniel/LyXSource/lyx/lib/configure.py"
--binary-dir="C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/bin/"' 


did not start!
support\Systemcall.cpp (262): error The process failed to start. 
Either

the invoked program is missing, or you may have insufficient
permissions
to invoke the program.

Daniel


This looks wrong to me. Binary-dir and the path to configure.py
should be related.
I would have expected configure.py to lie in
"C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/Resources/"

(I may be wrong of course)


Next question:
 How did you start lyx?
If you want to use the source dir as system dir (instead of installed
dir) then you may start lyx with
 # lyx -sysdir "C:/Users/Daniel/LyXSource/lyx/lib"

 Kornel



I was starting LyX from

C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/bin/


... But still get

Library directory: ~\LyXSource\lyx\lib\

Since configure.py is indeed in

"C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/Resources/"

I tried

# .\LyX.exe -sysdir "C:\Users\Daniel\LyXSource\lyx-build\LYX_INS
TALLED"

Expecting LyX to change the system directory accordingly. But still get
the same error.

Here is all the stuff I am seeing in the console until I have created a
new document. Maybe something makes sense:

PS C:\Users\Daniel\LyXSource\lyx-build\LYX_INSTALLED\bin> .\LyX.exe
-sysdir "C:\Users\Daniel\LyXSource\lyx-build\LYX_INS
TALLED"
Looking for python v2.x or 3.x ...
Examining C:/Program Files/MiKTeX 2.9/miktex/bin/x64//pythontex.exe
Warning: No python v2.x or 3.x binary found.



That's a main reason. Without python in path, you can neither 
configure nor read old lyx-files.

(lyx2lyx needs python for instance)


LyX: reconfiguring user directory
support\Systemcall.cpp (268): Systemcall: 'python -tt
"C:/Users/Daniel/LyXSource/lyx/lib/configure.py"
--binary-dir="C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/bin/"'
did not start!
support\Systemcall.cpp (269): error The process failed to start. Either
the invoked program is missing,

^

Kornel



I reinstalled Python and noticed that the option to set the PATH is not 
checked by default. So I checked it. This should probably be mentioned 
in the documentation on building LyX on Windows.


Changed CMakeLists.txt:288 to

set(LYX_USE_STD_REGEX 1)

even with the latest changes you made it didn't work without, as I 
commented previously. By the way what means


 if(MSVC10)
     set(LYX_USE_STD_REGEX 1) #TODO should we use it in ECMAScript 
mode?

 endif()

Shouldn't it be MSVC15 for Visual Studio 2017? Some something like 
"MSVC10 or above"?


Daniel

Well, I forgot the most important part:

With that all being set everything seems to work now (as far as I have 
checked)!


Daniel




Re: Build LyX with MSVC 2017

2018-10-25 Thread Daniel

On 25/10/2018 10:11, Kornel Benko wrote:

Am Donnerstag, 25. Oktober 2018 07:18:55 CEST schrieb Daniel :

On 24/10/2018 20:00, Daniel wrote:

On 24/10/2018 17:48, Kornel Benko wrote:

Am Mittwoch, 24. Oktober 2018 17:34:45 CEST schrieb Kornel Benko
:


Actually, the LyX configure is not working so I have no textclasses and
I cannot "Reconfigure...".

The console shows the following (which might be related):

support\Systemcall.cpp (261): Systemcall: 'python -tt
"C:/Users/Daniel/LyXSource/lyx/lib/configure.py"
--binary-dir="C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/bin/"'
did not start!
support\Systemcall.cpp (262): error The process failed to start. Either
the invoked program is missing, or you may have insufficient
permissions
to invoke the program.

Daniel


This looks wrong to me. Binary-dir and the path to configure.py
should be related.
I would have expected configure.py to lie in
"C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/Resources/"

(I may be wrong of course)


Next question:
 How did you start lyx?
If you want to use the source dir as system dir (instead of installed
dir) then you may start lyx with
 # lyx -sysdir "C:/Users/Daniel/LyXSource/lyx/lib"

 Kornel



I was starting LyX from

C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/bin/


... But still get

Library directory: ~\LyXSource\lyx\lib\

Since configure.py is indeed in

"C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/Resources/"

I tried

# .\LyX.exe -sysdir "C:\Users\Daniel\LyXSource\lyx-build\LYX_INS
TALLED"

Expecting LyX to change the system directory accordingly. But still get
the same error.

Here is all the stuff I am seeing in the console until I have created a
new document. Maybe something makes sense:

PS C:\Users\Daniel\LyXSource\lyx-build\LYX_INSTALLED\bin> .\LyX.exe
-sysdir "C:\Users\Daniel\LyXSource\lyx-build\LYX_INS
TALLED"
Looking for python v2.x or 3.x ...
Examining C:/Program Files/MiKTeX 2.9/miktex/bin/x64//pythontex.exe
Warning: No python v2.x or 3.x binary found.



That's a main reason. Without python in path, you can neither configure nor 
read old lyx-files.
(lyx2lyx needs python for instance)


LyX: reconfiguring user directory
support\Systemcall.cpp (268): Systemcall: 'python -tt
"C:/Users/Daniel/LyXSource/lyx/lib/configure.py"
--binary-dir="C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/bin/"'
did not start!
support\Systemcall.cpp (269): error The process failed to start. Either
the invoked program is missing,

^

Kornel



I reinstalled Python and noticed that the option to set the PATH is not 
checked by default. So I checked it. This should probably be mentioned 
in the documentation on building LyX on Windows.


Changed CMakeLists.txt:288 to

set(LYX_USE_STD_REGEX 1)

even with the latest changes you made it didn't work without, as I 
commented previously. By the way what means


if(MSVC10)
set(LYX_USE_STD_REGEX 1) #TODO should we use it in ECMAScript 
mode?
endif()

Shouldn't it be MSVC15 for Visual Studio 2017? Some something like 
"MSVC10 or above"?


Daniel




Re: Build LyX with MSVC 2017

2018-10-25 Thread Kornel Benko
Am Donnerstag, 25. Oktober 2018 07:24:38 CEST schrieb Daniel :
> On 24/10/2018 23:29, Kornel Benko wrote:
> > Am Mittwoch, 24. Oktober 2018 20:08:23 CEST schrieb Daniel 
> > :
> >> ambiguous call to overloaded function   LyX (applications\LyX\LyX)
> >> C:\Users\Daniel\LyXSource\lyx\src\lyxfind.cpp   1251
> >> Error   C2668
> >> 'boost::match_results>>,std::allocator>::position'
> > 
> > I am seeing only this declarations in boost for match_results:
> > 
> > difference_type position(unsigned int sub = 0) const;
> > difference_type position(const char_type* sub) const;
> > difference_type position(const charT* sub) const;
> > difference_type position(const std::basic_string& 
> > sub) const;
> > 
> > Since we need the first one, could you try to substitute the calls in 
> > lyxfind.cpp
> > sub.position(0)
> > with
> > sub.position(size_t(0))
> > 
> > please?
> > 
> > Kornel
> > 
> 
> Should I try those as well now that I don't get errors anymore? Changing 
> the CMake settings seems to be less of a hussle than changing the sources.
> 
> Daniel
> 

Normally it is the other way which we prefer. But in this case ... we are 
waiting for a long time
to remove boost completely, but for instance because MSVC could not use 
std::regex, we was bound.

Yes, change to CMakeLists.txt is preferable.

Kornel



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


Re: Build LyX with MSVC 2017

2018-10-25 Thread Kornel Benko
Am Donnerstag, 25. Oktober 2018 07:18:55 CEST schrieb Daniel :
> On 24/10/2018 20:00, Daniel wrote:
> > On 24/10/2018 17:48, Kornel Benko wrote:
> >> Am Mittwoch, 24. Oktober 2018 17:34:45 CEST schrieb Kornel Benko 
> >> :
> >> 
>  Actually, the LyX configure is not working so I have no textclasses and
>  I cannot "Reconfigure...".
> 
>  The console shows the following (which might be related):
> 
>  support\Systemcall.cpp (261): Systemcall: 'python -tt
>  "C:/Users/Daniel/LyXSource/lyx/lib/configure.py"
>  --binary-dir="C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/bin/"'
>  did not start!
>  support\Systemcall.cpp (262): error The process failed to start. Either
>  the invoked program is missing, or you may have insufficient 
>  permissions
>  to invoke the program.
> 
>  Daniel
> >>>
> >>> This looks wrong to me. Binary-dir and the path to configure.py 
> >>> should be related.
> >>> I would have expected configure.py to lie in 
> >>> "C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/Resources/"
> >>>
> >>> (I may be wrong of course)
> >>
> >> Next question:
> >> How did you start lyx?
> >> If you want to use the source dir as system dir (instead of installed 
> >> dir) then you may start lyx with
> >> # lyx -sysdir "C:/Users/Daniel/LyXSource/lyx/lib"
> >>
> >> Kornel
> >>
> > 
> > I was starting LyX from
> > 
> > C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/bin/
> 
> ... But still get
> 
> Library directory: ~\LyXSource\lyx\lib\
> 
> Since configure.py is indeed in
> 
> "C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/Resources/"
> 
> I tried
> 
> # .\LyX.exe -sysdir "C:\Users\Daniel\LyXSource\lyx-build\LYX_INS
> TALLED"
> 
> Expecting LyX to change the system directory accordingly. But still get 
> the same error.
> 
> Here is all the stuff I am seeing in the console until I have created a 
> new document. Maybe something makes sense:
> 
> PS C:\Users\Daniel\LyXSource\lyx-build\LYX_INSTALLED\bin> .\LyX.exe 
> -sysdir "C:\Users\Daniel\LyXSource\lyx-build\LYX_INS
> TALLED"
> Looking for python v2.x or 3.x ...
> Examining C:/Program Files/MiKTeX 2.9/miktex/bin/x64//pythontex.exe
> Warning: No python v2.x or 3.x binary found.


That's a main reason. Without python in path, you can neither configure nor 
read old lyx-files.
(lyx2lyx needs python for instance)

> LyX: reconfiguring user directory
> support\Systemcall.cpp (268): Systemcall: 'python -tt 
> "C:/Users/Daniel/LyXSource/lyx/lib/configure.py" 
> --binary-dir="C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/bin/"' 
> did not start!
> support\Systemcall.cpp (269): error The process failed to start. Either 
> the invoked program is missing,
^

Kornel


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


Re: Build LyX with MSVC 2017

2018-10-25 Thread Kornel Benko
Am Donnerstag, 25. Oktober 2018 07:21:00 CEST schrieb Daniel :
> On 24/10/2018 17:48, Kornel Benko wrote:
> > Am Mittwoch, 24. Oktober 2018 17:34:45 CEST schrieb Kornel Benko 
> > :
> > 
> >>> Actually, the LyX configure is not working so I have no textclasses and
> >>> I cannot "Reconfigure...".
> >>>
> >>> The console shows the following (which might be related):
> >>>
> >>> support\Systemcall.cpp (261): Systemcall: 'python -tt
> >>> "C:/Users/Daniel/LyXSource/lyx/lib/configure.py"
> >>> --binary-dir="C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/bin/"'
> >>> did not start!
> >>> support\Systemcall.cpp (262): error The process failed to start. Either
> >>> the invoked program is missing, or you may have insufficient permissions
> >>> to invoke the program.
> >>>
> >>> Daniel
> >>
> >> This looks wrong to me. Binary-dir and the path to configure.py should be 
> >> related.
> >> I would have expected configure.py to lie in 
> >> "C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/Resources/"
> >>
> >> (I may be wrong of course)
> > 
> > Next question:
> > How did you start lyx?
> > If you want to use the source dir as system dir (instead of installed dir) 
> > then you may start lyx with
> > # lyx -sysdir "C:/Users/Daniel/LyXSource/lyx/lib"
> > 
> > Kornel
> 
> I did not want to start LyX from the source dir

And I did not urged you to.

> and never did. But 
> should I want to use the source dir?

All our tests do it that way. Starting lyx form the build-dir _and_ use the 
source dir to read the needed
resource files.

> Daniel
> 

Kornel


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


Re: Build LyX with MSVC 2017

2018-10-24 Thread Daniel

On 24/10/2018 23:29, Kornel Benko wrote:

Am Mittwoch, 24. Oktober 2018 20:08:23 CEST schrieb Daniel :

ambiguous call to overloaded function   LyX (applications\LyX\LyX)
C:\Users\Daniel\LyXSource\lyx\src\lyxfind.cpp   1251
Error   C2668
'boost::match_results>>,std::allocator>::position'


I am seeing only this declarations in boost for match_results:

difference_type position(unsigned int sub = 0) const;
difference_type position(const char_type* sub) const;
difference_type position(const charT* sub) const;
difference_type position(const std::basic_string& sub) 
const;

Since we need the first one, could you try to substitute the calls in 
lyxfind.cpp
sub.position(0)
with
sub.position(size_t(0))

please?

Kornel



Should I try those as well now that I don't get errors anymore? Changing 
the CMake settings seems to be less of a hussle than changing the sources.


Daniel



Re: Build LyX with MSVC 2017

2018-10-24 Thread Daniel

On 24/10/2018 17:48, Kornel Benko wrote:

Am Mittwoch, 24. Oktober 2018 17:34:45 CEST schrieb Kornel Benko 
:


Actually, the LyX configure is not working so I have no textclasses and
I cannot "Reconfigure...".

The console shows the following (which might be related):

support\Systemcall.cpp (261): Systemcall: 'python -tt
"C:/Users/Daniel/LyXSource/lyx/lib/configure.py"
--binary-dir="C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/bin/"'
did not start!
support\Systemcall.cpp (262): error The process failed to start. Either
the invoked program is missing, or you may have insufficient permissions
to invoke the program.

Daniel


This looks wrong to me. Binary-dir and the path to configure.py should be 
related.
I would have expected configure.py to lie in 
"C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/Resources/"

(I may be wrong of course)


Next question:
How did you start lyx?
If you want to use the source dir as system dir (instead of installed dir) then 
you may start lyx with
# lyx -sysdir "C:/Users/Daniel/LyXSource/lyx/lib"

Kornel


I did not want to start LyX from the source dir and never did. But 
should I want to use the source dir?


Daniel



Re: Build LyX with MSVC 2017

2018-10-24 Thread Daniel

On 24/10/2018 20:00, Daniel wrote:

On 24/10/2018 17:48, Kornel Benko wrote:
Am Mittwoch, 24. Oktober 2018 17:34:45 CEST schrieb Kornel Benko 
:



Actually, the LyX configure is not working so I have no textclasses and
I cannot "Reconfigure...".

The console shows the following (which might be related):

support\Systemcall.cpp (261): Systemcall: 'python -tt
"C:/Users/Daniel/LyXSource/lyx/lib/configure.py"
--binary-dir="C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/bin/"'
did not start!
support\Systemcall.cpp (262): error The process failed to start. Either
the invoked program is missing, or you may have insufficient 
permissions

to invoke the program.

Daniel


This looks wrong to me. Binary-dir and the path to configure.py 
should be related.
I would have expected configure.py to lie in 
"C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/Resources/"


(I may be wrong of course)


Next question:
How did you start lyx?
If you want to use the source dir as system dir (instead of installed 
dir) then you may start lyx with

# lyx -sysdir "C:/Users/Daniel/LyXSource/lyx/lib"

Kornel



I was starting LyX from

C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/bin/


... But still get

Library directory: ~\LyXSource\lyx\lib\

Since configure.py is indeed in

"C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/Resources/"

I tried

# .\LyX.exe -sysdir "C:\Users\Daniel\LyXSource\lyx-build\LYX_INS
TALLED"

Expecting LyX to change the system directory accordingly. But still get 
the same error.


Here is all the stuff I am seeing in the console until I have created a 
new document. Maybe something makes sense:


PS C:\Users\Daniel\LyXSource\lyx-build\LYX_INSTALLED\bin> .\LyX.exe 
-sysdir "C:\Users\Daniel\LyXSource\lyx-build\LYX_INS

TALLED"
Looking for python v2.x or 3.x ...
Examining C:/Program Files/MiKTeX 2.9/miktex/bin/x64//pythontex.exe
Warning: No python v2.x or 3.x binary found.
LyX: reconfiguring user directory
support\Systemcall.cpp (268): Systemcall: 'python -tt 
"C:/Users/Daniel/LyXSource/lyx/lib/configure.py" 
--binary-dir="C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/bin/"' 
did not start!
support\Systemcall.cpp (269): error The process failed to start. Either 
the invoked program is missing, or you may have insufficient permissions 
to invoke the program.

LyX: Done!
LayoutFile.cpp (111): LayoutFileList::Read: unable to find textclass 
file  `textclass.lst'.

LayoutFile.cpp (172): LayoutFileList::Read: no textclasses found!
ModuleList.cpp (129): unable to find modules file `lyxmodules.lst'.
No modules will be available.
CiteEnginesList.cpp (174): unable to find cite engines file 
`citeengines.lst'.

No cite engines will be available.
LyX: reconfiguring user directory
support\Systemcall.cpp (268): Systemcall: 'python -tt 
"C:/Users/Daniel/LyXSource/lyx/lib/configure.py" 
--binary-dir="C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/bin/"' 
did not start!
support\Systemcall.cpp (269): error The process failed to start. Either 
the invoked program is missing, or you may have insufficient permissions 
to invoke the program.

LyX: Done!
Error: Document class not found

The layout file:
article
could not be found. A default textclass with default
layouts will be used. LyX will not be able to produce
correct output.
TextClass.cpp (111): Conversion of layout with layout2layout.py has failed.
TextClass.cpp (363): Unable to convert 
C:/Users/Daniel/LyXSource/lyx/lib/layouts/stdclass.inc to format 70
LyX: Error reading input file: 
C:/Users/Daniel/LyXSource/lyx/lib/layouts/stdclass.inc [around line 5 of 
file ~\AppData\Local\Temp\lyx_tmpdir.lRSnsUjf8152\basicDS8152.layout 
current token: 'stdclass.inc' context: '']
Error reading 
`~\AppData\Local\Temp\lyx_tmpdir.lRSnsUjf8152\basicDS8152.layout'

(Check `article')
Check your installation and try Options/Reconfigure...
Warning: Cite Engine not available

The cite engine basic has been requested by
this document but has not been found in the list of
available engines. If you recently installed it, you
probably need to reconfigure LyX.




Re: Build LyX with MSVC 2017

2018-10-24 Thread Kornel Benko
Am Mittwoch, 24. Oktober 2018 20:08:23 CEST schrieb Daniel :
> ambiguous call to overloaded function   LyX (applications\LyX\LyX) 
> C:\Users\Daniel\LyXSource\lyx\src\lyxfind.cpp   1251
> Error   C2668 
> 'boost::match_results>>,std::allocator>::position'

I am seeing only this declarations in boost for match_results:

   difference_type position(unsigned int sub = 0) const;
   difference_type position(const char_type* sub) const;
   difference_type position(const charT* sub) const;
   difference_type position(const std::basic_string& sub) 
const;

Since we need the first one, could you try to substitute the calls in 
lyxfind.cpp
sub.position(0)
with
sub.position(size_t(0))

please?

Kornel


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


Re: Build LyX with MSVC 2017

2018-10-24 Thread Kornel Benko
Am Mittwoch, 24. Oktober 2018 21:17:13 CEST schrieb Kornel Benko 
:
> 
> Yes, that is new code.
> 
> > = VS2017 =
> >
> > SeverityCodeDescription Project FileLineSuppression 
> > State
> > Error   C2668 
> > 'boost::match_results>>,std::allocator>::position':
> >  
> > ambiguous call to overloaded function   LyX (applications\LyX\LyX) 
> > C:\Users\Daniel\LyXSource\lyx\src\lyxfind.cpp   1228
> > Error   C2668 
> 
> Could you try to allow for LYX_USE_STD_REGEX? (See CMakeLists.txt:288 which 
> disables it for MSVC)
> 

You could also try to replace
static regex const ...
with
static lyx::regex const ...
some lines above the error message.

Kornel



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


Re: Build LyX with MSVC 2017

2018-10-24 Thread Kornel Benko
Am Mittwoch, 24. Oktober 2018 20:08:23 CEST schrieb Daniel :
> On 24/10/2018 12:37, Daniel wrote:
> > On 24/10/2018 12:32, Daniel wrote:
>
...
> 
> Also, when I try to build master, I get error messages but not when 
> builing 2.3.x. Some "boost" class? Maybe something introduced after 
> 2.3.1? Here are the VS2017 error messages (and CMake info):

Yes, that is new code.

> = VS2017 =
> 
> Severity  CodeDescription Project FileLineSuppression 
> State
> Error C2668 
> 'boost::match_results>>,std::allocator>::position':
>  
> ambiguous call to overloaded function LyX (applications\LyX\LyX) 
> C:\Users\Daniel\LyXSource\lyx\src\lyxfind.cpp 1228
> Error C2668 

Could you try to allow for LYX_USE_STD_REGEX? (See CMakeLists.txt:288 which 
disables it for MSVC)

> 'boost::match_results>>,std::allocator>::position':
>  
> ambiguous call to overloaded function LyX (applications\LyX\LyX) 
> C:\Users\Daniel\LyXSource\lyx\src\lyxfind.cpp 1240
> Error C2668 
> 

...

> Generating done

Looks good.

Kornel

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


Re: Build LyX with MSVC 2017

2018-10-24 Thread Daniel

On 24/10/2018 12:37, Daniel wrote:

On 24/10/2018 12:32, Daniel wrote:

On 23/10/2018 17:18, Daniel wrote:

On 22/10/2018 17:13, Richard Kimberly Heck wrote:

On 10/22/18 10:39 AM, Daniel wrote:

On 22/10/2018 16:15, Daniel wrote:

On 22/10/2018 14:17, Jean-Marc Lasgouttes wrote:

Le 22/10/2018 à 13:43, Daniel a écrit :

Hi,

I did not manage to download MS Visual Studio Community 2015 from
the official website - it only gives me 2017. [1]



Error    C2065    'cmatch': undeclared identifier    LyX
(applications\LyX\LyX)
C:\Users\Daniel\LyXSource\lyx\src\lyxfind.cpp 1352


What branch/commit did you try to compile. The code using cmatch is
gone in current master.


Thanks, it work now.


Didn't want to write this in my last mail. But indeed it does work 
now.



It'd be worth my also knowing how to do this. Did you just follow the
instructions in some README file? Or did you do something else?


I tried to follow the instructions in the README plus some in the 
link provided in the README. But I did not write them down. I just 
changed to an earlier Qt version since I think 5.11.2 was buggy. But 
it doesn't work anymore now since MS Visual Studio gives me some 
errors. Not sure why. I'll come back if I figure it out.


Okay. It seems to be working rather well with Qt 5.9.7 (the latest 5.9 
version). 5.10.1 didn't work with VS2017 for me. So, basically, I did 
this:


1. Followed the instructions in INSTALL.Win32

2. using VS2017 and Qt 5.9.7 for MSVC 2015 32-bit (it was the only 32 
bit version but maybe I could have use the Qt 5.9.7 MSVC 2017 64-bit 
version and maybe this was a cause of the problem I encountered with 
the other Qt versions?)


3. setting the directories manually according to the link in the text 
file (http://wiki.lyx.org/Windows/Compilation)


Best,
Daniel


Actually, the LyX configure is not working so I have no textclasses and 
I cannot "Reconfigure...".


The console shows the following (which might be related):

support\Systemcall.cpp (261): Systemcall: 'python -tt 
"C:/Users/Daniel/LyXSource/lyx/lib/configure.py" 
--binary-dir="C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/bin/"' 
did not start!
support\Systemcall.cpp (262): error The process failed to start. Either 
the invoked program is missing, or you may have insufficient permissions 
to invoke the program.


Also, when I try to build master, I get error messages but not when 
builing 2.3.x. Some "boost" class? Maybe something introduced after 
2.3.1? Here are the VS2017 error messages (and CMake info):


= VS2017 =

SeverityCodeDescription Project FileLineSuppression 
State
Error	C2668 
'boost::match_results>>,std::allocator>::position': 
ambiguous call to overloaded function	LyX (applications\LyX\LyX) 
C:\Users\Daniel\LyXSource\lyx\src\lyxfind.cpp	1228	
Error	C2668 
'boost::match_results>>,std::allocator>::position': 
ambiguous call to overloaded function	LyX (applications\LyX\LyX) 
C:\Users\Daniel\LyXSource\lyx\src\lyxfind.cpp	1240	
Error	C2668 
'boost::match_results>>,std::allocator>::position': 
ambiguous call to overloaded function	LyX (applications\LyX\LyX) 
C:\Users\Daniel\LyXSource\lyx\src\lyxfind.cpp	1251	
Error	C2668 
'boost::match_results>>,std::allocator>::position': 
ambiguous call to overloaded function	LyX (applications\LyX\LyX) 
C:\Users\Daniel\LyXSource\lyx\src\lyxfind.cpp	1254	


= CMake =

TOP_SRC_DIR = C:/Users/Daniel/LyXSource/lyx

Building out-of-source

CXX11_FLAG_DETECTED = "noflagneeded"
Compiler supports std_regex
Found GNUWIN32: C:/Users/Daniel/LyXSource/lyx-dep
Found Qt-Version 5.9.7
Function magic_file not found
Function magic_open not found
Function magic_load not found
Function magic_close not found
Function magic_error not found
Could NOT find Magic (missing: Magic_INCLUDE_DIR Magic_LIBRARY 
HAS_MAGIC_FUNCTIONS)

  * Hunspell:
 - include: C:/Users/Daniel/LyXSource/lyx/3rdparty/hunspell/1.6.2/src
 - library: hunspell
Could NOT find ASPELL (missing: ASPELL_LIBRARY ASPELL_INCLUDE_DIR)
ASPELL not found, building without ASPELL support
Could NOT find ENCHANT (missing: ENCHANT_LIBRARY ENCHANT_INCLUDE_DIR)
ENCHANT not found, building without Enchant support
Building with USE_HUNSPELL
Could NOT find LYX_PY_polib (missing: LYX_PY_POLIB)
You will be unable to update layouttranslations file

- PACKAGE : LyX2.4
- PACKAGE_VERSION : 2.4.0dev
- PROGRAM_SUFFIX  :
- LYX_DIR_VER : LYX_DIR_24x
- LYX_USERDIR_VER : LYX_USERDIR_24x
- LYX_ABS_TOP_SRCDIR  : C:/Users/Daniel/LyXSource/lyx
- LYX_ABS_INSTALLED_DATADIR   : LYX_INSTALLED
- LYX_ABS_INSTALLED_LOCALEDIR : LYX_INSTALLED/Resources/locale
- LYX_INSTALL_SUFFIX  : 2.4

- Warning level  : 3
- Warnings as errors : /we4101 /we4189
- Warnings disabled  : /wd4288 /wd4355 /wd4800 /wd

Re: Build LyX with MSVC 2017

2018-10-24 Thread Daniel

On 24/10/2018 17:48, Kornel Benko wrote:

Am Mittwoch, 24. Oktober 2018 17:34:45 CEST schrieb Kornel Benko 
:


Actually, the LyX configure is not working so I have no textclasses and
I cannot "Reconfigure...".

The console shows the following (which might be related):

support\Systemcall.cpp (261): Systemcall: 'python -tt
"C:/Users/Daniel/LyXSource/lyx/lib/configure.py"
--binary-dir="C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/bin/"'
did not start!
support\Systemcall.cpp (262): error The process failed to start. Either
the invoked program is missing, or you may have insufficient permissions
to invoke the program.

Daniel


This looks wrong to me. Binary-dir and the path to configure.py should be 
related.
I would have expected configure.py to lie in 
"C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/Resources/"

(I may be wrong of course)


Next question:
How did you start lyx?
If you want to use the source dir as system dir (instead of installed dir) then 
you may start lyx with
# lyx -sysdir "C:/Users/Daniel/LyXSource/lyx/lib"

Kornel



I was starting LyX from

C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/bin/

Daniel



Re: Build LyX with MSVC 2017

2018-10-24 Thread Kornel Benko
Am Mittwoch, 24. Oktober 2018 17:34:45 CEST schrieb Kornel Benko 
:
...
> > Actually, the LyX configure is not working so I have no textclasses and 
> > I cannot "Reconfigure...".
> >
> > The console shows the following (which might be related):
> >
> > support\Systemcall.cpp (261): Systemcall: 'python -tt 
> > "C:/Users/Daniel/LyXSource/lyx/lib/configure.py" 
> > --binary-dir="C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/bin/"' 
> > did not start!
> > support\Systemcall.cpp (262): error The process failed to start. Either 
> > the invoked program is missing, or you may have insufficient permissions 
> > to invoke the program.
> >
> > Daniel
> 
> This looks wrong to me. Binary-dir and the path to configure.py should be 
> related.
> I would have expected configure.py to lie in 
> "C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/Resources/"
> 
> (I may be wrong of course)

Next question:
How did you start lyx?
If you want to use the source dir as system dir (instead of installed dir) then 
you may start lyx with
# lyx -sysdir "C:/Users/Daniel/LyXSource/lyx/lib"

Kornel

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


Re: Build LyX with MSVC 2017

2018-10-24 Thread Kornel Benko
Am Mittwoch, 24. Oktober 2018 12:37:22 CEST schrieb Daniel :
> On 24/10/2018 12:32, Daniel wrote:
> > On 23/10/2018 17:18, Daniel wrote:
> >> On 22/10/2018 17:13, Richard Kimberly Heck wrote:
> >>> On 10/22/18 10:39 AM, Daniel wrote:
>  On 22/10/2018 16:15, Daniel wrote:
> > On 22/10/2018 14:17, Jean-Marc Lasgouttes wrote:
> >> Le 22/10/2018 à 13:43, Daniel a écrit :
> >>> Hi,
> >>>
> >>> I did not manage to download MS Visual Studio Community 2015 from
> >>> the official website - it only gives me 2017. [1]
> >> 
> >>> ErrorC2065'cmatch': undeclared identifierLyX
> >>> (applications\LyX\LyX)
> >>> C:\Users\Daniel\LyXSource\lyx\src\lyxfind.cpp 1352
> >>
> >> What branch/commit did you try to compile. The code using cmatch is
> >> gone in current master.
> >
> > Thanks, it work now.
> 
>  Didn't want to write this in my last mail. But indeed it does work now.
> >>>
> >>>
> >>> It'd be worth my also knowing how to do this. Did you just follow the
> >>> instructions in some README file? Or did you do something else?
> >>
> >> I tried to follow the instructions in the README plus some in the link 
> >> provided in the README. But I did not write them down. I just changed 
> >> to an earlier Qt version since I think 5.11.2 was buggy. But it 
> >> doesn't work anymore now since MS Visual Studio gives me some errors. 
> >> Not sure why. I'll come back if I figure it out.
> > 
> > Okay. It seems to be working rather well with Qt 5.9.7 (the latest 5.9 
> > version). 5.10.1 didn't work with VS2017 for me. So, basically, I did this:
> > 
> > 1. Followed the instructions in INSTALL.Win32
> > 
> > 2. using VS2017 and Qt 5.9.7 for MSVC 2015 32-bit (it was the only 32 
> > bit version but maybe I could have use the Qt 5.9.7 MSVC 2017 64-bit 
> > version and maybe this was a cause of the problem I encountered with the 
> > other Qt versions?)
> > 
> > 3. setting the directories manually according to the link in the text 
> > file (http://wiki.lyx.org/Windows/Compilation)
> > 
> > Best,
> > Daniel
> 
> Actually, the LyX configure is not working so I have no textclasses and 
> I cannot "Reconfigure...".
> 
> The console shows the following (which might be related):
> 
> support\Systemcall.cpp (261): Systemcall: 'python -tt 
> "C:/Users/Daniel/LyXSource/lyx/lib/configure.py" 
> --binary-dir="C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/bin/"' 
> did not start!
> support\Systemcall.cpp (262): error The process failed to start. Either 
> the invoked program is missing, or you may have insufficient permissions 
> to invoke the program.
> 
> Daniel

This looks wrong to me. Binary-dir and the path to configure.py should be 
related.
I would have expected configure.py to lie in 
"C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/Resources/"

(I may be wrong of course)
Kornel



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


Re: Build LyX with MSVC 2017

2018-10-24 Thread Daniel

On 24/10/2018 12:32, Daniel wrote:

On 23/10/2018 17:18, Daniel wrote:

On 22/10/2018 17:13, Richard Kimberly Heck wrote:

On 10/22/18 10:39 AM, Daniel wrote:

On 22/10/2018 16:15, Daniel wrote:

On 22/10/2018 14:17, Jean-Marc Lasgouttes wrote:

Le 22/10/2018 à 13:43, Daniel a écrit :

Hi,

I did not manage to download MS Visual Studio Community 2015 from
the official website - it only gives me 2017. [1]



Error    C2065    'cmatch': undeclared identifier    LyX
(applications\LyX\LyX)
C:\Users\Daniel\LyXSource\lyx\src\lyxfind.cpp 1352


What branch/commit did you try to compile. The code using cmatch is
gone in current master.


Thanks, it work now.


Didn't want to write this in my last mail. But indeed it does work now.



It'd be worth my also knowing how to do this. Did you just follow the
instructions in some README file? Or did you do something else?


I tried to follow the instructions in the README plus some in the link 
provided in the README. But I did not write them down. I just changed 
to an earlier Qt version since I think 5.11.2 was buggy. But it 
doesn't work anymore now since MS Visual Studio gives me some errors. 
Not sure why. I'll come back if I figure it out.


Okay. It seems to be working rather well with Qt 5.9.7 (the latest 5.9 
version). 5.10.1 didn't work with VS2017 for me. So, basically, I did this:


1. Followed the instructions in INSTALL.Win32

2. using VS2017 and Qt 5.9.7 for MSVC 2015 32-bit (it was the only 32 
bit version but maybe I could have use the Qt 5.9.7 MSVC 2017 64-bit 
version and maybe this was a cause of the problem I encountered with the 
other Qt versions?)


3. setting the directories manually according to the link in the text 
file (http://wiki.lyx.org/Windows/Compilation)


Best,
Daniel


Actually, the LyX configure is not working so I have no textclasses and 
I cannot "Reconfigure...".


The console shows the following (which might be related):

support\Systemcall.cpp (261): Systemcall: 'python -tt 
"C:/Users/Daniel/LyXSource/lyx/lib/configure.py" 
--binary-dir="C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/bin/"' 
did not start!
support\Systemcall.cpp (262): error The process failed to start. Either 
the invoked program is missing, or you may have insufficient permissions 
to invoke the program.


Daniel


Re: Build LyX with MSVC 2017

2018-10-24 Thread Daniel

On 23/10/2018 17:18, Daniel wrote:

On 22/10/2018 17:13, Richard Kimberly Heck wrote:

On 10/22/18 10:39 AM, Daniel wrote:

On 22/10/2018 16:15, Daniel wrote:

On 22/10/2018 14:17, Jean-Marc Lasgouttes wrote:

Le 22/10/2018 à 13:43, Daniel a écrit :

Hi,

I did not manage to download MS Visual Studio Community 2015 from
the official website - it only gives me 2017. [1]



Error    C2065    'cmatch': undeclared identifier    LyX
(applications\LyX\LyX)
C:\Users\Daniel\LyXSource\lyx\src\lyxfind.cpp 1352


What branch/commit did you try to compile. The code using cmatch is
gone in current master.


Thanks, it work now.


Didn't want to write this in my last mail. But indeed it does work now.



It'd be worth my also knowing how to do this. Did you just follow the
instructions in some README file? Or did you do something else?


I tried to follow the instructions in the README plus some in the link 
provided in the README. But I did not write them down. I just changed to 
an earlier Qt version since I think 5.11.2 was buggy. But it doesn't 
work anymore now since MS Visual Studio gives me some errors. Not sure 
why. I'll come back if I figure it out.


Okay. It seems to be working rather well with Qt 5.9.7 (the latest 5.9 
version). 5.10.1 didn't work with VS2017 for me. So, basically, I did this:


1. Followed the instructions in INSTALL.Win32

2. using VS2017 and Qt 5.9.7 for MSVC 2015 32-bit (it was the only 32 
bit version but maybe I could have use the Qt 5.9.7 MSVC 2017 64-bit 
version and maybe this was a cause of the problem I encountered with the 
other Qt versions?)


3. setting the directories manually according to the link in the text 
file (http://wiki.lyx.org/Windows/Compilation)


Best,
Daniel



Re: Build LyX with MSVC 2017

2018-10-23 Thread Daniel

On 23/10/2018 18:57, Kornel Benko wrote:

Am Dienstag, 23. Oktober 2018 18:44:20 CEST schrieb Daniel :


Apparently, one needs to build at least once with LYX_INSTALL enabled.

Daniel


Sorry. Under Unix we can start the executable from inside the build-tree,
there is no need for lyx having the data installed . The system-dir is set to 
the source-dir/lib
of the lyx sources, where all relevant data is found.
Apparently this differs under Windows.

Kornel



No worries! Maybe there should be a note somewhere. The README actually 
states that one has enable LYX_INSTALL but without any further comment.


Daniel



Re: Build LyX with MSVC 2017

2018-10-23 Thread Kornel Benko
Am Dienstag, 23. Oktober 2018 18:44:20 CEST schrieb Daniel :
> 
> Apparently, one needs to build at least once with LYX_INSTALL enabled.
> 
> Daniel

Sorry. Under Unix we can start the executable from inside the build-tree,
there is no need for lyx having the data installed . The system-dir is set to 
the source-dir/lib
of the lyx sources, where all relevant data is found.
Apparently this differs under Windows.

Kornel



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


Re: Build LyX with MSVC 2017

2018-10-23 Thread Daniel

On 23/10/2018 18:11, Daniel wrote:

On 23/10/2018 17:18, Daniel wrote:

On 22/10/2018 17:13, Richard Kimberly Heck wrote:

On 10/22/18 10:39 AM, Daniel wrote:

On 22/10/2018 16:15, Daniel wrote:

On 22/10/2018 14:17, Jean-Marc Lasgouttes wrote:

Le 22/10/2018 à 13:43, Daniel a écrit :

Hi,

I did not manage to download MS Visual Studio Community 2015 from
the official website - it only gives me 2017. [1]



Error    C2065    'cmatch': undeclared identifier    LyX
(applications\LyX\LyX)
C:\Users\Daniel\LyXSource\lyx\src\lyxfind.cpp 1352


What branch/commit did you try to compile. The code using cmatch is
gone in current master.


Thanks, it work now.


Didn't want to write this in my last mail. But indeed it does work now.



It'd be worth my also knowing how to do this. Did you just follow the
instructions in some README file? Or did you do something else?


I tried to follow the instructions in the README plus some in the link 
provided in the README. But I did not write them down. I just changed 
to an earlier Qt version since I think 5.11.2 was buggy. But it 
doesn't work anymore now since MS Visual Studio gives me some errors. 
Not sure why. I'll come back if I figure it out.


Using Qt 5.9 instead of 5.10, I get a bit further. Does anyone have an 
idea what the following error in MSVC means?




Severity    Code    Description    Project    File    Line
Suppression State

Error    MSB3073    The command "setlocal
"C:\Program Files\CMake\bin\cmake.exe" -DBUILD_TYPE=Debug -P 
cmake_install.cmake

if %errorlevel% neq 0 goto :cmEnd
:cmEnd
endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
:cmErrorLevel
exit /b %1
:cmDone
if %errorlevel% neq 0 goto :VCEnd
:VCEnd" exited with code 1.    INSTALL    C:\Program Files 
(x86)\Microsoft Visual 
Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets 
138


Apparently, one needs to build at least once with LYX_INSTALL enabled.

Daniel



Re: Build LyX with MSVC 2017

2018-10-23 Thread Daniel

On 23/10/2018 17:18, Daniel wrote:

On 22/10/2018 17:13, Richard Kimberly Heck wrote:

On 10/22/18 10:39 AM, Daniel wrote:

On 22/10/2018 16:15, Daniel wrote:

On 22/10/2018 14:17, Jean-Marc Lasgouttes wrote:

Le 22/10/2018 à 13:43, Daniel a écrit :

Hi,

I did not manage to download MS Visual Studio Community 2015 from
the official website - it only gives me 2017. [1]



Error    C2065    'cmatch': undeclared identifier    LyX
(applications\LyX\LyX)
C:\Users\Daniel\LyXSource\lyx\src\lyxfind.cpp 1352


What branch/commit did you try to compile. The code using cmatch is
gone in current master.


Thanks, it work now.


Didn't want to write this in my last mail. But indeed it does work now.



It'd be worth my also knowing how to do this. Did you just follow the
instructions in some README file? Or did you do something else?


I tried to follow the instructions in the README plus some in the link 
provided in the README. But I did not write them down. I just changed to 
an earlier Qt version since I think 5.11.2 was buggy. But it doesn't 
work anymore now since MS Visual Studio gives me some errors. Not sure 
why. I'll come back if I figure it out.


Using Qt 5.9 instead of 5.10, I get a bit further. Does anyone have an 
idea what the following error in MSVC means?




SeverityCodeDescription Project FileLineSuppression 
State
Error   MSB3073 The command "setlocal
"C:\Program Files\CMake\bin\cmake.exe" -DBUILD_TYPE=Debug -P 
cmake_install.cmake

if %errorlevel% neq 0 goto :cmEnd
:cmEnd
endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
:cmErrorLevel
exit /b %1
:cmDone
if %errorlevel% neq 0 goto :VCEnd
:VCEnd" exited with code 1.	INSTALL	C:\Program Files (x86)\Microsoft 
Visual 
Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets 
138	





Re: Build LyX with MSVC 2017

2018-10-23 Thread Daniel

On 22/10/2018 17:13, Richard Kimberly Heck wrote:

On 10/22/18 10:39 AM, Daniel wrote:

On 22/10/2018 16:15, Daniel wrote:

On 22/10/2018 14:17, Jean-Marc Lasgouttes wrote:

Le 22/10/2018 à 13:43, Daniel a écrit :

Hi,

I did not manage to download MS Visual Studio Community 2015 from
the official website - it only gives me 2017. [1]



Error    C2065    'cmatch': undeclared identifier    LyX
(applications\LyX\LyX)
C:\Users\Daniel\LyXSource\lyx\src\lyxfind.cpp 1352


What branch/commit did you try to compile. The code using cmatch is
gone in current master.


Thanks, it work now.


Didn't want to write this in my last mail. But indeed it does work now.



It'd be worth my also knowing how to do this. Did you just follow the
instructions in some README file? Or did you do something else?


I tried to follow the instructions in the README plus some in the link 
provided in the README. But I did not write them down. I just changed to 
an earlier Qt version since I think 5.11.2 was buggy. But it doesn't 
work anymore now since MS Visual Studio gives me some errors. Not sure 
why. I'll come back if I figure it out.


Daniel



Re: Build LyX with MSVC 2017

2018-10-23 Thread Kornel Benko
Am Dienstag, 23. Oktober 2018 10:07:23 CEST schrieb Daniel :
> On 23/10/2018 09:39, Kornel Benko wrote:
> > Am Dienstag, 23. Oktober 2018 09:06:13 CEST schrieb Jean-Marc Lasgouttes 
> > :
> >> Le 23 octobre 2018 08:44:20 GMT+02:00, Kornel Benko  a 
> >> écrit :
> >>> You are probably using -DLYX_INSTALL=ON, this implies also LYX_NLS=ON
> >>
> >>
> >> Why is this necessary ? People may want to install without NLS AFAIU.
> >>
> >> JMarc
> > 
> > Sure. They can and they would if not having the necessary tools.
> > OTOH, it makes sense to me to install with NLS if possible.
> > 
> > There is always the possibility to not use LYX_INSTALL (unfortunately i 
> > cannot test on Windows)
> 
> I disabled LYX_INSTALL and it works now. The difference I noticed was a 
> console window that starts with LyX.
> 
> Daniel
> 

Thanks for confirming. To disable console use -DLYX_CONSOLE=OFF
(it is ON by default for Windows)

Kornel



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


Re: Build LyX with MSVC 2017

2018-10-23 Thread Daniel

On 23/10/2018 09:39, Kornel Benko wrote:

Am Dienstag, 23. Oktober 2018 09:06:13 CEST schrieb Jean-Marc Lasgouttes 
:

Le 23 octobre 2018 08:44:20 GMT+02:00, Kornel Benko  a écrit :

You are probably using -DLYX_INSTALL=ON, this implies also LYX_NLS=ON



Why is this necessary ? People may want to install without NLS AFAIU.

JMarc


Sure. They can and they would if not having the necessary tools.
OTOH, it makes sense to me to install with NLS if possible.

There is always the possibility to not use LYX_INSTALL (unfortunately i cannot 
test on Windows)


I disabled LYX_INSTALL and it works now. The difference I noticed was a 
console window that starts with LyX.


Daniel



Re: Build LyX with MSVC 2017

2018-10-23 Thread Kornel Benko
Am Dienstag, 23. Oktober 2018 09:06:13 CEST schrieb Jean-Marc Lasgouttes 
:
> Le 23 octobre 2018 08:44:20 GMT+02:00, Kornel Benko  a écrit :
> >You are probably using -DLYX_INSTALL=ON, this implies also LYX_NLS=ON
> 
> 
> Why is this necessary ? People may want to install without NLS AFAIU.
> 
> JMarc

Sure. They can and they would if not having the necessary tools.
OTOH, it makes sense to me to install with NLS if possible.

There is always the possibility to not use LYX_INSTALL (unfortunately i cannot 
test on Windows)

Kornel



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


Re: Build LyX with MSVC 2017

2018-10-23 Thread Jean-Marc Lasgouttes
Le 23 octobre 2018 08:44:20 GMT+02:00, Kornel Benko  a écrit :
>You are probably using -DLYX_INSTALL=ON, this implies also LYX_NLS=ON


Why is this necessary ? People may want to install without NLS AFAIU.

JMarc


Re: Build LyX with MSVC 2017

2018-10-22 Thread Kornel Benko
Am Dienstag, 23. Oktober 2018 08:11:25 CEST schrieb Daniel :
> On 23/10/2018 07:03, Daniel wrote:
> > On 2018-10-22 19:11, Kornel Benko wrote:
> >> Am Montag, 22. Oktober 2018 17:22:37 CEST schrieb Daniel 
> >> :
> >>> On 22/10/2018 17:19, Daniel wrote:
>  On 22/10/2018 16:39, Daniel wrote:
> 
> [...]
> 
>  I that the build process can be set so that those .gmo files are not
>  compiled each time. But I don't remember how. Can someone enlighten me?
> >>>
> >>> Should be "I remember that ...". Sorry for my lousy writing...
> >>>
> >>
> >> You are using cmake I suppose. The gmo-files are remade if the sources 
> >> change
> >> AND
> >> if you have all the needed executables (xgettext ... )
> >> AND
> >> you started the cmake configuration with '-DLYX_NLS=ON'.
> > 
> > Thanks, I'll try the cmake flag then.
> 
> I am using CMake GUI. I disabled LYX_NLS. But still all the gmo files 
> are generated. Is there anything else I need to disable?
> 

You are probably using -DLYX_INSTALL=ON, this implies also LYX_NLS=ON

Kornel



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


Re: Build LyX with MSVC 2017

2018-10-22 Thread Daniel

On 23/10/2018 07:03, Daniel wrote:

On 2018-10-22 19:11, Kornel Benko wrote:
Am Montag, 22. Oktober 2018 17:22:37 CEST schrieb Daniel 
:

On 22/10/2018 17:19, Daniel wrote:

On 22/10/2018 16:39, Daniel wrote:


[...]


I that the build process can be set so that those .gmo files are not
compiled each time. But I don't remember how. Can someone enlighten me?


Should be "I remember that ...". Sorry for my lousy writing...



You are using cmake I suppose. The gmo-files are remade if the sources 
change

AND
if you have all the needed executables (xgettext ... )
AND
you started the cmake configuration with '-DLYX_NLS=ON'.


Thanks, I'll try the cmake flag then.


I am using CMake GUI. I disabled LYX_NLS. But still all the gmo files 
are generated. Is there anything else I need to disable?





Re: Build LyX with MSVC 2017

2018-10-22 Thread Daniel

On 2018-10-22 19:11, Kornel Benko wrote:

Am Montag, 22. Oktober 2018 17:22:37 CEST schrieb Daniel :

On 22/10/2018 17:19, Daniel wrote:

On 22/10/2018 16:39, Daniel wrote:

On 22/10/2018 16:15, Daniel wrote:

On 22/10/2018 14:17, Jean-Marc Lasgouttes wrote:

Le 22/10/2018 à 13:43, Daniel a écrit :

Hi,

I did not manage to download MS Visual Studio Community 2015 from
the official website - it only gives me 2017. [1]



ErrorC2065'cmatch': undeclared identifierLyX
(applications\LyX\LyX)
C:\Users\Daniel\LyXSource\lyx\src\lyxfind.cpp 1352


What branch/commit did you try to compile. The code using cmatch is
gone in current master.


Thanks, it work now.


Didn't want to write this in my last mail. But indeed it does work now.


I that the build process can be set so that those .gmo files are not
compiled each time. But I don't remember how. Can someone enlighten me?


Should be "I remember that ...". Sorry for my lousy writing...



You are using cmake I suppose. The gmo-files are remade if the sources change
AND
if you have all the needed executables (xgettext ... )
AND
you started the cmake configuration with '-DLYX_NLS=ON'.


Thanks, I'll try the cmake flag then.

Daniel



Re: Build LyX with MSVC 2017

2018-10-22 Thread Kornel Benko
Am Montag, 22. Oktober 2018 17:22:37 CEST schrieb Daniel :
> On 22/10/2018 17:19, Daniel wrote:
> > On 22/10/2018 16:39, Daniel wrote:
> >> On 22/10/2018 16:15, Daniel wrote:
> >>> On 22/10/2018 14:17, Jean-Marc Lasgouttes wrote:
>  Le 22/10/2018 à 13:43, Daniel a écrit :
> > Hi,
> >
> > I did not manage to download MS Visual Studio Community 2015 from 
> > the official website - it only gives me 2017. [1]
>  
> > ErrorC2065'cmatch': undeclared identifierLyX 
> > (applications\LyX\LyX) 
> > C:\Users\Daniel\LyXSource\lyx\src\lyxfind.cpp 1352
> 
>  What branch/commit did you try to compile. The code using cmatch is 
>  gone in current master.
> >>>
> >>> Thanks, it work now.
> >>
> >> Didn't want to write this in my last mail. But indeed it does work now.
> > 
> > I that the build process can be set so that those .gmo files are not 
> > compiled each time. But I don't remember how. Can someone enlighten me?
> 
> Should be "I remember that ...". Sorry for my lousy writing...
> 

You are using cmake I suppose. The gmo-files are remade if the sources change
AND
if you have all the needed executables (xgettext ... )
AND
you started the cmake configuration with '-DLYX_NLS=ON'.

Kornel


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


Re: Build LyX with MSVC 2017

2018-10-22 Thread Daniel

On 22/10/2018 17:19, Daniel wrote:

On 22/10/2018 16:39, Daniel wrote:

On 22/10/2018 16:15, Daniel wrote:

On 22/10/2018 14:17, Jean-Marc Lasgouttes wrote:

Le 22/10/2018 à 13:43, Daniel a écrit :

Hi,

I did not manage to download MS Visual Studio Community 2015 from 
the official website - it only gives me 2017. [1]


Error    C2065    'cmatch': undeclared identifier    LyX 
(applications\LyX\LyX) 
C:\Users\Daniel\LyXSource\lyx\src\lyxfind.cpp 1352


What branch/commit did you try to compile. The code using cmatch is 
gone in current master.


Thanks, it work now.


Didn't want to write this in my last mail. But indeed it does work now.


I that the build process can be set so that those .gmo files are not 
compiled each time. But I don't remember how. Can someone enlighten me?


Should be "I remember that ...". Sorry for my lousy writing...




Re: Build LyX with MSVC 2017

2018-10-22 Thread Daniel

On 22/10/2018 16:39, Daniel wrote:

On 22/10/2018 16:15, Daniel wrote:

On 22/10/2018 14:17, Jean-Marc Lasgouttes wrote:

Le 22/10/2018 à 13:43, Daniel a écrit :

Hi,

I did not manage to download MS Visual Studio Community 2015 from 
the official website - it only gives me 2017. [1]


Error    C2065    'cmatch': undeclared identifier    LyX 
(applications\LyX\LyX) C:\Users\Daniel\LyXSource\lyx\src\lyxfind.cpp 
1352


What branch/commit did you try to compile. The code using cmatch is 
gone in current master.


Thanks, it work now.


Didn't want to write this in my last mail. But indeed it does work now.


I that the build process can be set so that those .gmo files are not 
compiled each time. But I don't remember how. Can someone enlighten me?


Daniel




Re: Build LyX with MSVC 2017

2018-10-22 Thread Richard Kimberly Heck
On 10/22/18 10:39 AM, Daniel wrote:
> On 22/10/2018 16:15, Daniel wrote:
>> On 22/10/2018 14:17, Jean-Marc Lasgouttes wrote:
>>> Le 22/10/2018 à 13:43, Daniel a écrit :
 Hi,

 I did not manage to download MS Visual Studio Community 2015 from
 the official website - it only gives me 2017. [1]
>>> 
 Error    C2065    'cmatch': undeclared identifier    LyX
 (applications\LyX\LyX)
 C:\Users\Daniel\LyXSource\lyx\src\lyxfind.cpp 1352
>>>
>>> What branch/commit did you try to compile. The code using cmatch is
>>> gone in current master.
>>
>> Thanks, it work now.
>
> Didn't want to write this in my last mail. But indeed it does work now.


It'd be worth my also knowing how to do this. Did you just follow the
instructions in some README file? Or did you do something else?

Riki




Re: Build LyX with MSVC 2017

2018-10-22 Thread Daniel

On 22/10/2018 16:15, Daniel wrote:

On 22/10/2018 14:17, Jean-Marc Lasgouttes wrote:

Le 22/10/2018 à 13:43, Daniel a écrit :

Hi,

I did not manage to download MS Visual Studio Community 2015 from the 
official website - it only gives me 2017. [1]


Error    C2065    'cmatch': undeclared identifier    LyX 
(applications\LyX\LyX) C:\Users\Daniel\LyXSource\lyx\src\lyxfind.cpp 
1352


What branch/commit did you try to compile. The code using cmatch is 
gone in current master.


Thanks, it work now.


Didn't want to write this in my last mail. But indeed it does work now.

Daniel



Re: Build LyX with MSVC 2017

2018-10-22 Thread Daniel

On 22/10/2018 14:17, Jean-Marc Lasgouttes wrote:

Le 22/10/2018 à 13:43, Daniel a écrit :

Hi,

I did not manage to download MS Visual Studio Community 2015 from the 
official website - it only gives me 2017. [1]


Error    C2065    'cmatch': undeclared identifier    LyX 
(applications\LyX\LyX) C:\Users\Daniel\LyXSource\lyx\src\lyxfind.cpp 1352


What branch/commit did you try to compile. The code using cmatch is gone 
in current master.


Thanks, it work now.

First, I just did

git clone git://git.lyx.org/lyx

So, I guess I was building current master. Now, I did another pull and 
it gave me another error (something with "regex"... I haven't saved it). 
Next try:


git checkout 2.3.x

I'll report back whether it works.

Daniel



Re: Build LyX with MSVC 2017

2018-10-22 Thread Jean-Marc Lasgouttes

Le 22/10/2018 à 13:43, Daniel a écrit :

Hi,

I did not manage to download MS Visual Studio Community 2015 from the 
official website - it only gives me 2017. [1]

...
Error    C2065    'cmatch': undeclared identifier    LyX 
(applications\LyX\LyX) C:\Users\Daniel\LyXSource\lyx\src\lyxfind.cpp
1352


What branch/commit did you try to compile. The code using cmatch is gone 
in current master.


JMarc


Build LyX with MSVC 2017

2018-10-22 Thread Daniel

Hi,

I did not manage to download MS Visual Studio Community 2015 from the 
official website - it only gives me 2017. [1]


Is it possible to build LyX to built LyX with MSVC 2017? I tried it but 
get errors (below for MSVC).


Daniel

[1] I tried also from 
https://visualstudio.microsoft.com/vs/older-downloads/ but it gives me only:


"Sorry, we couldn't find any downloads for you.
To continue, please join Visual Studio Dev Essentials or purchase a 
Visual Studio Subscription."


== MSVC =

SeverityCodeDescription Project FileLineSuppression 
State
Error	C2065	'cmatch': undeclared identifier	LyX (applications\LyX\LyX) 
C:\Users\Daniel\LyXSource\lyx\src\lyxfind.cpp	1352	
Error	C2146	syntax error: missing ';' before identifier 'cm'	LyX 
(applications\LyX\LyX)	C:\Users\Daniel\LyXSource\lyx\src\lyxfind.cpp	1352	
Error	C2065	'cm': undeclared identifier	LyX (applications\LyX\LyX) 
C:\Users\Daniel\LyXSource\lyx\src\lyxfind.cpp	1352	
Error	C2065	'cm': undeclared identifier	LyX (applications\LyX\LyX) 
C:\Users\Daniel\LyXSource\lyx\src\lyxfind.cpp	1354	
Error	C2065	'cm': undeclared identifier	LyX (applications\LyX\LyX) 
C:\Users\Daniel\LyXSource\lyx\src\lyxfind.cpp	1355	
Error	C2065	'cm': undeclared identifier	LyX (applications\LyX\LyX) 
C:\Users\Daniel\LyXSource\lyx\src\lyxfind.cpp	1357	
Error	C2065	'cm': undeclared identifier	LyX (applications\LyX\LyX) 
C:\Users\Daniel\LyXSource\lyx\src\lyxfind.cpp	1360	

Error   MSB3073 The command "setlocal
"C:\Program Files\CMake\bin\cmake.exe" -DBUILD_TYPE=Debug -P 
cmake_install.cmake

if %errorlevel% neq 0 goto :cmEnd
:cmEnd
endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
:cmErrorLevel
exit /b %1
:cmDone
if %errorlevel% neq 0 goto :VCEnd
:VCEnd" exited with code 1.	INSTALL	C:\Program Files (x86)\Microsoft 
Visual 
Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets 
138	


== CMAKE =

TOP_SRC_DIR = C:/Users/Daniel/LyXSource/lyx

Building out-of-source

CXX11_FLAG_DETECTED = "noflagneeded"
Compiler supports std_regex
Found GNUWIN32: C:/Users/Daniel/LyXSource/lyx-dep
Found Qt-Version 5.11.2
Function magic_file not found
Function magic_open not found
Function magic_load not found
Function magic_close not found
Function magic_error not found
Could NOT find Magic (missing: Magic_INCLUDE_DIR Magic_LIBRARY 
HAS_MAGIC_FUNCTIONS)

  * Hunspell:
 - include: C:/Users/Daniel/LyXSource/lyx/3rdparty/hunspell/1.6.2/src
 - library: hunspell
Could NOT find ASPELL (missing: ASPELL_LIBRARY ASPELL_INCLUDE_DIR)
ASPELL not found, building without ASPELL support
Could NOT find ENCHANT (missing: ENCHANT_LIBRARY ENCHANT_INCLUDE_DIR)
ENCHANT not found, building without Enchant support
Building with USE_HUNSPELL
Could NOT find LYX_PY_polib (missing: LYX_PY_POLIB)
You will be unable to update layouttranslations file

- PACKAGE : LyX2.4
- PACKAGE_VERSION : 2.4.0dev
- PROGRAM_SUFFIX  :
- LYX_DIR_VER : LYX_DIR_24x
- LYX_USERDIR_VER : LYX_USERDIR_24x
- LYX_ABS_TOP_SRCDIR  : C:/Users/Daniel/LyXSource/lyx
- LYX_ABS_INSTALLED_DATADIR   : LYX_INSTALLED
- LYX_ABS_INSTALLED_LOCALEDIR : LYX_INSTALLED/Resources/locale
- LYX_INSTALL_SUFFIX  : 2.4

- Warning level  : 3
- Warnings as errors : /we4101 /we4189
- Warnings disabled  : /wd4288 /wd4355 /wd4800 /wd4996 /wd4267 
/wd4180 /wd4231


HAVE_HUNSPELL_CXXABI = FALSE
Using icon defined in resource file: 
C:/Users/Daniel/LyXSource/lyx/development/cmake/lyx.rc
Using icon defined in resource file: 
C:/Users/Daniel/LyXSource/lyx/development/cmake/lyx.rc
comparepdf (= "COMPAREPDF_EXECUTABLE-NOTFOUND") not found ==> no pdf 
comparision in test AMS-import

doxygen not found, ==> no doxygen creation

Build params, switch LYX_* options by -DLYX_*=ON or OFF, LYX_* combos by 
-DLYX_*=value:


LYX_CPACK= OFF: Use the CPack management (Implies 
LYX_INSTALL option)
LYX_LOCALVERSIONING  = OFF: Add version info to created package 
name (only used if LYX_CPACK option set)
LYX_INSTALL  = ON : Build install projects/rules 
(implies a bunch of other options)

LYX_NLS  = ON : Enable Native Language Support (NLS)
LYX_REQUIRE_SPELLCHECK   = OFF: Abort if no spellchecker available
LYX_ASPELL   = OFF: Require aspell
LYX_ENCHANT  = OFF: Require Enchant
LYX_HUNSPELL = ON : Require Hunspell
LYX_RELEASE  = ON : Build release version, build debug 
when disabled

LYX_DEBUG= OFF: Enforce debug build
LYX_NO_OPTIMIZE  = OFF: Don't use any optimization/debug flags
LYX_PACKAGE_SUFFIX   = ON : Use version suffix for packaging
LYX_SUFFIX_VALUE =: Use this string as suffix
LYX_PCH  = OFF: Use pre