← Back to team overview

ubuntu-phone team mailing list archive

Re: compiling C/C++ applications for the BQ E4.5 (vivid)

 

El día Saturday, August 08, 2015 a las 11:24:42AM +0200, Hans Mayer escribió:

> Hi Matthias,
> 
> You said that you work on a 14.04.1 ubuntu laptop.

Hi Hans,

Yes, I defintely said so.

> May be you must work on a 15.04 ubuntu OS?

You say "may be", is this the only way to run this SDK? If so, I have to
look how to do so, maybe in a VM on the 14.04.1.

Meanwhile, I am able to compile something on the BQ itself:

$ sudo chroot myRoot
# apt-get update
# apt-get install gcc libc6-dev
# su phablet
$ cat hello.c
#include <stdio.h>

main() {

  printf("hello world\n");

}

$ gcc hello.c 
$ ./a.out
hello world

The next question would be to install enough infraestructura to compile
telegram-cli, which says:

...
Clone GitHub Repository

     git clone --recursive https://github.com/vysheng/tg.git && cd tg

#### Linux and BSDs

Install libs: readline, openssl and (if you want to use config) libconfig, liblua and libjansson.
If you do not want to use them pass options --disable-libconfig,
--disable-liblua and --disable-json respectively.

On Ubuntu/Debian use:

     sudo apt-get install libreadline-dev libconfig-dev libssl-dev
lua5.2 liblua5.2-dev libevent-dev libjansson-dev make


Thanks

	matthias
-- 
Matthias Apitz, ✉ guru@xxxxxxxxxxx, http://www.unixarea.de/  ☎ +49-176-38902045
No! Nein! ¡No! Όχι! -- Ευχαριστούμε!


References