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

Requirements Ubuntu 20.04 #2

Open
lguenth opened this issue Jan 17, 2021 · 3 comments
Open

Requirements Ubuntu 20.04 #2

lguenth opened this issue Jan 17, 2021 · 3 comments

Comments

@lguenth
Copy link

lguenth commented Jan 17, 2021

Hiya,
correct aptitude packages for Ubuntu 20.4 would be:

sudo apt-get install libsdl2-2.0-0 libsdl2-ttf-2.0-0 libsdl2-image-2.0-0 libsdl2-dev libsdl2-ttf-dev libsdl2-image-dev

Compiled with cargo.

Running it gave me this error:

thread 'main' panicked at 'could not load icon: "Couldn\'t open assets/MIST.png"', src/app.rs:46:20

Changed the line to ../assets/MIST.png. Works.
After cancelling the optional "choose a config file", it gave me another prompt to get the default one which seems kinda counterintuitive tbh. 😄

Thanks for this project.

@LtPeriwinkle
Copy link
Owner

Thanks for the info on the Ubuntu packages, I haven't used Ubuntu so I was just guessing which packages it would need from the package search website.

You're right about the config file thing, its really awkward and I've been meaning to fix it for a while, so I'll get on that soon.

About the image file thing, are you running mist with cargo run? I haven't had problems with it that way, since it keeps the current directory as the crate root. To run without cargo you'll have to move the binary out of cargo's target directory and into the root of the repo so it can find its files.

@mygnu
Copy link

mygnu commented Apr 5, 2021

please add libsdl2-gfx-dev to the deps as well

@LtPeriwinkle
Copy link
Owner

ah thanks for reminding me, sorry about that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants