• Login
  • Register
  • Dolphin Forums
  • Home
  • FAQ
  • Download
  • Wiki
  • Code


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Emulator Discussion and Support › Support v
1 2 3 4 5 ... 1198 Next »

Asahi Linux CMake Error
View New Posts | View Today's Posts

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
Asahi Linux CMake Error
06-28-2023, 03:18 AM
#1
Stoked1020 Offline
Junior Member
**
Posts: 4
Threads: 1
Joined: Jun 2023
Hey Y'all,
I've been trying to get Dolphin to run on the Linux side of my m1 MacBook Air (Games run great on the MacOS but... can't connect Wiimotes).
After entering "cmake .." I keep running into the same error:

CMake Error at Externals/zlib-ng/CMakeLists.txt:7 (add_subdirectory):
The source directory

/home/user/dolphin/Externals/zlib-ng/zlib-ng

does not contain a CMakeLists.txt file.


CMake Error at Externals/zlib-ng/CMakeLists.txt:14 (add_library):
add_library cannot create ALIAS target "ZLIB::ZLIB" because target "zlib"
does not already exist.

Any ideas? do I need to find an older build?
Find
Reply
06-28-2023, 03:45 AM
#2
JosJuice Offline
Developer
**********
Developers (Some Administrators and Super Moderators)
Posts: 8,958
Threads: 7
Joined: Oct 2014
You probably didn't initialize the submodules: git submodule update --init
Find
Reply
06-28-2023, 04:09 AM (This post was last modified: 06-28-2023, 07:32 AM by mbc07. Edit Reason: MOD EDIT: formatting fix )
#3
Stoked1020 Offline
Junior Member
**
Posts: 4
Threads: 1
Joined: Jun 2023
(06-28-2023, 03:45 AM)JosJuice Wrote: You probably didn't initialize the submodules: git submodule update --init

Doh! Right you are...that fix that problem and now I am met with a new error:

Code:
error: too many arguments to function ‘void mbedtls_rsa_init(mbedtls_rsa_context*)’
397 |     mbedtls_rsa_init(&rsa, MBEDTLS_RSA_PKCS_V15, 0);
    |     ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/paul/dolphin/Source/Core/Core/IOS/IOSC.cpp:16:
/usr/include/mbedtls/rsa.h:145:6: note: declared here
145 | void mbedtls_rsa_init(mbedtls_rsa_context *ctx);
    |      ^~~~~~~~~~~~~~~~
/home/paul/dolphin/Source/Core/Core/IOS/IOSC.cpp:400:34: error: ‘mbedtls_rsa_context’ {aka ‘struct mbedtls_rsa_context’} has no member named ‘N’
400 |     mbedtls_mpi_read_binary(&rsa.N, entry->data.data(), entry->data.size());
    |                                  ^
/home/paul/dolphin/Source/Core/Core/IOS/IOSC.cpp:401:34: error: ‘mbedtls_rsa_context’ {aka ‘struct mbedtls_rsa_context’} has no member named ‘E’
401 |     mbedtls_mpi_read_binary(&rsa.E, reinterpret_cast<const u8*>(&entry->misc_data), 4);
    |                                  ^
/home/paul/dolphin/Source/Core/Core/IOS/IOSC.cpp:402:9: error: ‘mbedtls_rsa_context’ {aka ‘struct mbedtls_rsa_context’} has no member named ‘len’
402 |     rsa.len = entry->data.size();
    |         ^~~
/home/paul/dolphin/Source/Core/Core/IOS/IOSC.cpp:404:64: error: ‘MBEDTLS_RSA_PUBLIC’ was not declared in this scope; did you mean ‘MBEDTLS_RSA_C’?
404 |     int ret = mbedtls_rsa_pkcs1_verify(&rsa, nullptr, nullptr, MBEDTLS_RSA_PUBLIC, MBEDTLS_MD_SHA1,
Find
Reply
06-28-2023, 09:14 AM
#4
KHg8m3r Offline
Doesn't sleep, just Dolphin and Robots
*******
Posts: 5,961
Threads: 4
Joined: Sep 2013
Try clearing your build folder and starting with a fresh "cmake .."?

Otherwise it should be pulling the mbedtls library from Externals and that should work. Unless something with Asahi may have a mbedtls package that's interfering with the Externals library, in which case you may need to force the Externals (or force to use your system package if Externals isn't working for Asahi)?
Find
Reply
06-28-2023, 02:01 PM
#5
Stoked1020 Offline
Junior Member
**
Posts: 4
Threads: 1
Joined: Jun 2023
Tried starting fresh and got the same error message. I tried switching to using the .git package from the wiki page and it says pacman failed to install dependencies (including enet which I already manually installed ?). Is there a dummy proof way to install on Asahi?
Find
Reply
06-28-2023, 02:59 PM
#6
Stoked1020 Offline
Junior Member
**
Posts: 4
Threads: 1
Joined: Jun 2023
(06-28-2023, 09:14 AM)KHg8m3r Wrote: Try clearing your build folder and starting with a fresh "cmake .."?

Otherwise it should be pulling the mbedtls library from Externals and that should work. Unless something with Asahi may have a mbedtls package that's interfering with the Externals library, in which case you may need to force the Externals (or force to use your system package if Externals isn't working for Asahi)?

How would I “force the Externals”?
Find
Reply
« Next Oldest | Next Newest »


  • View a Printable Version
  • Subscribe to this thread
Forum Jump:


Users browsing this thread: 1 Guest(s)



Powered By MyBB | Theme by Fragma

Linear Mode
Threaded Mode