Compiler error at companion from next at github

Help with any software/desktop related issues. e.g. companion9x, eePe, etc
Post Reply
Helle
Posts: 577
Joined: Sat Jul 21, 2012 7:08 am
Country: -

Compiler error at companion from next at github

Post by Helle »

Hy kilrah , bertrant

ubuntu 12.04 32bit all well running
all paket installed for companion and opentx

downloading your latest next from github today
---------------------------------------
compiling of opentx runs well, no error, with different make files
opentx at simu and Taransi is ok,fine
----------------------------------------

But Companion compiling:
lbuild and cmake is all ok
make clean
make

at the end allways the same 2 errors at terminal
.
.
.
.
[ 9%] Built target simulation
[ 35%] Built target modeledit
[ 35%] Building CXX object CMakeFiles/companion.dir/firmwares/opentx/opentxTaranisSimulator.cpp.o
In file included from /home/helle/github_opentx/opentx-next/companion/src/firmwares/opentx/opentxTaranisSimulator.cpp:87:0:
/home/helle/github_opentx/opentx-next/companion/src/../../radio/src/gui/menu_model.cpp: In Funktion »void Open9xX9D::menuModelLimits(uint8_t)«:
/home/helle/github_opentx/opentx-next/companion/src/../../radio/src/gui/menu_model.cpp:3977:45: Anmerkung: #pragma message: could be less restrictive!
In file included from /home/helle/github_opentx/opentx-next/companion/src/firmwares/opentx/opentxTaranisSimulator.cpp:105:0:
/home/helle/github_opentx/opentx-next/companion/src/../../radio/src/templates.cpp: In Funktion »void Open9xX9D::applyTemplate(uint8_t)«:
/home/helle/github_opentx/opentx-next/companion/src/../../radio/src/templates.cpp:187:87: Anmerkung: #pragma message: Templates with virtual inputs (FrSky Taranis) are not implemented!
In file included from /home/helle/github_opentx/opentx-next/companion/src/firmwares/opentx/opentxTaranisSimulator.cpp:121:0:
/home/helle/github_opentx/opentx-next/companion/src/../../radio/src/lua.cpp: In Funktion »int Open9xX9D::luaGetVersion(Open9xX9D::lua_State*)«:
/home/helle/github_opentx/opentx-next/companion/src/../../radio/src/lua.cpp:82:21: Fehler: »VERS_NUM« wurde in diesem Gültigkeitsbereich nicht definiert
make[2]: *** [CMakeFiles/companion.dir/firmwares/opentx/opentxTaranisSimulator.cpp.o] Fehler 1
make[1]: *** [CMakeFiles/companion.dir/all] Fehler 2
make: *** [all] Fehler 2
helle@helle-Latitude-E5500:~/github_opentx/opentx-next/companion/lbuild$

no Idea why

Helle
Last edited by Helle on Sun Feb 23, 2014 9:55 am, edited 1 time in total.

User avatar
dvogonen
Posts: 453
Joined: Tue Jan 31, 2012 9:38 pm
Country: Sweden
Location: Stockholm

Re: Compiler error at companion from next at github

Post by dvogonen »

I get the same error when I compile on Windows. I do not get the problem when I compile on Linux.
I asked Bertrand about it two days ago, but I think the question got lost among other problems we were fighting.

It is easy to get around by inserting:

#define VERS_NUM 1

in the file lua.cpp. But naturally it would be best with a real solution.
User avatar
dvogonen
Posts: 453
Joined: Tue Jan 31, 2012 9:38 pm
Country: Sweden
Location: Stockholm

Re: Compiler error at companion from next at github

Post by dvogonen »

Just found this explanation from Kilrah I missed. See the last message for the explanation of the VERS_NUM issue:

https://github.com/opentx/opentx/issues/698
Helle
Posts: 577
Joined: Sat Jul 21, 2012 7:08 am
Country: -

Re: Compiler error at companion from next at github

Post by Helle »

hy,
thanks

solutioin was at file radio\src\lua.cpp

set at top of file lua.cpp this define
#define VERS_NUM 1

and all is compiling with no errors

why this not standard?

Helle
User avatar
Kilrah
Posts: 11109
Joined: Sat Feb 18, 2012 6:56 pm
Country: Switzerland

Re: Compiler error at companion from next at github

Post by Kilrah »

Read the post dvogonen linked you to :)

Sent via mobile

User avatar
MicheleVilla
Posts: 66
Joined: Thu Apr 10, 2014 4:13 pm
Country: -

Re: Compiler error at companion from next at github

Post by MicheleVilla »

Hi
I'm on Lubuntu 13.04 and try to compile Companion from Git without success
Istructions are from wiki on opentx site on github
Compiler give the following error

[ 63%] Building CXX object CMakeFiles/companion.dir/firmwares/opentx/opentxTaranisSimulator.cpp.o
In file included from /home/michele/opentx/companion/src/firmwares/opentx/opentxTaranisSimulator.cpp:88:0:
/home/michele/opentx/companion/src/../../radio/src/gui/menu_general.cpp:40:33: fatal error: ../bitmaps/sticks.lbm: File o directory non esistente
compilation terminated.
make[2]: *** [CMakeFiles/companion.dir/firmwares/opentx/opentxTaranisSimulator.cpp.o] Errore 1
make[1]: *** [CMakeFiles/companion.dir/all] Errore 2
make: *** [all] Errore 2


file lbm are missing

What do you suggest?
User avatar
Kilrah
Posts: 11109
Joined: Sat Feb 18, 2012 6:56 pm
Country: Switzerland

Re: Compiler error at companion from next at github

Post by Kilrah »

See the firmware build guide and install python and PyQT. As the firmware and companion have been merged some operations are now shared.
User avatar
MicheleVilla
Posts: 66
Joined: Thu Apr 10, 2014 4:13 pm
Country: -

Re: Compiler error at companion from next at github

Post by MicheleVilla »

Ok now are all ok after pythonQT pakage installation
I think a wiki upgrade is needed
Thank you for precious support
User avatar
dvogonen
Posts: 453
Joined: Tue Jan 31, 2012 9:38 pm
Country: Sweden
Location: Stockholm

Re: Sv: Compiler error at companion from next at github

Post by dvogonen »

These are the first lines of text at the top of the wiki page with Linux build instructions for Companion :

"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 last sentence is in bold type face.

I do not know how to modify the wiki page to more clearly say that you need to install the OpenTX build tools before you install the Companion build tools.
User avatar
MicheleVilla
Posts: 66
Joined: Thu Apr 10, 2014 4:13 pm
Country: -

Re: Compiler error at companion from next at github

Post by MicheleVilla »

I'm an absolute beginner in Linux OS
forgive Me I dont' understand someting or I say wrong things
I'm on Lubuntu 13.04
I think simply indicate the pyqt4-dev-tools is needed

Thank you

Post Reply

Return to “Software”