mips64el編譯emqx

mips64el編譯emqx


如需轉載請標明出處:http://blog.csdn.net/itas109
QQ技術交流羣:129518033

環境:
emqx : 4.0.5
elang/opt : 22
wxWidgets : 3.0.0


1.編譯wxWidgets

git clone -b v3.0.0 https://github.com/wxWidgets/wxWidgets.git

cd wxWidgets

./configure --build=mips64el-linux-gnu

make CXXFLAGS="-std=gnu++11"

sudo make install

問題1

x11 not found => libX11-devel-1.6.5-1.ns7_4.mips64el.rpm libxcb-devel-1.12-1.ns7_4.mips64el.rpm xorg-x11-proto-devel-7.7-20.ns7_4.noarch.rpm
libXau-devel-1.0.8-2.1.ns7_4.mips64el.rpm pkgconfig-0.27.1-4.ns7_4.mips64el.rpm

pangoxft library not found => yum install pango-devel

問題2

error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.

解決(3.0以後只能使用-std=gnu++11):
make CXXFLAGS="-std=gnu++11"

問題3

./src/gtk/print.cpp:41:30: 致命錯誤:gtk/gtkunixprint.h:沒有那個文件或目錄

原因:
缺少libgtk2.0-dev

解決:
sudo rpm -ivh gtk2-devel-2.24.31-1.ns7_4.2.mips64el.rpm

將/usr/include/gtk-unix-print-2.0合併到/usr/include/gtk-2.0

gtk-2.0.tar.gz gtk-unix-print-2.0.tar.gz

2.編譯elang/opt

git clone -b OTP-22.2 https://github.com/erlang/otp.git

cd opt

./configure --build=mips64el-linux-gnu

make -j8

問題1

Rebar dependency crypto could not be loaded for reason {“no such file or directory”,“crypto.app”}

解決:
opt依賴openssl

sudo yum install openssl-devel

3.編譯emqx

git clone -b v4.0.5 https://github.com/emqx/emqx-rel.git emqx-rel
cd emqx-rel && make emqx-pkg
ls _packages/emqx

問題1

拷貝最終rpm文件失敗

解決:
直接到生成的目錄獲取rpm文件即可

/tmp/emqx/RPMS/mips64el/emqx-neokylin7.0-v4.0-1.mips64el.rpm

3.安裝與運行

sudo rpm -ivh emqx-neokylin7.0-v4.0-1.mips64el.rpm

$ sudo emqx start
EMQ X Broker v4.0.5 is started successfully!

$ emqx_ctl status
Node '[email protected]' is started
emqx master is running

License

License under CC BY-NC-ND 4.0: 署名-非商業使用-禁止演繹


Reference:
NULL

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章