tsoding / boomer

Zoomer application for Linux
MIT License
439 stars 39 forks source link

Can't build on Linux Mint 19.1 #64

Closed Antzelino closed 4 years ago

Antzelino commented 4 years ago

I have Linux Mint 19.1 Cinnamon. Cinnamon Version 4.0.10 (no idea if that's important). Linux Kernel 4.15.0-70-generic (also no idea if that's important).

I didn't have nim installed so i just sudo apt-get install nim and then followed the readme.md:

$ git clone git://github.com/tsoding/boomer.git ~/boomer/
$ cd ~/boomer
$ nimble build -d:release

And I get this error:

Warning: Package 'boomer' has an incorrect structure. The top level of the package source directory should contain at most one module, named 'boomer.nim', but a file named 'navigation.nim' was found. This will be an error in the future.
Hint: If this is the primary source file in the package, rename it to 'boomer.nim'. If it's a source file required by the main module, or if it is one of several modules exposed by 'boomer', then move it into a 'boomerpkg/' subdirectory. If it's a test file or otherwise not required to build the the package 'boomer.nim', prevent its installation by adding `skipFiles = @["navigation.nim"]` to the .nimble file. See https://github.com/nim-lang/nimble#libraries for more info.
Verifying dependencies for boomer@0.0.1
    Error: Unsatisfied dependency: nim (>= 0.18.0)

What do I do? When I do nim -h I get Nim Compiler Version 0.17.2 (2018-02-05) [Linux: amd64] (etc...). Shouldn't apt-get install give me the latest version? 🤔

Antzelino commented 4 years ago

On https://nim-lang.org/install_unix.html I found

$ curl https://nim-lang.org/choosenim/init.sh -sSf | sh

to install latest nim, so I'm trying this right now.

Antzelino commented 4 years ago

Successfully installed and successfully compiled with nimble build -d:release. It compiles so it works, right? Well, I got:

could not load: libGL.so
compile with -d:nimDebugDlOpen for more information

So I tried that, and then I got:

libX11.so: cannot open shared object file: No such file or directory
libX11.so: cannot open shared object file: No such file or directory
libGL.so: cannot open shared object file: No such file or directory
could not load: libGL.so

So I guess there is some library about GL or X11 or something that I have to install. Anyone know what it is and how to install?

rexim commented 4 years ago

@Antzelino I have not used Ubuntu based distros for age, but I think you can try to install libx11-dev and libgl1-mesa-dev packages. I think this where libX11.so and libGL.so could be located.

SolitudeSF commented 4 years ago

opengl bindings link to libGL.so instead of libGL.so.1, and former in many distros is only present in dev packages.

Antzelino commented 4 years ago

After:

$ sudo apt-get install libx11-dev libgl1-mesa-dev

It runs! :) thanks @rexim