#See https://adrhc.go.ro/wordpress/common-commands-when-building/ for building environment, x.sh script and other things not defined here. #Before starting do declare the environment variables specified to the link above. cd ~/compile wget http://anyterm.org/download/anyterm-1.1.29.tbz2 tar jxf anyterm-1.1.29.tbz2 cd anyterm-1.1.29 ~/x.sh ffpg NEW_BUILD_NAME=anyterm NEW_BUILD_VER=1.1.29 NEW_BUILD_NAME_AND_VER=$NEW_BUILD_NAME-$NEW_BUILD_VER ls -l /tmp/$NEW_BUILD_NAME-* ls -l ~/ffp_0.7_armv5/packages/$NEW_BUILD_NAME-* NEW_BUILD_NR=0 ERROR execinfo.h not found SOLUTION sed -i s/"#includemust be included to anyterm-1.1.29/libpbe/src/SmtpClient.cc: sed -i s/"using namespace std"/"#include \nusing namespace std"/ libpbe/src/SmtpClient.cc ERROR Terminal.o: In function `Terminal::~Terminal()': Terminal.cc:(.text+0x10): undefined reference to `libiconv_close' Terminal.o: In function `Terminal::write_normal_char(wchar_t)': Terminal.cc:(.text+0x1250): undefined reference to `libiconv' Terminal.o: In function `Terminal::Terminal(int, int, Screen&)': Terminal.cc:(.text+0x1e38): undefined reference to `libiconv_open' SOLUTION common.mk must have iconv added to LINK_FLAGS: sed -i s/"lutil"/"lutil -liconv"/ common.mk ERROR on UBUNTU In file included from ../src/URI.cc:21:0: /usr/include/boost/spirit.hpp:18:4: warning: #warning "This header is deprecated. Please use: boost/spirit/include/classic.hpp" [-Wcpp] # warning "This header is deprecated. Please use: boost/spirit/include/classic.hpp" ^ ../src/URI.cc:22:50: fatal error: boost/spirit/actor/insert_at_actor.hpp: No such file or directory #include ############################################################### # This means that won't find some hpp (as example error above). SOLUTION # Commented replacement only solves a warning but imply the error: ‘rule’ does not name a type. #sed -i s"/boost\/spirit.hpp"/"boost\/spirit\/include\/classic.hpp"/ ./libpbe/src/URI.cc sed -i s"/actor\/insert_at_actor.hpp"/"home\/classic\/actor\/insert_at_actor.hpp"/ ./libpbe/src/URI.cc sed -i s"/dynamic\/if.hpp"/"home\/classic\/dynamic\/if.hpp"/ ./libpbe/src/URI.cc sed -i s"/utility\/loops.hpp"/"home\/classic\/utility\/loops.hpp"/ ./libpbe/src/URI.cc sed -i s"/iterator\/multi_pass.hpp"/"home\/classic\/iterator\/multi_pass.hpp"/ ./libpbe/src/URI.cc #sed -i s"/boost\/spirit.hpp"/"boost\/spirit\/include\/classic.hpp"/ ./libpbe/src/parse_http_request.cc sed -i s"/actor\/insert_at_actor.hpp"/"home\/classic\/actor\/insert_at_actor.hpp"/ ./libpbe/src/parse_http_request.cc sed -i s"/dynamic\/if.hpp"/"home\/classic\/dynamic\/if.hpp"/ ./libpbe/src/parse_http_request.cc sed -i s"/utility\/loops.hpp"/"home\/classic\/utility\/loops.hpp"/ ./libpbe/src/parse_http_request.cc sed -i s"/iterator\/multi_pass.hpp"/"home\/classic\/iterator\/multi_pass.hpp"/ ./libpbe/src/parse_http_request.cc # On Ubuntu requires: sudo apt-get install libboost-all-dev #Modify cols & rows count in anyterm-1.1.29/src/Anyterm.cc sed -i s/"int rows=25, int cols=80"/"int rows=500, int cols=155"/ src/Anyterm.cc sed -i s/"rows\",25"/"rows\",500"/ src/Anyterm.cc sed -i s/"cols\",80"/"cols\",155"/ src/Anyterm.cc sed -i s/"pty_rows=25, int pty_cols=80"/"pty_rows=500, int pty_cols=155"/ src/SubProcess.hh sed -i s/",25,80,"/",500,155,"/ browser/anyterm.html # make using multiple cores: make -j 4 make -j 4 cp anytermd /ffp/bin cp anytermd ~/ffp_0.7_armv5/packages/anytermd-500x155