melonDS-emu / melonDS

DS emulator, sorta
https://melonds.kuribo64.net
GNU General Public License v3.0
2.98k stars 495 forks source link

season2 app is not building #2033

Closed collina2 closed 1 month ago

collina2 commented 1 month ago

Hi,

I wanted to test if local multiplayer was working (playing with other people on two separate devices), and I saw somewhere that the code for this is being developed under the season2 branch. I tried following the README.md steps on building the app, but I received this error:

➜  melonDS git:(master) cmake -B build -DCMAKE_PREFIX_PATH="$(brew --prefix qt@6);$(brew --prefix libarchive)" -DUSE_QT6=ON 
cmake --build build -j$(sysctl -n hw.logicalcpu)
-- The C compiler identification is AppleClang 14.0.3.14030022
-- The CXX compiler identification is AppleClang 14.0.3.14030022
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- The ASM compiler identification is AppleClang
-- Found assembler: /Library/Developer/CommandLineTools/usr/bin/cc
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Performing Test HAVE_STDATOMIC
-- Performing Test HAVE_STDATOMIC - Success
-- Found WrapAtomic: TRUE
-- Found OpenGL: /Library/Developer/CommandLineTools/SDKs/MacOSX13.3.sdk/System/Library/Frameworks/OpenGL.framework
-- Found WrapOpenGL: TRUE
-- Could NOT find WrapVulkanHeaders (missing: Vulkan_INCLUDE_DIR) 
-- Could NOT find WrapVulkanHeaders (missing: Vulkan_INCLUDE_DIR) 
-- Found PkgConfig: /opt/homebrew/bin/pkg-config (found version "0.29.2")
-- Checking for module 'sdl2'
--   Found sdl2, version 2.30.3
-- Checking for module 'slirp'
--   Found slirp, version 4.7.0
-- Checking for module 'libarchive'
--   Found libarchive, version 3.7.4
-- Checking for module 'libzstd'
--   Found libzstd, version 1.5.6
CMake Error at /opt/homebrew/Cellar/cmake/3.29.3/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find ENet (missing: ENET_LIBRARY ENET_INCLUDE_DIRS)
Call Stack (most recent call first):
  /opt/homebrew/Cellar/cmake/3.29.3/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE)
  cmake/FindENet.cmake:37 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  src/frontend/qt_sdl/CMakeLists.txt:96 (find_package)

-- Configuring incomplete, errors occurred!
make: Makefile: No such file or directory
make: *** No rule to make target `Makefile'.  Stop.

Does anyone know what the issue is? I am using an M2 MacBook Pro. Also, I tried running this command on the master branch and the app built correctly, so I think it's just an issue on the season2 branch.

Thank you, Andrew

nadiaholmquist commented 1 month ago

You need to install the enet package. That is a new requirement in that branch so it's not noted in the readme.

collina2 commented 1 month ago

Got it, thank you it works now!