[SOLVED] CentOs 6.3 and Qt5 Console application



  • 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


  • Moderators

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



  • 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]


  • Moderators

    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.



  • 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/


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.