{"id":1718,"date":"2015-04-24T20:58:19","date_gmt":"2015-04-24T18:58:19","guid":{"rendered":"https:\/\/adrhc.go.ro\/wordpress\/?p=1718"},"modified":"2017-10-07T17:27:00","modified_gmt":"2017-10-07T15:27:00","slug":"compiling-anyterm-1-1-29","status":"publish","type":"post","link":"https:\/\/adrhc.go.ro\/blog\/compiling-anyterm-1-1-29\/","title":{"rendered":"Compiling anyterm-1.1.29"},"content":{"rendered":"<pre class=\"brush:bash shell\">\r\n#See https:\/\/adrhc.go.ro\/wordpress\/common-commands-when-building\/ for building environment, x.sh script and other things not defined here.\r\n#Before starting do declare the environment variables specified to the link above.\r\n\r\ncd ~\/compile\r\nwget http:\/\/anyterm.org\/download\/anyterm-1.1.29.tbz2\r\ntar jxf anyterm-1.1.29.tbz2\r\ncd anyterm-1.1.29\r\n~\/x.sh ffpg\r\n\r\nNEW_BUILD_NAME=anyterm\r\nNEW_BUILD_VER=1.1.29\r\nNEW_BUILD_NAME_AND_VER=$NEW_BUILD_NAME-$NEW_BUILD_VER\r\nls -l \/tmp\/$NEW_BUILD_NAME-*\r\nls -l ~\/ffp_0.7_armv5\/packages\/$NEW_BUILD_NAME-*\r\nNEW_BUILD_NR=0\r\n\r\nERROR\r\n\texecinfo.h not found\r\nSOLUTION\r\n\tsed -i s\/\"#include &lt;execinfo\"\/\"\\\/\\\/#include &lt;execinfo\"\/ libpbe\/src\/segv_backtrace.cc\r\n\tsed -i s\/\"signal(SIGSEGV,SIG_DFL\"\/\"\\\/*signal(SIGSEGV,SIG_DFL\"\/ libpbe\/src\/segv_backtrace.cc\r\n\tsed -i s\/\"raise(signum);\"\/\"raise(signum);*\\\/\"\/ libpbe\/src\/segv_backtrace.cc\r\n\r\nERROR (UBUNTU too)\r\n\t..\/src\/SmtpClient.cc: In member function 'void SmtpClient::wait_for_reply(int, int)':\r\n\t..\/src\/SmtpClient.cc:82:35: error: 'sscanf' was not declared in this scope\r\n\t\t int rc = sscanf(buf,\"%d\",&code);\r\nSOLUTION\r\n\t#grep -r sscanf \/usr\/include\/\" finds \/usr\/include\/stdio.h\r\n\t#&lt;cstdio> must be included to anyterm-1.1.29\/libpbe\/src\/SmtpClient.cc:\r\n\tsed -i s\/\"using namespace std\"\/\"#include &lt;cstdio>\\nusing namespace std\"\/ libpbe\/src\/SmtpClient.cc\r\n\r\nERROR\r\n\tTerminal.o: In function `Terminal::~Terminal()':\r\n\tTerminal.cc:(.text+0x10): undefined reference to `libiconv_close'\r\n\tTerminal.o: In function `Terminal::write_normal_char(wchar_t)':\r\n\tTerminal.cc:(.text+0x1250): undefined reference to `libiconv'\r\n\tTerminal.o: In function `Terminal::Terminal(int, int, Screen&)':\r\n\tTerminal.cc:(.text+0x1e38): undefined reference to `libiconv_open'\r\nSOLUTION\r\n\tcommon.mk must have iconv added to LINK_FLAGS:\r\n\tsed -i s\/\"lutil\"\/\"lutil -liconv\"\/ common.mk\r\n\r\nERROR on UBUNTU\r\n\tIn file included from ..\/src\/URI.cc:21:0:\r\n\t\/usr\/include\/boost\/spirit.hpp:18:4: warning: #warning \"This header is deprecated. Please use: boost\/spirit\/include\/classic.hpp\" [-Wcpp]\r\n\t #  warning \"This header is deprecated. Please use: boost\/spirit\/include\/classic.hpp\"\r\n\t\t^\r\n\t..\/src\/URI.cc:22:50: fatal error: boost\/spirit\/actor\/insert_at_actor.hpp: No such file or directory\r\n\t #include <boost\/spirit\/actor\/insert_at_actor.hpp>\r\n\t###############################################################\r\n\t# This means that won't find some hpp (as example error above).\r\nSOLUTION\r\n\t# Commented replacement only solves a warning but imply the error: \u2018rule\u2019 does not name a type.\r\n\t#sed -i s\"\/boost\\\/spirit.hpp\"\/\"boost\\\/spirit\\\/include\\\/classic.hpp\"\/ .\/libpbe\/src\/URI.cc\r\n\tsed -i s\"\/actor\\\/insert_at_actor.hpp\"\/\"home\\\/classic\\\/actor\\\/insert_at_actor.hpp\"\/ .\/libpbe\/src\/URI.cc\r\n\tsed -i s\"\/dynamic\\\/if.hpp\"\/\"home\\\/classic\\\/dynamic\\\/if.hpp\"\/ .\/libpbe\/src\/URI.cc\r\n\tsed -i s\"\/utility\\\/loops.hpp\"\/\"home\\\/classic\\\/utility\\\/loops.hpp\"\/ .\/libpbe\/src\/URI.cc\r\n\tsed -i s\"\/iterator\\\/multi_pass.hpp\"\/\"home\\\/classic\\\/iterator\\\/multi_pass.hpp\"\/ .\/libpbe\/src\/URI.cc\r\n\t#sed -i s\"\/boost\\\/spirit.hpp\"\/\"boost\\\/spirit\\\/include\\\/classic.hpp\"\/ .\/libpbe\/src\/parse_http_request.cc\r\n\tsed -i s\"\/actor\\\/insert_at_actor.hpp\"\/\"home\\\/classic\\\/actor\\\/insert_at_actor.hpp\"\/ .\/libpbe\/src\/parse_http_request.cc\r\n\tsed -i s\"\/dynamic\\\/if.hpp\"\/\"home\\\/classic\\\/dynamic\\\/if.hpp\"\/ .\/libpbe\/src\/parse_http_request.cc\r\n\tsed -i s\"\/utility\\\/loops.hpp\"\/\"home\\\/classic\\\/utility\\\/loops.hpp\"\/ .\/libpbe\/src\/parse_http_request.cc\r\n\tsed -i s\"\/iterator\\\/multi_pass.hpp\"\/\"home\\\/classic\\\/iterator\\\/multi_pass.hpp\"\/ .\/libpbe\/src\/parse_http_request.cc\r\n\r\n# On Ubuntu requires:\r\nsudo apt-get install libboost-all-dev\r\n\r\n#Modify cols & rows count in anyterm-1.1.29\/src\/Anyterm.cc\r\nsed -i s\/\"int rows=25, int cols=80\"\/\"int rows=500, int cols=155\"\/ src\/Anyterm.cc\r\nsed -i s\/\"rows\\\",25\"\/\"rows\\\",500\"\/ src\/Anyterm.cc\r\nsed -i s\/\"cols\\\",80\"\/\"cols\\\",155\"\/ src\/Anyterm.cc\r\nsed -i s\/\"pty_rows=25, int pty_cols=80\"\/\"pty_rows=500, int pty_cols=155\"\/ src\/SubProcess.hh\r\nsed -i s\/\",25,80,\"\/\",500,155,\"\/ browser\/anyterm.html\r\n\r\n# make using multiple cores: make -j 4\r\nmake -j 4\r\ncp anytermd \/ffp\/bin\r\ncp anytermd ~\/ffp_0.7_armv5\/packages\/anytermd-500x155\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>#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 [&hellip;]<\/p>\n<div class=\"link-more\"><a href=\"https:\/\/adrhc.go.ro\/blog\/compiling-anyterm-1-1-29\/#more-1718\" class=\"more-link\">Continue reading &#10142; <span class=\"screen-reader-text\">Compiling anyterm-1.1.29<\/span><\/a><\/div>","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,11,163],"tags":[126],"class_list":["post-1718","post","type-post","status-publish","format-standard","hentry","category-compiling-from-source","category-linux","category-nsa310","tag-anyterm"],"_links":{"self":[{"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/posts\/1718","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/comments?post=1718"}],"version-history":[{"count":0,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/posts\/1718\/revisions"}],"wp:attachment":[{"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/media?parent=1718"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/categories?post=1718"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/tags?post=1718"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}