Skip to content

Build on termux fails, fix hopefully inside #4753

Description

@Randrianasulu

What happened?

I tried to build 86box in termux again, it failed for me at linking stage with duplicated symbols

Adding patch like this

git diff
diff --git a/src/thread.cpp b/src/thread.cpp
index f2a0ceaf0..30ca19726 100644
--- a/src/thread.cpp
+++ b/src/thread.cpp
@@ -5,6 +5,8 @@
 #include <86box/plat.h>
 #include <86box/thread.h>

+#if !defined(__unix__)
+
 struct event_cpp11_t {
     std::condition_variable cond;
     std::mutex              mutex;
@@ -135,3 +137,5 @@ thread_destroy_event(event_t *handle)
     delete event;
 }
 }
+
+#endif
\ No newline at end of file

fixed build for me.

resulting 86box starts ok with default config, I can interact with IBM PC Basic ;)

Configuration file

[General]
update_icons = 0
host_cpu = Unknown

[Machine]
machine = ibmpc
cpu_family = 8088
cpu_speed = 4772728
cpu_multi = 1
cpu_use_dynarec = 0
time_sync = local
fpu_softfloat = 0
mem_size = 64

[Video]
gfxcard = mda

[Input devices]
mouse_type = none

[Sound]
fm_driver = nuked

[Network]
net_01_link = 0
net_02_link = 0
net_03_link = 0
net_04_link = 0

[Storage controllers]
hdc = none
cassette_mode = load

Operating system

Android 11

CPU

Cortex-A55

86Box version

d67d86d

Build architecture

Linux - ARM (64-bit)

Build type

  • New recompiler
  • Debug build

Download source

Official website (Jenkins, GitHub)

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions