I was unable to compile wxWebConnect on my Ubuntu Jaunty. The download for linux is missing the "top.mak" file. Also the makefiles presented in this board are not working for me due to use of backquotes for command expansion which is wrong for Makefiles, where $(shell ...) should be used. I have modified the Makefile from the "./webconnect" directory as follows:
- Code: Select all
# ---------------------------------------------------------------------------
#
# Filename: webconnect Makefile
# Project: Kirix Web Kit
# (C) Copyright 2006, Kirix Corporation, All Rights Reserved.
#
# Developer(s): Benjamin I. Williams
#
# Changes:
#
# 10 Oct 2006 - Created
# 16 Oct 2009 - Changed by Ilya A. Zimnovich for Linux build
#
# ---------------------------------------------------------------------------
# You should overwrite the paths specified below :
WX_CONFIG = /usr/local/wx29/bin/wx-config
WX_PREFIX = /usr/local/wx29
WX_CXXFLAGS = $(shell $(WX_CONFIG) --prefix=$(WX_PREFIX) --cxxflags )
WX_LIBS = $(shell $(WX_CONFIG) --prefix=$(WX_PREFIX) --libs )
INCLUDES = -I . -I ./include
DEFINES = ${LARGEFILE_DEFINES}
CXXFLAGS = ${WX_CXXFLAGS} -g -ggdb -fno-rtti
LIBS = ${WX_LIBS}
LIB_PATH = ./lib
OBJECTS = \
dom.o \
nsimpl.o \
promptservice.o \
webcontrol.o \
webframe.o \
webprefs.o
all: libwxwebconnect.a
libwxwebconnect.a: $(OBJECTS)
mkdir $(LIB_PATH)
ar rc $(LIB_PATH)/libwxwebconnect.a $(OBJECTS)
ranlib $(LIB_PATH)/libwxwebconnect.a
clean:
rm -f *.o $(LIB_PATH)/libwxwebconnect.a
rmdir $(LIB_PATH)
$(OBJECTS): %.o : %.cpp
@echo $<
$(CXX) $(CXXFLAGS) $(INCLUDES) $(DEFINES) -c $<
This way I was able to build the wxWebConnect library without any problems against custom built wxWidgets 2.9 from SVN (which is located at "/usr/local/wx29" as you may guess from the Makefile).
I also suggest moving all header files (*.h) to "./webconnect/include" directory to simplify the usage of wxWebConnect binary library.
Thanks a lot for a very useful lib!
Best Regards,
Ilya