Results 1 to 8 of 8

Thread: build errors

  1. #1
    Registered User
    Join Date
    Oct 2002
    Posts
    40

    build errors

    I get many similar build errors. Running FC32. I tried 5.x and 6.x and got similar results. Am I missing a dependency?
    Thanks!

    In file included from compass.h:25,
    from compass.cpp:15:
    point.h: In member function ‘QPoint& Point3D<_T>:ffsetPoint(const QPoint&, double)’:
    point.h:247:10: error: cannot bind non-const lvalue reference of type ‘QPoint&’ to an rvalue of type ‘QPoint’
    247 | return QPoint((centerPoint.x() - (int)(x() / ratio)),
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    248 | (centerPoint.y() - (int)(y() / ratio)));
    | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    point.h: In member function ‘QPoint& Point3D<_T>::inverseOffsetPoint(const QPoint&, double)’:
    point.h:254:10: error: cannot bind non-const lvalue reference of type ‘QPoint&’ to an rvalue of type ‘QPoint’
    254 | return QPoint(int(rint((centerPoint.x() - x()) * ratio)),
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    255 | int(rint((centerPoint.y() - y()) * ratio)));
    | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    In file included from mapcore.h:38,
    from mapcore.cpp:22:
    point.h: In member function ‘QPoint& Point3D<_T>:ffsetPoint(const QPoint&, double)’:
    point.h:247:10: error: cannot bind non-const lvalue reference of type ‘QPoint&’ to an rvalue of type ‘QPoint’
    247 | return QPoint((centerPoint.x() - (int)(x() / ratio)),
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    248 | (centerPoint.y() - (int)(y() / ratio)));
    | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    point.h: In member function ‘QPoint& Point3D<_T>::inverseOffsetPoint(const QPoint&, double)’:
    point.h:254:10: error: cannot bind non-const lvalue reference of type ‘QPoint&’ to an rvalue of type ‘QPoint’
    254 | return QPoint(int(rint((centerPoint.x() - x()) * ratio)),
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    255 | int(rint((centerPoint.y() - y()) * ratio)));
    | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  2. #2
    Registered User
    Join Date
    Oct 2002
    Posts
    40

    Re: build errors

    Fixed by building SEQ 6.x with QTDIR=/usr/lib64/qt4 ./configure

  3. #3
    Administrator
    Join Date
    Oct 2019
    Posts
    497

    Re: build errors

    Glad you got it working. You said you tried with both 5.x and 6.x - I can't say what the problem was for 5.x, but my initial thought for 6.x is that it was picking up your Qt3 headers instead of your Qt4 headers. I'd be curious to know the path of your Qt3 and Qt4 headers, as I might be able to tweak the configure scripts to help avoid it in the future.

  4. #4
    Registered User
    Join Date
    Oct 2002
    Posts
    40

    Re: build errors

    SEQ6 builds, but only shows a blank window when you run it. Lots of errors on the console.

    ShowEQ 6.0.0.0-rc3, Built from 'main.cpp' on Jan 18 2021 at 20:46:21
    CVS: @(#) $Id: main.cpp 1094 2020-11-02 01:42:38Z cn187 $ $Name$
    Using GCC version: 10.2.1
    Using glibc version: 2.31
    Using Qt version: 4.8.7
    Running on Linux release 5.9.16-100.fc32.x86_64 for processor x86_64

    Using config file '/root/.showeq/showeq.xml'
    Loaded preferences file: /usr/local/share/showeq/seqdef.xml!
    Loaded preferences file: /root/.showeq/showeq.xml!
    Info: Listening for first client seen.
    Info: Initializing Packet Capture Thread:
    Info: Filtering packets on device eth0, searching for EQ client...
    Info: Loaded 57327 spells from '/usr/local/share/showeq/spells_us.txt' maxSpell=0xf22f
    Warning: GuildMgr: Could not load guildsfile, /root/.showeq/tmp/guilds2.dat
    Info: Loading Filters from '/root/.showeq/filters/global.xml'
    Info: Loading Zone Filter File: /root/.showeq/filters/unknown.xml
    Info: Loading Zone Filter File: /root/.showeq/filters/unknown.xml
    Info: Categories Reloaded
    Info: No Map found for zone 'unknown'!
    Info: Checked for all variants of 'unknown.map', 'unknown.txt', and 'unknown_1.txt'
    Info: in directories '/root/.showeq/maps' and '/usr/local/share/showeq/maps'!
    Warning: Could not restore dock/window geometry. Rearrange windows as desired and then re-save preferences
    Warning: Could not restore dock/window state. Rearrange windows as desired and then re-save prefrences
    Info: Loaded 7079 message strings from '/usr/local/share/showeq/eqstr_us.txt' maxFormat=35153
    X Error: BadAccess (attempt to access private resource denied) 10
    Extension: 130 (MIT-SHM)
    Minor opcode: 1 (X_ShmAttach)
    Resource id: 0x140
    X Error: BadShmSeg (invalid shared segment parameter) 128
    Extension: 130 (MIT-SHM)
    Minor opcode: 5 (X_ShmCreatePixmap)
    Resource id: 0x5800045
    X Error: BadDrawable (invalid Pixmap or Window parameter) 9
    Major opcode: 62 (X_CopyArea)
    Resource id: 0x5800046
    X Error: BadDrawable (invalid Pixmap or Window parameter) 9
    Major opcode: 62 (X_CopyArea)
    Resource id: 0x5800046
    X Error: BadDrawable (invalid Pixmap or Window parameter) 9
    Major opcode: 62 (X_CopyArea)
    Resource id: 0x5800046
    X Error: BadDrawable (invalid Pixmap or Window parameter) 9
    Major opcode: 62 (X_CopyArea)
    Resource id: 0x5800046
    X Error: BadDrawable (invalid Pixmap or Window parameter) 9
    Major opcode: 62 (X_CopyArea)
    Resource id: 0x5800046
    X Error: BadDrawable (invalid Pixmap or Window parameter) 9
    Major opcode: 62 (X_CopyArea)
    Resource id: 0x5800046

  5. #5
    Registered User
    Join Date
    Oct 2002
    Posts
    40

    Re: build errors

    QT info:

    QTLIB=/usr/lib64/qt-3.3/lib
    QTINC=/usr/lib64/qt-3.3/include
    QT_IM_MODULE=xim
    QTDIR=/usr/lib64/qt-3.3
    QT_AUTO_SCREEN_SCALE_FACTOR=0
    QT_SCALE_FACTOR=1
    [root@steve .showeq]#

  6. #6
    Administrator
    Join Date
    Sep 2005
    Posts
    353

    Re: build errors

    Quote Originally Posted by Fluxcapacitor View Post
    QT info:

    QTLIB=/usr/lib64/qt-3.3/lib
    QTINC=/usr/lib64/qt-3.3/include
    QT_IM_MODULE=xim
    QTDIR=/usr/lib64/qt-3.3
    QT_AUTO_SCREEN_SCALE_FACTOR=0
    QT_SCALE_FACTOR=1
    [root@steve .showeq]#
    You need QT4 with SEQ 6. Guessing errors are related to using QT3.3 instead of 4.

  7. #7
    Registered User
    Join Date
    Oct 2002
    Posts
    40

    Re: build errors

    with QTDIR=/usr/lib64/qt4 ./configure SEQ6 builds. I also tried uninstalling QT3. Same errors with SEQ6.

  8. #8
    Administrator
    Join Date
    Oct 2019
    Posts
    497

    Re: build errors

    A few things to check/try (personally I'd do it in this order, but whatever floats your boat):

    1. Try restarting X and/or the system. I've gotten "Bad Drawable" and similar errors when my system has updated the video/X/mesa packages in the background and I need to restart.

    2. If your X session is running as your user but you're running ShowEQ as root, you may need to use xhost to give session permissions. Running

    Code:
      xhost  +
    as your user will set access wide open. If that works, you can narrow it from there. See `man xhost` for further details.

    3. Try disabling the MIT-SHM extension by setting QT_X11_NO_MITSHM=1 in the environment.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

You may post new threads
You may post replies
You may post attachments
You may edit your posts
HTML code is Off
vB code is On
Smilies are On
[IMG] code is On