Ticket #604 (closed defect: fixed)
libopensync-plugin-palm does not find libxml2
| Reported by: | fundawang | Owned by: | dgollub |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Plugin: palm | Version: | 0.34 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
But I don't think it is of use :)
$ rpm -ql libxml2-devel /usr/include/libxml2/libxml/parser.h
$ cat /usr/lib/pkgconfig/libxml-2.0.pc prefix=/usr exec_prefix=/usr libdir=/usr/lib includedir=/usr/include modules=1
Name: libXML Version: 2.6.30 Description: libXML library version2. Requires: Libs: -L${libdir} -lxml2 Libs.private: -lz -lm Cflags: -I${includedir}/libxml2
The same problem happens on evolution plugin, it cannot find e-d-s.
Change History
comment:2 Changed 4 years ago by fundawang
In case you cannot read the pkgconfig file:
$ cat /usr/lib/pkgconfig/libxml-2.0.pc
prefix=/usr
exec_prefix=/usr
libdir=/usr/lib
includedir=/usr/include
modules=1
Name: libXML
Version: 2.6.30
Description: libXML library version2.
Requires:
Libs: -L${libdir} -lxml2
Libs.private: -lz -lm
Cflags: -I${includedir}/libxml2
comment:3 Changed 4 years ago by fundawang
Patch for palm plguin:
$ cat libopensync-plugin-palm-0.34-find-libxml2.patch
--- CMakeLists.txt~ 2007-11-03 06:49:23.000000000 +0800
+++ CMakeLists.txt 2007-11-05 00:26:46.000000000 +0800
@@ -7,6 +7,7 @@
FIND_PACKAGE( OpenSync REQUIRED )
FIND_PACKAGE( GLIB2 REQUIRED )
FIND_PACKAGE( PilotLink REQUIRED )
+FIND_PACKAGE( LibXml2 REQUIRED )
INCLUDE( OpenSyncInternal )
--- src/CMakeLists.txt~ 2007-11-03 06:49:23.000000000 +0800
+++ src/CMakeLists.txt 2007-11-05 00:32:38.000000000 +0800
@@ -1,4 +1,4 @@
-INCLUDE_DIRECTORIES( ${OPENSYNC_INCLUDE_DIR} ${PILOTLINK_INCLUDE_DIR} ${GLIB2_INCLUDE_DIRS} )
+INCLUDE_DIRECTORIES( ${OPENSYNC_INCLUDE_DIR} ${PILOTLINK_INCLUDE_DIR} ${GLIB2_INCLUDE_DIRS} ${LIBXML2_INCLUDE_DIR} )
# palm-sync source
SET( palm_sync_LIB_SRCS
@@ -18,8 +18,8 @@
OPENSYNC_PLUGIN_ADD( palm-sync ${palm_sync_LIB_SRCS} )
OPENSYNC_FORMAT_ADD( palm-format ${palm_format_LIB_SRCS} )
-TARGET_LINK_LIBRARIES( palm-sync ${OPENYNC_LIBRARIES} ${PILOTLINK_LIBRARIES} ${GLIB2_LIBRARIES} )
-TARGET_LINK_LIBRARIES( palm-format ${OPENYNC_LIBRARIES} ${PILOTLINK_LIBRARIES} ${GLIB2_LIBRARIES} )
+TARGET_LINK_LIBRARIES( palm-sync ${OPENYNC_LIBRARIES} ${PILOTLINK_LIBRARIES} ${GLIB2_LIBRARIES} ${LIBXML2_LIBRARIES} )
+TARGET_LINK_LIBRARIES( palm-format ${OPENYNC_LIBRARIES} ${PILOTLINK_LIBRARIES} ${GLIB2_LIBRARIES} ${LIBXML2_LIBRARIES} )
# Install plugins
OPENSYNC_PLUGIN_INSTALL( palm-sync )
Note: See
TracTickets for help on using
tickets.

Plus libopensync-plugin-opie.