Re: Compiling and using master on macOS

2020-07-17 Thread Daniel

On 2020-07-18 05:01, Daniel wrote:

On 2020-07-16 07:46, Daniel wrote:

On 2020-07-16 06:52, Stephan Witt wrote:

Am 16.07.2020 um 02:00 schrieb Daniel :


On 2020-07-15 22:45, Stephan Witt wrote:

Am 15.07.2020 um 07:53 schrieb Daniel :


On 2020-07-13 04:02, Daniel wrote:

On 2020-07-08 08:28, Stephan Witt wrote:

Am 07.07.2020 um 07:35 schrieb Daniel :


On 2020-07-07 07:30, Daniel wrote:

On 2020-07-07 00:24, Stephan Witt wrote:


I’ve made a protocol of the steps I took to build the package 
on a new system. See the attached log. Probably the crucial 
thing is the mklyx-2.3.4.3.sh script.


I’m used to configure and build LyX out of source. I have a 
working directory with one or more versions of LyX source 
code and a directory lyx-build for the results. For Qt I have 
a source directory and an install target in parallel, the 
build directory is in lyx-build.


$ ls /Users/Shared/LyX
lyx-2.3.4.3 (source)
lyx-2.3.5.2 (source)
lyx-build (directory)
qt-5.9.9-frameworks-cocoa-x86_64  (QTDIR for 5.9.9)
qt-everywhere-opensource-src-5.9.9 (source)
configure: error: cannot compile a simple Qt executable. Check 
you have the right $QTDIR.
(Where  is my user directory.) Seems as if my Qt 
install was not correct. It created a bunch of stuff in

~/Qt/5.9.9/clang_64
But I am not sure that is what is needed. During the installation 
I chose

Qt > Qt 5.9.9 > macOS


Maybe the problem is that I am using the install version of Qt? 
You mention a "qt-5.9.9-frameworks-cocoa-x86_64  (QTDIR for 
5.9.9)" and "qt-everywhere-opensource-src-5.9.9 (source)". Where 
do I get these from? What is the Qt source needed for?


I have added the Qt sources via the installer but that didn't help 
either. It does not matter whether I use any of these


--with-qt-dir=/Users/dram/Qt
--with-qt-dir=/Users/dram/Qt/5.9.9
--with-qt-dir=/Users/dram/Qt/5.9.9/clang_64
--with-qt-dir=/Users/dram/Qt/5.9.9/clang_64/bin

I can build the Qt example apps via Qt designer.

Does anyone have a further idea what might be going on?

You should have something like that in your QTDIR:
$ ls /Users/Shared/LyX/qt-5.9.9-frameworks-cocoa-x86_64/lib
Qt3DAnimation.framework QtTest.framework 
libQt5DeviceDiscoverySupport.a libQt5GraphicsSupport_debug.prl
Qt3DCore.framework QtTextToSpeech.framework 
libQt5DeviceDiscoverySupport.la    libQt5OpenGLExtensions.a
Qt3DExtras.framework QtWebChannel.framework 
libQt5DeviceDiscoverySupport.prl    libQt5OpenGLExtensions.la
Qt3DInput.framework QtWebSockets.framework 
libQt5DeviceDiscoverySupport_debug.a    libQt5OpenGLExtensions.prl
Qt3DLogic.framework QtWidgets.framework 
libQt5DeviceDiscoverySupport_debug.la libQt5OpenGLExtensions_debug.a
Qt3DRender.framework QtXml.framework 
libQt5DeviceDiscoverySupport_debug.prl libQt5OpenGLExtensions_debug.la
QtCharts.framework QtXmlPatterns.framework 
libQt5EventDispatcherSupport.a libQt5OpenGLExtensions_debug.prl
QtConcurrent.framework    cmake 
libQt5EventDispatcherSupport.la libQt5PlatformCompositorSupport.a
QtCore.framework libQt5AccessibilitySupport.a 
libQt5EventDispatcherSupport.prl libQt5PlatformCompositorSupport.la
QtDBus.framework libQt5AccessibilitySupport.la 
libQt5EventDispatcherSupport_debug.a 
libQt5PlatformCompositorSupport.prl
QtDataVisualization.framework libQt5AccessibilitySupport.prl 
libQt5EventDispatcherSupport_debug.la 
libQt5PlatformCompositorSupport_debug.a
QtGamepad.framework libQt5AccessibilitySupport_debug.a 
libQt5EventDispatcherSupport_debug.prl 
libQt5PlatformCompositorSupport_debug.la
QtGui.framework libQt5AccessibilitySupport_debug.la 
libQt5FbSupport.a libQt5PlatformCompositorSupport_debug.prl
QtMacExtras.framework libQt5AccessibilitySupport_debug.prl 
libQt5FbSupport.la    libQt5ThemeSupport.a
QtMultimedia.framework libQt5Bootstrap.a
libQt5FbSupport.prl libQt5ThemeSupport.la
QtMultimediaWidgets.framework libQt5Bootstrap.la 
libQt5FbSupport_debug.a    libQt5ThemeSupport.prl
QtNetwork.framework libQt5Bootstrap.prl 
libQt5FbSupport_debug.la    libQt5ThemeSupport_debug.a
QtNetworkAuth.framework libQt5CglSupport.a 
libQt5FbSupport_debug.prl    libQt5ThemeSupport_debug.la
QtOpenGL.framework    libQt5CglSupport.la 
libQt5FontDatabaseSupport.a    libQt5ThemeSupport_debug.prl
QtPositioning.framework libQt5CglSupport.prl 
libQt5FontDatabaseSupport.la    libqtfreetype.a
QtPrintSupport.framework libQt5CglSupport_debug.a 
libQt5FontDatabaseSupport.prl    libqtfreetype.prl
QtPurchasing.framework libQt5CglSupport_debug.la 
libQt5FontDatabaseSupport_debug.a    libqtfreetype_debug.a
QtRemoteObjects.framework libQt5CglSupport_debug.prl 
libQt5FontDatabaseSupport_debug.la    libqtfreetype_debug.prl
QtRepParser.framework libQt5ClipboardSupport.a 
libQt5FontDatabaseSupport_debug.prl    libqtlibpng.a
QtSensors.framework libQt5ClipboardSupport.la 
libQt5GraphicsSupport.a    libqtlibpng.prl
QtSerialBus.framework 

Re: Compiling and using master on macOS

2020-07-17 Thread Daniel

On 2020-07-16 07:46, Daniel wrote:

On 2020-07-16 06:52, Stephan Witt wrote:

Am 16.07.2020 um 02:00 schrieb Daniel :


On 2020-07-15 22:45, Stephan Witt wrote:

Am 15.07.2020 um 07:53 schrieb Daniel :


On 2020-07-13 04:02, Daniel wrote:

On 2020-07-08 08:28, Stephan Witt wrote:

Am 07.07.2020 um 07:35 schrieb Daniel :


On 2020-07-07 07:30, Daniel wrote:

On 2020-07-07 00:24, Stephan Witt wrote:


I’ve made a protocol of the steps I took to build the package 
on a new system. See the attached log. Probably the crucial 
thing is the mklyx-2.3.4.3.sh script.


I’m used to configure and build LyX out of source. I have a 
working directory with one or more versions of LyX source code 
and a directory lyx-build for the results. For Qt I have a 
source directory and an install target in parallel, the build 
directory is in lyx-build.


$ ls /Users/Shared/LyX
lyx-2.3.4.3 (source)
lyx-2.3.5.2 (source)
lyx-build (directory)
qt-5.9.9-frameworks-cocoa-x86_64  (QTDIR for 5.9.9)
qt-everywhere-opensource-src-5.9.9 (source)
configure: error: cannot compile a simple Qt executable. Check you 
have the right $QTDIR.
(Where  is my user directory.) Seems as if my Qt install 
was not correct. It created a bunch of stuff in

~/Qt/5.9.9/clang_64
But I am not sure that is what is needed. During the installation 
I chose

Qt > Qt 5.9.9 > macOS


Maybe the problem is that I am using the install version of Qt? You 
mention a "qt-5.9.9-frameworks-cocoa-x86_64  (QTDIR for 5.9.9)" and 
"qt-everywhere-opensource-src-5.9.9 (source)". Where do I get these 
from? What is the Qt source needed for?


I have added the Qt sources via the installer but that didn't help 
either. It does not matter whether I use any of these


--with-qt-dir=/Users/dram/Qt
--with-qt-dir=/Users/dram/Qt/5.9.9
--with-qt-dir=/Users/dram/Qt/5.9.9/clang_64
--with-qt-dir=/Users/dram/Qt/5.9.9/clang_64/bin

I can build the Qt example apps via Qt designer.

Does anyone have a further idea what might be going on?

You should have something like that in your QTDIR:
$ ls /Users/Shared/LyX/qt-5.9.9-frameworks-cocoa-x86_64/lib
Qt3DAnimation.framework
QtTest.framework
libQt5DeviceDiscoverySupport.a
libQt5GraphicsSupport_debug.prl
Qt3DCore.framework
QtTextToSpeech.framework
libQt5DeviceDiscoverySupport.la    libQt5OpenGLExtensions.a
Qt3DExtras.framework
QtWebChannel.framework
libQt5DeviceDiscoverySupport.prl    libQt5OpenGLExtensions.la
Qt3DInput.framework
QtWebSockets.framework
libQt5DeviceDiscoverySupport_debug.a    libQt5OpenGLExtensions.prl
Qt3DLogic.framework
QtWidgets.framework
libQt5DeviceDiscoverySupport_debug.la
libQt5OpenGLExtensions_debug.a
Qt3DRender.framework
QtXml.framework
libQt5DeviceDiscoverySupport_debug.prl
libQt5OpenGLExtensions_debug.la
QtCharts.framework
QtXmlPatterns.framework
libQt5EventDispatcherSupport.a
libQt5OpenGLExtensions_debug.prl
QtConcurrent.framework    cmake
libQt5EventDispatcherSupport.la
libQt5PlatformCompositorSupport.a
QtCore.framework
libQt5AccessibilitySupport.a
libQt5EventDispatcherSupport.prl
libQt5PlatformCompositorSupport.la
QtDBus.framework
libQt5AccessibilitySupport.la
libQt5EventDispatcherSupport_debug.a
libQt5PlatformCompositorSupport.prl
QtDataVisualization.framework
libQt5AccessibilitySupport.prl
libQt5EventDispatcherSupport_debug.la
libQt5PlatformCompositorSupport_debug.a
QtGamepad.framework
libQt5AccessibilitySupport_debug.a
libQt5EventDispatcherSupport_debug.prl
libQt5PlatformCompositorSupport_debug.la
QtGui.framework
libQt5AccessibilitySupport_debug.la
libQt5FbSupport.a
libQt5PlatformCompositorSupport_debug.prl
QtMacExtras.framework
libQt5AccessibilitySupport_debug.prl
libQt5FbSupport.la    libQt5ThemeSupport.a
QtMultimedia.framework
libQt5Bootstrap.a    libQt5FbSupport.prl
libQt5ThemeSupport.la
QtMultimediaWidgets.framework
libQt5Bootstrap.la
libQt5FbSupport_debug.a    libQt5ThemeSupport.prl
QtNetwork.framework
libQt5Bootstrap.prl
libQt5FbSupport_debug.la    libQt5ThemeSupport_debug.a
QtNetworkAuth.framework
libQt5CglSupport.a
libQt5FbSupport_debug.prl    libQt5ThemeSupport_debug.la
QtOpenGL.framework    libQt5CglSupport.la
libQt5FontDatabaseSupport.a    libQt5ThemeSupport_debug.prl
QtPositioning.framework
libQt5CglSupport.prl
libQt5FontDatabaseSupport.la  

Re: Compiling and using master on macOS

2020-07-15 Thread Daniel

On 2020-07-16 06:52, Stephan Witt wrote:

Am 16.07.2020 um 02:00 schrieb Daniel :


On 2020-07-15 22:45, Stephan Witt wrote:

Am 15.07.2020 um 07:53 schrieb Daniel :


On 2020-07-13 04:02, Daniel wrote:

On 2020-07-08 08:28, Stephan Witt wrote:

Am 07.07.2020 um 07:35 schrieb Daniel :


On 2020-07-07 07:30, Daniel wrote:

On 2020-07-07 00:24, Stephan Witt wrote:


I’ve made a protocol of the steps I took to build the package on a new system. 
See the attached log. Probably the crucial thing is the mklyx-2.3.4.3.sh script.

I’m used to configure and build LyX out of source. I have a working directory 
with one or more versions of LyX source code and a directory lyx-build for the 
results. For Qt I have a source directory and an install target in parallel, 
the build directory is in lyx-build.

$ ls /Users/Shared/LyX
lyx-2.3.4.3 (source)
lyx-2.3.5.2 (source)
lyx-build (directory)
qt-5.9.9-frameworks-cocoa-x86_64  (QTDIR for 5.9.9)
qt-everywhere-opensource-src-5.9.9 (source)

configure: error: cannot compile a simple Qt executable. Check you have the 
right $QTDIR.
(Where  is my user directory.) Seems as if my Qt install was not 
correct. It created a bunch of stuff in
~/Qt/5.9.9/clang_64
But I am not sure that is what is needed. During the installation I chose
Qt > Qt 5.9.9 > macOS


Maybe the problem is that I am using the install version of Qt? You mention a 
"qt-5.9.9-frameworks-cocoa-x86_64  (QTDIR for 5.9.9)" and 
"qt-everywhere-opensource-src-5.9.9 (source)". Where do I get these from? What is the Qt 
source needed for?

I have added the Qt sources via the installer but that didn't help either. It 
does not matter whether I use any of these

--with-qt-dir=/Users/dram/Qt
--with-qt-dir=/Users/dram/Qt/5.9.9
--with-qt-dir=/Users/dram/Qt/5.9.9/clang_64
--with-qt-dir=/Users/dram/Qt/5.9.9/clang_64/bin

I can build the Qt example apps via Qt designer.

Does anyone have a further idea what might be going on?

