[kde-freebsd] Qt 4.8.0 from area51 with clang

Olivier Smedts olivier at gid0.org
Thu Apr 5 12:23:22 UTC 2012


2012/4/3 Alberto Villa <avilla at freebsd.org>:
> On Thu, Mar 22, 2012 at 10:34 AM, Olivier Smedts <olivier at gid0.org> wrote:
>> Are there any recommendations to compile Qt 4.8.0 (from area51) with
>> clang ? I set up my /etc/make.conf as usual for clang, it worked
>> perfectly with Qt 4.7 (except qt4-webkit) but now where trying ti
>> "portmaster -a" :
>
> Last time I tried, it was working. I will check again when 4.8.1 is ready.

Still the same problem with Qt 4.8.1 and clang :
after checking out the latest area51 and kdemerge -kmpq, I "portmaster
\*qt4\*" (last time I tried with "portmaster -a" but before I had to
delete some KDE ports like specified in UPDATING-area51), qt4-qmake is
updated but then :
===>  Configuring for qt4-moc-4.8.1
/usr/bin/sed -i.bak -e 's|target.path.*|target.path=/usr/local/bin|g'
-e 's|^TARGET.*|TARGET=moc-qt4|g'
/tmp/usr/ports/devel/qt4-moc/work/qt-everywhere-opensource-src-4.8.1/src/tools/moc/moc.pro
/bin/mkdir -p /tmp/usr/ports/devel/qt4-moc/work/qt-everywhere-opensource-src-4.8.1/mkspecs
/bin/ln -sf /usr/local/bin/qmake-qt4
/tmp/usr/ports/devel/qt4-moc/work/qt-everywhere-opensource-src-4.8.1/bin/qmake
WARNING: Unable to find file
/usr/local/share/qt4/mkspecs/freebsd-clang/../common/clang-unix.conf
WARNING: Unable to find file
/usr/local/share/qt4/mkspecs/freebsd-clang/../common/clang-unix.conf
WARNING: Unable to find file
/usr/local/share/qt4/mkspecs/freebsd-clang/../common/clang-unix.conf
ERROR: Cannot set the compiler for the configuration tests
===>  Script "configure" failed unexpectedly.

In my /etc/make.conf, for clang I have :
.if !defined(CC) || ${CC} == "cc"
CC=clang
.endif
.if !defined(CXX) || ${CXX} == "c++"
CXX=clang++
.endif
.if !defined(CPP) || ${CPP} == "cpp"
CPP=clang-cpp
.endif
NO_WERROR=
WERROR=

Any suggestion ?

Thanks

-- 
Olivier Smedts                                                 _
                                        ASCII ribbon campaign ( )
e-mail: olivier at gid0.org        - against HTML email & vCards  X
www: http://www.gid0.org    - against proprietary attachments / \

  "Il y a seulement 10 sortes de gens dans le monde :
  ceux qui comprennent le binaire,
  et ceux qui ne le comprennent pas."


More information about the kde-freebsd mailing list