Project

General

Profile

Actions

Emulator Issues #12907

closed

CMake: Using static libmgba from Externals

Added by BlackMage almost 2 years ago. Updated about 1 month ago.

Status:
Working as intended
Priority:
Normal
Assignee:
-
% Done:

0%

Operating system:
N/A
Issue type:
Bug
Milestone:
Regression:
No
Relates to usability:
No
Relates to performance:
No
Easy:
No
Relates to maintainability:
No
Regression start:
Fixed in:

Description

CMake fails at point '-- Using static libmgba from Externals'

CMake Error at Externals/mGBA/CMakeLists.txt:3 (add_subdirectory):
  The source directory                                                                                                                                                        
                                                                                                                                                                              
    /home/sven/Development/dolphin/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.           "

i have cmake 3.23.1

Actions #1

Updated by flacs almost 2 years ago

You probably forgot to initialize the git submodule. See https://wiki.dolphin-emu.org/index.php?title=Building_Dolphin_on_Linux#Step_2_-_Get_the_Dolphin_Repository for how to build Dolphin.

Actions #2

Updated by JosJuice almost 2 years ago

  • Tracker changed from Issue to Emulator Issues
  • Project changed from Infrastructure to Emulator
  • Issue type set to Bug
  • Regression set to No
  • Relates to usability set to No
  • Relates to performance set to No
  • Easy set to No
  • Relates to maintainability set to No
  • Operating system N/A added
Actions #3

Updated by Anonymous almost 2 years ago

As we now have submodules apart from Qt/windows, it would probably be a good idea to have a unified/automated way to deal with them in cmake. Is there a sane way to initiate the submodule update from within cmake (seems like it may also be useful to catch when submodule revisions change via branches/merges, too)? and/or just disable features if the dependency doesn't exist in Externals.

Actions #4

Updated by Billiard26 about 1 month ago

  • Status changed from New to Working as intended

No response from OP. Will re-open upon request.

Actions

Also available in: Atom PDF