Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Launcher Crashed #192

Closed
Emmett239 opened this issue Jan 20, 2021 · 8 comments
Closed

Launcher Crashed #192

Emmett239 opened this issue Jan 20, 2021 · 8 comments
Labels
ARM duplicate This issue or pull request already exists enhancement New feature or request help wanted Extra attention is needed M1 Mac macOS ng (next generation)

Comments

@Emmett239
Copy link

Did older Launcher Versions work on this PC?

Could not find the gamelauncher for Minecraft (arm64-v8a)
Please add the launcher 'mcpelauncher-client-arm64-v8a' to your 'PATH' (environmentvariable) and restart the launcher

Disclaimer

If you don't answer these questions your issue will be closed

@Emmett239
Copy link
Author

Please add

@ChristopherHX
Copy link
Owner

ChristopherHX commented Jan 20, 2021

As you might guessed, I don't own or have access to a m1 mac.

Do you want to test building and running the mcpelauncher-client-arm64-v8a launcher? You might be the first one testing this. Also this instruction may contain errors or typos.

  • You will need Xcode 12.2 or newer
  • The brew package manager https://brew.sh/
  • Then type the follwing commands in the Terminal, all of them one by one into a single line + Enter
    • brew install [email protected] autoconf automake pulseaudio
    • git clone https://github.com/minecraft-linux/mcpelauncher-manifest.git -b ng --recursive
    • cd mcpelauncher-manifest
    • mkdir build
    • cd build
    • CC=clang CXX=clang++ cmake .. -DOPENSSL_ROOT_DIR=/usr/local/opt/[email protected] -DJNI_USE_JNIVM=ON -DBUILD_WEBVIEW=OFF -DENABLE_QT_ERROR_UI=OFF
    • make -j4
    • cp ./mcpelauncher-client/mcpelauncher-client /Applications/Minecraft\ Bedrock\ Launcher.app/Contents/MacOS/mcpelauncher-client-arm64-v8a
  • Retry press play in the Launcher it should now go at least one step forward
  • Tell me if it crashs (with log) or works, otherwise select x86_64 versions and play under rosetta 2

