[kde-freebsd] Patch: multimedia/phonon/Makefile

Kris Moore kris at pcbsd.com
Thu Jun 26 14:30:55 CEST 2008


Max Brazhnikov wrote:
> On Wed, 25 Jun 2008 21:06:04 -0400, Kris Moore wrote:
>> Martin Wilke wrote:
>>> -----BEGIN PGP SIGNED MESSAGE-----
>>> Hash: SHA1
>>>
>>> On Wed, Jun 25, 2008 at 06:40:03PM -0400, Kris Moore wrote:
>>>> Martin Wilke wrote:
>>>>> -----BEGIN PGP SIGNED MESSAGE-----
>>>>> Hash: SHA1
>>>>>
>>>>> On Wed, Jun 25, 2008 at 04:13:19PM -0400, Kris Moore wrote:
>>>>>> Ran into some problems trying to compile phonon on a fresh system
>>>>>> here, turns out ${LOCALBASE}/include was not in the list of cmake
>>>>>> header directories to include. I've fixed this in the Makefile
>>>>>> attached.
>>>>>>
>>>>>> --
>>>>>>
>>>>>> Kris Moore
>>>>>> PC-BSD Software
>>>>>> http://www.pcbsd.com
>>>>> Fixed thanks
>>>> Thanks for adding it! I'm noticing a lot of the same errors in 4.0.83
>>>> though, even kdelib4 wont compile properly here on a fresh system, it
>>>> doesn't have /usr/local/include being used as an include dir. I can keep
>>>> fixing the Makefiles to add  this to CMakeLists.txt. But if somebody
>>>> else finds a better solution, please let me know!
>>> Hi Kris,
>>>
>>> I agree, but  befor we start the wild hacking we should clear the prefix
>>> situations I don't want to duplicate my work...
>>>
>>> - - Martin
>> Completely understand. Since it seems all the KDE4 ports are now
>> ignoring the /usr/local and /usr/local/kde4 prefixes I'm inclined to
>> think there is a more basic fix. Did something in area51 change to cause
>> this, or did the beta2 update change the CMake setup?
> 
> Guys, could show the build log?
> 
> I've compiled phonon and kdelibs4 without any error in a clean jail with the 
> latest  area51 qt4 ports.
> 
> Max

My mistake!

I'm not seeing a traditional build.log file, where does CMake store them 
again? I'm attaching the CMakeCache.txt file for your inspection.

  Here's the first error I ran into while building multimedia/phonon though:

[ 79%] Building CXX object 
gstreamer/CMakeFiles/phonon_gstreamer.dir/phonon_gstreamer_automoc.o
cd /usr/ports/multimedia/phonon/work/phonon-4.1.83/build/gstreamer && 
/usr/bin/c++    -Dphonon_gstreamer_EXPORTS -O2 -fno-strict-aliasing 
-pipe -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align 
-Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security 
-fno-check-new -fno-common -g -fPIC 
-I/usr/ports/multimedia/phonon/work/phonon-4.1.83/build/gstreamer 
-I/usr/ports/multimedia/phonon/work/phonon-4.1.83/gstreamer 
-I/usr/ports/multimedia/phonon/work/phonon-4.1.83 
-I/usr/ports/multimedia/phonon/work/phonon-4.1.83/includes 
-I/usr/ports/multimedia/phonon/work/phonon-4.1.83/phonon 
-I/usr/ports/multimedia/phonon/work/phonon-4.1.83/build 
-I/usr/ports/multimedia/phonon/work/phonon-4.1.83/build/phonon 
-I/usr/ports/multimedia/phonon/work/phonon-4.1.83/QT_MKSPECS_DIR-NOTFOUND/default 
-I/usr/local/include/qt4/phonon -I/usr/local/include/qt4/QtXmlPatterns 
-I/usr/local/include/qt4/QtWebKit -I/usr/local/include/qt4/QtHelp 
-I/usr/local/include/qt4/QtAssistant -I/usr/local/include/qt4/QtDBus 
-I/usr/local/include/qt4/QtTest -I/usr/local/include/qt4/QtUiTools 
-I/usr/local/include/qt4/QtScript -I/usr/local/include/qt4/QtSvg 
-I/usr/local/include/qt4/QtXml -I/usr/local/include/qt4/QtSql 
-I/usr/local/include/qt4/QtOpenGL -I/usr/local/include/qt4/QtNetwork 
-I/usr/local/include/qt4/QtDesigner -I/usr/local/include/qt4/Qt3Support 
-I/usr/local/include/qt4/QtGui -I/usr/local/include/qt4/QtCore 
-I/usr/local/include/qt4/Qt -I/usr/local/include/qt4 
-I/usr/local/include/gstreamer-0.10 -I/usr/local/include/glib-2.0 
-I/usr/local/include/libxml2 -o 
CMakeFiles/phonon_gstreamer.dir/phonon_gstreamer_automoc.o -c 
/usr/ports/multimedia/phonon/work/phonon-4.1.83/build/gstreamer/phonon_gstreamer_automoc.cpp
In file included from /usr/local/include/libxml2/libxml/parser.h:796,
                  from 
/usr/local/include/gstreamer-0.10/gst/gstconfig.h:184,
                  from 
/usr/local/include/gstreamer-0.10/gst/gstelement.h:51,
                  from /usr/local/include/gstreamer-0.10/gst/gstbin.h:27,
                  from /usr/local/include/gstreamer-0.10/gst/gst.h:34,
                  from 
/usr/ports/multimedia/phonon/work/phonon-4.1.83/build/gstreamer/../../gstreamer/devicemanager.h:28,
                  from 
/usr/ports/multimedia/phonon/work/phonon-4.1.83/build/gstreamer/moc_devicemanager.cpp:10,
                  from 
/usr/ports/multimedia/phonon/work/phonon-4.1.83/build/gstreamer/phonon_gstreamer_automoc.cpp:2:
/usr/local/include/libxml2/libxml/encoding.h:28:19: error: iconv.h: No 
such file or directory


This was build in a chroot environment on FreeBSD 7, with my build 
server. It was working perfectly for 4.0.80, but when we updated to 
4.0.83 the problems started occuring. The same thing happens in 
x11/kdebase-runtime as well, it bombs on some missing headers, which are 
also in /usr/local/include

# ls -al /usr/local/include/iconv.h
-r--r--r--  1 root  wheel  8308 Jun 25 14:43 /usr/local/include/iconv.h

# cat /etc/make.conf
USE_QT=yes
BATCH=yes
WITH_HAL=yes
WITH_MTP=yes
WITHOUT_GNOME=yes
X11BASE=/usr/local
PORTSDIR?=/usr/ports
.if ${.CURDIR} == ${PORTSDIR}/sysutils/hal
WITH_FIXED_MOUNTPOINTS=YES
.endif
# added by use.perl 2008-06-25 16:20:35
PERL_VER=5.8.8
PERL_VERSION=5.8.8

When I modified the CMakeLists.txt file to put /usr/local/include in the 
include_directories( definition, then the problem went away.

-- 

Kris Moore
PC-BSD Software
http://www.pcbsd.com
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CMakeCache.txt
Url: http://mail.kde.org/pipermail/kde-freebsd/attachments/20080626/bc096308/attachment-0001.txt 


More information about the kde-freebsd mailing list