You should have something like that in your QTDIR:
$ ls /Users/Shared/LyX/qt-5.9.9-frameworks-cocoa-x86_64/lib
Qt3DAnimation.framework QtTest.framework
libQt5DeviceDiscoverySupport.a  
libQt5GraphicsSupport_debug.prl
Qt3DCore.framework  QtTextToSpeech.framework
libQt5DeviceDiscoverySupport.la 
libQt5OpenGLExtensions.a
Qt3DExtras.frameworkQtWebChannel.framework  
libQt5DeviceDiscoverySupport.prl
libQt5OpenGLExtensions.la
Qt3DInput.framework QtWebSockets.framework  
libQt5DeviceDiscoverySupport_debug.a
libQt5OpenGLExtensions.prl
Qt3DLogic.framework QtWidgets.framework 
libQt5DeviceDiscoverySupport_debug.la   
libQt5OpenGLExtensions_debug.a
Qt3DRender.frameworkQtXml.framework 
libQt5DeviceDiscoverySupport_debug.prl  
libQt5OpenGLExtensions_debug.la
QtCharts.framework  QtXmlPatterns.framework 
libQt5EventDispatcherSupport.a  
libQt5OpenGLExtensions_debug.prl
QtConcurrent.framework  cmake   
libQt5EventDispatcherSupport.la 
libQt5PlatformCompositorSupport.a
QtCore.frameworklibQt5AccessibilitySupport.a
libQt5EventDispatcherSupport.prl
libQt5PlatformCompositorSupport.la
QtDBus.frameworklibQt5AccessibilitySupport.la   
libQt5EventDispatcherSupport_debug.a
libQt5PlatformCompositorSupport.prl
QtDataVisualization.framework   libQt5AccessibilitySupport.prl  
libQt5EventDispatcherSupport_debug.la   
libQt5PlatformCompositorSupport_debug.a
QtGamepad.framework 
libQt5AccessibilitySupport_debug.a  
libQt5EventDispatcherSupport_debug.prl  
libQt5PlatformCompositorSupport_debug.la
QtGui.framework 
libQt5AccessibilitySupport_debug.la libQt5FbSupport.a   
libQt5PlatformCompositorSupport_debug.prl
QtMacExtras.framework   
libQt5AccessibilitySupport_debug.prllibQt5FbSupport.la  
libQt5ThemeSupport.a
QtMultimedia.framework  libQt5Bootstrap.a   
libQt5FbSupport.prl 
libQt5ThemeSupport.la
QtMultimediaWidgets.framework   libQt5Bootstrap.la  
libQt5FbSupport_debug.a 
libQt5ThemeSupport.prl
QtNetwork.framework libQt5Bootstrap.prl 

Re: Compiling and using master on macOS

2020-07-15 Thread Stephan Witt
Am 16.07.2020 um 02:01 schrieb Daniel :
> 
> On 2020-07-15 22:40, Stephan Witt wrote:
>> Am 15.07.2020 um 10:44 schrieb Daniel :
>>> 
>>> On 15/7/20 9:39, Stephan Witt wrote:
 Am 13.07.2020 um 03:16 schrieb Daniel :
> 
> On 2020-07-11 12:57, Enrico Forestieri wrote:
>> to get rid of the wrong line endings. In this case, check your git
>> configuration about the setting of "autocrlf". You may have it configured
>> for Windows instead of unix.
> 
> By the way, I did not change anything in the git configuration. So, maybe 
> it would be a good idea to add that and how to change this to the macOS 
> "how to“.
 I’m not sure how you came into this trouble. I have the git binary in 
 /usr/bin - this should be the original Apple utility installed by Xcode. I 
 didn’t change anything either.
 How did you get your git clone? There must be something special with it. 
 Perhaps you changed something with your git configuration in the past or 
 you’re using a copy or network mount of a windows clone?
 Stephan
>>> 
>>> I installed git a while ago before I installed Xcode because I wanted to 
>>> have a look at the LyX sources and without having enough space for Xcode. I 
>>> used brew or the macOS installer from https://git-scm.com/download/mac.
>>> 
>>> I'll check which method I used when I am back on the MacBook. I will then 
>>> try to remove the LyX git clone I have and re-clone. If that doesn't help, 
>>> will try to uninstall whichever version I installed before I installed 
>>> Xcode.
>>> 
>>> The only other thing that I used git for is working in the cloud on files 
>>> that I am using both on Windows and macOS. Maybe git recognized that the 
>>> files where originally created on Windows and changed it's configuration 
>>> automatically? But that seems unlikely.
>>> 
>>> Daniel
>> To print your current settings you may use this:
>> $ git config --list
>> credential.helper=osxkeychain
>> user.name=Stephan Witt
>> user.email=sw...@lyx.org
>> core.excludesfile=/Users/stephan/.gitignore_global
>> core.precomposeunicode=true
>> core.ignorecase=true
>> alias.up=pull --rebase
>> push.default=matching
>> commit.template=/Users/stephan/.stCommitMsg
>> Stephan
> 
> The command gave me:
> 
> % git config --list
> core.excludesfile=~/.gitignore
> core.legacyheaders=false
> core.quotepath=false
> mergetool.keepbackup=true
> push.default=simple
> color.ui=auto
> color.interactive=auto
> repack.usedeltabaseoffset=true
> alias.s=status
> alias.a=!git add . && git status
> alias.au=!git add -u . && git status
> alias.aa=!git add . && git add -u . && git status
> alias.c=commit
> alias.cm=commit -m
> alias.ca=commit --amend
> alias.ac=!git add . && git commit
> alias.acm=!git add . && git commit -m
> alias.l=log --graph --all --pretty=format:'%C(yellow)%h%C(cyan)%d%Creset %s 
> %C(white)- %an, %ar%Creset'
> alias.ll=log --stat --abbrev-commit
> alias.lg=log --color --graph --pretty=format:'%C(bold white)%h%Creset 
> -%C(bold green)%d%Creset %s %C(bold green)(%cr)%Creset %C(bold 
> blue)<%an>%Creset' --abbrev-commit --date=relative
> alias.llg=log --color --graph --pretty=format:'%C(bold white)%H 
> %d%Creset%n%s%n%+b%C(bold blue)%an <%ae>%Creset %C(bold green)%cr (%ci)' 
> --abbrev-commit
> alias.d=diff
> alias.master=checkout master
> alias.spull=svn rebase
> alias.spush=svn dcommit
> alias.alias=!git config --list | grep 'alias\.' | sed 
> 's/alias\.\([^=]*\)=\(.*\)/\1\   => \2/' | sort
> include.path=~/.gitcinclude
> include.path=.githubconfig
> include.path=.gitcredential
> diff.exif.textconv=exif
> credential.helper=osxkeychain
> filter.lfs.required=true
> filter.lfs.clean=git-lfs clean -- %f
> filter.lfs.smudge=git-lfs smudge -- %f
> filter.lfs.process=git-lfs filter-process
> user.name=
> user.email=
> core.autocrlf=input
> 
> 
> This looked like a lot more stuff than you have and homebrew did not show the 
> package. So, probably I installed it manually or it was installed together 
> with the GitHub Desktop app or so. So, I uninstalled git using:
> 
> /usr/local/git/uninstall.sh
> 
> 
> After that I have:
> 
> % git config --list
> credential.helper=osxkeychain
> filter.lfs.required=true
> filter.lfs.clean=git-lfs clean -- %f
> filter.lfs.smudge=git-lfs smudge -- %f
> filter.lfs.process=git-lfs filter-process
> user.name=
> user.email=
> core.autocrlf=input

core.autocrlf=input

This setting is recommended on windows by some users. I don't know the effect 
of it on Mac and it shouldn’t needed.

Stephan

> 
> 
> So, apparently there were two versions of git installed. Still looks 
> different from yours. But maybe closer.
> 
> So, I thought it made sense to get a fresh lyx git clone via
> 
> % git clone git://git.lyx.org/lyx
> 
> 
> Unfortunately, after successfully running autogen.sh, the result is still the 
> same:
> 
> % sh ../../lyx/configure --enable-warnings --enable-optimization=-Os 
> --with-x=no --disable-stdlib-debug 
> 

Re: Compiling and using master on macOS

2020-07-15 Thread Stephan Witt
Am 16.07.2020 um 02:00 schrieb Daniel :
> 
> On 2020-07-15 22:45, Stephan Witt wrote:
>> Am 15.07.2020 um 07:53 schrieb Daniel :
>>> 
>>> On 2020-07-13 04:02, Daniel wrote:
 On 2020-07-08 08:28, Stephan Witt wrote:
> Am 07.07.2020 um 07:35 schrieb Daniel :
>> 
>> On 2020-07-07 07:30, Daniel wrote:
>>> On 2020-07-07 00:24, Stephan Witt wrote:
 
 I’ve made a protocol of the steps I took to build the package on a new 
 system. See the attached log. Probably the crucial thing is the 
 mklyx-2.3.4.3.sh script.
 
 I’m used to configure and build LyX out of source. I have a working 
 directory with one or more versions of LyX source code and a directory 
 lyx-build for the results. For Qt I have a source directory and an 
 install target in parallel, the build directory is in lyx-build.
 
 $ ls /Users/Shared/LyX
 lyx-2.3.4.3 (source)
 lyx-2.3.5.2 (source)
 lyx-build (directory)
 qt-5.9.9-frameworks-cocoa-x86_64  (QTDIR for 5.9.9)
 qt-everywhere-opensource-src-5.9.9 (source)
 configure: error: cannot compile a simple Qt executable. Check you have 
 the right $QTDIR.
 (Where  is my user directory.) Seems as if my Qt install was not 
 correct. It created a bunch of stuff in
 ~/Qt/5.9.9/clang_64
 But I am not sure that is what is needed. During the installation I chose
 Qt > Qt 5.9.9 > macOS
>>> 
>>> Maybe the problem is that I am using the install version of Qt? You mention 
>>> a "qt-5.9.9-frameworks-cocoa-x86_64  (QTDIR for 5.9.9)" and 
>>> "qt-everywhere-opensource-src-5.9.9 (source)". Where do I get these from? 
>>> What is the Qt source needed for?
>>> 
>>> I have added the Qt sources via the installer but that didn't help either. 
>>> It does not matter whether I use any of these
>>> 
>>> --with-qt-dir=/Users/dram/Qt
>>> --with-qt-dir=/Users/dram/Qt/5.9.9
>>> --with-qt-dir=/Users/dram/Qt/5.9.9/clang_64
>>> --with-qt-dir=/Users/dram/Qt/5.9.9/clang_64/bin
>>> 
>>> I can build the Qt example apps via Qt designer.
>>> 
>>> Does anyone have a further idea what might be going on?
>> You should have something like that in your QTDIR:
>> $ ls /Users/Shared/LyX/qt-5.9.9-frameworks-cocoa-x86_64/lib
>> Qt3DAnimation.framework  QtTest.framework
>> libQt5DeviceDiscoverySupport.a  
>> libQt5GraphicsSupport_debug.prl
>> Qt3DCore.framework   QtTextToSpeech.framework
>> libQt5DeviceDiscoverySupport.la 
>> libQt5OpenGLExtensions.a
>> Qt3DExtras.framework QtWebChannel.framework  
>> libQt5DeviceDiscoverySupport.prl
>> libQt5OpenGLExtensions.la
>> Qt3DInput.framework  QtWebSockets.framework  
>> libQt5DeviceDiscoverySupport_debug.a
>> libQt5OpenGLExtensions.prl
>> Qt3DLogic.framework  QtWidgets.framework 
>> libQt5DeviceDiscoverySupport_debug.la   
>> libQt5OpenGLExtensions_debug.a
>> Qt3DRender.framework QtXml.framework 
>> libQt5DeviceDiscoverySupport_debug.prl  
>> libQt5OpenGLExtensions_debug.la
>> QtCharts.framework   QtXmlPatterns.framework 
>> libQt5EventDispatcherSupport.a  
>> libQt5OpenGLExtensions_debug.prl
>> QtConcurrent.framework   cmake   
>> libQt5EventDispatcherSupport.la 
>> libQt5PlatformCompositorSupport.a
>> QtCore.framework libQt5AccessibilitySupport.a
>> libQt5EventDispatcherSupport.prl
>> libQt5PlatformCompositorSupport.la
>> QtDBus.framework libQt5AccessibilitySupport.la   
>> libQt5EventDispatcherSupport_debug.a
>> libQt5PlatformCompositorSupport.prl
>> QtDataVisualization.framework
>> libQt5AccessibilitySupport.prl  
>> libQt5EventDispatcherSupport_debug.la   
>> libQt5PlatformCompositorSupport_debug.a
>> QtGamepad.framework  
>> libQt5AccessibilitySupport_debug.a  
>> libQt5EventDispatcherSupport_debug.prl  
>> libQt5PlatformCompositorSupport_debug.la
>> QtGui.framework  
>> libQt5AccessibilitySupport_debug.la libQt5FbSupport.a
>>libQt5PlatformCompositorSupport_debug.prl
>> QtMacExtras.framework
>> libQt5AccessibilitySupport_debug.prllibQt5FbSupport.la   
>>libQt5ThemeSupport.a
>> QtMultimedia.framework   

Re: Compiling and using master on macOS

2020-07-15 Thread Stephan Witt
Am 16.07.2020 um 02:10 schrieb Daniel :
> 
> On 2020-07-15 22:45, Stephan Witt wrote:
>> The download area for Qt sources is here: http://download.qt.io/archive/qt/
> 
> You listed:
> 
> qt-5.9.9-frameworks-cocoa-x86_64  (QTDIR for 5.9.9)
> qt-everywhere-opensource-src-5.9.9 (source)
> 
> I found the sources at https://download.qt.io/archive/qt/5.9/5.9.9/single/:
> 
> qt-everywhere-opensource-src-5.9.9.zip
> qt-everywhere-opensource-src-5.9.9.tar.xz
> 
> But I found nothing that resembles the QTDIR for 5.9.9, i.e. 
> qt-5.9.9-frameworks-cocoa-x86_64.

Yes, of course. It’s created by the install step of the Qt build from source.

The script LyX-Mac-binary-release.sh I’m using contains the Qt build as sub 
function build_qt(). Basically it contains two steps:

1. configure and build Qt from source
2. create and or fill the include directory with the missing links

I decided to do it that way because this structure is working with the LyX 
structure.

Stephan
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: Compiling and using master on macOS

2020-07-15 Thread Daniel

On 2020-07-16 02:01, Daniel wrote:

On 2020-07-15 22:40, Stephan Witt wrote:

Am 15.07.2020 um 10:44 schrieb Daniel :


On 15/7/20 9:39, Stephan Witt wrote:

Am 13.07.2020 um 03:16 schrieb Daniel :


On 2020-07-11 12:57, Enrico Forestieri wrote:

to get rid of the wrong line endings. In this case, check your git
configuration about the setting of "autocrlf". You may have it 
configured

for Windows instead of unix.


By the way, I did not change anything in the git configuration. So, 
maybe it would be a good idea to add that and how to change this to 
the macOS "how to“.
I’m not sure how you came into this trouble. I have the git binary 
in /usr/bin - this should be the original Apple utility installed by 
Xcode. I didn’t change anything either.
How did you get your git clone? There must be something special with 
it. Perhaps you changed something with your git configuration in the 
past or you’re using a copy or network mount of a windows clone?

Stephan


I installed git a while ago before I installed Xcode because I wanted 
to have a look at the LyX sources and without having enough space for 
Xcode. I used brew or the macOS installer from 
https://git-scm.com/download/mac.


