The opentx-companion 2.1.x version is split off into opentx-companion21
The opentx-companion 2.2.x version is split off into opentx-companion22
This version will should follow current release.
Git Clone URL: | https://aur.archlinux.org/opentx-companion.git (read-only, click to copy) |
---|---|
Package Base: | opentx-companion |
Description: | EEPROM Editor for OpenTX RC transmitter firmwares |
Upstream URL: | http://www.open-tx.org/ |
Licenses: | GPL |
Conflicts: | companion, companion9x-svn |
Provides: | companion |
Submitter: | japernilater |
Maintainer: | lod |
Last Packager: | ysblokje |
Votes: | 23 |
Popularity: | 0.000000 |
First Submitted: | 2014-06-09 02:01 (UTC) |
Last Updated: | 2022-05-13 08:07 (UTC) |
The opentx-companion 2.1.x version is split off into opentx-companion21
The opentx-companion 2.2.x version is split off into opentx-companion22
This version will should follow current release.
Please add "dfu-util" as dependency
I did a little lunchbreak patching to the sourcecode a little to make it at least compile. BUT consider this a BIG FAT warning. But here's 2.2.4
Correct me if I'm wrong but I think the solution is to make the structs packed(1)?
Hmm, I get a different error:
/home/stratos/.cache/yay/opentx-companion/src/opentx-2.2.3/radio/src/gui/480x272/model_gvars.cpp: In function 'void editGVarValue(coord_t, coord_t, event_t, uint8_t, uint8_t, LcdFlags)':
/home/stratos/.cache/yay/opentx-companion/src/opentx-2.2.3/radio/src/gui/480x272/model_gvars.cpp:26:30: error: cannot bind packed field 'fm->FlightModeData::gvars[((int)gvar)]' to 'gvar_t&' {aka 'short int&'}
26 | gvar_t & v = fm->gvars[gvar];
| ~~~~~~~~~~~~~~^
In file included from /home/stratos/.cache/yay/opentx-companion/src/opentx-2.2.3/radio/src/gui/480x272/layout.h:25,
from /home/stratos/.cache/yay/opentx-companion/src/opentx-2.2.3/radio/src/datastructs.h:778,
from /home/stratos/.cache/yay/opentx-companion/src/opentx-2.2.3/radio/src/myeeprom.h:24,
from /home/stratos/.cache/yay/opentx-companion/src/opentx-2.2.3/radio/src/opentx.h:305,
from /home/stratos/.cache/yay/opentx-companion/src/opentx-2.2.3/radio/src/gui/480x272/model_gvars.cpp:21:
/home/stratos/.cache/yay/opentx-companion/src/opentx-2.2.3/radio/src/gui/480x272/widgets_container.h: In instantiation of 'void WidgetsContainer<N, O>::load() [with int N = 4; int O = 1]':
/home/stratos/.cache/yay/opentx-companion/src/opentx-2.2.3/radio/src/gui/480x272/widgets_container.h:100:18: required from here
/home/stratos/.cache/yay/opentx-companion/src/opentx-2.2.3/radio/src/gui/480x272/widgets_container.h:109:64: warning: argument to 'sizeof' in 'char* strncpy(char*, const char*, size_t)' call is the same expression as the source; did you mean to use the size of the destination? [-Wsizeof-pointer-memaccess]
109 | strncpy(name, persistentData->zones[i].widgetName, sizeof(persistentData->zones[i].widgetName));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/stratos/.cache/yay/opentx-companion/src/opentx-2.2.3/radio/src/gui/480x272/widgets_container.h: In instantiation of 'void WidgetsContainer<N, O>::load() [with int N = 10; int O = 10]':
/home/stratos/.cache/yay/opentx-companion/src/opentx-2.2.3/radio/src/gui/480x272/widgets_container.h:100:18: required from here
/home/stratos/.cache/yay/opentx-companion/src/opentx-2.2.3/radio/src/gui/480x272/widgets_container.h:109:64: warning: argument to 'sizeof' in 'char* strncpy(char*, const char*, size_t)' call is the same expression as the source; did you mean to use the size of the destination? [-Wsizeof-pointer-memaccess]
make[2]: *** [radio/src/CMakeFiles/firmware.dir/build.make:1935: radio/src/CMakeFiles/firmware.dir/gui/480x272/model_gvars.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:150: radio/src/CMakeFiles/firmware.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 67%] Linking CXX static library libsimulation.a
[ 67%] Built target simulation
make: *** [Makefile:152: all] Error 2
==> ERROR: A failure occurred in package().
Buggy, just keeps looping:
Scanning dependencies of target libsimulator [100%] Built target libsimulator + cmake -DCMAKE_INSTALL_PREFIX=/usr -DGVARS=YES -DHELI=YES -DLUA=YES -DMULTIMODULE=YES -DTELEMETRY=FRSKY -DPPM_LIMITS_SYMETRICAL=YES -DVARIO=YES -DGAUGES=YES -DAUTOSWITCH=YES -DAUTOSOURCE=YES -DAUDIO=YES -DGPS=YES -DPPM_CENTER_ADJUSTABLE=YES -DFLIGHT_MODES=YES -DOVERRIDE_CHANNEL_FUNCTION=YES -DFRSKY_STICKS=YES -DPCB=9X /var/tmp/pamac-build-bluecheese/opentx-companion/src/opentx-2.2.3 CMake Deprecation Warning at CMakeLists.txt:14 (cmake_policy): The OLD behavior for policy CMP0023 will be removed from a future version of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all policies are deprecated and that a policy should be set to OLD only under specific short-term circumstances. Projects should be ported to the NEW behavior and not rely on setting a policy to OLD.
-- Git repository not found, revision number not available. -- OpenTX 2.2.3 @0 -- Python found, version: 3.7.3 -- Qt Version: 5.12.3 -- Foxlib found at /usr/lib/libFOX-1.6.so -- SDL Lib: /usr/lib/libSDL.so;-lpthread; Headers: /usr/include/SDL; Version: 1.2.15 TARGET simu/libsimulator: cpp compiler /usr/bin/c++ v8.3.0 CMake Warning (dev) at radio/src/tests/CMakeLists.txt:1 (set): implicitly converting 'string' to 'STRING' type. This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning at radio/src/tests/CMakeLists.txt:45 (message): WARNING: gtests target will not be available (check that GTEST_INCDIR, GTEST_SRCDIR, and Qt5Widgets are configured).
TARGET firmware: cpp compiler avr-gcc v9.1.0 -- Simulators library search path: /usr/lib/companion22 TARGET companion22: cpp compiler /usr/bin/c++ v8.3.0 CMake Deprecation Warning at companion/src/CMakeLists.txt:332 (cmake_policy): The OLD behavior for policy CMP0026 will be removed from a future version of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all policies are deprecated and that a policy should be set to OLD only under specific short-term circumstances. Projects should be ported to the NEW behavior and not rely on setting a policy to OLD.
-- install /var/tmp/pamac-build-bluecheese/opentx-companion/src/build to /usr/bin -- Configuring done -- Generating done -- Build files have been written to: /var/tmp/pamac-build-bluecheese/opentx-companion/src/build + make -j2 libsimulator
That error should probably be reported upstream. Not sure why gcc accepted it before and only recently started to disallow it.
I also get the same error as @Tahvok
I cannot build it:
/home/albert/builds/opentx-companion/src/opentx-2.2.3/companion/src/firmwares/opentx/opentxeeprom.cpp:3646:68: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] internalField.Append(new SignedField<2>(this, (int &)generalData.hapticMode)); ~~~~~~~~~~~~^~~~~~~~~~ [ 70%] Linking CXX static library libfirmwares.a [ 70%] Built target firmwares make: *** [Makefile:152: all] Error 2 ==> ERROR: A failure occurred in package(). Aborting...
Any suggestions on what to check?
@netmonk, when it releases I will.
Pinned Comments
ysblokje commented on 2019-09-29 19:57 (UTC) (edited on 2019-09-29 19:58 (UTC) by ysblokje)
The opentx-companion 2.1.x version is split off into opentx-companion21
The opentx-companion 2.2.x version is split off into opentx-companion22
This version will should follow current release.