speed_dreams: enable recipe (#6214)

* fix crash at exit

* enable build
This commit is contained in:
BeagleJoe
2021-09-29 11:07:19 -05:00
committed by GitHub
parent d850ef0987
commit df2f0aaa7c
2 changed files with 39 additions and 5 deletions

View File

@@ -1,4 +1,4 @@
From b5c7067d60bb383ffd40ffb0a6b9487261d219a2 Mon Sep 17 00:00:00 2001
From 3b3d2b8c25ee3f1fd95eb99211b9960f7de8c2e2 Mon Sep 17 00:00:00 2001
From: beaglejoe <BeagleJoe13@gmail.com>
Date: Sun, 8 Aug 2021 11:07:37 -0500
Subject: Fix for building base only
@@ -37,7 +37,7 @@ index 15606e3..d69190e 100644
2.30.2
From 9290f0ba4839a95e8fc8e866a3e62002f567bc78 Mon Sep 17 00:00:00 2001
From fb19af401a79a0a87d17d77cea5027d505e4c870 Mon Sep 17 00:00:00 2001
From: beaglejoe <BeagleJoe13@gmail.com>
Date: Wed, 8 Sep 2021 10:12:59 -0500
Subject: Set throttle and brake to mouse
@@ -397,7 +397,7 @@ index 21bf72f..0a4404b 100644
2.30.2
From be3646a2d97c21397c58f83830403152dd8a8f6b Mon Sep 17 00:00:00 2001
From 04bdd507608ac22ff977c48ba8358d528220a05d Mon Sep 17 00:00:00 2001
From: beaglejoe <BeagleJoe13@gmail.com>
Date: Sat, 11 Sep 2021 17:46:05 -0500
Subject: Fix for SDL2
@@ -530,3 +530,37 @@ index 1c21c8f..b8c48b8 100644
--
2.30.2
From 18f5e3a90f5dbd32c00d1a58320358256160534c Mon Sep 17 00:00:00 2001
From: beaglejoe <BeagleJoe13@gmail.com>
Date: Tue, 21 Sep 2021 01:14:19 -0500
Subject: fix for crash at exit
diff --git a/src/libs/robottools/humandriver.h b/src/libs/robottools/humandriver.h
index 506bea3..ce24c89 100644
--- a/src/libs/robottools/humandriver.h
+++ b/src/libs/robottools/humandriver.h
@@ -24,6 +24,7 @@ class ROBOTTOOLS_API HumanDriver
{
public:
HumanDriver(const char *robotname);
+ virtual ~HumanDriver() {};
void shutdown(const int index);
void init_context(int index, int updater_index=0);
diff --git a/src/libs/robottools/rthumandriver.cpp b/src/libs/robottools/rthumandriver.cpp
index 1101f60..bab4f9f 100644
--- a/src/libs/robottools/rthumandriver.cpp
+++ b/src/libs/robottools/rthumandriver.cpp
@@ -489,6 +489,7 @@ void HumanDriver::terminate()
++itDrvName;
}
VecNames.clear();
+ mapKeys.clear();
}
--
2.30.2

View File

@@ -14,8 +14,8 @@ SOURCE_DIR=""
PATCHES="speed_dreams-$portVersion.patchset"
ADDITIONAL_FILES="speed_dreams.rdef.in"
ARCHITECTURES="?all !x86_gcc2"
SECONDARY_ARCHITECTURES="?x86"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
speed_dreams$secondaryArchSuffix = $portVersion