dingusdev / dingusppc

An experimental emulator
GNU General Public License v3.0
201 stars 21 forks source link

[BUG] Compile issues in termux #97

Open spz2020 opened 5 days ago

spz2020 commented 5 days ago

Describe the bug DingusPPC git builds failed to build under termux

To Reproduce Steps to reproduce the behavior:

  1. Follow build instructions on README.md under termux
  2. Wait a while
  3. Compilation should return an error

Expected behavior can build

Screenshots Screenshot_2024-06-30-11-54-15-75_84d3000e3f4017145260f7618db1d683

Device Information (please complete the following information):

Additional context

ld.lld: error: duplicate symbol: now_ns()
>>> defined at ppcexec.cpp
>>>            cpu/ppc/CMakeFiles/cpu_ppc.dir/ppcexec.cpp.o:(now_ns())
>>> defined at cubeb_aaudio.cpp
>>>            cubeb_aaudio.cpp.o:(.text+0x0) in archive lib/libcubeb.a
c++: error: linker command failed with exit code 1 (use -v to see invocation)
joevt commented 5 days ago

Added a commit to my fork to fix this: https://github.com/joevt/dingusppc/commit/18bde6eab4f1acfe61cbe7af09b00f7e04037d8c

dingusdev commented 5 days ago

Changed now_ns in loguru and ppc_exec with dingusdev/dingusppc@17cdcc5560961c7d85df5a536826206c9c436b51