I'll check which method I used when I am back on the MacBook. I will 
then try to remove the LyX git clone I have and re-clone. If that 
doesn't help, will try to uninstall whichever version I installed 
before I installed Xcode.


The only other thing that I used git for is working in the cloud on 
files that I am using both on Windows and macOS. Maybe git recognized 
that the files where originally created on Windows and changed it's 
configuration automatically? But that seems unlikely.


Daniel


To print your current settings you may use this:

$ git config --list
credential.helper=osxkeychain
user.name=Stephan Witt
user.email=sw...@lyx.org
core.excludesfile=/Users/stephan/.gitignore_global
core.precomposeunicode=true
core.ignorecase=true
alias.up=pull --rebase
push.default=matching
commit.template=/Users/stephan/.stCommitMsg

Stephan



The command gave me:

% git config --list
core.excludesfile=~/.gitignore
core.legacyheaders=false
core.quotepath=false
mergetool.keepbackup=true
push.default=simple
color.ui=auto
color.interactive=auto
repack.usedeltabaseoffset=true
alias.s=status
alias.a=!git add . && git status
alias.au=!git add -u . && git status
alias.aa=!git add . && git add -u . && git status
alias.c=commit
alias.cm=commit -m
alias.ca=commit --amend
alias.ac=!git add . && git commit
alias.acm=!git add . && git commit -m
alias.l=log --graph --all --pretty=format:'%C(yellow)%h%C(cyan)%d%Creset 
%s %C(white)- %an, %ar%Creset'

alias.ll=log --stat --abbrev-commit
alias.lg=log --color --graph --pretty=format:'%C(bold white)%h%Creset 
-%C(bold green)%d%Creset %s %C(bold green)(%cr)%Creset %C(bold 
blue)<%an>%Creset' --abbrev-commit --date=relative
alias.llg=log --color --graph --pretty=format:'%C(bold white)%H 
%d%Creset%n%s%n%+b%C(bold blue)%an <%ae>%Creset %C(bold green)%cr (%ci)' 
--abbrev-commit

alias.d=diff
alias.master=checkout master
alias.spull=svn rebase
alias.spush=svn dcommit
alias.alias=!git config --list | grep 'alias\.' | sed 
's/alias\.\([^=]*\)=\(.*\)/\1\ => \2/' | sort

include.path=~/.gitcinclude
include.path=.githubconfig
include.path=.gitcredential
diff.exif.textconv=exif
credential.helper=osxkeychain
filter.lfs.required=true
filter.lfs.clean=git-lfs clean -- %f
filter.lfs.smudge=git-lfs smudge -- %f
filter.lfs.process=git-lfs filter-process
user.name=
user.email=
core.autocrlf=input


This looked like a lot more stuff than you have and homebrew did not 
show the package. So, probably I installed it manually or it was 
installed together with the GitHub Desktop app or so. So, I uninstalled 
git using:


/usr/local/git/uninstall.sh


After that I have:

% git config --list
credential.helper=osxkeychain
filter.lfs.required=true
filter.lfs.clean=git-lfs clean -- %f
filter.lfs.smudge=git-lfs smudge -- %f
filter.lfs.process=git-lfs filter-process
user.name=
user.email=
core.autocrlf=input


So, apparently there were two versions of git installed. Still looks 
different from yours. But maybe closer.


So, I thought it made sense to get a fresh lyx git clone via

% git clone git://git.lyx.org/lyx


Unfortunately, after successfully running autogen.sh, the result is 
still the same:


% sh ../../lyx/configure --enable-warnings --enable-optimization=-Os 
--with-x=no --disable-stdlib-debug 
--with-qt-dir=/Users/dram/Qt/5.9.9/clang_64/bin 
--prefix=/Applications/LyX-Dev

configuring LyX version 2.4.0dev
checking for build type... development
checking for version suffix...
checking whether Qt5 is disabled... no
checking build system type... x86_64-apple-darwin19.5.0
checking host system type... x86_64-apple-darwin19.5.0
checking target system type... x86_64-apple-darwin19.5.0
checking what packaging should be used... macosx
checking whether to enable maintainer-specific portions of Makefiles... yes
checking 

Re: Compiling and using master on macOS

2020-07-15 Thread Daniel

On 2020-07-15 22:45, Stephan Witt wrote:

The download area for Qt sources is here: http://download.qt.io/archive/qt/


You listed:

qt-5.9.9-frameworks-cocoa-x86_64  (QTDIR for 5.9.9)
qt-everywhere-opensource-src-5.9.9 (source)

I found the sources at https://download.qt.io/archive/qt/5.9/5.9.9/single/:

qt-everywhere-opensource-src-5.9.9.zip
qt-everywhere-opensource-src-5.9.9.tar.xz

But I found nothing that resembles the QTDIR for 5.9.9, i.e. 
qt-5.9.9-frameworks-cocoa-x86_64.


Daniel

--
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: Compiling and using master on macOS

2020-07-15 Thread Daniel

On 2020-07-15 22:40, Stephan Witt wrote:

Am 15.07.2020 um 10:44 schrieb Daniel :


On 15/7/20 9:39, Stephan Witt wrote:

Am 13.07.2020 um 03:16 schrieb Daniel :


On 2020-07-11 12:57, Enrico Forestieri wrote:

to get rid of the wrong line endings. In this case, check your git
configuration about the setting of "autocrlf". You may have it configured
for Windows instead of unix.


By the way, I did not change anything in the git configuration. So, maybe it would 
be a good idea to add that and how to change this to the macOS "how to“.

I’m not sure how you came into this trouble. I have the git binary in /usr/bin 
- this should be the original Apple utility installed by Xcode. I didn’t change 
anything either.
How did you get your git clone? There must be something special with it. 
Perhaps you changed something with your git configuration in the past or you’re 
using a copy or network mount of a windows clone?
Stephan


I installed git a while ago before I installed Xcode because I wanted to have a 
look at the LyX sources and without having enough space for Xcode. I used brew 
or the macOS installer from https://git-scm.com/download/mac.

I'll check which method I used when I am back on the MacBook. I will then try 
to remove the LyX git clone I have and re-clone. If that doesn't help, will try 
to uninstall whichever version I installed before I installed Xcode.

The only other thing that I used git for is working in the cloud on files that 
I am using both on Windows and macOS. Maybe git recognized that the files where 
originally created on Windows and changed it's configuration automatically? But 
that seems unlikely.

Daniel


To print your current settings you may use this:

$ git config --list
credential.helper=osxkeychain
user.name=Stephan Witt
user.email=sw...@lyx.org
core.excludesfile=/Users/stephan/.gitignore_global
core.precomposeunicode=true
core.ignorecase=true
alias.up=pull --rebase
push.default=matching
commit.template=/Users/stephan/.stCommitMsg

Stephan



The command gave me:

% git config --list
core.excludesfile=~/.gitignore
core.legacyheaders=false
core.quotepath=false
mergetool.keepbackup=true
push.default=simple
color.ui=auto
color.interactive=auto
repack.usedeltabaseoffset=true
alias.s=status
alias.a=!git add . && git status
alias.au=!git add -u . && git status
alias.aa=!git add . && git add -u . && git status
alias.c=commit
alias.cm=commit -m
alias.ca=commit --amend
alias.ac=!git add . && git commit
alias.acm=!git add . && git commit -m
alias.l=log --graph --all --pretty=format:'%C(yellow)%h%C(cyan)%d%Creset 
%s %C(white)- %an, %ar%Creset'

alias.ll=log --stat --abbrev-commit
alias.lg=log --color --graph --pretty=format:'%C(bold white)%h%Creset 
-%C(bold green)%d%Creset %s %C(bold green)(%cr)%Creset %C(bold 
blue)<%an>%Creset' --abbrev-commit --date=relative
alias.llg=log --color --graph --pretty=format:'%C(bold white)%H 
%d%Creset%n%s%n%+b%C(bold blue)%an <%ae>%Creset %C(bold green)%cr (%ci)' 
--abbrev-commit

alias.d=diff
alias.master=checkout master
alias.spull=svn rebase
alias.spush=svn dcommit
alias.alias=!git config --list | grep 'alias\.' | sed 
's/alias\.\([^=]*\)=\(.*\)/\1\	 => \2/' | sort

include.path=~/.gitcinclude
include.path=.githubconfig
include.path=.gitcredential
diff.exif.textconv=exif
credential.helper=osxkeychain
filter.lfs.required=true
filter.lfs.clean=git-lfs clean -- %f
filter.lfs.smudge=git-lfs smudge -- %f
filter.lfs.process=git-lfs filter-process
user.name=
user.email=
core.autocrlf=input


This looked like a lot more stuff than you have and homebrew did not 
show the package. So, probably I installed it manually or it was 
installed together with the GitHub Desktop app or so. So, I uninstalled 
git using:


/usr/local/git/uninstall.sh


After that I have:

% git config --list
credential.helper=osxkeychain
filter.lfs.required=true
filter.lfs.clean=git-lfs clean -- %f
filter.lfs.smudge=git-lfs smudge -- %f
filter.lfs.process=git-lfs filter-process
user.name=
user.email=
core.autocrlf=input


So, apparently there were two versions of git installed. Still looks 
different from yours. But maybe closer.


So, I thought it made sense to get a fresh lyx git clone via

% git clone git://git.lyx.org/lyx


Unfortunately, after successfully running autogen.sh, the result is 
still the same:


% sh ../../lyx/configure --enable-warnings --enable-optimization=-Os 
--with-x=no --disable-stdlib-debug 
--with-qt-dir=/Users/dram/Qt/5.9.9/clang_64/bin 
--prefix=/Applications/LyX-Dev

configuring LyX version 2.4.0dev
checking for build type... development
checking for version suffix...
checking whether Qt5 is disabled... no
checking build system type... x86_64-apple-darwin19.5.0
checking host system type... x86_64-apple-darwin19.5.0
checking target system type... x86_64-apple-darwin19.5.0
checking what packaging should be used... macosx
checking whether to enable maintainer-specific portions of Makefiles... yes
checking whether make supports nested variables... yes

Re: Compiling and using master on macOS

2020-07-15 Thread Daniel

On 2020-07-15 22:45, Stephan Witt wrote:

Am 15.07.2020 um 07:53 schrieb Daniel :


On 2020-07-13 04:02, Daniel wrote:

On 2020-07-08 08:28, Stephan Witt wrote:

Am 07.07.2020 um 07:35 schrieb Daniel :


On 2020-07-07 07:30, Daniel wrote:

On 2020-07-07 00:24, Stephan Witt wrote:


I’ve made a protocol of the steps I took to build the package on a new system. 
See the attached log. Probably the crucial thing is the mklyx-2.3.4.3.sh script.

I’m used to configure and build LyX out of source. I have a working directory 
with one or more versions of LyX source code and a directory lyx-build for the 
results. For Qt I have a source directory and an install target in parallel, 
the build directory is in lyx-build.

$ ls /Users/Shared/LyX
lyx-2.3.4.3 (source)
lyx-2.3.5.2 (source)
lyx-build (directory)
qt-5.9.9-frameworks-cocoa-x86_64  (QTDIR for 5.9.9)
qt-everywhere-opensource-src-5.9.9 (source)

configure: error: cannot compile a simple Qt executable. Check you have the 
right $QTDIR.
(Where  is my user directory.) Seems as if my Qt install was not 
correct. It created a bunch of stuff in
~/Qt/5.9.9/clang_64
But I am not sure that is what is needed. During the installation I chose
Qt > Qt 5.9.9 > macOS


Maybe the problem is that I am using the install version of Qt? You mention a 
"qt-5.9.9-frameworks-cocoa-x86_64  (QTDIR for 5.9.9)" and 
"qt-everywhere-opensource-src-5.9.9 (source)". Where do I get these from? What is the Qt 
source needed for?

I have added the Qt sources via the installer but that didn't help either. It 
does not matter whether I use any of these

--with-qt-dir=/Users/dram/Qt
--with-qt-dir=/Users/dram/Qt/5.9.9
--with-qt-dir=/Users/dram/Qt/5.9.9/clang_64
--with-qt-dir=/Users/dram/Qt/5.9.9/clang_64/bin

I can build the Qt example apps via Qt designer.

Does anyone have a further idea what might be going on?


You should have something like that in your QTDIR:

$ ls /Users/Shared/LyX/qt-5.9.9-frameworks-cocoa-x86_64/lib
Qt3DAnimation.framework QtTest.framework
libQt5DeviceDiscoverySupport.a  
libQt5GraphicsSupport_debug.prl
Qt3DCore.framework  QtTextToSpeech.framework
libQt5DeviceDiscoverySupport.la 
libQt5OpenGLExtensions.a
Qt3DExtras.frameworkQtWebChannel.framework  
libQt5DeviceDiscoverySupport.prl
libQt5OpenGLExtensions.la
Qt3DInput.framework QtWebSockets.framework  
libQt5DeviceDiscoverySupport_debug.a
libQt5OpenGLExtensions.prl
Qt3DLogic.framework QtWidgets.framework 
libQt5DeviceDiscoverySupport_debug.la   
libQt5OpenGLExtensions_debug.a
Qt3DRender.frameworkQtXml.framework 
libQt5DeviceDiscoverySupport_debug.prl  
libQt5OpenGLExtensions_debug.la
QtCharts.framework  QtXmlPatterns.framework 
libQt5EventDispatcherSupport.a  
libQt5OpenGLExtensions_debug.prl
QtConcurrent.framework  cmake   
libQt5EventDispatcherSupport.la 
libQt5PlatformCompositorSupport.a
QtCore.frameworklibQt5AccessibilitySupport.a
libQt5EventDispatcherSupport.prl
libQt5PlatformCompositorSupport.la
QtDBus.frameworklibQt5AccessibilitySupport.la   
libQt5EventDispatcherSupport_debug.a
libQt5PlatformCompositorSupport.prl
QtDataVisualization.framework   libQt5AccessibilitySupport.prl  
libQt5EventDispatcherSupport_debug.la   
libQt5PlatformCompositorSupport_debug.a
QtGamepad.framework 
libQt5AccessibilitySupport_debug.a  
libQt5EventDispatcherSupport_debug.prl  
libQt5PlatformCompositorSupport_debug.la
QtGui.framework 
libQt5AccessibilitySupport_debug.la libQt5FbSupport.a   
libQt5PlatformCompositorSupport_debug.prl
QtMacExtras.framework   
libQt5AccessibilitySupport_debug.prllibQt5FbSupport.la  
libQt5ThemeSupport.a
QtMultimedia.framework  libQt5Bootstrap.a   
libQt5FbSupport.prl 
libQt5ThemeSupport.la
QtMultimediaWidgets.framework   libQt5Bootstrap.la  
libQt5FbSupport_debug.a 
libQt5ThemeSupport.prl
QtNetwork.framework libQt5Bootstrap.prl 
libQt5FbSupport_debug.la
libQt5ThemeSupport_debug.a

