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

Can't build on Linux Mint 19.1 #64

Closed
Antzelino opened this issue Nov 30, 2019 · 5 comments
Closed

Can't build on Linux Mint 19.1 #64

Antzelino opened this issue Nov 30, 2019 · 5 comments

Comments

@Antzelino
Copy link
Contributor

Antzelino commented Nov 30, 2019

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
Copy link
Contributor Author

Antzelino commented Nov 30, 2019

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
Copy link
Contributor Author

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
Copy link
Member

rexim commented Nov 30, 2019

@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
Copy link
Contributor

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

@Antzelino
Copy link
Contributor Author

After:

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

It runs! :) thanks @rexim

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