Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compilation error about including backward #25

Open
krystian-wojtas opened this issue Aug 14, 2022 · 1 comment
Open

compilation error about including backward #25

krystian-wojtas opened this issue Aug 14, 2022 · 1 comment

Comments

@krystian-wojtas
Copy link

After applying fix #23 I've got another compilatrion error

Compiled on Ubuntu 22.04 and also Raspbian 11 bullseye

vagrant@ubuntu2204:~/project/AACS/build6$ make
[  1%] Building CXX object external/backward-cpp/CMakeFiles/backward_object.dir/backward.cpp.o
[  1%] Built target backward_object
[  2%] Building CXX object external/backward-cpp/CMakeFiles/backward.dir/backward.cpp.o
[  2%] Linking CXX static library libbackward.a
[  2%] Built target backward
[  2%] Generating dhparam.pem
[  2%] Built target dhparam
[  3%] Running cpp protocol buffer compiler on ../proto/VideoResolution.proto
[  4%] Running cpp protocol buffer compiler on ../proto/AudioConfig.proto
[  5%] Running cpp protocol buffer compiler on ../proto/AudioType.proto
[  5%] Running cpp protocol buffer compiler on ../proto/BluetoothChannel.proto
[  5%] Running cpp protocol buffer compiler on ../proto/ButtonsEvent.proto
[  6%] Running cpp protocol buffer compiler on ../proto/Channel.proto
[  6%] Running cpp protocol buffer compiler on ../proto/ChannelOpenRequest.proto
[  7%] Running cpp protocol buffer compiler on ../proto/InputChannel.proto
[  7%] Running cpp protocol buffer compiler on ../proto/InputEvent.proto
[  8%] Running cpp protocol buffer compiler on ../proto/MediaChannel.proto
[  8%] Running cpp protocol buffer compiler on ../proto/MediaChannelSetupResponse.proto
[  9%] Running cpp protocol buffer compiler on ../proto/MediaInputChannel.proto
[  9%] Running cpp protocol buffer compiler on ../proto/MediaStreamType.proto
[  9%] Running cpp protocol buffer compiler on ../proto/NavigationChannel.proto
[ 10%] Running cpp protocol buffer compiler on ../proto/PingRequest.proto
[ 10%] Running cpp protocol buffer compiler on ../proto/PingResponse.proto
[ 10%] Running cpp protocol buffer compiler on ../proto/Sensor.proto
[ 11%] Running cpp protocol buffer compiler on ../proto/SensorChannel.proto
[ 12%] Running cpp protocol buffer compiler on ../proto/ServiceDiscoveryRequest.proto
[ 12%] Running cpp protocol buffer compiler on ../proto/ServiceDiscoveryResponse.proto
[ 12%] Running cpp protocol buffer compiler on ../proto/TouchAction.proto
[ 12%] Running cpp protocol buffer compiler on ../proto/TouchConfig.proto
[ 13%] Running cpp protocol buffer compiler on ../proto/TouchEvent.proto
[ 14%] Running cpp protocol buffer compiler on ../proto/TouchLocation.proto
[ 15%] Running cpp protocol buffer compiler on ../proto/VendorExtensionChannel.proto
[ 15%] Running cpp protocol buffer compiler on ../proto/VideoConfig.proto
[ 15%] Running cpp protocol buffer compiler on ../proto/VideoFps.proto
[ 16%] Building CXX object AAServer/CMakeFiles/AAServer.dir/main.cpp.o
[ 16%] Building CXX object AAServer/CMakeFiles/AAServer.dir/__/src/utils.cpp.o
[ 17%] Building CXX object AAServer/CMakeFiles/AAServer.dir/src/ServerUtils.cpp.o
[ 17%] Building CXX object AAServer/CMakeFiles/AAServer.dir/src/descriptors.cpp.o
[ 18%] Building CXX object AAServer/CMakeFiles/AAServer.dir/src/Library.cpp.o
[ 18%] Building CXX object AAServer/CMakeFiles/AAServer.dir/src/Function.cpp.o
[ 19%] Building CXX object AAServer/CMakeFiles/AAServer.dir/src/MassStorageFunction.cpp.o
[ 19%] Building CXX object AAServer/CMakeFiles/AAServer.dir/src/FfsFunction.cpp.o
[ 20%] Building CXX object AAServer/CMakeFiles/AAServer.dir/src/Configuration.cpp.o
[ 20%] Building CXX object AAServer/CMakeFiles/AAServer.dir/src/Gadget.cpp.o
[ 20%] Building CXX object AAServer/CMakeFiles/AAServer.dir/src/Udc.cpp.o
[ 21%] Building CXX object AAServer/CMakeFiles/AAServer.dir/src/Message.cpp.o
[ 21%] Building CXX object AAServer/CMakeFiles/AAServer.dir/src/ModeSwitcher.cpp.o
[ 22%] Building CXX object AAServer/CMakeFiles/AAServer.dir/src/AaCommunicator.cpp.o
/home/vagrant/project/AACS/AAServer/src/AaCommunicator.cpp: In member function ‘void AaCommunicator::handlePingRequest(const void*, size_t)’:
/home/vagrant/project/AACS/AAServer/src/AaCommunicator.cpp:259:31: warning: ‘int google::protobuf::MessageLite::ByteSize() const’ is deprecated: Please use ByteSizeLong() instead [-Wdeprecated-declarations]
  259 |   int bufSize = presp.ByteSize();
      |                 ~~~~~~~~~~~~~~^~
In file included from /usr/include/google/protobuf/generated_enum_util.h:36,
                 from /usr/include/google/protobuf/map.h:49,
                 from /usr/include/google/protobuf/generated_message_table_driven.h:34,
                 from /home/vagrant/project/AACS/build6/AAServer/Channel.pb.h:26,
                 from /home/vagrant/project/AACS/AAServer/src/AaCommunicator.cpp:4:
/usr/include/google/protobuf/message_lite.h:408:7: note: declared here
  408 |   int ByteSize() const { return internal::ToIntSize(ByteSizeLong()); }
      |       ^~~~~~~~
/home/vagrant/project/AACS/AAServer/src/AaCommunicator.cpp: In member function ‘void AaCommunicator::initializeSslContext()’:
/home/vagrant/project/AACS/AAServer/src/AaCommunicator.cpp:324:32: warning: ‘DH* PEM_read_DHparams(FILE*, DH**, int (*)(char*, int, int, void*), void*)’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declaration ]
  324 |     dh_2048 = PEM_read_DHparams(paramfile, NULL, NULL, NULL);
      |               ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/openssl/ssl.h:36,
                 from /home/vagrant/project/AACS/AAServer/src/AaCommunicator.cpp:28:
/usr/include/openssl/pem.h:469:1: note: declared here
  469 | DECLARE_PEM_rw_attr(OSSL_DEPRECATEDIN_3_0, DHparams, DH)
      | ^~~~~~~~~~~~~~~~~~~
[ 22%] Building CXX object AAServer/CMakeFiles/AAServer.dir/src/SocketClient.cpp.o
[ 23%] Building CXX object AAServer/CMakeFiles/AAServer.dir/src/SocketCommunicator.cpp.o
[ 23%] Building CXX object AAServer/CMakeFiles/AAServer.dir/src/ManualResetEvent.cpp.o
[ 24%] Building CXX object AAServer/CMakeFiles/AAServer.dir/src/ChannelHandler.cpp.o
[ 24%] Building CXX object AAServer/CMakeFiles/AAServer.dir/src/DefaultChannelHandler.cpp.o
[ 25%] Building CXX object AAServer/CMakeFiles/AAServer.dir/src/VideoChannelHandler.cpp.o
[ 25%] Building CXX object AAServer/CMakeFiles/AAServer.dir/src/InputChannelHandler.cpp.o
/home/vagrant/project/AACS/AAServer/src/InputChannelHandler.cpp: In member function ‘void InputChannelHandler::sendHandshakeRequest()’:
/home/vagrant/project/AACS/AAServer/src/InputChannelHandler.cpp:31:42: warning: ‘int google::protobuf::MessageLite::ByteSize() const’ is deprecated: Please use ByteSizeLong() instead [-Wdeprecated-declarations]
   31 |   int bufSize = handshakeRequest.ByteSize();
      |                 ~~~~~~~~~~~~~~~~~~~~~~~~~^~
In file included from /usr/include/google/protobuf/generated_enum_util.h:36,
                 from /usr/include/google/protobuf/map.h:49,
                 from /usr/include/google/protobuf/generated_message_table_driven.h:34,
                 from /home/vagrant/project/AACS/build6/AAServer/InputChannel.pb.h:26,
                 from /home/vagrant/project/AACS/AAServer/src/InputChannelHandler.cpp:4:
/usr/include/google/protobuf/message_lite.h:408:7: note: declared here
  408 |   int ByteSize() const { return internal::ToIntSize(ByteSizeLong()); }
      |       ^~~~~~~~
[ 26%] Building CXX object AAServer/CMakeFiles/AAServer.dir/MediaStreamType.pb.cc.o
[ 26%] Building CXX object AAServer/CMakeFiles/AAServer.dir/MediaChannel.pb.cc.o
[ 27%] Building CXX object AAServer/CMakeFiles/AAServer.dir/MediaChannelSetupResponse.pb.cc.o
[ 27%] Building CXX object AAServer/CMakeFiles/AAServer.dir/Channel.pb.cc.o
[ 28%] Building CXX object AAServer/CMakeFiles/AAServer.dir/ChannelOpenRequest.pb.cc.o
[ 28%] Building CXX object AAServer/CMakeFiles/AAServer.dir/ServiceDiscoveryRequest.pb.cc.o
[ 29%] Building CXX object AAServer/CMakeFiles/AAServer.dir/ServiceDiscoveryResponse.pb.cc.o
[ 29%] Building CXX object AAServer/CMakeFiles/AAServer.dir/InputChannel.pb.cc.o
[ 30%] Building CXX object AAServer/CMakeFiles/AAServer.dir/TouchConfig.pb.cc.o
[ 30%] Building CXX object AAServer/CMakeFiles/AAServer.dir/SensorChannel.pb.cc.o
[ 31%] Building CXX object AAServer/CMakeFiles/AAServer.dir/Sensor.pb.cc.o
[ 31%] Building CXX object AAServer/CMakeFiles/AAServer.dir/VendorExtensionChannel.pb.cc.o
[ 32%] Building CXX object AAServer/CMakeFiles/AAServer.dir/NavigationChannel.pb.cc.o
[ 32%] Building CXX object AAServer/CMakeFiles/AAServer.dir/MediaInputChannel.pb.cc.o
[ 33%] Building CXX object AAServer/CMakeFiles/AAServer.dir/BluetoothChannel.pb.cc.o
[ 33%] Building CXX object AAServer/CMakeFiles/AAServer.dir/AudioConfig.pb.cc.o
[ 34%] Building CXX object AAServer/CMakeFiles/AAServer.dir/InputEvent.pb.cc.o
[ 34%] Building CXX object AAServer/CMakeFiles/AAServer.dir/TouchEvent.pb.cc.o
[ 35%] Building CXX object AAServer/CMakeFiles/AAServer.dir/ButtonsEvent.pb.cc.o
[ 35%] Building CXX object AAServer/CMakeFiles/AAServer.dir/TouchLocation.pb.cc.o
[ 36%] Building CXX object AAServer/CMakeFiles/AAServer.dir/TouchAction.pb.cc.o
[ 36%] Building CXX object AAServer/CMakeFiles/AAServer.dir/AudioType.pb.cc.o
[ 37%] Building CXX object AAServer/CMakeFiles/AAServer.dir/VideoConfig.pb.cc.o
[ 37%] Building CXX object AAServer/CMakeFiles/AAServer.dir/VideoResolution.pb.cc.o
[ 38%] Building CXX object AAServer/CMakeFiles/AAServer.dir/VideoFps.pb.cc.o
[ 38%] Building CXX object AAServer/CMakeFiles/AAServer.dir/PingRequest.pb.cc.o
[ 39%] Building CXX object AAServer/CMakeFiles/AAServer.dir/PingResponse.pb.cc.o
[ 39%] Linking CXX executable AAServer
[ 39%] Built target AAServer
[ 40%] Generating dhparam.pem
[ 40%] Built target dhparam_aaclient
[ 40%] Running cpp protocol buffer compiler on ../proto/VideoResolution.proto
[ 40%] Running cpp protocol buffer compiler on ../proto/AudioConfig.proto
[ 40%] Running cpp protocol buffer compiler on ../proto/AudioType.proto
[ 41%] Running cpp protocol buffer compiler on ../proto/BluetoothChannel.proto
[ 42%] Running cpp protocol buffer compiler on ../proto/ButtonsEvent.proto
[ 42%] Running cpp protocol buffer compiler on ../proto/Channel.proto
[ 43%] Running cpp protocol buffer compiler on ../proto/ChannelOpenRequest.proto
[ 43%] Running cpp protocol buffer compiler on ../proto/InputChannel.proto
[ 44%] Running cpp protocol buffer compiler on ../proto/InputEvent.proto
[ 44%] Running cpp protocol buffer compiler on ../proto/MediaChannel.proto
[ 45%] Running cpp protocol buffer compiler on ../proto/MediaChannelSetupResponse.proto
[ 45%] Running cpp protocol buffer compiler on ../proto/MediaInputChannel.proto
[ 45%] Running cpp protocol buffer compiler on ../proto/MediaStreamType.proto
[ 46%] Running cpp protocol buffer compiler on ../proto/NavigationChannel.proto
[ 46%] Running cpp protocol buffer compiler on ../proto/PingRequest.proto
[ 47%] Running cpp protocol buffer compiler on ../proto/PingResponse.proto
[ 48%] Running cpp protocol buffer compiler on ../proto/Sensor.proto
[ 48%] Running cpp protocol buffer compiler on ../proto/SensorChannel.proto
[ 48%] Running cpp protocol buffer compiler on ../proto/ServiceDiscoveryRequest.proto
[ 49%] Running cpp protocol buffer compiler on ../proto/ServiceDiscoveryResponse.proto
[ 50%] Running cpp protocol buffer compiler on ../proto/TouchAction.proto
[ 51%] Running cpp protocol buffer compiler on ../proto/TouchConfig.proto
[ 51%] Running cpp protocol buffer compiler on ../proto/TouchEvent.proto
[ 51%] Running cpp protocol buffer compiler on ../proto/TouchLocation.proto
[ 51%] Running cpp protocol buffer compiler on ../proto/VendorExtensionChannel.proto
[ 52%] Running cpp protocol buffer compiler on ../proto/VideoConfig.proto
[ 53%] Running cpp protocol buffer compiler on ../proto/VideoFps.proto
[ 53%] Building CXX object AAClient/CMakeFiles/AAClient.dir/main.cpp.o
In file included from /home/vagrant/project/AACS/AAClient/main.cpp:6:
/home/vagrant/project/AACS/include/utils.h:3:10: fatal error: backward.hpp: No such file or directory
    3 | #include "backward.hpp"
      |          ^~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [AAClient/CMakeFiles/AAClient.dir/build.make:292: AAClient/CMakeFiles/AAClient.dir/main.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:261: AAClient/CMakeFiles/AAClient.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
@proatgram
Copy link

This can be fixed by adding
add_backward(AAClient)
in AAClient/CMakeLists.txt after the executable target is declared.

See this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants