bugGNU TeXmacs - Bugs: bug #51486, Fixes building/running with Qt5

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #51486: Fixes building/running with Qt5

Submitter:  Karl Hegbloom <karlhegbloom>
Submitted:  Mon 17 Jul 2017 05:41:28 AM UTC
   
 
Category:  Compilation Priority:  9 - Immediate
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  mgubi
Originator Name:  Open/Closed:  Closed
Release:  None Release:  svn trunk
Fixed Release:  None Fixed Release: 
Keywords: 

Jump to the original submission

Tue 14 Apr 2020 07:01:47 AM UTC, comment #8: 

closing this since building is no longer an issue and there are no obvious bugs in qt5 builds.

Philippe Joyez <pjoyez>
Group Member
Tue 21 Aug 2018 10:52:16 PM UTC, comment #7: 

the problem reported in QTBUG-65578 was fixed in rev 11157 (thanks to sadhen), and indeed the crashes mentionned in earlier comments do not occur any longer (moreover, without specifying any QT_STYLE_OVERRIDE). I guess extensive testing is needed now.

I attach a minimal patch that enables both QT5 or QT4 compilation on ubuntu, valid for rev 11224.



(file #44820)

Philippe Joyez <pjoyez>
Group Member
Sun 07 Jan 2018 07:14:14 PM UTC, comment #6: 

Another place where I found TeXmacs crashes which seems to be related to Qt is if you go into math mode (e.g. with $) and then click on Focus > Preferences, TeXmacs crashes with QT_STYLE_OVERRIDE=windows. This crash doesn't occur with the default Qt style, although the color palette and math symbol input do crash it. Fortunately, it seems preferences are still available from right clicking within the buffer. So, I'm sticking with Antonio's workaround for now and not clicking preferences from the focus menu.

Kyle Andrews <wdkrnls>
Sun 07 Jan 2018 05:54:24 PM UTC, comment #5: 

Antonio Rojas who originally found the workaround for the crash has created a bug report with Qt :
https://bugreports.qt.io/browse/QTBUG-65578

The comment by the Qt team points toward a specific problem in TeXmacs.

Philippe Joyez <pjoyez>
Group Member
Fri 05 Jan 2018 09:23:54 AM UTC, comment #4: 

The crashes mentionned in the previous comment can be fixed by
export QT_STYLE_OVERRIDE=windows

(after https://lists.texmacs.org/wws/arc/texmacs-users/2018-01/msg00008.html)

I add the patch I apply for the qt5 compilation to go through (patch valid on svn ~10980). When both qt4 and qt5 are present, qt5 compilation is selected by
export QT_SELECT=qt5

I change the title of the issue
Fix autotools build for Ubuntu 17.04 with Qt5, fix qt plugins list for inputmethods, etc.
to
Fix building with Qt5 on linux

(file #42846)

Philippe Joyez <pjoyez>
Group Member
Tue 07 Nov 2017 08:29:32 AM UTC, comment #3: 

Are you really using your Qt5 build? When testing a Qt5 build on my side (to see if it would fix #49655), I have found it very touchy. For instance it would segfault anytime you open a palette widget like the color palette or symbol palettes in the math mode... Do you experience the same issues?

Philippe Joyez <pjoyez>
Group Member
Mon 17 Jul 2017 05:55:04 AM UTC, comment #2: 

The comment in misc/m4/qt5.m4 was written before I put the dnl in there. Without the dnl the build will fail if you have Qt3d... installed, iirc. I used dnl to comment off most of them, leaving what I thought are probably the ones it actually needs. It compiles fine for me; ymmv since it does not have a build-deps or final depends set right for the styles and everything that are actually installed in my machine, and that a package maintainer will want it linked against for actual distribution; I will fix that also soon if you like.

cd ~/src/TeXmacs/texmacs-git-svn-guile-1.8/src
ln -s packages/debian .
fakeroot debian/rules clean binary

I can enter chinese and cyrillic via ibus with this build. It crashes when I use the KDE settings to change the GUI style, but I don't do that often anyway.

Karl Hegbloom <karlhegbloom>
Mon 17 Jul 2017 05:48:10 AM UTC, comment #1: 

You may view what is essentially the same patch at:

https://github.com/KarlHegbloom/texmacs/pull/12

Karl Hegbloom <karlhegbloom>
Mon 17 Jul 2017 05:41:28 AM UTC, original submission:  

This patch fixes Qt5 builds for at least Ubuntu 17.04. Without this patch, the build fails because it can not find <QPrint> (nor can it finish without compiling with -fPIC on Ubuntu).

It also sets the default Qt plugins lists to better values. Without these settings, input methods don't work right, for example.

Karl Hegbloom <karlhegbloom>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #42846:  qt5.patch added by pjoyez (7KiB - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by mgubi (Updated the item)
  • -email is unavailable- added by wdkrnls (Posted a comment)
  • -email is unavailable- added by pjoyez (Posted a comment)
  • -email is unavailable- added by karlhegbloom (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 9 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-04-14 pjoyez StatusReady For Test Fixed
        Open/ClosedOpen Closed
    2018-08-21 pjoyez Attached File- Added qt5-on-linux-minimal-changes.patch, #44820
        StatusNone Ready For Test
    2018-02-05 mgubi Priority5 - Normal 9 - Immediate
    2018-01-07 pjoyez Assigned toNone mgubi
        SummaryFix autotools build for Ubuntu 17.04 with Qt5, fix qt plugins list for inputmethods, etc. Fixes building/running with Qt5
    2018-01-05 pjoyez Attached File- Added qt5.patch, #42846
    2017-07-17 karlhegbloom Attached File- Added fix-svn-trunk-autotools-build.patch, #41215

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code