fix linking of kdecore
Peter Kümmel
syntheticpp at gmx.net
Sun Oct 22 19:12:21 CEST 2006
Sebastian Sauer wrote:
> Seems I am not the only one who has that prob except that others have it on
> Linux; http://lists.kde.org/?l=kde-core-devel&m=115874499710328&w=2
> hmmm, over one month old report :-/
this helps a bit:
Index: objectdescription.h
===================================================================
--- objectdescription.h (revision 598101)
+++ objectdescription.h (working copy)
@@ -135,6 +135,18 @@
typedef ObjectDescription<ContainerFormatType> ContainerFormatDescription;
typedef ObjectDescription<VisualizationType> VisualizationDescription;
+
+extern template class PHONONCORE_EXPORT ObjectDescription<AudioOutputDeviceType>;
+extern template class PHONONCORE_EXPORT ObjectDescription<AudioCaptureDeviceType>;
+extern template class PHONONCORE_EXPORT ObjectDescription<VideoOutputDeviceType>;
+extern template class PHONONCORE_EXPORT ObjectDescription<VideoCaptureDeviceType>;
+extern template class PHONONCORE_EXPORT ObjectDescription<AudioEffectType>;
+extern template class PHONONCORE_EXPORT ObjectDescription<VideoEffectType>;
+extern template class PHONONCORE_EXPORT ObjectDescription<AudioCodecType>;
+extern template class PHONONCORE_EXPORT ObjectDescription<VideoCodecType>;
+extern template class PHONONCORE_EXPORT ObjectDescription<ContainerFormatType>;
+extern template class PHONONCORE_EXPORT ObjectDescription<VisualizationType>;
+
} //namespace Phonon
but the extern declaration
Index: objectdescriptionmodel.h
===================================================================
--- objectdescriptionmodel.h (revision 598101)
+++ objectdescriptionmodel.h (working copy)
@@ -162,6 +162,17 @@
typedef ObjectDescriptionModel<VideoCodecType> VideoCodecDescriptionModel;
typedef ObjectDescriptionModel<ContainerFormatType> ContainerFormatDescriptionModel;
typedef ObjectDescriptionModel<VisualizationType> VisualizationDescriptionModel;
+
+ extern template class PHONONCORE_EXPORT ObjectDescriptionModel<AudioOutputDeviceType>;
+ extern template class PHONONCORE_EXPORT ObjectDescriptionModel<AudioCaptureDeviceType>;
+ extern template class PHONONCORE_EXPORT ObjectDescriptionModel<VideoOutputDeviceType>;
+ extern template class PHONONCORE_EXPORT ObjectDescriptionModel<VideoCaptureDeviceType>;
+ extern template class PHONONCORE_EXPORT ObjectDescriptionModel<AudioEffectType>;
+ extern template class PHONONCORE_EXPORT ObjectDescriptionModel<VideoEffectType>;
+ extern template class PHONONCORE_EXPORT ObjectDescriptionModel<AudioCodecType>;
+ extern template class PHONONCORE_EXPORT ObjectDescriptionModel<VideoCodecType>;
+ extern template class PHONONCORE_EXPORT ObjectDescriptionModel<ContainerFormatType>;
+ extern template class PHONONCORE_EXPORT ObjectDescriptionModel<VisualizationType>;
}
does not work for the linker error of kcm_phonon, don't know why?
It seems the template instantiations are not really exported by the phononcore.
--
Peter Kümmel
More information about the Kde-windows
mailing list