However I tried to disable the use of the not installed launcher in this test (https://github.com/ChristopherHX/osx-packaging-scripts/releases/download/ng.dmg/Minecraft_Bedrock_Launcher_0.1.b5-macOS-x86_64-0.2.280_macOS_10.13.0.dmg), this might allways select only x86_64 versions under rossetta 2.

Edit-2021-08-04
Added missing make command

  • You need to run /Applications/Minecraft\ Bedrock\ Launcher.app/Contents/MacOS/mcpelauncher-qt -d
  • Open Settings
  • Check unsupported Versions
  • Edit profile and select any of Minecraft <version> (arm64-v8a)
  • Press download and play to see the launcher crashing

@ChristopherHX ChristopherHX added enhancement New feature or request help wanted Extra attention is needed M1 Mac ng (next generation) labels Jan 20, 2021
@Emmett239
Copy link
Author

Thanks

@Emmett239
Copy link
Author

It worked thank you

This was referenced Mar 10, 2021
@ChristopherHX
Copy link
Owner

Duplicate of #168

@ChristopherHX ChristopherHX marked this as a duplicate of #168 Mar 10, 2021
@ChristopherHX ChristopherHX added the duplicate This issue or pull request already exists label Mar 10, 2021
@ghost
Copy link

ghost commented Jun 4, 2021

  • CC=clang CXX=clang++ cmake .. -DOPENSSL_ROOT_DIR=/usr/local/opt/[email protected] -DJNI_USE_JNIVM=ON -DBUILD_WEBVIEW=OFF -DENABLE_QT_ERROR_UI=OFF

I just get CMake errors when performing CC=clang CXX=clang++ cmake .. -DOPENSSL_ROOT_DIR=/usr/local/opt/[email protected] -DJNI_USE_JNIVM=ON -DBUILD_WEBVIEW=OFF -DENABLE_QT_ERROR_UI=OFF

@ChristopherHX
Copy link
Owner

ChristopherHX commented Jun 4, 2021

You haven't even posted your cmake error.

This launcher needs changes to work on a m1 mac, it is confirmed that the launcher will always crash immediately.

I would need at least remote access to such a device, to experiment with the mcpelauncher-linker. I cannot reproduce the m1 (security) crash on an intel mac.

  • Play under rosetta2, use the normal x86_64 (amd64, intel) dmg file
  • Install linux arm64 and use the linux arm64 launcher

@Joemackley
Copy link

First off let me say that I have very little knowledge of the tools used to build this launcher, however since I have an m1 mac I thought I'd compile from the instructions posted earlier just out of my own curiosity, thought I would share my results here to see if this helps anyone at all

First this causes an error as it is unable to find openssl:
CMake Error at /opt/homebrew/Cellar/cmake/3.20.5/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the
system variable OPENSSL_ROOT_DIR (missing: OPENSSL_CRYPTO_LIBRARY
OPENSSL_INCLUDE_DIR)
Call Stack (most recent call first):
/opt/homebrew/Cellar/cmake/3.20.5/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
/opt/homebrew/Cellar/cmake/3.20.5/share/cmake/Modules/FindOpenSSL.cmake:570 (find_package_handle_standard_args)
mcpelauncher-client/CMakeLists.txt:6 (find_package)

This is fixed by inputting the correct path: /opt/homebrew/cellar/[email protected]/1.1.1k, running the build command with this now gives this result:

joe@Joes-Mac-mini build % CC=clang CXX=clang++ cmake .. -DOPENSSL_ROOT_DIR=/opt/homebrew/cellar/[email protected]/1.1.1k/ -DJNI_USE_JNIVM=ON -DBUILD_WEBVIEW=OFF -DENABLE_QT_ERROR_UI=OFF
#CMake Warning (dev) in CMakeLists.txt:
No project() command is present. The top-level CMakeLists.txt file must
contain a literal, direct call to the project() command. Add a line of
code such as

project(ProjectName)

near the top of the file, but after cmake_minimum_required().

CMake is pretending there is a "project(Project)" command on the first
line.
This warning is for project developers. Use -Wno-dev to suppress it.

-- Using Cocoa for window creation
CMake Deprecation Warning at osx-elf-header/CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.

Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.

CMake Deprecation Warning at epoll-shim/CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.

Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.

CMake Deprecation Warning at logger/CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.

Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.

CMake Deprecation Warning at base64/CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.

Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.

CMake Deprecation Warning at file-util/CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.

Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.

CMake Deprecation Warning at properties-parser/CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.

Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.

CMake Deprecation Warning at arg-parser/CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.

Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.

CMake Deprecation Warning at libc-shim/CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.

Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.

CMake Deprecation Warning at simple-ipc/CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.

Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.

CMake Deprecation Warning at daemon-utils/client/CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.

Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.

CMake Deprecation Warning at msa-daemon-client/CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.

Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.

CMake Deprecation Warning at file-picker/CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.

Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.

CMake Deprecation Warning at game-window/CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.

Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.

CMake Deprecation Warning at cll-telemetry/CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.

Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.

CMake Deprecation Warning at minecraft-imported-symbols/CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.

Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.

CMake Deprecation Warning at mcpelauncher-common/CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.

Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.

CMake Deprecation Warning at mcpelauncher-core/CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.

Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.

CMake Deprecation Warning at android-support-headers/CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.

Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.

CMake Deprecation Warning at mcpelauncher-client/CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.

Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.

-- Found OpenSSL: /opt/homebrew/cellar/[email protected]/1.1.1k/lib/libcrypto.dylib (found version "1.1.1k")
CMake Warning (dev) at /opt/homebrew/Cellar/cmake/3.20.5/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
The package name passed to find_package_handle_standard_args
(PulseAudioSimple) does not match the name of the calling package
(PulseAudio). This can lead to problems in calling code that expects
find_package result variables (e.g., _FOUND) to follow a certain
pattern.
Call Stack (most recent call first):
cmake/FindPulseAudio.cmake:57 (find_package_handle_standard_args)
mcpelauncher-client/CMakeLists.txt:24 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.

-- Found PulseAudioSimple: /opt/homebrew/lib/libpulse-simple.dylib
-- Found PulseAudio: /opt/homebrew/lib/libpulse.dylib
-- Configuring done
CMake Warning (dev) in mcpelauncher-errorwindow/CMakeLists.txt:
AUTOGEN: No valid Qt version found for target mcpelauncher-errorwindow.
AUTOMOC, AUTOUIC and AUTORCC disabled. Consider adding:

find_package(Qt<QTVERSION> COMPONENTS Widgets)

to your CMakeLists.txt file.
This warning is for project developers. Use -Wno-dev to suppress it.

-- Generating done
-- Build files have been written to: /Users/joe/mcpelauncher-manifest/build

Again I have absolutely no idea if this is any help at all but I thought I would share anyway, and thankfully the game does still perform very well under rosetta

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ARM duplicate This issue or pull request already exists enhancement New feature or request help wanted Extra attention is needed M1 Mac macOS ng (next generation)
Projects
None yet
Development

No branches or pull requests

3 participants