Can't make on Linux

A fork of eePe. It's aim is to provide one tool that works with ALL firmwares!
Post Reply
sgofferj
Posts: 251
Joined: Tue Oct 09, 2012 5:11 pm
Country: -

Can't make on Linux

Post by sgofferj »

Hi,

first time trying to compile c9x from the now Github repo and linking fails...:

Code: Select all

[ 91%] Building CXX object CMakeFiles/companion.dir/moc_helpers.cxx.o
[ 92%] Building CXX object CMakeFiles/companion.dir/moc_wizarddialog.cxx.o
[ 92%] Building CXX object CMakeFiles/companion.dir/qrc_companion.cxx.o
[ 93%] Building CXX object CMakeFiles/companion.dir/qrc_translations.cxx.o
Linking CXX executable companion
[ 93%] Built target companion
make[2]: Circular firmwares/th9x/th9xsimulator.cpp <- firmwares/th9x/th9xsimulator.cpp dependency dropped.
make[2]: Circular firmwares/er9x/er9xsimulator.cpp <- firmwares/er9x/er9xsimulator.cpp dependency dropped.
make[2]: Circular firmwares/ersky9x/ersky9xsimulator.cpp <- firmwares/ersky9x/ersky9xsimulator.cpp dependency dropped.
Scanning dependencies of target simulator
make[2]: Circular firmwares/th9x/th9xsimulator.cpp <- firmwares/th9x/th9xsimulator.cpp dependency dropped.
[ 93%] Building CXX object CMakeFiles/simulator.dir/firmwares/th9x/th9xsimulator.cpp.o
/usr/src/opentx/companion/src/firmwares/th9x/th9xsimulator.cpp:37:20: fatal error: th9x.cpp: No such file or directory
compilation terminated.
make[2]: *** [CMakeFiles/simulator.dir/firmwares/th9x/th9xsimulator.cpp.o] Error 1
make[1]: *** [CMakeFiles/simulator.dir/all] Error 2
make: *** [all] Error 2
I should note that right in the beginning I get some error about a missing AVR-GCC which I don't have installed but why would c9x want that anyway?

sgofferj
Posts: 251
Joined: Tue Oct 09, 2012 5:11 pm
Country: -

Re: Can't make on Linux

Post by sgofferj »

The version from Google Code is 1.27 r1898 and that complains that there's a new version and it can't find firmware updates.
jtaylor
Posts: 170
Joined: Fri Nov 01, 2013 1:31 am
Country: -
Location: Wexford (Pittsburgh), PA

Re: Can't make on Linux

Post by jtaylor »

Did you follow the Companion Linux build instructions from https://github.com/opentx/opentx/wiki/C ... structions ? Right at the top it says:

Please note that there are build dependencies from OpenTX Companion to the OpenTX firmware.
This means that the complete OpenTX code base, not just the Companion part, must be available.
It also means that you have to install the OpenTX firmware build chain before you continue.

The instructions for the OpenTx (including the build chain requirements which include avr-gcc) are at https://github.com/opentx/opentx/wiki/O ... structions

It need
sgofferj
Posts: 251
Joined: Tue Oct 09, 2012 5:11 pm
Country: -

Re: Can't make on Linux

Post by sgofferj »

I'll try to pick everything together. But interesting enough, it does produce a working c9x2 binary, so whatever fails seems to be something else.
User avatar
Kilrah
Posts: 11109
Joined: Sat Feb 18, 2012 6:56 pm
Country: Switzerland

Re: Can't make on Linux

Post by Kilrah »

Seems it's the standalone simulator that fails. This one needs to fetch copies of er9x and gruvin9x which are on svn repos, so it might be that you don't have subversion installed.

barjunk
Posts: 42
Joined: Thu Jun 19, 2014 2:51 am
Country: -

Re: Can't make on Linux

Post by barjunk »

I'm having the same problem.

svn, version 1.6.17 (r1128011)
compiled Jun 26 2013, 20:44:02

Oher thoughts or things to try?

This is on Master branch.
User avatar
dinamich
Posts: 288
Joined: Mon Apr 01, 2013 1:21 pm
Country: Slovenia
Location: Ljubljana

Re: Can't make on Linux

Post by dinamich »

Show us the output of make.
projectkk2glider@github
barjunk
Posts: 42
Joined: Thu Jun 19, 2014 2:51 am
Country: -

Re: Can't make on Linux

Post by barjunk »

I deleted the project and re cloned the repository....it built fine.

The only thing I can think of that I did different this time was not build OpenTx first.

Don't think that should matter...
barjunk
Posts: 42
Joined: Thu Jun 19, 2014 2:51 am
Country: -

Re: Can't make on Linux

Post by barjunk »

sgofferj did you get yours working?

Post Reply

Return to “companion9x”