← Back to team overview

ubuntu-phone team mailing list archive

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

 

Hello,
I've downloaded you're archive and I would suggest you to check if you 
have the file linux-g++ in your hierarchy. Also try to verify the toolchain 
settings to see i you're using the right one (armhf).


> El d�a Friday, August 07, 2015 a las 02:23:52PM +0200, David Planella 
escribi�:
> > Hi Matthias,
> > 
> > The C++ plugin tutorial should get you started:
> > 
> > https://developer.ubuntu.com/en/apps/qml/tutorials/add-cpp-backend-your-qm
> > l-app/
> > 
> > You can check out the links at the beginning of the tutorial on how to 
set
> > up Qt Creator for cross-compilation via a phone (armhf) kit.
> > 
> > Let us know how it goes.
> 
> Hi David,
> 
> I used the SDK and created a simple C project; this created three files
> below ~/telegram-cli:
> 
> ls -l telegram-cli
> total 28
> -rw-rw-r-- 1 guru guru    83 Aug  7 18:31 main.c
> -rw-rw-r-- 1 guru guru    87 Aug  7 18:29 telegram-cli.pro
> -rw-rw-r-- 1 guru guru 20078 Aug  7 18:29 telegram-cli.pro.user
> 
> the main.c is just a hello-world-main.c; I have all the three files here
> if you want to check: http://www.unixarea.de/telegram-cli.tar
> 
> When I press in the SDK the "Build Project telegram-cli" button (lower
> left corner with the hammer symbol) it says in the log window:
> 
> 18:44:04: Running steps for project telegram-cli...
> 18:44:04: Starting:
> "/home/guru/.config/ubuntu-sdk/ubuntu-sdk-14.10-armhf/qt5-qmake-arm-
linux-g
> nueabihf" /home/guru/telegram-cli/telegram-cli.pro -r -spec linux-g++
> CONFIG+=debug 18:44:04: The process
> "/home/guru/.config/ubuntu-sdk/ubuntu-sdk-14.10-armhf/qt5-qmake-arm-
linux-g
> nueabihf" exited with code 1. Error while building/deploying project
> telegram-cli (kit: UbuntuSDK for armhf (GCC ubuntu-sdk-14.10-utopic))
> When executing step 'qmake'
> 18:44:04: Elapsed time: 00:00.
> 
> What have I done wrong or missed?
> 
> Later, with the real software I just want to run something like:
> 
> $ git ...
> $ cd telegram-cli
> $ ./configure ...
> $ gmake
> 
> This is what I'm used to use to build software.
> 
> Thanks for a helping hand.
> 
> 	matthias


Follow ups

References