AnyTerm on Ubuntu 14.04

J dreadpiratejeff at gmail.com
Tue Jun 23 13:35:23 UTC 2015


On Tue, Jun 23, 2015 at 5:07 AM Matt . <yamakasi.014 at gmail.com> wrote:

> Hi,
>
> Has anyone been able to compile AnyTerm on Ubuntu 14.04 ?
>
> I'm getting the following error and I see that paths are changed in boost.
>
> -formed in C++11 [-Wnarrowing]
> g++  -W -Wall -O   -I../include -pthread -fPIC -c ../src/markup.cc
> g++  -W -Wall -O   -I../include -pthread -fPIC -c
> ../src/parse_http_request.cc
> In file included from ../src/parse_http_request.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/parse_http_request.cc:22:50: fatal error:
> boost/spirit/actor/insert_at_actor.hpp: No such file or directory
>  #include <boost/spirit/actor/insert_at_actor.hpp>
>                                                   ^
> compilation terminated.
> make[3]: *** [parse_http_request.o] Error 1
> make[3]: Leaving directory `/usr/local/src/anyterm-1.1.29/libpbe/build'
> make[2]: *** [libpbe.a] Error 2
> make[2]: Leaving directory `/usr/local/src/anyterm-1.1.29/libpbe'
> make[1]: *** [../libpbe/libpbe.a] Error 2
> make[1]: Leaving directory `/usr/local/src/anyterm-1.1.29/build'
> make: *** [anytermd] Error 2
>
> I hope someone can help out as AjaxTerm is no option to use.
>
> Thanks,
>
> Matt
>
>
So edit the source files and change the paths...  all the headers are in
/usr/include/boost. (make sure you have libboost-all-dev installed)

$ slocate.db #to update the locate database
$ locate insert_at_actor.hpp  # to find the file's location

find the source files referencing the libraries

grep -r insert_at_actor.hpp /path/to/code

edit the files and modify the #include lines appropriately.

You'll need to do this for several libraries.  Then you'll run into another
failure:
g++  -W -Wall -O   -I../include -pthread -fPIC -c ../src/select.cc
g++  -W -Wall -O   -I../include -pthread -fPIC -c ../src/SmtpClient.cc
../src/SmtpClient.cc: In member function ‘void
SmtpClient::wait_for_reply(int, int)’:
../src/SmtpClient.cc:82:35: error: ‘sscanf’ was not declared in this scope
     int rc = sscanf(buf,"%d",&code);

so you'll need to edit SmtpClient.cc and add an include for cstdio (google
is your friend for errors)

and after that, it seems to build just fine.

Keep in mind, that's all the help I can give you.  I don't really know, or
care to know, what AnyTerm is or does, and I'm not really a C programmer, I
can read it mostly, and know the basics, but I haven't written a low-level
language like that in almost 10 years...  but the above will at least get
it all compiled for you.

Also, one last hint:
#include <boost/spirit.hpp>
#include <boost/spirit/home/classic/actor/insert_at_actor.hpp>
// #include <boost/spirit/actor/insert_at_actor.hpp>
#include <boost/spirit/home/classic/dynamic/if.hpp>
// #include <boost/spirit/dynamic/if.hpp>
#include <boost/spirit/home/classic/utility/loops.hpp>
// #include <boost/spirit/utility/loops.hpp>
#include <boost/spirit/home/classic/iterator/multi_pass.hpp>
// #include <boost/spirit/iterator/multi_pass.hpp>

et voila!

bladernr at klaatu:~/development/act/anyterm/anyterm-1.1.29$ make
make -C build anytermd
make[1]: Entering directory
`/home/bladernr/development/act/anyterm/anyterm-1.1.29/build'
PATH="${PATH}:../scripts" ../scripts/mk_static_content.sh anyterm.html
anyterm.js anyterm.css copy.png paste.png copy.gif paste.gif >
static_content.cc
g++ -MM -MG -MT static_content.d -MT static_content.o  -I../libpbe/include
-pthread -o static_content.d static_content.cc
make[1]: Leaving directory
`/home/bladernr/development/act/anyterm/anyterm-1.1.29/build'
make[1]: Entering directory
`/home/bladernr/development/act/anyterm/anyterm-1.1.29/build'
g++  -I../libpbe/include -pthread -W -Wall -O  -c ../src/Activity.cc
g++  -I../libpbe/include -pthread -W -Wall -O  -c ../src/Anyterm.cc
g++  -I../libpbe/include -pthread -W -Wall -O  -c ../src/AnytermDaemon.cc
g++  -I../libpbe/include -pthread -W -Wall -O  -c ../src/SerialPort.cc
g++  -I../libpbe/include -pthread -W -Wall -O  -c ../src/Session.cc
g++  -I../libpbe/include -pthread -W -Wall -O  -c ../src/SessionId.cc
g++  -I../libpbe/include -pthread -W -Wall -O  -c ../src/SubProcess.cc
g++  -I../libpbe/include -pthread -W -Wall -O  -c ../src/Terminal.cc
g++  -I../libpbe/include -pthread -W -Wall -O  -c
../src/UrlEncodedCgiParams.cc
g++  -I../libpbe/include -pthread -W -Wall -O  -c ../src/auto_CgiParams.cc
g++  -I../libpbe/include -pthread -W -Wall -O  -c ../src/diff.cc
g++  -I../libpbe/include -pthread -W -Wall -O  -c ../src/editscript.cc
g++  -I../libpbe/include -pthread -W -Wall -O  -c ../src/expand_command.cc
g++  -I../libpbe/include -pthread -W -Wall -O  -c ../src/html.cc
g++  -I../libpbe/include -pthread -W -Wall -O  -c ../src/main.cc
g++  -I../libpbe/include -I../src -pthread -W -Wall -O  -c static_content.cc
cp ../browser/anyterm.html . ; ld -r -b binary -o anyterm.html.blob.o
anyterm.html ; rm anyterm.html
cp ../browser/anyterm.js . ; ld -r -b binary -o anyterm.js.blob.o
anyterm.js ; rm anyterm.js
cp ../browser/anyterm.css . ; ld -r -b binary -o anyterm.css.blob.o
anyterm.css ; rm anyterm.css
cp ../browser/copy.png . ; ld -r -b binary -o copy.png.blob.o copy.png ; rm
copy.png
cp ../browser/paste.png . ; ld -r -b binary -o paste.png.blob.o paste.png ;
rm paste.png
cp ../browser/copy.gif . ; ld -r -b binary -o copy.gif.blob.o copy.gif ; rm
copy.gif
cp ../browser/paste.gif . ; ld -r -b binary -o paste.gif.blob.o paste.gif ;
rm paste.gif
cd ../libpbe; make
make[2]: Entering directory
`/home/bladernr/development/act/anyterm/anyterm-1.1.29/libpbe'
cd build; make libpbe.a
make[3]: Entering directory
`/home/bladernr/development/act/anyterm/anyterm-1.1.29/libpbe/build'
make[3]: `libpbe.a' is up to date.
make[3]: Leaving directory
`/home/bladernr/development/act/anyterm/anyterm-1.1.29/libpbe/build'
cp build/libpbe.a libpbe.a
make[2]: Leaving directory
`/home/bladernr/development/act/anyterm/anyterm-1.1.29/libpbe'
g++ -o anytermd Activity.o Anyterm.o AnytermDaemon.o SerialPort.o Session.o
SessionId.o SubProcess.o Terminal.o UrlEncodedCgiParams.o auto_CgiParams.o
diff.o editscript.o expand_command.o html.o main.o static_content.o
anyterm.html.blob.o anyterm.js.blob.o anyterm.css.blob.o copy.png.blob.o
paste.png.blob.o copy.gif.blob.o paste.gif.blob.o -pthread  -lutil
-L../libpbe -lpbe
make[1]: Leaving directory
`/home/bladernr/development/act/anyterm/anyterm-1.1.29/build'
cp build/anytermd anytermd

Cheers
Jeff
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20150623/b13161be/attachment.html>


More information about the ubuntu-users mailing list