Re: Compiling and using master on macOS

2020-07-15 Thread Stephan Witt
Am 15.07.2020 um 07:53 schrieb Daniel :
> 
> On 2020-07-13 04:02, Daniel wrote:
>> On 2020-07-08 08:28, Stephan Witt wrote:
>>> Am 07.07.2020 um 07:35 schrieb Daniel :
 
 On 2020-07-07 07:30, Daniel wrote:
> On 2020-07-07 00:24, Stephan Witt wrote:
>> 
>> I’ve made a protocol of the steps I took to build the package on a new 
>> system. See the attached log. Probably the crucial thing is the 
>> mklyx-2.3.4.3.sh script.
>> 
>> I’m used to configure and build LyX out of source. I have a working 
>> directory with one or more versions of LyX source code and a directory 
>> lyx-build for the results. For Qt I have a source directory and an 
>> install target in parallel, the build directory is in lyx-build.
>> 
>> $ ls /Users/Shared/LyX
>> lyx-2.3.4.3 (source)
>> lyx-2.3.5.2 (source)
>> lyx-build (directory)
>> qt-5.9.9-frameworks-cocoa-x86_64  (QTDIR for 5.9.9)
>> qt-everywhere-opensource-src-5.9.9 (source)
>> configure: error: cannot compile a simple Qt executable. Check you have the 
>> right $QTDIR.
>> (Where  is my user directory.) Seems as if my Qt install was not 
>> correct. It created a bunch of stuff in
>> ~/Qt/5.9.9/clang_64
>> But I am not sure that is what is needed. During the installation I chose
>> Qt > Qt 5.9.9 > macOS
> 
> Maybe the problem is that I am using the install version of Qt? You mention a 
> "qt-5.9.9-frameworks-cocoa-x86_64  (QTDIR for 5.9.9)" and 
> "qt-everywhere-opensource-src-5.9.9 (source)". Where do I get these from? 
> What is the Qt source needed for?
> 
> I have added the Qt sources via the installer but that didn't help either. It 
> does not matter whether I use any of these
> 
> --with-qt-dir=/Users/dram/Qt
> --with-qt-dir=/Users/dram/Qt/5.9.9
> --with-qt-dir=/Users/dram/Qt/5.9.9/clang_64
> --with-qt-dir=/Users/dram/Qt/5.9.9/clang_64/bin
> 
> I can build the Qt example apps via Qt designer.
> 
> Does anyone have a further idea what might be going on?

You should have something like that in your QTDIR:

$ ls /Users/Shared/LyX/qt-5.9.9-frameworks-cocoa-x86_64/lib
Qt3DAnimation.framework QtTest.framework
libQt5DeviceDiscoverySupport.a  
libQt5GraphicsSupport_debug.prl
Qt3DCore.framework  QtTextToSpeech.framework
libQt5DeviceDiscoverySupport.la 
libQt5OpenGLExtensions.a
Qt3DExtras.frameworkQtWebChannel.framework  
libQt5DeviceDiscoverySupport.prl
libQt5OpenGLExtensions.la
Qt3DInput.framework QtWebSockets.framework  
libQt5DeviceDiscoverySupport_debug.a
libQt5OpenGLExtensions.prl
Qt3DLogic.framework QtWidgets.framework 
libQt5DeviceDiscoverySupport_debug.la   
libQt5OpenGLExtensions_debug.a
Qt3DRender.frameworkQtXml.framework 
libQt5DeviceDiscoverySupport_debug.prl  
libQt5OpenGLExtensions_debug.la
QtCharts.framework  QtXmlPatterns.framework 
libQt5EventDispatcherSupport.a  
libQt5OpenGLExtensions_debug.prl
QtConcurrent.framework  cmake   
libQt5EventDispatcherSupport.la 
libQt5PlatformCompositorSupport.a
QtCore.frameworklibQt5AccessibilitySupport.a
libQt5EventDispatcherSupport.prl
libQt5PlatformCompositorSupport.la
QtDBus.frameworklibQt5AccessibilitySupport.la   
libQt5EventDispatcherSupport_debug.a
libQt5PlatformCompositorSupport.prl
QtDataVisualization.framework   libQt5AccessibilitySupport.prl  
libQt5EventDispatcherSupport_debug.la   
libQt5PlatformCompositorSupport_debug.a
QtGamepad.framework 
libQt5AccessibilitySupport_debug.a  
libQt5EventDispatcherSupport_debug.prl  
libQt5PlatformCompositorSupport_debug.la
QtGui.framework 
libQt5AccessibilitySupport_debug.la libQt5FbSupport.a   
libQt5PlatformCompositorSupport_debug.prl
QtMacExtras.framework   
libQt5AccessibilitySupport_debug.prllibQt5FbSupport.la  
libQt5ThemeSupport.a
QtMultimedia.framework  libQt5Bootstrap.a   
libQt5FbSupport.prl 
libQt5ThemeSupport.la
QtMultimediaWidgets.framework   libQt5Bootstrap.la  
libQt5FbSupport_debug.a 
libQt5ThemeSupport.prl
QtNetwork.framework 

Re: Compiling and using master on macOS

2020-07-15 Thread Stephan Witt
Am 15.07.2020 um 10:44 schrieb Daniel :
> 
> On 15/7/20 9:39, Stephan Witt wrote:
>> Am 13.07.2020 um 03:16 schrieb Daniel :
>>> 
>>> On 2020-07-11 12:57, Enrico Forestieri wrote:
 to get rid of the wrong line endings. In this case, check your git
 configuration about the setting of "autocrlf". You may have it configured
 for Windows instead of unix.
>>> 
>>> By the way, I did not change anything in the git configuration. So, maybe 
>>> it would be a good idea to add that and how to change this to the macOS 
>>> "how to“.
>> I’m not sure how you came into this trouble. I have the git binary in 
>> /usr/bin - this should be the original Apple utility installed by Xcode. I 
>> didn’t change anything either.
>> How did you get your git clone? There must be something special with it. 
>> Perhaps you changed something with your git configuration in the past or 
>> you’re using a copy or network mount of a windows clone?
>> Stephan
> 
> I installed git a while ago before I installed Xcode because I wanted to have 
> a look at the LyX sources and without having enough space for Xcode. I used 
> brew or the macOS installer from https://git-scm.com/download/mac.
> 
> I'll check which method I used when I am back on the MacBook. I will then try 
> to remove the LyX git clone I have and re-clone. If that doesn't help, will 
> try to uninstall whichever version I installed before I installed Xcode.
> 
> The only other thing that I used git for is working in the cloud on files 
> that I am using both on Windows and macOS. Maybe git recognized that the 
> files where originally created on Windows and changed it's configuration 
> automatically? But that seems unlikely.
> 
> Daniel

To print your current settings you may use this:

$ git config --list 
credential.helper=osxkeychain
user.name=Stephan Witt
user.email=sw...@lyx.org
core.excludesfile=/Users/stephan/.gitignore_global
core.precomposeunicode=true
core.ignorecase=true
alias.up=pull --rebase
push.default=matching
commit.template=/Users/stephan/.stCommitMsg

Stephan
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: Compiling and using master on macOS

2020-07-15 Thread Daniel

On 15/7/20 9:39, Stephan Witt wrote:

Am 13.07.2020 um 03:16 schrieb Daniel :


On 2020-07-11 12:57, Enrico Forestieri wrote:

to get rid of the wrong line endings. In this case, check your git
configuration about the setting of "autocrlf". You may have it configured
for Windows instead of unix.


By the way, I did not change anything in the git configuration. So, maybe it would 
be a good idea to add that and how to change this to the macOS "how to“.


I’m not sure how you came into this trouble. I have the git binary in /usr/bin 
- this should be the original Apple utility installed by Xcode. I didn’t change 
anything either.

How did you get your git clone? There must be something special with it. 
Perhaps you changed something with your git configuration in the past or you’re 
using a copy or network mount of a windows clone?

Stephan


I installed git a while ago before I installed Xcode because I wanted to 
have a look at the LyX sources and without having enough space for 
Xcode. I used brew or the macOS installer from 
https://git-scm.com/download/mac.


I'll check which method I used when I am back on the MacBook. I will 
then try to remove the LyX git clone I have and re-clone. If that 
doesn't help, will try to uninstall whichever version I installed before 
I installed Xcode.


The only other thing that I used git for is working in the cloud on 
files that I am using both on Windows and macOS. Maybe git recognized 
that the files where originally created on Windows and changed it's 
configuration automatically? But that seems unlikely.


Daniel

--
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: Compiling and using master on macOS

2020-07-15 Thread Stephan Witt
Am 13.07.2020 um 03:16 schrieb Daniel :
> 
> On 2020-07-11 12:57, Enrico Forestieri wrote:
>> to get rid of the wrong line endings. In this case, check your git
>> configuration about the setting of "autocrlf". You may have it configured
>> for Windows instead of unix.
> 
> By the way, I did not change anything in the git configuration. So, maybe it 
> would be a good idea to add that and how to change this to the macOS "how to“.

I’m not sure how you came into this trouble. I have the git binary in /usr/bin 
- this should be the original Apple utility installed by Xcode. I didn’t change 
anything either.

How did you get your git clone? There must be something special with it. 
Perhaps you changed something with your git configuration in the past or you’re 
using a copy or network mount of a windows clone?

Stephan
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: Compiling and using master on macOS

2020-07-15 Thread Daniel

On 2020-03-16 20:53, Stephan Witt wrote:

Am 16.03.2020 um 17:37 schrieb Pavel Sanda :


On Sun, Mar 15, 2020 at 09:37:44PM +0100, Stephan Witt wrote:

Yes, it???s outdated. It should work with Qt4 - but Qt4 cannot be used on 
recent macOS.


Should we remove the file then? Pavel


No, I should update the file. But it’s not so easy to verify the new contents 
because I don’t have a virgin system.

Stephan



Maybe at least an "OUTDATED" warning or so should be added to the file 
in the meanwhile. So many things in it are outdated/broken: links, 
commands, etc.


Daniel

--
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: Compiling and using master on macOS

2020-07-14 Thread Daniel

On 2020-07-13 04:02, Daniel wrote:

On 2020-07-08 08:28, Stephan Witt wrote:

Am 07.07.2020 um 07:35 schrieb Daniel :


On 2020-07-07 07:30, Daniel wrote:

On 2020-07-07 00:24, Stephan Witt wrote:


I’ve made a protocol of the steps I took to build the package on a 
new system. See the attached log. Probably the crucial thing is the 
mklyx-2.3.4.3.sh script.


I’m used to configure and build LyX out of source. I have a working 
directory with one or more versions of LyX source code and a 
directory lyx-build for the results. For Qt I have a source 
directory and an install target in parallel, the build directory is 
in lyx-build.


$ ls /Users/Shared/LyX
lyx-2.3.4.3 (source)
lyx-2.3.5.2 (source)
lyx-build (directory)
qt-5.9.9-frameworks-cocoa-x86_64  (QTDIR for 5.9.9)
qt-everywhere-opensource-src-5.9.9 (source)


configure: error: cannot compile a simple Qt executable. Check you have 
the right $QTDIR.



(Where  is my user directory.) Seems as if my Qt install was 
not correct. It created a bunch of stuff in


~/Qt/5.9.9/clang_64

But I am not sure that is what is needed. During the installation I chose

Qt > Qt 5.9.9 > macOS


Maybe the problem is that I am using the install version of Qt? You 
mention a "qt-5.9.9-frameworks-cocoa-x86_64  (QTDIR for 5.9.9)" and 
"qt-everywhere-opensource-src-5.9.9 (source)". Where do I get these 
from? What is the Qt source needed for?


I have added the Qt sources via the installer but that didn't help 
either. It does not matter whether I use any of these


--with-qt-dir=/Users/dram/Qt
--with-qt-dir=/Users/dram/Qt/5.9.9
--with-qt-dir=/Users/dram/Qt/5.9.9/clang_64
--with-qt-dir=/Users/dram/Qt/5.9.9/clang_64/bin

I can build the Qt example apps via Qt designer.

Does anyone have a further idea what might be going on?

Daniel

--
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: Compiling and using master on macOS

2020-07-12 Thread Daniel

On 2020-07-08 08:28, Stephan Witt wrote:

Am 07.07.2020 um 07:35 schrieb Daniel :


On 2020-07-07 07:30, Daniel wrote:

On 2020-07-07 00:24, Stephan Witt wrote:

Am 06.07.2020 um 09:59 schrieb Daniel :


On 2020-03-15 21:37, Stephan Witt wrote:

Am 15.03.2020 um 17:16 schrieb Daniel :


Hi,

I am about to try compiling and using master on macOS. I just has a look at 
INSTALL.MacOSX. It mentions Qt version 4. That seems a bit outdated. But I 
guess that I am looking at the latest guide to compile on macOS, right?

Yes, it’s outdated. It should work with Qt4 - but Qt4 cannot be used on recent 
macOS.
Basically I’m using the script LyX-Mac-binary-release.sh in development folder. 
That’s much easier than other options, IMO.
First step is to install Xcode and the automake and/or cmake utilities. This 
can be done with macports or homebrew. I’m using macports.
Second step is to get Qt5 - as source or binary distribution. I’m using the 
source tarball and build Qt5 myself.
Optional components are the spell checker and libmagic frameworks.
Finally I start development/LyX-Mac-binary-release.sh with
--enable-cxx11
--with-qt-dir=/path/to/qt5
Stephan


Thanks. Finally came around trying it on macOS. I take it one has to run the 
last command with sh, right? So, from the lyx directory (in the lyxgit 
directory) I execute

sh development/LyX-Mac-binary-release.sh --enable-cxx11 
--with-qt-dir=/Users//Qt/5.9.9

