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

Crash when compiling #1

Closed
sbrl opened this issue Jun 22, 2020 · 2 comments
Closed

Crash when compiling #1

sbrl opened this issue Jun 22, 2020 · 2 comments

Comments

@sbrl
Copy link

sbrl commented Jun 22, 2020

Hey there! I found this through your blog post, which I found from a recent comment on r/proceduralgeneration on Reddit.

When try to compile this, I get the following error message:

g++ -std=c++11 territory.cpp -Wall -lSDL2 -I/usr/local/include -L/usr/local/lib -lnoise -lSDL2_image -lSDL2_ttf -o territory
In file included from view.h:4,
                 from territory.cpp:4:
worldgen.h:2:10: fatal error: noise/noise.h: No such file or directory
    2 | #include <noise/noise.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
make: *** [makefile:7: all] Error 1

Reproduction steps:

git clone https://github.com/weigert/proceduralweather.git
cd proceduralweather/
make all
@weigert
Copy link
Owner

weigert commented Jun 22, 2020

Hey there! I found this through your blog post, which I found from a recent comment on r/proceduralgeneration on Reddit.

Awesome!

The compiler can't find the libnoise library. What operating system are you using?

Here is a similar issue on Ubuntu 19: weigert/territory#15

libnoise is simply in a different location on some systems.

Let me know if doesn't work!

@sbrl
Copy link
Author

sbrl commented Jun 23, 2020

Ah, I see. I thought that because of the noise/noise.h, it referred to a library local to the project, rather than system-wide.

I'm using Ubuntu 20.04, and I don't have libnoise (or libnoise-dev) installed - so that's probably the issue.

@sbrl sbrl closed this as completed Jun 23, 2020
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

2 participants