Introduction
I tried to build qTox Enhanced but make failed at coreav, saying that ‘TOXAV_CALL_COMM_INFO’ has not been declared
.
OS: Debian GNU/Linux trixie/sid, Linux 6.5.0-4-amd64
qTox version: zoxcore/push_notification, tag: v1.17.6.026, tag: nightly
Commit hash: 939fd3c
toxcore: 0.2.18 (commit 7cfe35dff2209f09ca4a08433a7f16b09e8683f3)
Qt: 5.15.10 & 6.4.2
Reproducible: Always
Build Process
sudo apt install asciidoc automake autotools-dev build-essential check checkinstall cmake cmake-extras cmake-qt-gui cmake-vala ffmpeg git libalut-dev libavcodec-dev libavdevice-dev libavformat-dev libavutil-dev libconfig-dev libcurl4-openssl-dev libexif-dev libgdk-pixbuf2.0-dev libgtk2.0-dev libkf5sonnet-dev libncurses-dev libnotify-dev libopenal-dev libopenal-dev libopenal1 libopus-dev libqrencode-dev libqrencode-dev libqt5concurrent5 libqt5core5a libqt5gui5 libqt5network5 libqt5networkauth5 libqt5networkauth5-dev libqt5opengl5 libqt5opengl5-dev libqt5svg5 libqt5svg5-dev libqt5widgets5 libqt5xml5 libqt5xmlpatterns5 libqt5xmlpatterns5-dev libqt6concurrent6 libqt6core5compat6 libqt6core6 libqt6gui6 libqt6network6 libqt6networkauth6 libqt6opengl6 libqt6openglwidgets6 libqt6svg6 libqt6svgwidgets6 libqt6widgets6 libqt6xml6 libsodium-dev libsqlcipher-dev libsqlcipher-dev libssl-dev libswscale-dev libtool libvpx-dev libx11-dev libxss-dev manpages-dev pkg-config python3-dev qml-module-org-kde-sonnet qttools5-dev qttools5-dev-tools sonnet-plugins zlib1g-dev
mkdir ~/Builds && cd ~/Builds
git clone --recurse-submodules --depth=1 https://github.com/toktok/c-toxcore
cd c-toxcore/
mkdir build && cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local -DBOOTSTRAP_DAEMON=OFF -DCMAKE_BUILD_TYPE=Release
make -j$(nproc)
sudo make install
sudo ldconfig
mkdir ~/Builds && cd ~/Builds
git clone --depth=1 https://github.com/toxext/toxext
cd toxext
mkdir build && cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local
make -j$(nproc)
sudo make install
sudo ldconfig
mkdir ~/Builds && cd ~/Builds
git clone --depth=1 https://github.com/toxext/tox_extension_messages
cd tox_extension_messages
mkdir build && cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local
make -j$(nproc)
sudo make install
sudo ldconfig
mkdir ~/Builds && cd ~/Builds
git clone --depth=1 https://github.com/Zoxcore/qTox_enhanced
cd qTox_enhanced/
mkdir build && cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local
make -j$(nproc)
sudo make install
ERROR at when building qTox Enhanced with make
[ 39%] Building CXX object CMakeFiles/qtox_static.dir/src/nexus.cpp.o
In file included from /home/tomasz/Builds/qTox_enhanced/src/nexus.cpp:24:
/home/tomasz/Builds/qTox_enhanced/src/core/coreav.h:144:70: error: ‘TOXAV_CALL_COMM_INFO’ has not been declared
144 | static void videoCommCallback(ToxAV *av, uint32_t friend_number, TOXAV_CALL_COMM_INFO comm_value,
| ^~~~~~~~~~~~~~~~~~~~
In file included from /home/tomasz/Builds/qTox_enhanced/build/qtox_static_autogen/PRMOGMWJPH/moc_coreav.cpp:10,
from /home/tomasz/Builds/qTox_enhanced/build/qtox_static_autogen/mocs_compilation.cpp:14:
/home/tomasz/Builds/qTox_enhanced/build/qtox_static_autogen/PRMOGMWJPH/../../../src/core/coreav.h:144:70: error: ‘TOXAV_CALL_COMM_INFO’ has not been declared
144 | static void videoCommCallback(ToxAV *av, uint32_t friend_number, TOXAV_CALL_COMM_INFO comm_value,
| ^~~~~~~~~~~~~~~~~~~~
make[2]: *** [CMakeFiles/qtox_static.dir/build.make:206: CMakeFiles/qtox_static.dir/src/nexus.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [CMakeFiles/qtox_static.dir/build.make:136: CMakeFiles/qtox_static.dir/qtox_static_autogen/mocs_compilation.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:342: CMakeFiles/qtox_static.dir/all] Error 2
make: *** [Makefile:146: all] Error 2
Additional Info
I search for this part in the codebase and it's not from upstream, it was intruduced in a commit name "Video: super HQ video" in Oct 26, 2022.
For information, I built the Toxic client just before and it worked fine with the same libraries.