HackerPoet / MarbleMarcher

A Fractal Physics Game
GNU General Public License v2.0
2.47k stars 167 forks source link

[macOS Mojave 10.14, SFML 2.5.1] Build succeeds, launch fails #20

Open BaconWrappedShrimpWithEyes opened 5 years ago

BaconWrappedShrimpWithEyes commented 5 years ago

After cloning the repository and following build instructions, launching unix executable MarbleMarcher fails with error

Failed to open shader file "assets/vert.glsl"
Failed to compile vertex shader

Why might this be happening? I can give more details if necessary, but everything else says it succeeds, so I don't know what could be helpful.

tomlister commented 5 years ago

Move the executable into the root directory. Damn I can't even get this to build properly.

BaconWrappedShrimpWithEyes commented 5 years ago

Does “Root Directory” mean the folder which the repository was cloned into? Because the name of the repository and the name of the executable are the same (and changing the name of the executable in order to copy it gave me the same error).

Does it mean /Users/[username]/? If that’s so, is there somewhere specific the repository must be cloned to?

Does it mean repository root? ([clone location]/MarbleMarcher/)? If that’s the case, that didn’t work either.

Does it mean true root? As in the root directory containing Users, Applications, usr and lib folders? This gives the same follow up question as /Users/[username] about whether there is a specific folder the clone has to be in.

Could I get some clarification? Thanks.

tomlister commented 5 years ago

Okay hang on, leave the executable in the build folder and cd into the parent folder then run the executable from there.

On Thu, Jan 17, 2019 at 10:25 PM BaconShrimpEyes notifications@github.com wrote:

Does “Root Directory” mean the folder which the repository was cloned into? Because the name of the repository and the name of the executable are the same (and changing the name of the executable in order to copy it gave me the same error).

Does it mean /Users/[username]/? If that’s so, is there somewhere specific the repository must be cloned to?

Does it mean repository root? ([clone location]/MarbleMarcher/)? If that’s the case, that didn’t work either.

Does it mean true root? As in the root directory containing Users, Applications, usr and lib folders? This gives the same follow up question as /Users/[username] about whether there is a specific folder the clone has to be in.

Could I get some clarification? Thanks.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/HackerPoet/MarbleMarcher/issues/20#issuecomment-455138703, or mute the thread https://github.com/notifications/unsubscribe-auth/AGSvc19kGiSslW-XnebAdpPBCgoNZ5VAks5vEF3DgaJpZM4aD2-Y .

mygizli04 commented 5 years ago

@BaconWrapped move the executable to the root of the repository ( where "assets" is ). When you want to move the game you also have to move the assets folder

CrushedPixel commented 5 years ago

@BaconWrappedShrimpWithEyes please try re-compiling the game from master and playing it again. PR #37 should have fixed your issue, if you're on a MacBook.