Installing Qt4.8.5 on Ubuntu 10.04 by compiling



  • I'm trying to install Qt 4.8.5 by compiling. I followed the directions at this site.

    "http://blog.matoski.com/2013/01/14/compile-qt-4-8-4-on-ubuntu-10-04-lucid/":http://blog.matoski.com/2013/01/14/compile-qt-4-8-4-on-ubuntu-10-04-lucid/

    It compiles without issue but when I try to install via sudo make install it appears that it's trying to install itself ontop of itself hence all the errors.

    @cp: /var/lib/mythtv/compile/qt-everywhere-opensource-src-4.8.5/mkspecs/wincewm60professional-msvc2005' and/var/lib/mythtv/compile/qt-everywhere-opensource-src-4.8.5/mkspecs/wincewm60professional-msvc2005' are the same file
    make: [install_mkspecs] Error 1 (ignored)
    cp -f -r /var/lib/mythtv/compile/qt-everywhere-opensource-src-4.8.5/mkspecs/wincewm60professional-msvc2008 /var/lib/mythtv/compile/qt-everywhere-opensource-src-4.8.5/mkspecs/
    cp: /var/lib/mythtv/compile/qt-everywhere-opensource-src-4.8.5/mkspecs/wincewm60professional-msvc2008' and/var/lib/mythtv/compile/qt-everywhere-opensource-src-4.8.5/mkspecs/wincewm60professional-msvc2008' are the same file
    make: [install_mkspecs] Error 1 (ignored)
    cp -f -r /var/lib/mythtv/compile/qt-everywhere-opensource-src-4.8.5/mkspecs/wincewm60standard-msvc2005 /var/lib/mythtv/compile/qt-everywhere-opensource-src-4.8.5/mkspecs/
    cp: /var/lib/mythtv/compile/qt-everywhere-opensource-src-4.8.5/mkspecs/wincewm60standard-msvc2005' and/var/lib/mythtv/compile/qt-everywhere-opensource-src-4.8.5/mkspecs/wincewm60standard-msvc2005' are the same file
    make: [install_mkspecs] Error 1 (ignored)
    cp -f -r /var/lib/mythtv/compile/qt-everywhere-opensource-src-4.8.5/mkspecs/wincewm60standard-msvc2008 /var/lib/mythtv/compile/qt-everywhere-opensource-src-4.8.5/mkspecs/
    cp: /var/lib/mythtv/compile/qt-everywhere-opensource-src-4.8.5/mkspecs/wincewm60standard-msvc2008' and/var/lib/mythtv/compile/qt-everywhere-opensource-src-4.8.5/mkspecs/wincewm60standard-msvc2008' are the same file
    make: [install_mkspecs] Error 1 (ignored)
    cp -f -r /var/lib/mythtv/compile/qt-everywhere-opensource-src-4.8.5/mkspecs/wincewm65professional-msvc2005 /var/lib/mythtv/compile/qt-everywhere-opensource-src-4.8.5/mkspecs/
    cp: /var/lib/mythtv/compile/qt-everywhere-opensource-src-4.8.5/mkspecs/wincewm65professional-msvc2005' and/var/lib/mythtv/compile/qt-everywhere-opensource-src-4.8.5/mkspecs/wincewm65professional-msvc2005' are the same file
    make: [install_mkspecs] Error 1 (ignored)
    cp -f -r /var/lib/mythtv/compile/qt-everywhere-opensource-src-4.8.5/mkspecs/wincewm65professional-msvc2008 /var/lib/mythtv/compile/qt-everywhere-opensource-src-4.8.5/mkspecs/
    cp: /var/lib/mythtv/compile/qt-everywhere-opensource-src-4.8.5/mkspecs/wincewm65professional-msvc2008' and/var/lib/mythtv/compile/qt-everywhere-opensource-src-4.8.5/mkspecs/wincewm65professional-msvc2008' are the same file
    make: [install_mkspecs] Error 1 (ignored)
    @

    I've never seen this type of issue when compiling anything. What went wrong? Did I need to specify an install path?


  • Moderators

    It seems that you've chosen a bad location to uncompress your files :) Get the tar.gz, extract somewhere in your home directory, then follow that tutorial.

    I prefer building with -prefix (or a -developer-build) that creates a self-contained package: no sudo needed, and the OS remains unpolluted. It also allows to have several Qt builds in parallel (Qt 4 and 5, for example).


Log in to reply
 

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