Re: Compile Problems After Updating to Qt6
Am Donnerstag, dem 11.03.2021 um 16:05 +0100 schrieb Christoph Schmitz: > I also tried to downgrade to Qt5, but this also did not solve the > problem. I have noticed that Qt5 is not installed in the folder "qt" > anymore (this is now the place, where Qt6 is installed), but in a > folder with the name "qt@5". All you probably need to do is to point configure (or cmake if you use that) to this /qt@5 path rather than the /qt path. Since I am not on the Mac, I cannot provide details. HTH, Jürgen signature.asc Description: This is a digitally signed message part -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Re: Compile Problems After Updating to Qt6
Am Fri, 12 Mar 2021 11:14:24 +0100 schrieb Kornel Benko : > Am Fri, 12 Mar 2021 10:33:57 +0100 > schrieb Jürgen Spitzmüller : > > > Am Donnerstag, dem 11.03.2021 um 18:56 +0100 schrieb Kornel Benko: > > > The guide is lengthy and I did not find QDateTime mentioned there. > > > > https://doc.qt.io/qt-5/qdatetime-obsolete.html > > > > > Yes, we should postpone. > > > > This one was straightforward and should be fixed. > > > > Jürgen > > > > Thanks. I now have problems with "moc", but that should be my part to find > out. > > Kornel The problem is that I do not have the correct libc library. The call to qt6-moc gives: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by ./6.0.2/gcc_64/bin/moc) Kornel pgpnhaIr8ZDzb.pgp Description: Digitale Signatur von OpenPGP -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Re: Compile Problems After Updating to Qt6
Am Fri, 12 Mar 2021 10:33:57 +0100 schrieb Jürgen Spitzmüller : > Am Donnerstag, dem 11.03.2021 um 18:56 +0100 schrieb Kornel Benko: > > The guide is lengthy and I did not find QDateTime mentioned there. > > https://doc.qt.io/qt-5/qdatetime-obsolete.html > > > Yes, we should postpone. > > This one was straightforward and should be fixed. > > Jürgen > Thanks. I now have problems with "moc", but that should be my part to find out. Kornel pgpzkfWEJ7xNM.pgp Description: Digitale Signatur von OpenPGP -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Re: Compile Problems After Updating to Qt6
Am Donnerstag, dem 11.03.2021 um 18:56 +0100 schrieb Kornel Benko: > The guide is lengthy and I did not find QDateTime mentioned there. https://doc.qt.io/qt-5/qdatetime-obsolete.html > Yes, we should postpone. This one was straightforward and should be fixed. Jürgen signature.asc Description: This is a digitally signed message part -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Re: Compile Problems After Updating to Qt6
Am Donnerstag, dem 11.03.2021 um 12:27 -0500 schrieb Richard Kimberly Heck: > This will take some work. There's some info here: > > https://doc.qt.io/qt-6/portingguide.html > > Maybe we should make this a post 2.4 priority, though of course work > on it could start now in a branch. That's right, but a few things could already be addressed. I think the error Kornel faces is a function that is marked deprecated in more recent Qt 5 versions already. There are only a few such deprecation warnings left. We could address these and see what is left to do with Qt6. Jürgen signature.asc Description: This is a digitally signed message part -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Re: Compile Problems After Updating to Qt6
Am Thu, 11 Mar 2021 12:27:50 -0500 schrieb Richard Kimberly Heck : > > Trying to adapt cmake to qt6, I get compile errors > > > > usr2/src/lyx/lyx-git/src/insets/InsetInfo.cpp: In member function > > ‘std::__debug::vector, > > std::__cxx11::basic_string > > > > lyx::InsetInfoParams::getArguments(const > > lyx::Buffer*, const string&) > > const’: /usr2/src/lyx/lyx-git/src/insets/InsetInfo.cpp:300:22: error: > > ‘fromTime_t’ is > > not a member of ‘QDateTime’ date = > > QDateTime::fromTime_t(buf->fileName().lastModified()).date(); > > ^~ /usr2/src/lyx/lyx-git/src/insets/InsetInfo.cpp:326:22: error: > > ‘fromTime_t’ > > is not a member of ‘QDateTime’ time = > > QDateTime::fromTime_t(buf->fileName().lastModified()).time(); > > ^~ /usr2/src/lyx/lyx-git/src/insets/InsetInfo.cpp: In member > > function ‘virtual > > void lyx::InsetInfo::updateBuffer(const lyx::ParIterator&, lyx::UpdateType, > > bool)’: /usr2/src/lyx/lyx-git/src/insets/InsetInfo.cpp:1152:22: error: > > ‘fromTime_t’ is > > not a member of ‘QDateTime’ date = > > QDateTime::fromTime_t(buffer().fileName().lastModified()).date(); > > ^~ /usr2/src/lyx/lyx-git/src/insets/InsetInfo.cpp:1169:22: error: > > ‘fromTime_t’ is not a member of ‘QDateTime’ time = > > QDateTime::fromTime_t(buffer().fileName().lastModified()).time(); > > This will take some work. There's some info here: > > https://doc.qt.io/qt-6/portingguide.html > > Maybe we should make this a post 2.4 priority, though of course work on > it could start now in a branch. > > Riki The guide is lengthy and I did not find QDateTime mentioned there. Yes, we should postpone. Kornel pgpmCwrXD8kTg.pgp Description: Digitale Signatur von OpenPGP -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Re: Compile Problems After Updating to Qt6
On 3/11/21 11:29 AM, Kornel Benko wrote: Am Thu, 11 Mar 2021 16:05:24 +0100 schrieb Christoph Schmitz : This is a duplicate of a question already asked in the user forum. Riki recommended to post it in the developer forum. -- Operating system: macOS 11.3 Beta (20E5196f) I have been struggling with this problem for a few days now. Last week my homebrew installation quietly updated Qt to v6 (brew upgrade). Since then I can't compile LyX anymore. Unfortunately I learned about the "brew pin" command too late. When running .\configure I get the error message: "configure: error: cannot compile a simple Qt executable. Check you have the right $QTDIR." I tried to set $QTDIR to the following directories: /usr/local/Cellar/qt /usr/local/Cellar/qt/6.0.2 /usr/local/Cellar/qt/6.0.2/bin /usr/local/Cellar/qt/6.0.2/lib /usr/local/opt/qt /usr/local/opt/qt6 /usr/local/opt/qt@6 I also tried to downgrade to Qt5, but this also did not solve the problem. I have noticed that Qt5 is not installed in the folder "qt" anymore (this is now the place, where Qt6 is installed), but in a folder with the name "qt@5". I also deleted my local repository and started from scratch. Also no success. I appreciate any recommendation what to do. Chris Trying to adapt cmake to qt6, I get compile errors usr2/src/lyx/lyx-git/src/insets/InsetInfo.cpp: In member function ‘std::__debug::vector, std::__cxx11::basic_string > > lyx::InsetInfoParams::getArguments(const lyx::Buffer*, const string&) const’: /usr2/src/lyx/lyx-git/src/insets/InsetInfo.cpp:300:22: error: ‘fromTime_t’ is not a member of ‘QDateTime’ date = QDateTime::fromTime_t(buf->fileName().lastModified()).date(); ^~ /usr2/src/lyx/lyx-git/src/insets/InsetInfo.cpp:326:22: error: ‘fromTime_t’ is not a member of ‘QDateTime’ time = QDateTime::fromTime_t(buf->fileName().lastModified()).time(); ^~ /usr2/src/lyx/lyx-git/src/insets/InsetInfo.cpp: In member function ‘virtual void lyx::InsetInfo::updateBuffer(const lyx::ParIterator&, lyx::UpdateType, bool)’: /usr2/src/lyx/lyx-git/src/insets/InsetInfo.cpp:1152:22: error: ‘fromTime_t’ is not a member of ‘QDateTime’ date = QDateTime::fromTime_t(buffer().fileName().lastModified()).date(); ^~ /usr2/src/lyx/lyx-git/src/insets/InsetInfo.cpp:1169:22: error: ‘fromTime_t’ is not a member of ‘QDateTime’ time = QDateTime::fromTime_t(buffer().fileName().lastModified()).time(); This will take some work. There's some info here: https://doc.qt.io/qt-6/portingguide.html Maybe we should make this a post 2.4 priority, though of course work on it could start now in a branch. Riki -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Re: Compile Problems After Updating to Qt6
Am Thu, 11 Mar 2021 16:05:24 +0100 schrieb Christoph Schmitz : > This is a duplicate of a question already asked in the user forum. Riki > recommended to > post it in the developer forum. > > -- > > Operating system: macOS 11.3 Beta (20E5196f) > > I have been struggling with this problem for a few days now. Last week my > homebrew > installation quietly updated Qt to v6 (brew upgrade). Since then I can't > compile LyX > anymore. Unfortunately I learned about the "brew pin" command too late. > > When running .\configure I get the error message: "configure: error: cannot > compile a > simple Qt executable. Check you have the right $QTDIR." > > I tried to set $QTDIR to the following directories: > > /usr/local/Cellar/qt > /usr/local/Cellar/qt/6.0.2 > /usr/local/Cellar/qt/6.0.2/bin > /usr/local/Cellar/qt/6.0.2/lib > /usr/local/opt/qt > /usr/local/opt/qt6 > /usr/local/opt/qt@6 > > I also tried to downgrade to Qt5, but this also did not solve the problem. I > have > noticed that Qt5 is not installed in the folder "qt" anymore (this is now the > place, > where Qt6 is installed), but in a folder with the name "qt@5". > > I also deleted my local repository and started from scratch. Also no success. > > I appreciate any recommendation what to do. > > Chris Trying to adapt cmake to qt6, I get compile errors usr2/src/lyx/lyx-git/src/insets/InsetInfo.cpp: In member function ‘std::__debug::vector, std::__cxx11::basic_string > > lyx::InsetInfoParams::getArguments(const lyx::Buffer*, const string&) const’: /usr2/src/lyx/lyx-git/src/insets/InsetInfo.cpp:300:22: error: ‘fromTime_t’ is not a member of ‘QDateTime’ date = QDateTime::fromTime_t(buf->fileName().lastModified()).date(); ^~ /usr2/src/lyx/lyx-git/src/insets/InsetInfo.cpp:326:22: error: ‘fromTime_t’ is not a member of ‘QDateTime’ time = QDateTime::fromTime_t(buf->fileName().lastModified()).time(); ^~ /usr2/src/lyx/lyx-git/src/insets/InsetInfo.cpp: In member function ‘virtual void lyx::InsetInfo::updateBuffer(const lyx::ParIterator&, lyx::UpdateType, bool)’: /usr2/src/lyx/lyx-git/src/insets/InsetInfo.cpp:1152:22: error: ‘fromTime_t’ is not a member of ‘QDateTime’ date = QDateTime::fromTime_t(buffer().fileName().lastModified()).date(); ^~ /usr2/src/lyx/lyx-git/src/insets/InsetInfo.cpp:1169:22: error: ‘fromTime_t’ is not a member of ‘QDateTime’ time = QDateTime::fromTime_t(buffer().fileName().lastModified()).time(); Kornel pgpc16Dsd5omD.pgp Description: Digitale Signatur von OpenPGP -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Compile Problems After Updating to Qt6
This is a duplicate of a question already asked in the user forum. Riki recommended to post it in the developer forum. -- Operating system: macOS 11.3 Beta (20E5196f) I have been struggling with this problem for a few days now. Last week my homebrew installation quietly updated Qt to v6 (brew upgrade). Since then I can't compile LyX anymore. Unfortunately I learned about the "brew pin" command too late. When running .\configure I get the error message: "configure: error: cannot compile a simple Qt executable. Check you have the right $QTDIR." I tried to set $QTDIR to the following directories: /usr/local/Cellar/qt /usr/local/Cellar/qt/6.0.2 /usr/local/Cellar/qt/6.0.2/bin /usr/local/Cellar/qt/6.0.2/lib /usr/local/opt/qt /usr/local/opt/qt6 /usr/local/opt/qt@6 I also tried to downgrade to Qt5, but this also did not solve the problem. I have noticed that Qt5 is not installed in the folder "qt" anymore (this is now the place, where Qt6 is installed), but in a folder with the name "qt@5". I also deleted my local repository and started from scratch. Also no success. I appreciate any recommendation what to do. Chris-- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel