Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. [SOLVED] CentOs 6.3 and Qt5 Console application
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] CentOs 6.3 and Qt5 Console application

Scheduled Pinned Locked Moved Installation and Deployment
5 Posts 2 Posters 3.2k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    bepehr
    wrote on last edited by
    #1

    hi , i have writed a QT5 console application for a server in windows , when its finished i want to run it on Centos 6.3 , but im confiused on what i must do becuse i was windows user all time ..
    can i compile my application in Ubunto with QtCreator and then run it on CentOs 6.3 ?
    or i must compile it on CentOs ? , i dont have gui access to CentOs , just a terminal access , its another problem for me ...
    or i must do a cross compile from windows to linux ?

    i searched all of qt-projct.org and googled for 2 days but ...
    ty

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      A binary from Ubuntu should work on CentOS. There can be problems with dependencies, but the binary itself is likely to be fine.

      (Z(:^

      1 Reply Last reply
      0
      • B Offline
        B Offline
        bepehr
        wrote on last edited by
        #3

        yes , i tested a binary file compiled in Ubuntu 12 in centsOs , it says need libQt5Core.so.5 , but when i moved this file to centOs in applcation folder its give me another error , that program cant open this file :D
        how i create QT dependencie files for Centos ? or where i can find them ?
        ty
        [quote author="sierdzio" date="1362641763"]A binary from Ubuntu should work on CentOS. There can be problems with dependencies, but the binary itself is likely to be fine.[/quote]

        1 Reply Last reply
        0
        • sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          You need to install the library or use LD_LIBRARY_PATH to and point it to current directory.

          Best would probably be to compile Qt5 on CentOS, though, just to be sure. That distro is notorious for it's library dependency problems.

          (Z(:^

          1 Reply Last reply
          0
          • B Offline
            B Offline
            bepehr
            wrote on last edited by
            #5

            i solved my problem with this way
            i have installed centos 6.3 on virtualbox , then install qt5 on that , and compiled my application on that machine

            note : if you have problem to install qt5 on centos 6.3 then look at this "link":https://qt-project.org/forums/viewthread/25550/

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved