Re: Error when compiling LyX under macOS

2021-10-17 Thread Enrico Forestieri
On Sat, Oct 16, 2021 at 02:58:19PM +0200, Kornel Benko wrote:
> Am Sat, 16 Oct 2021 14:50:54 +0200
> schrieb pdv :
> 
> > A similar modification is needed when building with CMake on MacOS.
> > 
> > I've included module SvgWidgets with qt6 and MacExtras with previous 
> > versions (I have checked builds on MacOS with qt6 and qt5, but not with 
> > qt4). (patch included)
> > I have also not touched the windows code which will probably show the 
> > same problem.
> > 
> > Patrick
> > 
> > [qt6svgwidgetspatch20211016.diff  text/plain (801 Bytes)] 
> 
> Looks good, please commit.

I have committed a fix valid for all platforms at 3048878e.

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


Re: Error when compiling LyX under macOS

2021-10-16 Thread Kornel Benko
Am Sat, 16 Oct 2021 14:50:54 +0200
schrieb pdv :

> A similar modification is needed when building with CMake on MacOS.
> 
> I've included module SvgWidgets with qt6 and MacExtras with previous 
> versions (I have checked builds on MacOS with qt6 and qt5, but not with 
> qt4). (patch included)
> I have also not touched the windows code which will probably show the 
> same problem.
> 
> Patrick
> 
> [qt6svgwidgetspatch20211016.diff  text/plain (801 Bytes)] 

Looks good, please commit.

Kornel


pgpHIYNPpLppN.pgp
Description: Digitale Signatur von OpenPGP
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: Error when compiling LyX under macOS

2021-10-16 Thread pdv

On 12/10/2021 21:36, Enrico Forestieri wrote:

On Tue, Oct 12, 2021 at 01:15:52PM +0200, Christoph Schmitz wrote:


macOS Monterey Version 12.0 Beta (21A5543b) and Qt 6.2.0

The problem, which first appeared about two weeks ago, still exists. I compile 
LyX once a day to see if it is fixed, but it is not. I still can't compile LyX 
under macOS anymore. I have the same issue on two computers (one with Intel 
processor, the other with M1 processor).

The compiler does not find QSvgWidget, although the class is not deprecated in Qt6: 
https://doc.qt.io/qt-6/qsvgwidget.html 
. I have reinstalled Qt and pulled a 
new LyX repository several times, but that does not solve the problem.

The file qsvgwidget.h is present. It can be found on the Intel Mac in the 
directory 
/usr/local/Cellar/qt/6.2.0/lib/QtSvgWidgets.framework/Versions/A/Headers. But 
even setting a path to this directory does not solve the problem. Does anybody 
understand what has happened?

Since attachments are deleted, I copy the last lines of the output below.

--
/Applications/Xcode-beta.app/Contents/Developer/usr/bin/make  all-recursive
Making all in support
/Applications/Xcode-beta.app/Contents/Developer/usr/bin/make  all-am
make[5]: Nothing to be done for `all-am'.
Making all in frontends
Making all in qt
/Applications/Xcode-beta.app/Contents/Developer/usr/bin/make  all-am
   CXX  Dialog.o
In file included from Dialog.cpp:15:
./GuiView.h:24:10: fatal error: 'QSvgWidget' file not found
#include 
  ^~~~
1 error generated.
make[6]: *** [Dialog.o] Error 1
make[5]: *** [all] Error 2
make[4]: *** [all-recursive] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2


Please, try again after 47f1fec9



A similar modification is needed when building with CMake on MacOS.

I've included module SvgWidgets with qt6 and MacExtras with previous 
versions (I have checked builds on MacOS with qt6 and qt5, but not with 
qt4). (patch included)
I have also not touched the windows code which will probably show the 
same problem.


Patrickdiff --git a/src/frontends/qt/CMakeLists.txt b/src/frontends/qt/CMakeLists.txt
index 282db37ff7..cd07f84f27 100644
--- a/src/frontends/qt/CMakeLists.txt
+++ b/src/frontends/qt/CMakeLists.txt
@@ -43,8 +43,12 @@ else()
 endif()
 set_target_properties(frontend_qt PROPERTIES FOLDER "applications/LyX" 
QT_NO_UNICODE_DEFINES TRUE)
 
-if(Qt5Core_FOUND AND APPLE)
-   qt_use_modules(frontend_qt Core Gui Widgets Concurrent Svg MacExtras)
+if(${QtVal}Core_FOUND AND APPLE)
+   if(Qt6Core_FOUND)
+   qt_use_modules(frontend_qt Core Gui Widgets Concurrent Svg 
SvgWidgets)
+   else()
+   qt_use_modules(frontend_qt Core Gui Widgets Concurrent Svg 
MacExtras)
+   endif()
 else()
if (Qt5WinExtras_FOUND)
qt_use_modules(frontend_qt Core Gui Widgets Concurrent Svg 
WinExtras)
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: Error when compiling LyX under macOS

2021-10-12 Thread Enrico Forestieri
On Tue, Oct 12, 2021 at 01:15:52PM +0200, Christoph Schmitz wrote:

> macOS Monterey Version 12.0 Beta (21A5543b) and Qt 6.2.0
> 
> The problem, which first appeared about two weeks ago, still exists. I 
> compile LyX once a day to see if it is fixed, but it is not. I still can't 
> compile LyX under macOS anymore. I have the same issue on two computers (one 
> with Intel processor, the other with M1 processor).
> 
> The compiler does not find QSvgWidget, although the class is not deprecated 
> in Qt6: https://doc.qt.io/qt-6/qsvgwidget.html 
> . I have reinstalled Qt and pulled a 
> new LyX repository several times, but that does not solve the problem.
> 
> The file qsvgwidget.h is present. It can be found on the Intel Mac in the 
> directory 
> /usr/local/Cellar/qt/6.2.0/lib/QtSvgWidgets.framework/Versions/A/Headers. But 
> even setting a path to this directory does not solve the problem. Does 
> anybody understand what has happened?
> 
> Since attachments are deleted, I copy the last lines of the output below.
> 
> --
> /Applications/Xcode-beta.app/Contents/Developer/usr/bin/make  all-recursive
> Making all in support
> /Applications/Xcode-beta.app/Contents/Developer/usr/bin/make  all-am
> make[5]: Nothing to be done for `all-am'.
> Making all in frontends
> Making all in qt
> /Applications/Xcode-beta.app/Contents/Developer/usr/bin/make  all-am
>   CXX  Dialog.o
> In file included from Dialog.cpp:15:
> ./GuiView.h:24:10: fatal error: 'QSvgWidget' file not found
> #include 
>  ^~~~
> 1 error generated.
> make[6]: *** [Dialog.o] Error 1
> make[5]: *** [all] Error 2
> make[4]: *** [all-recursive] Error 1
> make[3]: *** [all-recursive] Error 1
> make[2]: *** [all] Error 2
> make[1]: *** [all-recursive] Error 1
> make: *** [all] Error 2

Please, try again after 47f1fec9

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


Re: Error when compiling LyX under macOS

2021-10-12 Thread Kornel Benko
Am Tue, 12 Oct 2021 13:15:52 +0200
schrieb Christoph Schmitz :

> QSvgWidget

You need the file 'QSvgWidget' apparently. Here, on linux and QT5, it is in 
package
libqt5svg5-dev:
/usr/include/x86_64-linux-gnu/qt5/QtSvg/QSvgWidget

On my self compiled QT6 it is also existent under
 /6.0.2/Src/qtsvg/include/QtSvgWidgets/QSvgWidget

Kornel


pgp69pnugKmgR.pgp
Description: Digitale Signatur von OpenPGP
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Error when compiling LyX under macOS

2021-10-12 Thread Christoph Schmitz
macOS Monterey Version 12.0 Beta (21A5543b) and Qt 6.2.0

The problem, which first appeared about two weeks ago, still exists. I compile 
LyX once a day to see if it is fixed, but it is not. I still can't compile LyX 
under macOS anymore. I have the same issue on two computers (one with Intel 
processor, the other with M1 processor).

The compiler does not find QSvgWidget, although the class is not deprecated in 
Qt6: https://doc.qt.io/qt-6/qsvgwidget.html 
. I have reinstalled Qt and pulled a 
new LyX repository several times, but that does not solve the problem.

The file qsvgwidget.h is present. It can be found on the Intel Mac in the 
directory 
/usr/local/Cellar/qt/6.2.0/lib/QtSvgWidgets.framework/Versions/A/Headers. But 
even setting a path to this directory does not solve the problem. Does anybody 
understand what has happened?

Since attachments are deleted, I copy the last lines of the output below.

--
/Applications/Xcode-beta.app/Contents/Developer/usr/bin/make  all-recursive
Making all in support
/Applications/Xcode-beta.app/Contents/Developer/usr/bin/make  all-am
make[5]: Nothing to be done for `all-am'.
Making all in frontends
Making all in qt
/Applications/Xcode-beta.app/Contents/Developer/usr/bin/make  all-am
  CXX  Dialog.o
In file included from Dialog.cpp:15:
./GuiView.h:24:10: fatal error: 'QSvgWidget' file not found
#include 
 ^~~~
1 error generated.
make[6]: *** [Dialog.o] Error 1
make[5]: *** [all] Error 2
make[4]: *** [all-recursive] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2


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


Error when compiling LyX under macOS

2021-09-30 Thread Christoph Schmitz
macOS Monterey Version 12.0 Beta (21A5534d) and Qt 6.1.3Since a few days I can't compile LyX under macOS anymore. I have the same issue on two computers (one with Intel processor, the other with M1 processor).Attached you will find the complete error message. The compiler does not find QSvgWidget anymore. The class is not deprecated in Qt6: https://doc.qt.io/qt-6/qsvgwidget.html. I reinstalled Qt and I even pulled a fresh LyX repo, but this did not solve the problem.Making all in src
  CHK  lyx_commit_hash.h
/Applications/Xcode-beta.app/Contents/Developer/usr/bin/make  all-recursive
Making all in support
/Applications/Xcode-beta.app/Contents/Developer/usr/bin/make  all-am
make[5]: Nothing to be done for `all-am'.
Making all in frontends
Making all in qt
/Applications/Xcode-beta.app/Contents/Developer/usr/bin/make  all-am
  CXX  Dialog.o
  CXX  DialogView.o
  CXX  DockView.o
  CXX  FileDialog.o
  CXX  FindAndReplace.o
  CXX  FloatPlacement.o
  CXX  GuiAbout.o
  CXX  GuiAlert.o
In file included from DockView.cpp:15:
./GuiView.h:24:10: fatal error: 'QSvgWidget' file not found
#include 
 ^~~~
In file included from Dialog.cpp:15:
./GuiView.h:24:10: fatal error: 'QSvgWidget' file not found
#include 
 ^~~~
In file included from DialogView.cpp:15:
./GuiView.h:24:10: fatal error: 'QSvgWidget' file not found
#include 
 ^~~~
1 error generated.
make[6]: *** [DockView.o] Error 1
make[6]: *** Waiting for unfinished jobs
1 error generated.
make[6]: *** [DialogView.o] Error 1
1 error generated.
make[6]: *** [Dialog.o] Error 1
In file included from FindAndReplace.cpp:16:
./GuiView.h:24:10: fatal error: 'QSvgWidget' file not found
#include 
 ^~~~
1 error generated.
make[6]: *** [FindAndReplace.o] Error 1
make[5]: *** [all] Error 2
make[4]: *** [all-recursive] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel