i am trying to do a cross compile of xerces in ubuntu for arm processor, i have followed this tutorial (http://hertaville.com/2013/07/19/cross-compiling-gtk-applications-for-the-raspberry-pi/) it works fine with gtk but when trying to call xerces i got error: "c:5:42: fatal error: xercesc/util/PlatformUtils.hpp: no such files or directory." xerces library is in /rpi/usr/lib/arm-linux-gnueabihf/ libxerces-c-3.1.so, the other files are in /rpi/usr/include/xercesc. i can see the file is the route the makefile is pointing, here is my makefiles code:
ARM_PREFIX= arm-linux-gnueabihf- CC = $(ARM_PREFIX)g++ SRC += gtktest.c TARGET = gtktest LIBRARY += gtk-3 LIBRARY += gdk-3 LIBRARY += atk-1.0 LIBRARY += gio-2.0 LIBRARY += pangocairo-1.0 LIBRARY += gdk_pixbuf-2.0 LIBRARY += cairo-gobject LIBRARY += pango-1.0 LIBRARY += cairo LIBRARY += gobject-2.0 LIBRARY += glib-2.0 LIBRARY += xerces-c-3.1 LIBRARYDIR += $(HOME)/rpi/lib/arm-linux-gnueabihf LIBRARYDIR += $(HOME)/rpi/usr/lib/arm-linux-gnueabihf LIBRARYDIR += $(HOME)/rpi/lib LIBRARYDIR += $(HOME)/rpi/usr/lib LIBRARYDIR += $(HOME)/rpi/usr/local/lib LIBRARYDIR += $(HOME)/rpi/usr/include XLINK_LIBDIR += $(HOME)/rpi/lib/arm-linux-gnueabihf XLINK_LIBDIR += $(HOME)/rpi/usr/lib/arm-linux-gnueabihf INCLUDEDIR += $(HOME)/rpi/usr/include/gtk-3.0 INCLUDEDIR += $(HOME)/rpi/usr/include/pango-1.0 INCLUDEDIR += $(HOME)/rpi/usr/include/gio-unix-2.0/ INCLUDEDIR += $(HOME)/rpi/usr/include/atk-1.0 INCLUDEDIR += $(HOME)/rpi/usr/include/cairo INCLUDEDIR += $(HOME)/rpi/usr/include/gdk-pixbuf-2.0 INCLUDEDIR += $(HOME)/rpi/usr/include/freetype2 INCLUDEDIR += $(HOME)/rpi/usr/include/glib-2.0 INCLUDEDIR += $(HOME)/rpi/usr/lib/arm-linux-gnueabihf/glib-2.0/include INCLUDEDIR += $(HOME)/rpi/usr/include/pixman-1 INCLUDEDIR += $(HOME)/rpi/usr/include/libpng12 INCLUDEDIR += $(HOME)/rpi/usr/local/lib INCLUDEDIR += $(HOME)/rpi/usr/include/xercesc OPT = -O0 DEBUG = -g WARN= -Wall PTHREAD= -pthread INCDIR = $(patsubst %,-I%,$(INCLUDEDIR)) LIBDIR = $(patsubst %,-L%,$(LIBRARYDIR)) LIB = $(patsubst %,-l%,$(LIBRARY)) XLINKDIR = $(patsubst %,-Xlinker -rpath-link=%,$(XLINK_LIBDIR)) all: $(CC) $(OPT) $(DEBUG) $(WARN) $(LIBDIR) $(PTHREAD) $(INCDIR) $(XLINKDIR) $(LIB) $(SRC) -o $(TARGET) clean: rm -rf $(TARGET) any help is welcome -- View this message in context: http://apache-xml-project.6118.n7.nabble.com/cross-compiling-xerces-project-tp41413.html Sent from the Xerces - C - Users mailing list archive at Nabble.com.