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


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Emulator Discussion and Support › Support v
« Previous 1 ... 13 14 15 16 17 ... 1190 Next »

Building from source, cmake fails because of mGBA errors
View New Posts | View Today's Posts

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
Building from source, cmake fails because of mGBA errors
07-26-2021, 03:21 AM
#1
Chuckaluphagus
Unregistered
 
I'm on Ubuntu 20.04, so I build from source.  This has worked fine in the past.  I went to update and try out the fancy new Internal GBA functions, and cmake fails due to the absence of necessary files related to mGBA:

Code:
CMake Error at Externals/mGBA/CMakeLists.txt:3 (add_subdirectory):
 The source directory

   /home/charles/games/dolphin-emu/Externals/mGBA/mgba

 does not contain a CMakeLists.txt file.


CMake Error at Externals/mGBA/CMakeLists.txt:6 (target_compile_options):
 Cannot specify compile options for target "mgba" which is not built by this
 project.


CMake Error at Externals/mGBA/CMakeLists.txt:13 (add_library):
 add_library cannot create ALIAS target "mGBA::mgba" because target "mgba"
 does not already exist.

What would be the solution to this?
Reply
07-26-2021, 05:34 AM
#2
JosJuice Offline
Developer
**********
Developers (Some Administrators and Super Moderators)
Posts: 8,839
Threads: 7
Joined: Oct 2014
You'll have to run this in the Dolphin repo:

git submodule update --init

We'll try to get this added to the build instructions soon.
Find
Reply
07-26-2021, 10:41 AM
#3
Chuckaluphagus
Unregistered
 
(07-26-2021, 05:34 AM)JosJuice Wrote: You'll have to run this in the Dolphin repo:

git submodule update --init

We'll try to get this added to the build instructions soon.

You rock.  Thank you, built and running now.
Reply
07-20-2022, 04:38 PM
#4
DanglingPointer Offline
Junior Member
**
Posts: 10
Threads: 2
Joined: May 2020
(07-26-2021, 05:34 AM)JosJuice Wrote: You'll have to run this in the Dolphin repo:

git submodule update --init

We'll try to get this added to the build instructions soon.

I was getting the following error and your git command fixed it!


Code:
CMake Error at Externals/spirv_cross/CMakeLists.txt:49 (add_library):
 Cannot find source file:

   SPIRV-Cross/GLSL.std.450.h

 Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .ixx .cppm .h
 .hh .h++ .hm .hpp .hxx .in .txx .f .F .for .f77 .f90 .f95 .f03 .hip .ispc


CMake Error at Externals/spirv_cross/CMakeLists.txt:49 (add_library):
 No SOURCES given to target: spirv_cross


If you're getting "spirv" errors from the master branch from git (linux builds) run this:
as recommended by @JosJuice...

Code:
git submodule update --init
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