Ericsson / xcm

The Extensible Connection-oriented Messaging (XCM) library.
BSD 3-Clause "New" or "Revised" License
16 stars 4 forks source link

add support for binary release to be used for pafc #75

Closed larrycai closed 1 year ago

larrycai commented 1 year ago

pafc needs libxcm, it will be good if we specific how to package the lib and distributed

so far, after make (ubuntu), I got lib below, it will be good to have make package_lib and guide me how to install in target env.

xcm# find .libs/
.libs/
.libs/libxcm.so.0.23.0
.libs/libxcm.so.0
.libs/libxcm.so
.libs/libxcm.lai
.libs/libxcm.la
.libs/xcmpong
.libs/xcm
.libs/libxcmctl.so.0.1.0
.libs/libxcmctl.so.0
.libs/libxcmctl.so
.libs/libxcmctl.lai
.libs/libxcmctl.la
.libs/xcmctl
.libs/server
.libs/client

I tried locally with make python-test, which works

xcm# pip3 install flake8 cryptography
xcm# make python-test
python3 -m flake8 python/xcm.py
LD_LIBRARY_PATH=./.libs ./python/xcmtest.py
...........
----------------------------------------------------------------------
Ran 11 tests in 12.303s

OK
m-ronnblom commented 1 year ago

XCM uses Autoconf and Automake. What should be a part of a binary package, you can see by issuing "make install".

The "install" rule will include both what's required for the run-time package (i.e., the shared library and some symlinks), and the development package (i.e, the various header files).

Try ./configure --prefix=/tmp/xcm-test && make install and browse the directory structure under /tmp/xcm-test/

larrycai commented 1 year ago

Thx and yes, I follow to create my own package like

# make install # install .lib to /usr/local/lib
# tar cvf libxcm-0.23.0.tar.gz /usr/local/lib/libxcm.*