CYAN @ ウィキ

Building console plugin of Licq on Cygwin

最終更新:

cyan

- view
だれでも歓迎! 編集
Libtool does not allow undefined symbols in shared libraries on Cygwin.
As a result, licq_console.so cannot be created when we build the plugin.

Prerequirements

Both Licq and console plugin need to be configured and made sucessfully.

Makefile

Place this makefile in src of the plugin directory, ex. ~\licq-1.3.6\plugins\console\src\.
BOOST_INCLUDE_DIR = /usr/include/boost-1_33_1
CDK_INCLUDE_DIR = /usr/local/include/cdk
LICQ_INCLUDE_DIR = ../../../include
LICQ_SRC_DIR = ../../../src
 
SRC = console.cpp console_menu.cpp console_print.cpp console_tab.cpp main.cpp window.cpp
OBJ = console.o console_menu.o console_print.o console_tab.o main.o window.o
 
all: link
 
compile:
	g++ -DHAVE_CONFIG_H -Wall -I.. -I$(LICQ_INCLUDE_DIR) -I$(BOOST_INCLUDE_DIR) -I$(CDK_INCLUDE_DIR) -c $(SRC)
 
link: compile liblicq.a 
	g++ -shared -o licq_console.so $(OBJ) -L. -llicq -lintl -liconv -lssl -lcrypto -lstdc++ -lcdk -lncurses
 
liblicq.a:
	ar rcs liblicq.a $(LICQ_SRC_DIR)/*.o
 
install:
	cp licq_console.so /usr/local/lib/licq
uninstall:
	rm /usr/local/lib/licq/licq_console.so
clean:
	rm licq_console.so liblicq.a $(OBJ)
 

タグ:

+ タグ編集
  • タグ:

このサイトはreCAPTCHAによって保護されており、Googleの プライバシーポリシー利用規約 が適用されます。

記事メニュー
目安箱バナー