Skip to content
This repository has been archived by the owner on Feb 15, 2024. It is now read-only.

Crashing on mac/Not working #19

Open
ultra-black opened this issue Jan 12, 2022 · 48 comments
Open

Crashing on mac/Not working #19

ultra-black opened this issue Jan 12, 2022 · 48 comments
Labels
bug Something isn't working help wanted Extra attention is needed wontfix This will not be worked on

Comments

@ultra-black
Copy link

Describe the bug
A crash happens when I open the file inside of bin > GNUSpraseFile.0 > MCPPPP-mac
Im not really good at code :(
I couldn't open the app once, this is my first time using it.

Screenshots
Look at logs

Important stuff

  • OS: macOS Mojave
  • Version/Commit Number: 10.14.6

Resourcepack
I couldn't even open the application, and upload one.

Logs

*computer name*:~ *name*$ /Users/*account*/Desktop/bin-3/GNUSparseFile.0/MCPPPP-mac ; exit;
/Users/*account*/Desktop/bin-3/GNUSparseFile.0/MCPPPP-mac: line 1: 3: command not found
/Users/*account*/Desktop/bin-3/GNUSparseFile.0/MCPPPP-mac: line 2: 0: command not found
/Users/*account*/Desktop/bin-3/GNUSparseFile.0/MCPPPP-mac: line 3: 4096: command not found
/Users/*account*/Desktop/bin-3/GNUSparseFile.0/MCPPPP-mac: line 4: 8192: command not found
/Users/*account*/Desktop/bin-3/GNUSparseFile.0/MCPPPP-mac: line 5: 1097728: command not found
/Users/*account*/Desktop/bin-3/GNUSparseFile.0/MCPPPP-mac: line 6: 1114112: command not found
/Users/*account*/Desktop/bin-3/GNUSparseFile.0/MCPPPP-mac: line 7: 427896: command not found
/Users/*account*/Desktop/bin-3/GNUSparseFile.0/MCPPPP-mac: line 86: syntax error near unexpected token `('
/Users/*account*/Desktop/bin-3/GNUSparseFile.0/MCPPPP-mac: line 86: `M???A?G~I???[A\A^A_]?*

Additional context
Nothing.

@ultra-black ultra-black added the bug Something isn't working label Jan 12, 2022
@ultra-black
Copy link
Author

Also I'm using MCPPPP-mac tar.gz

@supsm
Copy link
Owner

supsm commented Jan 12, 2022

Are there any mcpppp logs? they should be named MCPPPP-log.txt
also, what version of mcpppp was this?

@ultra-black
Copy link
Author

No there isnt any logs, i followed the instructions.
Also it is 0.5.7

@supsm
Copy link
Owner

supsm commented Jan 12, 2022

Are you on M1 mac or intel?

@ultra-black
Copy link
Author

Intel i5.

@supsm
Copy link
Owner

supsm commented Jan 12, 2022

Thanks for reporting, it may take a while to find out what the issue is and how to fix it

@ultra-black
Copy link
Author

I will be patient, thanks!

@FwuffyPetsOwO
Copy link

I am unable to replicate on M1 chip with MacOS Monterey (version 12.1)

I think it might be because your OS is too old to run the application properly. The mac version is compiled on MacOS Big Sur (version 11), which has several changes over the version 10 MacOS such as Mojave and Catalina. Thus it is likely that MacOS versions before Big Sur will not work with the compiled releases.

The source code may still be viable on any MacOS version. You will have to compile it yourself on your Mac to test this, however.

@ultra-black
Copy link
Author

Wait, so you mean I need to get the CLI version?
Im sorry for not knowing, as I said I'm not good at understanding code.

@supsm
Copy link
Owner

supsm commented Jan 12, 2022

No, you would need to compile it from source. Don’t worry though, it isn’t super hard as this has cmake now.
You’d need to download cmake (you’ll want macos 10.13 or later) then follow the instructions here

@ultra-black
Copy link
Author

Bit confused here, so I downloaded the source code... Now what do I do???
I didn't really understand because the build readme was confusing for me.

@supsm
Copy link
Owner

supsm commented Jan 12, 2022

After downloading cmake and the source code,

  1. open cmake-gui and set the source directory to the location of mcpppp source
  2. Set the build directory to the same, but add /build at the end
  3. Press configure, then generate
  4. Open a terminal in the mcpppp folder and run cmake —build build
  5. The built binaries should be in build/bin

I’ll probably make a tutorial or something in the future so it’s more clear

@ultra-black
Copy link
Author

For the 2nd step it says.

Build directory does not exist, should I create it?

Directory: /Users/account/Desktop/MCPPPP-0.5-1.7/build

@supsm
Copy link
Owner

supsm commented Jan 12, 2022

Yes create it

@ultra-black
Copy link
Author

When I try to Configure this happens
cmake1

This is what It said:
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.

Configuring done
When I try to Generate
This happens
cmake2
cmake 3

This is what it says
Configuring done
CMake Error at CMakeLists.txt:1 (add_executable):
No SOURCES given to target: Source.cpp

@supsm
Copy link
Owner

supsm commented Jan 12, 2022

Are you sure you downloaded mcpppp source code? Also it should be the latest commit not the release

@ultra-black
Copy link
Author

Oh, im gonna try that tommrow. I have to go for now. Thanks for the help

@ultra-black
Copy link
Author

Are you sure you downloaded mcpppp source code? Also it should be the latest commit not the release

Wait, how do you do that again? I forgot

@supsm
Copy link
Owner

supsm commented Jan 13, 2022

Go to the main project page, press the green Code button, and Download ZIP

@ultra-black
Copy link
Author

Yes, it works. but what do i do with the cmake —build build?

@supsm
Copy link
Owner

supsm commented Jan 13, 2022

You open a terminal in the mcpppp directory and run that

@ultra-black
Copy link
Author

So I drag it into the terminal???
Sorry if im wasting you time.

@supsm
Copy link
Owner

supsm commented Jan 13, 2022

You have to open a terminal then cd to the mcpppp directory

@FwuffyPetsOwO
Copy link

quick tip: if you go into finder and find the directory that contains the mcpppp folder, you can right-click on the mcpppp folder and then select "copy" and then you can paste into your terminal cd command to get there

@ultra-black
Copy link
Author

Everything worked, however. It says it was built for macOS 11.6+
And It didnt let me open it.

@supsm
Copy link
Owner

supsm commented Jan 13, 2022

w h a t

@ultra-black
Copy link
Author

/Users/accountname/Desktop/MCPPPP-mac ; exit;
account:~ name$ /Users/account/Desktop/MCPPPP-mac ; exit;
dyld: Symbol not found: ___darwin_check_fd_set_overflow
Referenced from: /Users/account/Desktop/MCPPPP-mac (which was built for Mac OS X 11.6)
Expected in: /usr/lib/libSystem.B.dylib
in /Users/account/Desktop/MCPPPP-mac
Abort trap: 6
logout
Saving session...
...copying shared history...
...saving history...tr

@ultra-black
Copy link
Author

damn

@supsm
Copy link
Owner

supsm commented Jan 13, 2022

Honestly I don't think I can help you anymore at this point... I'm completely clueless too

@ultra-black
Copy link
Author

Well, i just need a texture pack converted.
Thats all I need..
Im gonna send it later.

@ultra-black
Copy link
Author

w h a t

generated something for macos 11 when I'm in 10.14

bruh

@supsm
Copy link
Owner

supsm commented Jan 13, 2022

Hang on… are you running the one you just built? It should be in build/bin and named MCPPPP-gui

In the logs you sent, it was just on the desktop and it’s named MPPPP-mac instead

@ultra-black
Copy link
Author

Wait, if its in the thing in MCPPPP-master > build > bin there is nothing.

@supsm
Copy link
Owner

supsm commented Jan 13, 2022

Did you run cmake —build build?
Can you send logs of that

@ultra-black
Copy link
Author

Here are the logs.
username:~ username$ cd /Users/username/Downloads/MCPPPP-master
username:MCPPPP-master username$ cmake —build build
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)