(where I replace  by my macOS user name. Unfortunately, I get the 
following:

: command not found-binary-release.sh: line 2:
: command not found-binary-release.sh: line 4:
: command not found-binary-release.sh: line 9:
: command not found-binary-release.sh: line 19:
: command not found-binary-release.sh: line 23:
: command not found-binary-release.sh: line 27:
': not a valid identifiery-release.sh: line 28: unset: `LD_LIBRARY_PATH
: command not found-binary-release.sh: line 29:
: command not found-binary-release.sh: line 44:
: command not found-binary-release.sh: line 49:
development/LyX-Mac-binary-release.sh: line 53: syntax error near unexpected 
tok'n `in
'evelopment/LyX-Mac-binary-release.sh: line 53: `case "${QtVersion}:${QtAPI}" in

By the way, if finally successful, where will this put the LyX.app?

Daniel


I’ve made a protocol of the steps I took to build the package on a new system. 
See the attached log. Probably the crucial thing is the mklyx-2.3.4.3.sh script.

I’m used to configure and build LyX out of source. I have a working directory 
with one or more versions of LyX source code and a directory lyx-build for the 
results. For Qt I have a source directory and an install target in parallel, 
the build directory is in lyx-build.

$ ls /Users/Shared/LyX
lyx-2.3.4.3 (source)
lyx-2.3.5.2 (source)
lyx-build (directory)
qt-5.9.9-frameworks-cocoa-x86_64  (QTDIR for 5.9.9)
qt-everywhere-opensource-src-5.9.9 (source)

The lyx-build contains the build directory, the installed package (LyX.app) and 
the resulting disk image.

$ ls /Users/Shared/LyX/
LyX-2.3.4.3+qt5-x86_64-cocoa.dmg (disk image)
LyX-2.3.4.3.app (working app)
LyX-2.3.4.3.build (binaries)
LyX-2.3.5.2+qt5-x86_64-cocoa.dmg (disk image)
LyX-2.3.5.2.app (working app)
LyX-2.3.5.2.build (binaries)
qt-5.9.9-build-x86_64 (binaries)

The /bin/sh on a Mac is in fact a bash, IMO.

Stephan



I am using git to download the lyx source and qt installer. But the steps 
should be the same except for the unpacking and setting my own directories, 
right?
Also what does
osascript -e 'tell application "Finder" to display notification "LyX is great 
stuff"'
do? It looks strange.
Daniel


Okay, I guess it can't be the same because there is a specific LyX version 
mentioned (2.3.4.3). What would I use if I want to compile from git (master)?


Yes, that’s true - this is the build from the shipped tar file for 2.3.4.3. But 
it works for git clones too.

The difference to master is the name of the directory and this is your choice. 
I’m using „lyx“ for it. I have another git clone for stable named „lyx-2.3.x“.

The resulting applications are placed in lyx-build and named according to the 
AC_INIT macro in configure.ac (e.g. LyX,2.4.0dev => LyX-2.4.0dev.app).

In case you want to do the single steps w/o the build script you may try the 
following:

1. create a dedicated build dir - e.g. lyx-build/master

2. create or update the configure script - run autogen.sh in your git checkout 
(in place)

3. prepare your environment variables

export CPPFLAGS="-isysroot 
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk
 -arch x86_64 -mmacosx-version-min=10.10"
export CXXFLAGS=-std=c++11
export CPPFLAGS="${CPPFLAGS}"
export LDFLAGS="${CPPFLAGS}"

The path names are subject to change. Depending on Apples choice where to place 
the SDKs.

4. run configure with your build directory as working dir (with explicit given 
relative path name)

(cd lyx-build/master;sh ../../lyx/configure --enable-warnings 
--enable-optimization=-Os 

Re: Compiling and using master on macOS

2020-07-12 Thread Daniel

On 2020-07-11 12:57, Enrico Forestieri wrote:

to get rid of the wrong line endings. In this case, check your git
configuration about the setting of "autocrlf". You may have it configured
for Windows instead of unix.


By the way, I did not change anything in the git configuration. So, 
maybe it would be a good idea to add that and how to change this to the 
macOS "how to".


Daniel

--
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: Compiling and using master on macOS

2020-07-12 Thread Daniel

On 2020-07-11 12:57, Enrico Forestieri wrote:

On Sat, Jul 11, 2020 at 09:07:28AM +0200, Daniel wrote:


bash-3.2$ sh autogen.sh
: command not found
: command not found:
: command not found:
'utogen.sh: line 18: syntax error near unexpected token `in
'utogen.sh: line 18: `case $automake_version in


I think you may have wrong line endings in autogen.sh. Try running file
on it. If you get

$ file autogen.sh
autogen.sh: POSIX shell script, ASCII text executable

I am wrong, otherwise if you get

$ file autogen.sh
autogen.sh: POSIX shell script, ASCII text executable, with CRLF line 
terminators

then you can try

$ dos2unix autogen.sh

to get rid of the wrong line endings. In this case, check your git
configuration about the setting of "autocrlf". You may have it configured
for Windows instead of unix.



Thanks, that seems to have helped. By default there is no dos2unix 
command available on macOS but I could install it via Homebrew:


% brew install dos2unix

And now autogen seems to work:

% sh autogen.sh
Using automake (GNU automake) 1.16.2
Using autoconf (GNU Autoconf) 2.69
Building macros...
Building config header template...
Building Makefile templates...
configure.ac:48: installing 'config/ar-lib'
configure.ac:48: installing 'config/compile'
configure.ac:18: installing 'config/config.guess'
configure.ac:18: installing 'config/config.sub'
configure.ac:34: installing 'config/install-sh'
configure.ac:34: installing 'config/missing'
3rdparty/boost/Makefile.am: installing 'config/depcomp'
lib/lyx2lyx/Makefile.am:10: installing 'config/py-compile'
parallel-tests: installing 'config/test-driver'
Building configure...
Building po/POTFILES.in...

run "./configure && make"


I'll look into the next steps tomorrow.

Daniel

--
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: Compiling and using master on macOS

2020-07-11 Thread Enrico Forestieri
On Sat, Jul 11, 2020 at 09:07:28AM +0200, Daniel wrote:
>
> bash-3.2$ sh autogen.sh
> : command not found
> : command not found:
> : command not found:
> 'utogen.sh: line 18: syntax error near unexpected token `in
> 'utogen.sh: line 18: `case $automake_version in

I think you may have wrong line endings in autogen.sh. Try running file
on it. If you get

$ file autogen.sh
autogen.sh: POSIX shell script, ASCII text executable

I am wrong, otherwise if you get

$ file autogen.sh
autogen.sh: POSIX shell script, ASCII text executable, with CRLF line 
terminators

then you can try

$ dos2unix autogen.sh

to get rid of the wrong line endings. In this case, check your git
configuration about the setting of "autocrlf". You may have it configured
for Windows instead of unix.

-- 
Enrico
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: Compiling and using master on macOS

2020-07-11 Thread Daniel

On 2020-07-10 23:22, Stephan Witt wrote:

Am 08.07.2020 um 17:42 schrieb racoon :




On 2020-07-08 08:28, Stephan Witt wrote:

Am 07.07.2020 um 07:35 schrieb Daniel :


On 2020-07-07 07:30, Daniel wrote:

On 2020-07-07 00:24, Stephan Witt wrote:

Am 06.07.2020 um 09:59 schrieb Daniel :


On 2020-03-15 21:37, Stephan Witt wrote:

Am 15.03.2020 um 17:16 schrieb Daniel :


Hi,

I am about to try compiling and using master on macOS. I just has a look at 
INSTALL.MacOSX. It mentions Qt version 4. That seems a bit outdated. But I 
guess that I am looking at the latest guide to compile on macOS, right?

Yes, it’s outdated. It should work with Qt4 - but Qt4 cannot be used on recent 
macOS.
Basically I’m using the script LyX-Mac-binary-release.sh in development folder. 
That’s much easier than other options, IMO.
First step is to install Xcode and the automake and/or cmake utilities. This 
can be done with macports or homebrew. I’m using macports.
Second step is to get Qt5 - as source or binary distribution. I’m using the 
source tarball and build Qt5 myself.
Optional components are the spell checker and libmagic frameworks.
Finally I start development/LyX-Mac-binary-release.sh with
--enable-cxx11
--with-qt-dir=/path/to/qt5
Stephan


Thanks. Finally came around trying it on macOS. I take it one has to run the 
last command with sh, right? So, from the lyx directory (in the lyxgit 
directory) I execute

sh development/LyX-Mac-binary-release.sh --enable-cxx11 
--with-qt-dir=/Users//Qt/5.9.9

(where I replace  by my macOS user name. Unfortunately, I get the 
following:

: command not found-binary-release.sh: line 2:
: command not found-binary-release.sh: line 4:
: command not found-binary-release.sh: line 9:
: command not found-binary-release.sh: line 19:
: command not found-binary-release.sh: line 23:
: command not found-binary-release.sh: line 27:
': not a valid identifiery-release.sh: line 28: unset: `LD_LIBRARY_PATH
: command not found-binary-release.sh: line 29:
: command not found-binary-release.sh: line 44:
: command not found-binary-release.sh: line 49:
development/LyX-Mac-binary-release.sh: line 53: syntax error near unexpected 
tok'n `in
'evelopment/LyX-Mac-binary-release.sh: line 53: `case "${QtVersion}:${QtAPI}" in

By the way, if finally successful, where will this put the LyX.app?

Daniel


Yes, that’s true - this is the build from the shipped tar file for 2.3.4.3. But 
it works for git clones too.

The difference to master is the name of the directory and this is your choice. 
I’m using „lyx“ for it. I have another git clone for stable named „lyx-2.3.x“.

The resulting applications are placed in lyx-build and named according to the 
AC_INIT macro in configure.ac (e.g. LyX,2.4.0dev => LyX-2.4.0dev.app).

In case you want to do the single steps w/o the build script you may try the 
following:

1. create a dedicated build dir - e.g. lyx-build/master

2. create or update the configure script - run autogen.sh in your git checkout 
(in place)


In this step I get:

% sh autogen.sh
: command not found
: command not found
: command not found:
'utogen.sh: line 18: syntax error near unexpected token `in
'utogen.sh: line 18: `case $automake_version in

I guess it does not fails for some reason?


This is weird. There must be something very special with your shell. Here I 
have:

$ type sh
sh is hashed (/bin/sh)


Probably yours is different - zsh? Did you change it yourself?

If I try that I get:

$ zsh
% type sh
sh is /bin/sh
% cd ~/git/lyx
% sh autogen.sh
Using automake (GNU automake) 1.16.2
Using autoconf (GNU Autoconf) 2.69
Building macros...
Building config header template…
…

No problem.

Stephan

Mine is indeed zsh. After some macOS update there was an automatic 
prompt for changing to zsh. I think it is suggested because it updated 
more frequently by apple and it is the default since Catalina.


If I try bash I get

% bash

The default interactive shell is now zsh.
To update your account to use zsh, please run `chsh -s /bin/zsh`.
For more details, please visit https://support.apple.com/kb/HT208050.
bash-3.2$ type sh
sh is /bin/sh
bash-3.2$ sh autogen.sh
: command not found
: command not found:
: command not found:
'utogen.sh: line 18: syntax error near unexpected token `in
'utogen.sh: line 18: `case $automake_version in


After doing the "automatic" change to zsh some time ago, I noticed that 
no commands were working anymore. So, I tried


https://stackoverflow.com/a/18428774

which seemed to have fixed the problem. I don't know whether the fact 
that I cannot run autogen.sh has anything to do with it.


Daniel

--
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: Compiling and using master on macOS

2020-07-10 Thread Stephan Witt
Am 08.07.2020 um 17:42 schrieb racoon :
> 
> 
> 
> On 2020-07-08 08:28, Stephan Witt wrote:
>> Am 07.07.2020 um 07:35 schrieb Daniel :
>>> 
>>> On 2020-07-07 07:30, Daniel wrote:
 On 2020-07-07 00:24, Stephan Witt wrote:
> Am 06.07.2020 um 09:59 schrieb Daniel :
>> 
>> On 2020-03-15 21:37, Stephan Witt wrote:
>>> Am 15.03.2020 um 17:16 schrieb Daniel :
 
 Hi,
 
 I am about to try compiling and using master on macOS. I just has a 
 look at INSTALL.MacOSX. It mentions Qt version 4. That seems a bit 
 outdated. But I guess that I am looking at the latest guide to compile 
 on macOS, right?
>>> Yes, it’s outdated. It should work with Qt4 - but Qt4 cannot be used on 
>>> recent macOS.
>>> Basically I’m using the script LyX-Mac-binary-release.sh in development 
>>> folder. That’s much easier than other options, IMO.
>>> First step is to install Xcode and the automake and/or cmake utilities. 
>>> This can be done with macports or homebrew. I’m using macports.
>>> Second step is to get Qt5 - as source or binary distribution. I’m using 
>>> the source tarball and build Qt5 myself.
>>> Optional components are the spell checker and libmagic frameworks.
>>> Finally I start development/LyX-Mac-binary-release.sh with
>>> --enable-cxx11
>>> --with-qt-dir=/path/to/qt5
>>> Stephan
>> 
>> Thanks. Finally came around trying it on macOS. I take it one has to run 
>> the last command with sh, right? So, from the lyx directory (in the 
>> lyxgit directory) I execute
>> 
>> sh development/LyX-Mac-binary-release.sh --enable-cxx11 
>> --with-qt-dir=/Users//Qt/5.9.9
>> 
>> (where I replace  by my macOS user name. Unfortunately, I get 
>> the following:
>> 
>> : command not found-binary-release.sh: line 2:
>> : command not found-binary-release.sh: line 4:
>> : command not found-binary-release.sh: line 9:
>> : command not found-binary-release.sh: line 19:
>> : command not found-binary-release.sh: line 23:
>> : command not found-binary-release.sh: line 27:
>> ': not a valid identifiery-release.sh: line 28: unset: `LD_LIBRARY_PATH
>> : command not found-binary-release.sh: line 29:
>> : command not found-binary-release.sh: line 44:
>> : command not found-binary-release.sh: line 49:
>> development/LyX-Mac-binary-release.sh: line 53: syntax error near 
>> unexpected tok'n `in
>> 'evelopment/LyX-Mac-binary-release.sh: line 53: `case 
>> "${QtVersion}:${QtAPI}" in
>> 
>> By the way, if finally successful, where will this put the LyX.app?
>> 
>> Daniel
>> 
>> Yes, that’s true - this is the build from the shipped tar file for 2.3.4.3. 
>> But it works for git clones too.
>> 
>> The difference to master is the name of the directory and this is your 
>> choice. I’m using „lyx“ for it. I have another git clone for stable named 
>> „lyx-2.3.x“.
>> 
>> The resulting applications are placed in lyx-build and named according to 
>> the AC_INIT macro in configure.ac (e.g. LyX,2.4.0dev => LyX-2.4.0dev.app).
>> 
>> In case you want to do the single steps w/o the build script you may try the 
>> following:
>> 
>> 1. create a dedicated build dir - e.g. lyx-build/master
>> 
>> 2. create or update the configure script - run autogen.sh in your git 
>> checkout (in place)
> 
> In this step I get:
> 
> % sh autogen.sh
> : command not found
> : command not found
> : command not found:
> 'utogen.sh: line 18: syntax error near unexpected token `in
> 'utogen.sh: line 18: `case $automake_version in
> 
> I guess it does not fails for some reason?

This is weird. There must be something very special with your shell. Here I 
have:

$ type sh
sh is hashed (/bin/sh)


Probably yours is different - zsh? Did you change it yourself?

If I try that I get:

$ zsh
% type sh
sh is /bin/sh
% cd ~/git/lyx
% sh autogen.sh
Using automake (GNU automake) 1.16.2
Using autoconf (GNU Autoconf) 2.69
Building macros...
Building config header template…
…

No problem.

Stephan
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: Compiling and using master on macOS

2020-07-08 Thread racoon



On 2020-07-08 08:28, Stephan Witt wrote:

Am 07.07.2020 um 07:35 schrieb Daniel :


On 2020-07-07 07:30, Daniel wrote:

On 2020-07-07 00:24, Stephan Witt wrote:

Am 06.07.2020 um 09:59 schrieb Daniel :


On 2020-03-15 21:37, Stephan Witt wrote:

Am 15.03.2020 um 17:16 schrieb Daniel :


Hi,

I am about to try compiling and using master on macOS. I just has a look at 
INSTALL.MacOSX. It mentions Qt version 4. That seems a bit outdated. But I 
guess that I am looking at the latest guide to compile on macOS, right?

Yes, it’s outdated. It should work with Qt4 - but Qt4 cannot be used on recent 
macOS.
Basically I’m using the script LyX-Mac-binary-release.sh in development folder. 
That’s much easier than other options, IMO.
First step is to install Xcode and the automake and/or cmake utilities. This 
can be done with macports or homebrew. I’m using macports.
Second step is to get Qt5 - as source or binary distribution. I’m using the 
source tarball and build Qt5 myself.
Optional components are the spell checker and libmagic frameworks.
Finally I start development/LyX-Mac-binary-release.sh with
--enable-cxx11
--with-qt-dir=/path/to/qt5
Stephan


Thanks. Finally came around trying it on macOS. I take it one has to run the 
last command with sh, right? So, from the lyx directory (in the lyxgit 
directory) I execute

sh development/LyX-Mac-binary-release.sh --enable-cxx11 
--with-qt-dir=/Users//Qt/5.9.9

(where I replace  by my macOS user name. Unfortunately, I get the 
following:

: command not found-binary-release.sh: line 2:
: command not found-binary-release.sh: line 4:
: command not found-binary-release.sh: line 9:
: command not found-binary-release.sh: line 19:
: command not found-binary-release.sh: line 23:
: command not found-binary-release.sh: line 27:
': not a valid identifiery-release.sh: line 28: unset: `LD_LIBRARY_PATH
: command not found-binary-release.sh: line 29:
: command not found-binary-release.sh: line 44:
: command not found-binary-release.sh: line 49:
development/LyX-Mac-binary-release.sh: line 53: syntax error near unexpected 
tok'n `in
'evelopment/LyX-Mac-binary-release.sh: line 53: `case "${QtVersion}:${QtAPI}" in

By the way, if finally successful, where will this put the LyX.app?

Daniel


I’ve made a protocol of the steps I took to build the package on a new system. 
See the attached log. Probably the crucial thing is the mklyx-2.3.4.3.sh script.

I’m used to configure and build LyX out of source. I have a working directory 
with one or more versions of LyX source code and a directory lyx-build for the 
results. For Qt I have a source directory and an install target in parallel, 
the build directory is in lyx-build.

$ ls /Users/Shared/LyX
lyx-2.3.4.3 (source)
lyx-2.3.5.2 (source)
lyx-build (directory)
qt-5.9.9-frameworks-cocoa-x86_64  (QTDIR for 5.9.9)
qt-everywhere-opensource-src-5.9.9 (source)

The lyx-build contains the build directory, the installed package (LyX.app) and 
the resulting disk image.

$ ls /Users/Shared/LyX/
LyX-2.3.4.3+qt5-x86_64-cocoa.dmg (disk image)
LyX-2.3.4.3.app (working app)
LyX-2.3.4.3.build (binaries)
LyX-2.3.5.2+qt5-x86_64-cocoa.dmg (disk image)
LyX-2.3.5.2.app (working app)
LyX-2.3.5.2.build (binaries)
qt-5.9.9-build-x86_64 (binaries)

The /bin/sh on a Mac is in fact a bash, IMO.

Stephan



I am using git to download the lyx source and qt installer. But the steps 
should be the same except for the unpacking and setting my own directories, 
right?
Also what does
osascript -e 'tell application "Finder" to display notification "LyX is great 
stuff"'
do? It looks strange.
Daniel


Okay, I guess it can't be the same because there is a specific LyX version 
mentioned (2.3.4.3). What would I use if I want to compile from git (master)?


Yes, that’s true - this is the build from the shipped tar file for 2.3.4.3. But 
it works for git clones too.

The difference to master is the name of the directory and this is your choice. 
I’m using „lyx“ for it. I have another git clone for stable named „lyx-2.3.x“.

The resulting applications are placed in lyx-build and named according to the 
AC_INIT macro in configure.ac (e.g. LyX,2.4.0dev => LyX-2.4.0dev.app).

In case you want to do the single steps w/o the build script you may try the 
following:

1. create a dedicated build dir - e.g. lyx-build/master

2. create or update the configure script - run autogen.sh in your git checkout 
(in place)


In this step I get:

% sh autogen.sh
: command not found
: command not found
: command not found:
'utogen.sh: line 18: syntax error near unexpected token `in
'utogen.sh: line 18: `case $automake_version in

I guess it does not fails for some reason?

Daniel
--
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: Compiling and using master on macOS

2020-07-08 Thread Stephan Witt
Am 08.07.2020 um 08:21 schrieb Daniel :
> 
> On 2020-07-07 00:24, Stephan Witt wrote:
>> Am 06.07.2020 um 09:59 schrieb Daniel :
>>> 
>>> On 2020-03-15 21:37, Stephan Witt wrote:
 Am 15.03.2020 um 17:16 schrieb Daniel :
> 
> Hi,
> 
> I am about to try compiling and using master on macOS. I just has a look 
> at INSTALL.MacOSX. It mentions Qt version 4. That seems a bit outdated. 
> But I guess that I am looking at the latest guide to compile on macOS, 
> right?
 Yes, it’s outdated. It should work with Qt4 - but Qt4 cannot be used on 
 recent macOS.
 Basically I’m using the script LyX-Mac-binary-release.sh in development 
 folder. That’s much easier than other options, IMO.
 First step is to install Xcode and the automake and/or cmake utilities. 
 This can be done with macports or homebrew. I’m using macports.
 Second step is to get Qt5 - as source or binary distribution. I’m using 
 the source tarball and build Qt5 myself.
 Optional components are the spell checker and libmagic frameworks.
 Finally I start development/LyX-Mac-binary-release.sh with
 --enable-cxx11
 --with-qt-dir=/path/to/qt5
 Stephan
>>> 
>>> Thanks. Finally came around trying it on macOS. I take it one has to run 
>>> the last command with sh, right? So, from the lyx directory (in the lyxgit 
>>> directory) I execute
>>> 
>>> sh development/LyX-Mac-binary-release.sh --enable-cxx11 
>>> --with-qt-dir=/Users//Qt/5.9.9
>>> 
>>> (where I replace  by my macOS user name. Unfortunately, I get the 
>>> following:
>>> 
>>> : command not found-binary-release.sh: line 2:
>>> : command not found-binary-release.sh: line 4:
>>> : command not found-binary-release.sh: line 9:
>>> : command not found-binary-release.sh: line 19:
>>> : command not found-binary-release.sh: line 23:
>>> : command not found-binary-release.sh: line 27:
>>> ': not a valid identifiery-release.sh: line 28: unset: `LD_LIBRARY_PATH
>>> : command not found-binary-release.sh: line 29:
>>> : command not found-binary-release.sh: line 44:
>>> : command not found-binary-release.sh: line 49:
>>> development/LyX-Mac-binary-release.sh: line 53: syntax error near 
>>> unexpected tok'n `in
>>> 'evelopment/LyX-Mac-binary-release.sh: line 53: `case 
>>> "${QtVersion}:${QtAPI}" in
>>> 
>>> By the way, if finally successful, where will this put the LyX.app?
>>> 
>>> Daniel
>> I’ve made a protocol of the steps I took to build the package on a new 
>> system. See the attached log. Probably the crucial thing is the 
>> mklyx-2.3.4.3.sh script.
>> I’m used to configure and build LyX out of source. I have a working 
>> directory with one or more versions of LyX source code and a directory 
>> lyx-build for the results. For Qt I have a source directory and an install 
>> target in parallel, the build directory is in lyx-build.
>> $ ls /Users/Shared/LyX
>> lyx-2.3.4.3 (source)
>> lyx-2.3.5.2 (source)
>> lyx-build (directory)
>> qt-5.9.9-frameworks-cocoa-x86_64  (QTDIR for 5.9.9)
>> qt-everywhere-opensource-src-5.9.9 (source)
>> The lyx-build contains the build directory, the installed package (LyX.app) 
>> and the resulting disk image.
>> $ ls /Users/Shared/LyX/
>> LyX-2.3.4.3+qt5-x86_64-cocoa.dmg (disk image)
>> LyX-2.3.4.3.app (working app)
>> LyX-2.3.4.3.build (binaries)
>> LyX-2.3.5.2+qt5-x86_64-cocoa.dmg (disk image)
>> LyX-2.3.5.2.app (working app)
>> LyX-2.3.5.2.build (binaries)
>> qt-5.9.9-build-x86_64 (binaries)
>> The /bin/sh on a Mac is in fact a bash, IMO.
>> Stephan
> 
> By the way, it might be that I don't really understand how and where these 
> commands are supposed to be called. But if I call
> 
> 
> cat mklyx-2.3.4.3.sh
> #!/bin/sh
> ARCH=x86_64
> SDK=10.14
> MacOsXTarget=10.12
> QtVersion=5.9.9
> QtAPI=-cocoa
> LyXVersion=lyx-2.3.4.3
> EnableCXX11="--enable-cxx11"
> 
> QtConfigureOptions="-debug-and-release" QtAPI=${QtAPI} QtVersion=${QtVersion} 
> \
> QtSourceVersion="qt-everywhere-src-${QtVersion}" \
> PKG_CONFIG= \
> sh ${MKFLAGS} ${LyXVersion}/development/LyX-Mac-binary-release.sh \
>   --with-sdkroot=${SDK} --with-macosx-target=${MacOsXTarget} 
> --with-arch=${ARCH} \
>   
> --with-qt-dir=/Users/Shared/LyX/qt-${QtVersion}-frameworks${QtAPI}-${ARCH} \
>   --with-util-dir=/Users/Shared/LyX/utilities \
>   ${EnableCXX11} \
>   "$@„

Yes, you have to create the file mklyx-2.3.4.3.sh with the given content.

I have to add an explicit note for it…

Stephan
 
> 
> 
> I get
> 
> 
> zsh: event not found: /bin/sh
> 
> 
> Daniel
> 
> -- 
> lyx-devel mailing list
> lyx-devel@lists.lyx.org
> http://lists.lyx.org/mailman/listinfo/lyx-devel

-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: Compiling and using master on macOS

2020-07-08 Thread Stephan Witt
Am 07.07.2020 um 07:35 schrieb Daniel :
> 
> On 2020-07-07 07:30, Daniel wrote:
>> On 2020-07-07 00:24, Stephan Witt wrote:
>>> Am 06.07.2020 um 09:59 schrieb Daniel :
 
 On 2020-03-15 21:37, Stephan Witt wrote:
> Am 15.03.2020 um 17:16 schrieb Daniel :
>> 
>> Hi,
>> 
>> I am about to try compiling and using master on macOS. I just has a look 
>> at INSTALL.MacOSX. It mentions Qt version 4. That seems a bit outdated. 
>> But I guess that I am looking at the latest guide to compile on macOS, 
>> right?
> Yes, it’s outdated. It should work with Qt4 - but Qt4 cannot be used on 
> recent macOS.
> Basically I’m using the script LyX-Mac-binary-release.sh in development 
> folder. That’s much easier than other options, IMO.
> First step is to install Xcode and the automake and/or cmake utilities. 
> This can be done with macports or homebrew. I’m using macports.
> Second step is to get Qt5 - as source or binary distribution. I’m using 
> the source tarball and build Qt5 myself.
> Optional components are the spell checker and libmagic frameworks.
> Finally I start development/LyX-Mac-binary-release.sh with
> --enable-cxx11
> --with-qt-dir=/path/to/qt5
> Stephan
 
 Thanks. Finally came around trying it on macOS. I take it one has to run 
 the last command with sh, right? So, from the lyx directory (in the lyxgit 
 directory) I execute
 
 sh development/LyX-Mac-binary-release.sh --enable-cxx11 
 --with-qt-dir=/Users//Qt/5.9.9
 
 (where I replace  by my macOS user name. Unfortunately, I get 
 the following:
 
 : command not found-binary-release.sh: line 2:
 : command not found-binary-release.sh: line 4:
 : command not found-binary-release.sh: line 9:
 : command not found-binary-release.sh: line 19:
 : command not found-binary-release.sh: line 23:
 : command not found-binary-release.sh: line 27:
 ': not a valid identifiery-release.sh: line 28: unset: `LD_LIBRARY_PATH
 : command not found-binary-release.sh: line 29:
 : command not found-binary-release.sh: line 44:
 : command not found-binary-release.sh: line 49:
 development/LyX-Mac-binary-release.sh: line 53: syntax error near 
 unexpected tok'n `in
 'evelopment/LyX-Mac-binary-release.sh: line 53: `case 
 "${QtVersion}:${QtAPI}" in
 
 By the way, if finally successful, where will this put the LyX.app?
 
 Daniel
>>> 
>>> I’ve made a protocol of the steps I took to build the package on a new 
>>> system. See the attached log. Probably the crucial thing is the 
>>> mklyx-2.3.4.3.sh script.
>>> 
>>> I’m used to configure and build LyX out of source. I have a working 
>>> directory with one or more versions of LyX source code and a directory 
>>> lyx-build for the results. For Qt I have a source directory and an install 
>>> target in parallel, the build directory is in lyx-build.
>>> 
>>> $ ls /Users/Shared/LyX
>>> lyx-2.3.4.3 (source)
>>> lyx-2.3.5.2 (source)
>>> lyx-build (directory)
>>> qt-5.9.9-frameworks-cocoa-x86_64  (QTDIR for 5.9.9)
>>> qt-everywhere-opensource-src-5.9.9 (source)
>>> 
>>> The lyx-build contains the build directory, the installed package (LyX.app) 
>>> and the resulting disk image.
>>> 
>>> $ ls /Users/Shared/LyX/
>>> LyX-2.3.4.3+qt5-x86_64-cocoa.dmg (disk image)
>>> LyX-2.3.4.3.app (working app)
>>> LyX-2.3.4.3.build (binaries)
>>> LyX-2.3.5.2+qt5-x86_64-cocoa.dmg (disk image)
>>> LyX-2.3.5.2.app (working app)
>>> LyX-2.3.5.2.build (binaries)
>>> qt-5.9.9-build-x86_64 (binaries)
>>> 
>>> The /bin/sh on a Mac is in fact a bash, IMO.
>>> 
>>> Stephan
>>> 
>>> 
>> I am using git to download the lyx source and qt installer. But the steps 
>> should be the same except for the unpacking and setting my own directories, 
>> right?
>> Also what does
>> osascript -e 'tell application "Finder" to display notification "LyX is 
>> great stuff"'
>> do? It looks strange.
>> Daniel
> 
> Okay, I guess it can't be the same because there is a specific LyX version 
> mentioned (2.3.4.3). What would I use if I want to compile from git (master)?

Yes, that’s true - this is the build from the shipped tar file for 2.3.4.3. But 
it works for git clones too.

The difference to master is the name of the directory and this is your choice. 
I’m using „lyx“ for it. I have another git clone for stable named „lyx-2.3.x“.

The resulting applications are placed in lyx-build and named according to the 
AC_INIT macro in configure.ac (e.g. LyX,2.4.0dev => LyX-2.4.0dev.app).

In case you want to do the single steps w/o the build script you may try the 
following:

1. create a dedicated build dir - e.g. lyx-build/master

2. create or update the configure script - run autogen.sh in your git checkout 
(in place)

3. prepare your environment variables

export CPPFLAGS="-isysroot 
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk
 

Re: Compiling and using master on macOS

2020-07-08 Thread Daniel

On 2020-07-07 00:24, Stephan Witt wrote:

Am 06.07.2020 um 09:59 schrieb Daniel :


On 2020-03-15 21:37, Stephan Witt wrote:

Am 15.03.2020 um 17:16 schrieb Daniel :


Hi,

I am about to try compiling and using master on macOS. I just has a look at 
INSTALL.MacOSX. It mentions Qt version 4. That seems a bit outdated. But I 
guess that I am looking at the latest guide to compile on macOS, right?

Yes, it’s outdated. It should work with Qt4 - but Qt4 cannot be used on recent 
macOS.
Basically I’m using the script LyX-Mac-binary-release.sh in development folder. 
That’s much easier than other options, IMO.
First step is to install Xcode and the automake and/or cmake utilities. This 
can be done with macports or homebrew. I’m using macports.
Second step is to get Qt5 - as source or binary distribution. I’m using the 
source tarball and build Qt5 myself.
Optional components are the spell checker and libmagic frameworks.
Finally I start development/LyX-Mac-binary-release.sh with
--enable-cxx11
--with-qt-dir=/path/to/qt5
Stephan


Thanks. Finally came around trying it on macOS. I take it one has to run the 
last command with sh, right? So, from the lyx directory (in the lyxgit 
directory) I execute

sh development/LyX-Mac-binary-release.sh --enable-cxx11 
--with-qt-dir=/Users//Qt/5.9.9

(where I replace  by my macOS user name. Unfortunately, I get the 
following:

: command not found-binary-release.sh: line 2:
: command not found-binary-release.sh: line 4:
: command not found-binary-release.sh: line 9:
: command not found-binary-release.sh: line 19:
: command not found-binary-release.sh: line 23:
: command not found-binary-release.sh: line 27:
': not a valid identifiery-release.sh: line 28: unset: `LD_LIBRARY_PATH
: command not found-binary-release.sh: line 29:
: command not found-binary-release.sh: line 44:
: command not found-binary-release.sh: line 49:
development/LyX-Mac-binary-release.sh: line 53: syntax error near unexpected 
tok'n `in
'evelopment/LyX-Mac-binary-release.sh: line 53: `case "${QtVersion}:${QtAPI}" in

By the way, if finally successful, where will this put the LyX.app?

Daniel


I’ve made a protocol of the steps I took to build the package on a new system. 
See the attached log. Probably the crucial thing is the mklyx-2.3.4.3.sh script.

I’m used to configure and build LyX out of source. I have a working directory 
with one or more versions of LyX source code and a directory lyx-build for the 
results. For Qt I have a source directory and an install target in parallel, 
the build directory is in lyx-build.

$ ls /Users/Shared/LyX
lyx-2.3.4.3 (source)
lyx-2.3.5.2 (source)
lyx-build (directory)
qt-5.9.9-frameworks-cocoa-x86_64  (QTDIR for 5.9.9)
qt-everywhere-opensource-src-5.9.9 (source)

The lyx-build contains the build directory, the installed package (LyX.app) and 
the resulting disk image.

$ ls /Users/Shared/LyX/
LyX-2.3.4.3+qt5-x86_64-cocoa.dmg (disk image)
LyX-2.3.4.3.app (working app)
LyX-2.3.4.3.build (binaries)
LyX-2.3.5.2+qt5-x86_64-cocoa.dmg (disk image)
LyX-2.3.5.2.app (working app)
LyX-2.3.5.2.build (binaries)
qt-5.9.9-build-x86_64 (binaries)

The /bin/sh on a Mac is in fact a bash, IMO.

Stephan




By the way, it might be that I don't really understand how and where 
these commands are supposed to be called. But if I call



cat mklyx-2.3.4.3.sh
#!/bin/sh
ARCH=x86_64
SDK=10.14
MacOsXTarget=10.12
QtVersion=5.9.9
QtAPI=-cocoa
LyXVersion=lyx-2.3.4.3
EnableCXX11="--enable-cxx11"

QtConfigureOptions="-debug-and-release" QtAPI=${QtAPI} 
QtVersion=${QtVersion} \

QtSourceVersion="qt-everywhere-src-${QtVersion}" \
PKG_CONFIG= \
sh ${MKFLAGS} ${LyXVersion}/development/LyX-Mac-binary-release.sh \
	--with-sdkroot=${SDK} --with-macosx-target=${MacOsXTarget} 
--with-arch=${ARCH} \


--with-qt-dir=/Users/Shared/LyX/qt-${QtVersion}-frameworks${QtAPI}-${ARCH} \
--with-util-dir=/Users/Shared/LyX/utilities \
${EnableCXX11} \
"$@"


I get


zsh: event not found: /bin/sh


Daniel

--
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: Compiling and using master on macOS

2020-07-07 Thread Daniel

On 7/7/20 9:17, Stephan Witt wrote:
Am 07.07.2020 um 07:30 schrieb Daniel >:


On 2020-07-07 00:24, Stephan Witt wrote:
Am 06.07.2020 um 09:59 schrieb Daniel >:


On 2020-03-15 21:37, Stephan Witt wrote:
Am 15.03.2020 um 17:16 schrieb Daniel >:


Hi,

I am about to try compiling and using master on macOS. I just has 
a look at INSTALL.MacOSX. It mentions Qt version 4. That seems a 
bit outdated. But I guess that I am looking at the latest guide to 
compile on macOS, right?
Yes, it’s outdated. It should work with Qt4 - but Qt4 cannot be 
used on recent macOS.
Basically I’m using the script LyX-Mac-binary-release.sh in 
development folder. That’s much easier than other options, IMO.
First step is to install Xcode and the automake and/or cmake 
utilities. This can be done with macports or homebrew. I’m using 
macports.
Second step is to get Qt5 - as source or binary distribution. I’m 
using the source tarball and build Qt5 myself.

Optional components are the spell checker and libmagic frameworks.
Finally I start development/LyX-Mac-binary-release.sh with
--enable-cxx11
--with-qt-dir=/path/to/qt5
Stephan


Thanks. Finally came around trying it on macOS. I take it one has to 
run the last command with sh, right? So, from the lyx directory (in 
the lyxgit directory) I execute


sh development/LyX-Mac-binary-release.sh --enable-cxx11 
--with-qt-dir=/Users//Qt/5.9.9


(where I replace  by my macOS user name. Unfortunately, I 
get the following:


: command not found-binary-release.sh: line 2:
: command not found-binary-release.sh: line 4:
: command not found-binary-release.sh: line 9:
: command not found-binary-release.sh: line 19:
: command not found-binary-release.sh: line 23:
: command not found-binary-release.sh: line 27:
': not a valid identifiery-release.sh: line 28: unset: `LD_LIBRARY_PATH
: command not found-binary-release.sh: line 29:
: command not found-binary-release.sh: line 44:
: command not found-binary-release.sh: line 49:
development/LyX-Mac-binary-release.sh: line 53: syntax error near 
unexpected tok'n `in
'evelopment/LyX-Mac-binary-release.sh: line 53: `case 
"${QtVersion}:${QtAPI}" in


By the way, if finally successful, where will this put the LyX.app?

Daniel
I’ve made a protocol of the steps I took to build the package on a 
new system. See the attached log. Probably the crucial thing is the 
mklyx-2.3.4.3.sh script.
I’m used to configure and build LyX out of source. I have a working 
directory with one or more versions of LyX source code and a 
directory lyx-build for the results. For Qt I have a source directory 
and an install target in parallel, the build directory is in lyx-build.

$ ls /Users/Shared/LyX
lyx-2.3.4.3 (source)
lyx-2.3.5.2 (source)
lyx-build (directory)
qt-5.9.9-frameworks-cocoa-x86_64  (QTDIR for 5.9.9)
qt-everywhere-opensource-src-5.9.9 (source)
The lyx-build contains the build directory, the installed package 
(LyX.app) and the resulting disk image.

$ ls /Users/Shared/LyX/
LyX-2.3.4.3+qt5-x86_64-cocoa.dmg (disk image)
LyX-2.3.4.3.app (working app)
LyX-2.3.4.3.build (binaries)
LyX-2.3.5.2+qt5-x86_64-cocoa.dmg (disk image)
LyX-2.3.5.2.app (working app)
LyX-2.3.5.2.build (binaries)
qt-5.9.9-build-x86_64 (binaries)
The /bin/sh on a Mac is in fact a bash, IMO.
Stephan


I am using git to download the lyx source and qt installer. But the 
steps should be the same except for the unpacking and setting my own 
directories, right?


I’m not sure the Qt installer puts the frameworks in the same structure 
as the „make install“ from source. I never tried that.



Also what does

osascript -e 'tell application "Finder" to display notification "LyX 
is great stuff"'


do? It looks strange.


After sending the mail I realized the need to explain this line too :)

It tries to control the Finder from command line. The reason is to 
trigger the security guard (SIP) of the Mac OS.


If you never did that before you’re asked to give your OK for this and 
you should see this in system control. See screenshot.


If you say „No“ you cannot build a nice disk image with the background 
picture presenting the green arrow. Beware: you’re not asked again and 
it’s really painful to correct it later, AFAIK.


Stephan



Maybe I am missing something. But as the subject suggests, I would like 
to compile master (from git source) on macOS (latest version). It is 
still unclear to me which steps I need to take or change in the recipe 
provided.


Daniel

--
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: Compiling and using master on macOS

2020-07-06 Thread Daniel

On 2020-07-07 07:30, Daniel wrote:

On 2020-07-07 00:24, Stephan Witt wrote:

Am 06.07.2020 um 09:59 schrieb Daniel :


On 2020-03-15 21:37, Stephan Witt wrote:

Am 15.03.2020 um 17:16 schrieb Daniel :


Hi,

I am about to try compiling and using master on macOS. I just has a 
look at INSTALL.MacOSX. It mentions Qt version 4. That seems a bit 
outdated. But I guess that I am looking at the latest guide to 
compile on macOS, right?
Yes, it’s outdated. It should work with Qt4 - but Qt4 cannot be used 
on recent macOS.
Basically I’m using the script LyX-Mac-binary-release.sh in 
development folder. That’s much easier than other options, IMO.
First step is to install Xcode and the automake and/or cmake 
utilities. This can be done with macports or homebrew. I’m using 
macports.
Second step is to get Qt5 - as source or binary distribution. I’m 
using the source tarball and build Qt5 myself.

Optional components are the spell checker and libmagic frameworks.
Finally I start development/LyX-Mac-binary-release.sh with
--enable-cxx11
--with-qt-dir=/path/to/qt5
Stephan


Thanks. Finally came around trying it on macOS. I take it one has to 
run the last command with sh, right? So, from the lyx directory (in 
the lyxgit directory) I execute


sh development/LyX-Mac-binary-release.sh --enable-cxx11 
--with-qt-dir=/Users//Qt/5.9.9


(where I replace  by my macOS user name. Unfortunately, I 
get the following:


: command not found-binary-release.sh: line 2:
: command not found-binary-release.sh: line 4:
: command not found-binary-release.sh: line 9:
: command not found-binary-release.sh: line 19:
: command not found-binary-release.sh: line 23:
: command not found-binary-release.sh: line 27:
': not a valid identifiery-release.sh: line 28: unset: `LD_LIBRARY_PATH
: command not found-binary-release.sh: line 29:
: command not found-binary-release.sh: line 44:
: command not found-binary-release.sh: line 49:
development/LyX-Mac-binary-release.sh: line 53: syntax error near 
unexpected tok'n `in
'evelopment/LyX-Mac-binary-release.sh: line 53: `case 
"${QtVersion}:${QtAPI}" in


By the way, if finally successful, where will this put the LyX.app?

Daniel


I’ve made a protocol of the steps I took to build the package on a new 
system. See the attached log. Probably the crucial thing is the 
mklyx-2.3.4.3.sh script.


I’m used to configure and build LyX out of source. I have a working 
directory with one or more versions of LyX source code and a directory 
lyx-build for the results. For Qt I have a source directory and an 
install target in parallel, the build directory is in lyx-build.


$ ls /Users/Shared/LyX
lyx-2.3.4.3 (source)
lyx-2.3.5.2 (source)
lyx-build (directory)
qt-5.9.9-frameworks-cocoa-x86_64  (QTDIR for 5.9.9)
qt-everywhere-opensource-src-5.9.9 (source)

The lyx-build contains the build directory, the installed package 
(LyX.app) and the resulting disk image.


$ ls /Users/Shared/LyX/
LyX-2.3.4.3+qt5-x86_64-cocoa.dmg (disk image)
LyX-2.3.4.3.app (working app)
LyX-2.3.4.3.build (binaries)
LyX-2.3.5.2+qt5-x86_64-cocoa.dmg (disk image)
LyX-2.3.5.2.app (working app)
LyX-2.3.5.2.build (binaries)
qt-5.9.9-build-x86_64 (binaries)

The /bin/sh on a Mac is in fact a bash, IMO.

Stephan




I am using git to download the lyx source and qt installer. But the 
steps should be the same except for the unpacking and setting my own 
directories, right?


Also what does

osascript -e 'tell application "Finder" to display notification "LyX is 
great stuff"'


do? It looks strange.

Daniel



Okay, I guess it can't be the same because there is a specific LyX 
version mentioned (2.3.4.3). What would I use if I want to compile from 
git (master)?


Daniel

--
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: Compiling and using master on macOS

2020-07-06 Thread Daniel

On 2020-07-07 00:24, Stephan Witt wrote:

Am 06.07.2020 um 09:59 schrieb Daniel :


On 2020-03-15 21:37, Stephan Witt wrote:

Am 15.03.2020 um 17:16 schrieb Daniel :


Hi,

I am about to try compiling and using master on macOS. I just has a look at 
INSTALL.MacOSX. It mentions Qt version 4. That seems a bit outdated. But I 
guess that I am looking at the latest guide to compile on macOS, right?

Yes, it’s outdated. It should work with Qt4 - but Qt4 cannot be used on recent 
macOS.
Basically I’m using the script LyX-Mac-binary-release.sh in development folder. 
That’s much easier than other options, IMO.
First step is to install Xcode and the automake and/or cmake utilities. This 
can be done with macports or homebrew. I’m using macports.
Second step is to get Qt5 - as source or binary distribution. I’m using the 
source tarball and build Qt5 myself.
Optional components are the spell checker and libmagic frameworks.
Finally I start development/LyX-Mac-binary-release.sh with
--enable-cxx11
--with-qt-dir=/path/to/qt5
Stephan


Thanks. Finally came around trying it on macOS. I take it one has to run the 
last command with sh, right? So, from the lyx directory (in the lyxgit 
directory) I execute

sh development/LyX-Mac-binary-release.sh --enable-cxx11 
--with-qt-dir=/Users//Qt/5.9.9

(where I replace  by my macOS user name. Unfortunately, I get the 
following:

: command not found-binary-release.sh: line 2:
: command not found-binary-release.sh: line 4:
: command not found-binary-release.sh: line 9:
: command not found-binary-release.sh: line 19:
: command not found-binary-release.sh: line 23:
: command not found-binary-release.sh: line 27:
': not a valid identifiery-release.sh: line 28: unset: `LD_LIBRARY_PATH
: command not found-binary-release.sh: line 29:
: command not found-binary-release.sh: line 44:
: command not found-binary-release.sh: line 49:
development/LyX-Mac-binary-release.sh: line 53: syntax error near unexpected 
tok'n `in
'evelopment/LyX-Mac-binary-release.sh: line 53: `case "${QtVersion}:${QtAPI}" in

By the way, if finally successful, where will this put the LyX.app?

Daniel


I’ve made a protocol of the steps I took to build the package on a new system. 
See the attached log. Probably the crucial thing is the mklyx-2.3.4.3.sh script.

I’m used to configure and build LyX out of source. I have a working directory 
with one or more versions of LyX source code and a directory lyx-build for the 
results. For Qt I have a source directory and an install target in parallel, 
the build directory is in lyx-build.

$ ls /Users/Shared/LyX
lyx-2.3.4.3 (source)
lyx-2.3.5.2 (source)
lyx-build (directory)
qt-5.9.9-frameworks-cocoa-x86_64  (QTDIR for 5.9.9)
qt-everywhere-opensource-src-5.9.9 (source)

The lyx-build contains the build directory, the installed package (LyX.app) and 
the resulting disk image.

$ ls /Users/Shared/LyX/
LyX-2.3.4.3+qt5-x86_64-cocoa.dmg (disk image)
LyX-2.3.4.3.app (working app)
LyX-2.3.4.3.build (binaries)
LyX-2.3.5.2+qt5-x86_64-cocoa.dmg (disk image)
LyX-2.3.5.2.app (working app)
LyX-2.3.5.2.build (binaries)
qt-5.9.9-build-x86_64 (binaries)

The /bin/sh on a Mac is in fact a bash, IMO.

Stephan




I am using git to download the lyx source and qt installer. But the 
steps should be the same except for the unpacking and setting my own 
directories, right?


Also what does

osascript -e 'tell application "Finder" to display notification "LyX is 
great stuff"'


do? It looks strange.

Daniel

--
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: Compiling and using master on macOS

2020-07-06 Thread Stephan Witt
Am 06.07.2020 um 09:59 schrieb Daniel :
> 
> On 2020-03-15 21:37, Stephan Witt wrote:
>> Am 15.03.2020 um 17:16 schrieb Daniel :
>>> 
>>> Hi,
>>> 
>>> I am about to try compiling and using master on macOS. I just has a look at 
>>> INSTALL.MacOSX. It mentions Qt version 4. That seems a bit outdated. But I 
>>> guess that I am looking at the latest guide to compile on macOS, right?
>> Yes, it’s outdated. It should work with Qt4 - but Qt4 cannot be used on 
>> recent macOS.
>> Basically I’m using the script LyX-Mac-binary-release.sh in development 
>> folder. That’s much easier than other options, IMO.
>> First step is to install Xcode and the automake and/or cmake utilities. This 
>> can be done with macports or homebrew. I’m using macports.
>> Second step is to get Qt5 - as source or binary distribution. I’m using the 
>> source tarball and build Qt5 myself.
>> Optional components are the spell checker and libmagic frameworks.
>> Finally I start development/LyX-Mac-binary-release.sh with
>> --enable-cxx11
>> --with-qt-dir=/path/to/qt5
>> Stephan
> 
> Thanks. Finally came around trying it on macOS. I take it one has to run the 
> last command with sh, right? So, from the lyx directory (in the lyxgit 
> directory) I execute
> 
> sh development/LyX-Mac-binary-release.sh --enable-cxx11 
> --with-qt-dir=/Users//Qt/5.9.9
> 
> (where I replace  by my macOS user name. Unfortunately, I get the 
> following:
> 
> : command not found-binary-release.sh: line 2:
> : command not found-binary-release.sh: line 4:
> : command not found-binary-release.sh: line 9:
> : command not found-binary-release.sh: line 19:
> : command not found-binary-release.sh: line 23:
> : command not found-binary-release.sh: line 27:
> ': not a valid identifiery-release.sh: line 28: unset: `LD_LIBRARY_PATH
> : command not found-binary-release.sh: line 29:
> : command not found-binary-release.sh: line 44:
> : command not found-binary-release.sh: line 49:
> development/LyX-Mac-binary-release.sh: line 53: syntax error near unexpected 
> tok'n `in
> 'evelopment/LyX-Mac-binary-release.sh: line 53: `case "${QtVersion}:${QtAPI}" 
> in
> 
> By the way, if finally successful, where will this put the LyX.app?
> 
> Daniel

I’ve made a protocol of the steps I took to build the package on a new system. 
See the attached log. Probably the crucial thing is the mklyx-2.3.4.3.sh script.

I’m used to configure and build LyX out of source. I have a working directory 
with one or more versions of LyX source code and a directory lyx-build for the 
results. For Qt I have a source directory and an install target in parallel, 
the build directory is in lyx-build.

$ ls /Users/Shared/LyX
lyx-2.3.4.3 (source)
lyx-2.3.5.2 (source)
lyx-build (directory)
qt-5.9.9-frameworks-cocoa-x86_64  (QTDIR for 5.9.9)
qt-everywhere-opensource-src-5.9.9 (source)

The lyx-build contains the build directory, the installed package (LyX.app) and 
the resulting disk image.

$ ls /Users/Shared/LyX/
LyX-2.3.4.3+qt5-x86_64-cocoa.dmg (disk image)
LyX-2.3.4.3.app (working app)
LyX-2.3.4.3.build (binaries)
LyX-2.3.5.2+qt5-x86_64-cocoa.dmg (disk image)
LyX-2.3.5.2.app (working app)
LyX-2.3.5.2.build (binaries)
qt-5.9.9-build-x86_64 (binaries)

The /bin/sh on a Mac is in fact a bash, IMO.

Stephan


Install.log
Description: Binary data
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: Compiling and using master on macOS

2020-07-06 Thread Scott Kostyshak
On Mon, Jul 06, 2020 at 09:59:32AM +0200, Daniel wrote:
> On 2020-03-15 21:37, Stephan Witt wrote:
> > Am 15.03.2020 um 17:16 schrieb Daniel :
> > > 
> > > Hi,
> > > 
> > > I am about to try compiling and using master on macOS. I just has a look 
> > > at INSTALL.MacOSX. It mentions Qt version 4. That seems a bit outdated. 
> > > But I guess that I am looking at the latest guide to compile on macOS, 
> > > right?
> > 
> > Yes, it’s outdated. It should work with Qt4 - but Qt4 cannot be used on 
> > recent macOS.
> > 
> > Basically I’m using the script LyX-Mac-binary-release.sh in development 
> > folder. That’s much easier than other options, IMO.
> > 
> > First step is to install Xcode and the automake and/or cmake utilities. 
> > This can be done with macports or homebrew. I’m using macports.
> > 
> > Second step is to get Qt5 - as source or binary distribution. I’m using the 
> > source tarball and build Qt5 myself.
> > 
> > Optional components are the spell checker and libmagic frameworks.
> > 
> > Finally I start development/LyX-Mac-binary-release.sh with
> > --enable-cxx11
> > --with-qt-dir=/path/to/qt5
> > 
> > Stephan
> 
> Thanks. Finally came around trying it on macOS. I take it one has to run the
> last command with sh, right? So, from the lyx directory (in the lyxgit
> directory) I execute
> 
> sh development/LyX-Mac-binary-release.sh --enable-cxx11
> --with-qt-dir=/Users//Qt/5.9.9
> 
> (where I replace  by my macOS user name. Unfortunately, I get the
> following:
> 
> : command not found-binary-release.sh: line 2:
> : command not found-binary-release.sh: line 4:
> : command not found-binary-release.sh: line 9:
> : command not found-binary-release.sh: line 19:
> : command not found-binary-release.sh: line 23:
> : command not found-binary-release.sh: line 27:
> ': not a valid identifiery-release.sh: line 28: unset: `LD_LIBRARY_PATH
> : command not found-binary-release.sh: line 29:
> : command not found-binary-release.sh: line 44:
> : command not found-binary-release.sh: line 49:
> development/LyX-Mac-binary-release.sh: line 53: syntax error near unexpected
> tok'n `in
> 'evelopment/LyX-Mac-binary-release.sh: line 53: `case
> "${QtVersion}:${QtAPI}" in

I was going to suggest to try "bash" instead of "sh", but indeed the shebang of 
the script is /bin/sh so perhaps it only needs sh. One thing you could do is to 
uncomment the line with "set -x". That will give more information. But probably 
better to wait for Stephan.

Scott


signature.asc
Description: PGP signature
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: Compiling and using master on macOS

2020-07-06 Thread Daniel

On 2020-03-15 21:37, Stephan Witt wrote:

Am 15.03.2020 um 17:16 schrieb Daniel :


Hi,

I am about to try compiling and using master on macOS. I just has a look at 
INSTALL.MacOSX. It mentions Qt version 4. That seems a bit outdated. But I 
guess that I am looking at the latest guide to compile on macOS, right?


Yes, it’s outdated. It should work with Qt4 - but Qt4 cannot be used on recent 
macOS.

Basically I’m using the script LyX-Mac-binary-release.sh in development folder. 
That’s much easier than other options, IMO.

First step is to install Xcode and the automake and/or cmake utilities. This 
can be done with macports or homebrew. I’m using macports.

Second step is to get Qt5 - as source or binary distribution. I’m using the 
source tarball and build Qt5 myself.

Optional components are the spell checker and libmagic frameworks.

Finally I start development/LyX-Mac-binary-release.sh with
--enable-cxx11
--with-qt-dir=/path/to/qt5

Stephan


Thanks. Finally came around trying it on macOS. I take it one has to run 
the last command with sh, right? So, from the lyx directory (in the 
lyxgit directory) I execute


sh development/LyX-Mac-binary-release.sh --enable-cxx11 
--with-qt-dir=/Users//Qt/5.9.9


(where I replace  by my macOS user name. Unfortunately, I get 
the following:


: command not found-binary-release.sh: line 2:
: command not found-binary-release.sh: line 4:
: command not found-binary-release.sh: line 9:
: command not found-binary-release.sh: line 19:
: command not found-binary-release.sh: line 23:
: command not found-binary-release.sh: line 27:
': not a valid identifiery-release.sh: line 28: unset: `LD_LIBRARY_PATH
: command not found-binary-release.sh: line 29:
: command not found-binary-release.sh: line 44:
: command not found-binary-release.sh: line 49:
development/LyX-Mac-binary-release.sh: line 53: syntax error near 
unexpected tok'n `in
'evelopment/LyX-Mac-binary-release.sh: line 53: `case 
"${QtVersion}:${QtAPI}" in


By the way, if finally successful, where will this put the LyX.app?

Daniel

--
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: Compiling and using master on macOS

2020-03-16 Thread Stephan Witt
Am 16.03.2020 um 17:37 schrieb Pavel Sanda :
> 
> On Sun, Mar 15, 2020 at 09:37:44PM +0100, Stephan Witt wrote:
>> Yes, it???s outdated. It should work with Qt4 - but Qt4 cannot be used on 
>> recent macOS.
> 
> Should we remove the file then? Pavel

No, I should update the file. But it’s not so easy to verify the new contents 
because I don’t have a virgin system.

Stephan
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: Compiling and using master on macOS

2020-03-16 Thread Jean-Marc Lasgouttes

Le 16/03/2020 à 17:37, Pavel Sanda a écrit :

On Sun, Mar 15, 2020 at 09:37:44PM +0100, Stephan Witt wrote:

Yes, it???s outdated. It should work with Qt4 - but Qt4 cannot be used on 
recent macOS.


Should we remove the file then? Pavel


Having an  up-to-date file would be better.

JMarc
--
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: Compiling and using master on macOS

2020-03-16 Thread Pavel Sanda
On Sun, Mar 15, 2020 at 09:37:44PM +0100, Stephan Witt wrote:
> Yes, it???s outdated. It should work with Qt4 - but Qt4 cannot be used on 
> recent macOS.

Should we remove the file then? Pavel
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: Compiling and using master on macOS

2020-03-15 Thread Stephan Witt
Am 15.03.2020 um 17:16 schrieb Daniel :
> 
> Hi,
> 
> I am about to try compiling and using master on macOS. I just has a look at 
> INSTALL.MacOSX. It mentions Qt version 4. That seems a bit outdated. But I 
> guess that I am looking at the latest guide to compile on macOS, right?

Yes, it’s outdated. It should work with Qt4 - but Qt4 cannot be used on recent 
macOS.

Basically I’m using the script LyX-Mac-binary-release.sh in development folder. 
That’s much easier than other options, IMO.

First step is to install Xcode and the automake and/or cmake utilities. This 
can be done with macports or homebrew. I’m using macports.

Second step is to get Qt5 - as source or binary distribution. I’m using the 
source tarball and build Qt5 myself.

Optional components are the spell checker and libmagic frameworks.

Finally I start development/LyX-Mac-binary-release.sh with
--enable-cxx11
--with-qt-dir=/path/to/qt5

Stephan
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel