Error compiling Blocks.uproject on Ubuntu
I am having some issues trying to open the Blocks project, to test the AirSim framework. I followed the instructions in unreal_blocks.md for linux just until 5. After the in-place conversion the UE4 prompt a window saying that it is impossible to compile the project due to the following error:
ERROR: UBT ERROR: Failed to produce item: /home/vedecom/simulation/AirSim/Unreal/Environments/Blocks/Plugins/AirSim/Binaries/Linux/libUE4Editor-AirSim.so
I know that this is a generic error, but it is the only error message that I found in the window. I followed all the steps in the setup instructions for Linux.
EDIT:
When I try to open again the UE4Editor ask me if I want to compile the libUE4Editor-Blocks.so and libUE4Editor-AirSim.so and if I accept the following error appears:
In file included from /home/vedecom/simulation/AirSim/Unreal/Environments/Blocks/Plugins/AirSim/Intermediate/Build/Linux/B4D820EA/UE4Editor/Development/AirSim/Module.AirSim.cpp:8: In file included from /home/vedecom/simulation/AirSim/Unreal/Environments/Blocks/Plugins/AirSim/Source/AirLib/src/vehicles/car/api/CarRpcLibClient.cpp:10: In file included from /home/vedecom/simulation/AirSim/Unreal/Environments/Blocks/Plugins/AirSim/Source/AirLib/include/vehicles/car/api/CarRpcLibClient.hpp:10: /home/vedecom/simulation/AirSim/Unreal/Environments/Blocks/Plugins/AirSim/Source/AirLib/include/vehicles/car/api/CarApiBase.hpp:62:113: warning: field 'timestamp' will be initialized after field 'rpm' [-Wreorder] : speed(speed_val), gear(gear_val), collision(collision_val), kinematics_true(kinematics_true_val), `timestamp(timestamp_val),
In file included from /home/vedecom/simulation/AirSim/Unreal/Environments/Blocks/Plugins/AirSim/Intermediate/Build/Linux/B4D820EA/UE4Editor/Development/AirSim/Module.AirSim.cpp:30: /home/vedecom/simulation/AirSim/Unreal/Environments/Blocks/Plugins/AirSim/Source/SimHUD/SimHUD.cpp:87:23: error: moving a temporary object prevents copy elision [-Werror,-Wpessimizing-move] api_server_ = std::move(simmode_->createApiServer());
/home/vedecom/simulation/AirSim/Unreal/Environments/Blocks/Plugins/AirSim/Source/SimHUD/SimHUD.cpp:87:23: note: remove std::move call here api_server_ = std::move(simmode_->createApiServer());
In file included from /home/vedecom/simulation/AirSim/Unreal/Environments/Blocks/Plugins/AirSim/Intermediate/Build/Linux/B4D820EA/UE4Editor/Development/AirSim/Module.AirSim.cpp:33: /home/vedecom/simulation/AirSim/Unreal/Environments/Blocks/Plugins/AirSim/Source/SimJoyStick/SimJoyStick.cpp:382:13: error: no member named 'setAutoCenter' in 'SimJoyStick::impl' pimpl_->setAutoCenter(index, strength);
/home/vedecom/simulation/AirSim/Unreal/Environments/Blocks/Plugins/AirSim/Source/SimJoyStick/SimJoyStick.cpp:387:13: error: no member named 'setWheelRumble' in 'SimJoyStick::impl' pimpl_->setWheelRumble(index, strength);
1 warning and 3 errors generated. ERROR: UBT ERROR: Failed to produce item: /home/vedecom/simulation/AirSim/Unreal/Environments/Blocks/Plugins/AirSim/Binaries/Linux/libUE4Editor-AirSim.so Total build time: 20.55 seconds (Local executor: 0.00 seconds)
I have the same three errors trying to compile libUE4Editor-Blocks.so and libUE4Editor-AirSim.so
I have the same errors ... anyone fixed this?
I fixed all problems (at least I think I did). For the error with the note just go to the file and remove the std::move cited. For the SimJoyStick.h just add these two headers. And for the SimJoyStick.cpp after line 136 (precompiler instruction #else):
-
add the header unistd.h
-
delete the instruction ununsed(maps) inside the function getJoyStickState
-
add the two functions (only the prototype) right before the private: instruction (before line 323).
SimJoyStick.h:
#include <stdint.h>
#include
SimJoyStick.cpp:
#include "unistd.h"
void setAutoCenter(unsigned int index, double strength);
void setWheelRumble(unsigned int index, double strength);
The problem now is that the Blocks environment is crashing at the beginning of the simulation (therefore with all the changes make the UE4Editor successfully compiled the project and opened the project window). I will check if there are other issues closed related to this current problem.
EDIT: Error message: it seems that is a problem with libcurl
[2018.04.26-15.14.21:572][ 0]LogInit: Using libcurl 7.48.0-DEV [2018.04.26-15.14.21:572][ 0]LogInit: - built for x86_64-unknown-linux-gnu [2018.04.26-15.14.21:572][ 0]LogInit: - supports SSL with OpenSSL/1.0.2h [2018.04.26-15.14.21:572][ 0]LogInit: - supports HTTP deflate (compression) using libz 1.2.8 [2018.04.26-15.14.21:572][ 0]LogInit: - other features: [2018.04.26-15.14.21:572][ 0]LogInit: CURL_VERSION_SSL [2018.04.26-15.14.21:572][ 0]LogInit: CURL_VERSION_LIBZ [2018.04.26-15.14.21:572][ 0]LogInit: CURL_VERSION_IPV6 [2018.04.26-15.14.21:572][ 0]LogInit: CURL_VERSION_ASYNCHDNS [2018.04.26-15.14.21:572][ 0]LogInit: CURL_VERSION_LARGEFILE [2018.04.26-15.14.21:572][ 0]LogInit: CURL_VERSION_TLSAUTH_SRP [2018.04.26-15.14.21:572][ 0]LogInit: Libcurl: checking if '/etc/pki/tls/certs/ca-bundle.crt' exists [2018.04.26-15.14.21:573][ 0]LogInit: Libcurl: checking if '/etc/ssl/certs/ca-certificates.crt' exists [2018.04.26-15.14.21:573][ 0]LogInit: CurlRequestOptions (configurable via config and command line): [2018.04.26-15.14.21:573][ 0]LogInit: - bVerifyPeer = true - Libcurl will verify peer certificate [2018.04.26-15.14.21:573][ 0]LogInit: - bUseHttpProxy = false - Libcurl will NOT use HTTP proxy [2018.04.26-15.14.21:573][ 0]LogInit: - bDontReuseConnections = false - Libcurl will reuse connections [2018.04.26-15.14.21:573][ 0]LogInit: - CertBundlePath = /etc/ssl/certs/ca-certificates.crt - Libcurl will set CURLOPT_CAINFO to it [2018.04.26-15.14.21:577][ 0]CrashReportClientLog: Sending HTTP request: https://datarouter.ol.epicgames.com/datarouter/api/v1/public/data?AppID=CrashReporter&AppVersion=4.17.2-0%2B%2B%2BUE4%2BRelease-4.17&AppEnvironment=Release&UploadType=crashreports&UserID=0002cee62b040c19002c0180f570de62%7C%7C0942660508b74c0cbad212811d5a55b5 [2018.04.26-15.14.21:825][ 0]LogHttp: Warning: 0x7f4b9de85800: request failed, libcurl error: 35 (SSL connect error) [2018.04.26-15.14.21:825][ 0]CrashReportClientLog: OnProcessRequestComplete(), State=SendingFiles bSucceeded=0 [2018.04.26-15.14.21:825][ 0]CrashReportClientLog: Warning: File upload failed to data router [2018.04.26-15.14.21:825][ 0]CrashReportClientLog: State change from SendingFiles to Cancelled [2018.04.26-15.14.22:560][ 0]LogLinux: FLinuxPlatformMisc::RequestExit(0) [2018.04.26-15.14.22:560][ 0]LogGenericPlatformMisc: FPlatformMisc::RequestExit(0) [2018.04.26-15.14.22:593][ 0]CrashReportClientLog: Final state (Receiver) = Cancelled [2018.04.26-15.14.22:593][ 0]CrashReportClientLog: Final state (Receiver) = Unknown UploadState value [2018.04.26-15.14.22:593][ 0]LogExit: Preparing to exit. [2018.04.26-15.14.22:595][ 0]LogExit: Object subsystem successfully closed. [2018.04.26-15.14.22:595][ 0]LogModuleManager: Shutting down and abandoning module HTTP (8) [2018.04.26-15.14.22:624][ 0]LogModuleManager: Shutting down and abandoning module SSL (7) [2018.04.26-15.14.22:626][ 0]LogModuleManager: Shutting down and abandoning module CrashDebugHelper (4) [2018.04.26-15.14.22:626][ 0]LogModuleManager: Shutting down and abandoning module CoreUObject (2) [2018.04.26-15.14.22:627][ 0]LogExit: Exiting. Engine crash handling finished; re-raising signal 11 for the default handler. Good bye.
All of above is fixed now. Please try out latest version. Thanks for reporting this issue.
After a new git clone, in the ./build.sh execution the following error occurs:
CMakeFiles/HelloDrone.dir/home/vedecom/simulation/AirSim/HelloDrone/main.cpp.o: In function main': /home/vedecom/simulation/AirSim/HelloDrone/main.cpp:63: undefined reference to msr::airlib::MultirotorRpcLibClient::armDisarm(bool) /home/vedecom/simulation/AirSim/HelloDrone/main.cpp:103: undefined reference to msr::airlib::MultirotorRpcLibClient::armDisarm(bool) clang: error: linker command failed with exit code 1 (use -v to see invocation)
EDIT: since my goal is to use the car I just commented all the armDisarm functions (in main.cpp and inside the droneshell folder). Applying this correction the compilation ended successfully and the project is executed in the UE4Editor without crashes.
Now it is compiling on Linux, thanks