Results 1 to 3 of 3

Thread: Qt4 on Centos 64 m/c

  1. #1
    Join Date
    Jul 2007
    Posts
    11
    Thanks
    1
    Thanked 2 Times in 2 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Qt4 on Centos 64 m/c

    Hi,

    I have installed Qt on Centos-64 bit m/c
    and trying to compile my qt application code on that.

    But I am getting like "bad register" type
    of errors.

    Flags settings in Makefile is appearing as follows:

    CFLAGS = -m64 ...
    CXXFLAGS = -m64 ...
    LFLAGS = -m64 ...

    INCPATH = -I$QTDIR/mkspecs/linux-g++-64 ....

    Please can anybody tell me
    what parameters needs to be set to compile it on 64 bit.

    I have compiled the same code on 32 bit m/c
    and it has worked (Qt was also installed on 32-bit m/c only).

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Qt4 on Centos 64 m/c

    Isn't it a problem with the compiler and not Qt? Does configure correctly discover you are using a 64 bit system? You shouldn't need to set any evironment variables yourself.

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt4 on Centos 64 m/c

    If you use qmake, check whether the QMAKESPEC environment variable has correct value (if it's set) and where does mkspecs/default link points to.

Similar Threads

  1. Qt 4.2.3 centos 5.0 - cannot find -lXext
    By jcr in forum Installation and Deployment
    Replies: 2
    Last Post: 16th May 2007, 18:26

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.