Compiling and using master on macOS

Stephan Witt st.witt at gmx.net
Wed Jul 15 20:45:09 UTC 2020


Am 15.07.2020 um 07:53 schrieb Daniel <xracoonx at gmx.de>:
> 
> 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 <xracoonx at gmx.de>:
>>>> 
>>>> 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 <user-dir> 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				libQt5ClipboardSupport.prl			libQt5GraphicsSupport.la			libqtlibpng_debug.a
QtSerialPort.framework				libQt5ClipboardSupport_debug.a			libQt5GraphicsSupport.prl			libqtlibpng_debug.prl
QtSql.framework					libQt5ClipboardSupport_debug.la			libQt5GraphicsSupport_debug.a			pkgconfig
QtSvg.framework					libQt5ClipboardSupport_debug.prl		libQt5GraphicsSupport_debug.la
$ ls /Users/Shared/LyX/qt-5.9.9-frameworks-cocoa-x86_64/include/
QtAccessibilitySupport		QtCore				QtFontDatabaseSupport		QtNetwork			QtPrintSupport			QtXml
QtCglSupport			QtDeviceDiscoverySupport	QtGraphicsSupport		QtOpenGLExtensions		QtSvg
QtClipboardSupport		QtEventDispatcherSupport	QtGui				QtPlatformCompositorSupport	QtThemeSupport
QtConcurrent			QtFbSupport			QtMacExtras			QtPlatformHeaders		QtWidgets

If it’s not like that I don’t know how to proceed. The only option would be to go your route - but mine is working for me.

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

Stephan


More information about the lyx-devel mailing list