创建build文件夹
mkdir build && cd build
cmake ..
回到初始目录
cd..
autoreconf -i
./configure
make
切换到root
make install
测试例子:
接收:
./examples/amqp_listen localhost 5672 amq.direct test
发送:
./examples/amqp_sendstring localhost 5672 amq.direct test "hello world"
结果
Content-type: text/plain
----
00000000: 68 65 6C 6C 6F 20 77 6F : 72 6C 64 hello world
0000000B: