Error with GraphicsMagic and static build wt3.1.11 with boost 1.47.0
Added by Matthias Schönberger over 13 years ago
Hello,
I have build wt 3.1.11 with static boost libs (1.47.0) on Ubuntu 11.10.
This worked without errors.
Compiling my project, the linker exits with following errors:
/devel/wt/3.1.11_boost1.47.0/lib/libwt.a(WebController.o): In function `WebController':
/home/dev/wt-3.1.11/src/web/WebController.C:65: undefined reference to `InitializeMagick'
/devel/wt/3.1.11_boost1.47.0/lib/libwt.a(WebController.o): In function `~WebController':
/home/dev/wt-3.1.11/src/web/WebController.C:72: undefined reference to `DestroyMagick'
collect2: ld gab 1 als Ende-Status zurück
make: * [../bin/sysmon_webserver] Fehler 1
This is the linker-part of my makefile:
LINKER = g
LIBS= -Wl,-rpath,/usr/local/lib -lpthread -lssl -lcrypto -lstdc -lpng -lz -ldl -lGraphicsMagick
#BOOST_LIBS= -lboost_regex \
- -lboost_signals \
- -lboost_thread \
- -lboost_system \
- -lboost_program_options \
- -lboost_filesystem
BOOST_LIBS= $(BOOST_LIB_DIR)/libboost_regex.a \
$(BOOST_LIB_DIR)/libboost_signals.a \
$(BOOST_LIB_DIR)/libboost_thread.a \
$(BOOST_LIB_DIR)/libboost_system.a \
$(BOOST_LIB_DIR)/libboost_program_options.a \
$(BOOST_LIB_DIR)/libboost_filesystem.a \
$(BOOST_LIB_DIR)/libboost_thread.a \
$(BOOST_LIB_DIR)/libboost_date_time.a \
$(BOOST_LIB_DIR)/libboost_random.a \
#WT_LIBS= -lwthttp -lwt -lwtext
WT_LIBS= $(WT_LIB_DIR)/libwthttp.a \
$(WT_LIB_DIR)/libwtext.a \
$(WT_LIB_DIR)/libwt.a
LINKER_FLAGS= -v -static -I$(WT_INCLUDE_DIR) -L$(BOOST_LIB_DIR) -L$(WT_LIB_DIR) $(WT_LIBS) $(BOOST_LIBS) $(LIBS)
LINKER_CALL = $(LINKER) -o $@ $^ $(LINKER_FLAGS)
Any ideas?
Regards Matthias
Replies (1)
RE: Error with GraphicsMagic and static build wt3.1.11 with boost 1.47.0 - Added by Kubilay Kaan over 13 years ago
Hmm,
I think you have to link the Magick lib against ya Project too. I am not sure so give it a try
BR Efendioglu