Difference between revisions of "Qt updates"

From GeopsyWiki
Jump to navigation Jump to search
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
Qt updates take place only when required for fixing bugs related to Qt. Else, we follow Ubuntu integration of Qt. Current status is available at [http://packages.ubuntu.com/search?keywords=qt4-qmake&searchon=names&section=all http://packages.ubuntu.com].
 +
 +
New Qt release should compile and be tested successfully under development environment before switching to a new Qt release.
 +
 
Note: source and windows must have the same reference Qt version.
 
Note: source and windows must have the same reference Qt version.
 +
 +
=== Source ===
 +
 +
* log to server
 +
 +
  cd /geopsy/build/qt
 +
 +
* download source archive
 +
 +
wget http://download.qt.io/archive/qt/4.8/4.8.6/qt-everywhere-opensource-src-4.8.6.tar.gz
 +
 +
* change version number in build script
 +
 +
cp build-4.7 build-4.8
 +
vi build-4.8
 +
 +
* compile and install in usr/local/Qt/4.8.6
 +
 +
nohup ./build-4.8 > build-4.8.log&
 +
 +
* create symlinks src and win32 in usr/local/Qt/4.8.6
 +
* set reference version in admin/option.factory
 +
* keep changes in mkspecs/win32-x-g++/qmake.conf when installing Qt (probably no longer usefull, cross-compilation natively included in win32-g++) 
 +
** check differences between win32-g++/qmake.conf<br/><pre>diff -r old/mkspecs/win32-g++/qmake.conf new/mkspecs/win32-g++/qmake.conf</pre>
 +
** cp -r new/mkspecs/win32-g++ new/mkspecs/win32-x-g++
 +
** cp old/mkspecs/win32-x-g++/qmake.conf new/mkspecs/win32-x-g++
 +
** edit according to difference between old and new win32-g++/qmake.conf
 +
** set version number in mkspecs/win32-x-g++/qmake.conf (in QMAKE_INCDIR_QT and QMAKE_LIBDIR_QT)
 +
* run a make clean in devtools
  
 
=== Windows ===
 
=== Windows ===
Line 6: Line 39:
 
* move all from C:\Qt\x.x.x to a Y:\qt
 
* move all from C:\Qt\x.x.x to a Y:\qt
 
* copy all to compile server:
 
* copy all to compile server:
   scp -r qt/x.x.x canucks:/usr/local/Qt/x.x.x/win32-bin
+
   scp -r qt/x.x.x geopsy:/build/usr/local/Qt/x.x.x/win32-bin
 
* copy mingwm10.dll from a previous version into /usr/local/Qt/x.x.x/win32-bin/bin
 
* copy mingwm10.dll from a previous version into /usr/local/Qt/x.x.x/win32-bin/bin
 
* set version number in mkspecs/win32-x-g++/qmake.conf (in QMAKE_INCDIR_QT and QMAKE_LIBDIR_QT)
 
* set version number in mkspecs/win32-x-g++/qmake.conf (in QMAKE_INCDIR_QT and QMAKE_LIBDIR_QT)
Line 12: Line 45:
 
* before publishing any release, copy Qt tar.gz files generated during package build in /build/windows/3rdparty/Qt
 
* before publishing any release, copy Qt tar.gz files generated during package build in /build/windows/3rdparty/Qt
 
   scp * xxxx@geopsy.org:/var/www/download/htdocs/archives
 
   scp * xxxx@geopsy.org:/var/www/download/htdocs/archives
* run a make clean for devtools and
+
* run a make clean for devtools and all other projects
 
  dpfacdo -f dpfacmake -m clean \$PLATFORM \$BRANCH
 
  dpfacdo -f dpfacmake -m clean \$PLATFORM \$BRANCH
 
=== Source ===
 
 
* download source archive
 
* copy it to /build/qt
 
* change version number in ./build
 
* run nohup ./build > build.log&
 
* create symlinks src and win32 (because win32 uses cross compilation)
 
* set reference version in admin/option.factory
 
* keep changes in mkspecs/win32-x-g++/qmake.conf when installing Qt 
 
** check differences between win32-g++/qmake.conf<br /><pre>diff -r old/mkspecs/win32-g++/qmake.conf new/mkspecs/win32-g++/qmake.conf</pre>
 
** cp -r new/mkspecs/win32-g++ new/mkspecs/win32-x-g++
 
** cp old/mkspecs/win32-x-g++/qmake.conf new/mkspecs/win32-x-g++
 
** edit according to difference between old and new win32-g++/qmake.conf
 
** set version number in mkspecs/win32-x-g++/qmake.conf (in QMAKE_INCDIR_QT and QMAKE_LIBDIR_QT)
 
* run a make clean in devtools
 
  
 
=== Mac ===
 
=== Mac ===

Latest revision as of 10:08, 18 February 2015

Qt updates take place only when required for fixing bugs related to Qt. Else, we follow Ubuntu integration of Qt. Current status is available at http://packages.ubuntu.com.

New Qt release should compile and be tested successfully under development environment before switching to a new Qt release.

Note: source and windows must have the same reference Qt version.

Source

  • log to server
 cd /geopsy/build/qt
  • download source archive
wget http://download.qt.io/archive/qt/4.8/4.8.6/qt-everywhere-opensource-src-4.8.6.tar.gz
  • change version number in build script
cp build-4.7 build-4.8
vi build-4.8
  • compile and install in usr/local/Qt/4.8.6
nohup ./build-4.8 > build-4.8.log&
  • create symlinks src and win32 in usr/local/Qt/4.8.6
  • set reference version in admin/option.factory
  • keep changes in mkspecs/win32-x-g++/qmake.conf when installing Qt (probably no longer usefull, cross-compilation natively included in win32-g++)
    • check differences between win32-g++/qmake.conf
      diff -r old/mkspecs/win32-g++/qmake.conf new/mkspecs/win32-g++/qmake.conf
    • cp -r new/mkspecs/win32-g++ new/mkspecs/win32-x-g++
    • cp old/mkspecs/win32-x-g++/qmake.conf new/mkspecs/win32-x-g++
    • edit according to difference between old and new win32-g++/qmake.conf
    • set version number in mkspecs/win32-x-g++/qmake.conf (in QMAKE_INCDIR_QT and QMAKE_LIBDIR_QT)
  • run a make clean in devtools

Windows

  • download and unpack Qt archive under VirtualBox
  • move all from C:\Qt\x.x.x to a Y:\qt
  • copy all to compile server:
 scp -r qt/x.x.x geopsy:/build/usr/local/Qt/x.x.x/win32-bin
  • copy mingwm10.dll from a previous version into /usr/local/Qt/x.x.x/win32-bin/bin
  • set version number in mkspecs/win32-x-g++/qmake.conf (in QMAKE_INCDIR_QT and QMAKE_LIBDIR_QT)
  • set reference version in admin/option.factory
  • before publishing any release, copy Qt tar.gz files generated during package build in /build/windows/3rdparty/Qt
 scp * xxxx@geopsy.org:/var/www/download/htdocs/archives
  • run a make clean for devtools and all other projects
dpfacdo -f dpfacmake -m clean \$PLATFORM \$BRANCH

Mac

  • download source archive
  • copy it to qt
  • change version number in ./build
  • run nohup ./build > build.log&
  • set reference version in admin/option.factory
  • before publishing any release, copy Qt tar.gz files generated during package build in build/3rdparty/Qt
 scp * xxxx@geopsy.org:/var/www/download/htdocs/archives
  • run a make clean for devtools and
dpfacdo -f dpfacmake -m clean \$PLATFORM \$BRANCH