trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: April 2011

Re: [trinity-devel] Which is the preferred way to select Qt version?

From: Calvin Morrison <mutantturkey@...>
Date: Sun, 3 Apr 2011 08:43:17 -0400
On 3 April 2011 00:17, David C. Rankin <drankinatty@...> wrote:
> All,
>
>  Finally have a bit of time to dive back in. The out-of-source change
> couldn't have hit at a worse time - end of 1st quarter and TAX time :(
>  Still have 10 days to 2-weeks of commitment there.
>
>  Changing the PKGBUILDS to work with the out-of-source requirement will be
> simple - thankfully, but I want to know what is the preferred way to specify
> which Qt version to use. Building tqtinterface tonight, I am presented with:
>
>  #################################################
>
>   You must select a Qt version, like this:
>
>   cmake -DQT_VERSION=3 [arguments...]
>   or
>   cmake -DUSE_QT3=ON [arguments...]
>
>  Before I change everything -- which one is the preferred way that will work
> best with future changes with the Qt4 implementation? Does the change also
> deprecate:
>
>      -DWITH_QT3=ON \
>
>  Also, Calvin, Baho, I'm going to try the following to satisfy the OOS build
> requirement (eg.):
>
> build() {
>  <snip>
>  cd $srcdir
>  msg "Creating out-of-source build directory: ${srcdir}/build"
>  mkdir -p build
>  cd build
>
>  msg "Starting cmake..."
>  cmake ${srcdir}/${_svnmod} \
>    -DCMAKE_INSTALL_PREFIX=/opt/qt \
>    -DQT_VERSION=3 \
>    -DWITH_QT3=ON \
>    -DQT_LIBRARY_DIRS=/opt/qt/lib \
>    -DCMAKE_SKIP_RPATH=ON || return 1
>  make
> }
>
>  Let me know on the preferred Qt designation...
>
> --
> David C. Rankin, J.D.,P.E.
>

David,

Looks good to me, creating a build folder with in the srcdir is
probably the best thing to do.

Calvin Morrison