-- Configuration Summary for FLTK 1.3.6 generated by CMake 3.22.1 --

-- The following OPTIONAL packages have not been found:

  • Doxygen

-- Static libraries will be built in /Users/username/Downloads/MCPPPP-master/build/lib/fltk/fltk-1.3.6/lib
-- Shared libraries will not be built (set OPTION_BUILD_SHARED_LIBS=ON to build)
-- Example programs will not be built (set FLTK_BUILD_EXAMPLES=ON to build)

-- End of Configuration Summary --

-- Configuring done
-- Generating done
-- Build files have been written to: /Users/username/Downloads/MCPPPP-master/build
username:MCPPPP-master username$

@supsm
Copy link
Owner

supsm commented Jan 13, 2022

Did you configure and generate beforehand?
Also it seems like it might need pkgconfig, but I don’t know how to install it

@ultra-black
Copy link
Author

ultra-black commented Jan 13, 2022

Did you configure and generate beforehand? Also it seems like it might need pkgconfig, but I don’t know how to install it

Yeah.

@supsm
Copy link
Owner

supsm commented Jan 13, 2022

Can you try downloading this one
https://github.com/supsm/MCPPPP/blob/master/bin/MCPPPP-mac.tar.gz

@ultra-black
Copy link
Author

Oh shoot I accedintily put my real name in..
Can you delete that from the discord? Please.

@ultra-black
Copy link
Author

username:~ username$ /Users/username/Desktop/MCPPPP-mac-1 ; exit;
dyld: Symbol not found: __ZNSt3__14__fs10filesystem16filesystem_errorD1Ev
Referenced from: /Users/username/Desktop/MCPPPP-mac-1 (which was built for Mac OS X 10.15)
Expected in: /usr/lib/libc++.1.dylib
in /Users/username/Desktop/MCPPPP-mac-1
Abort trap: 6
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

@supsm
Copy link
Owner

supsm commented Jan 13, 2022

aaaaaaaaaaaaaaaa

@ultra-black
Copy link
Author

It seems like you put the Catalina version
Not the Mojave one
Lol

@supsm
Copy link
Owner

supsm commented Jan 13, 2022

I think 10.15 is the earliest GitHub actions supports

@ultra-black
Copy link
Author

I'm on another Mac I don't really use, which has Big Sur 11.2
I tried downloading it from the realses but it didnt work. It crashed.
But when i tried this it opened

Can you try downloading this one https://github.com/supsm/MCPPPP/blob/master/bin/MCPPPP-mac.tar.gz

@supsm
Copy link
Owner

supsm commented Jan 16, 2022

For whatever reason, macs can't open applications compiled with a later version of macos. The second one I sent you was built with 10.15, and the releases are built with 11.6. In the future they will be built with 10.15, I previously did not know macs had this issue.

@FwuffyPetsOwO
Copy link

I assume the reason why Macs don't run applications compiled on newer MacOS is the same reason why the JVM doesn't run files compiled on newer Java versions, even if the code itself is perfectly compatible.

@supsm supsm added help wanted Extra attention is needed wontfix This will not be worked on labels Jan 20, 2022
@supsm
Copy link
Owner

supsm commented Jan 25, 2022

A little update on this… the code has just been updated to c++20. Unfortunately the versions of Xcode on the macOS 10.15 machines are unable to compile it, so it will now need a requirement of macOS 11.6+ again

@ultra-black
Copy link
Author

Yup Can comfirm

A little update on this… the code has just been updated to c++20. Unfortunately the versions of Xcode on the macOS 10.15 machines are unable to compile it, so it will now need a requirement of macOS 11.6+ again

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working help wanted Extra attention is needed wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

3 participants