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

Add linux compile support #67

Open
HeinrichWizardKreuser opened this issue Jun 30, 2022 · 2 comments
Open

Add linux compile support #67

HeinrichWizardKreuser opened this issue Jun 30, 2022 · 2 comments

Comments

@HeinrichWizardKreuser
Copy link

could we add a make file or a bash script for compiling it in linux?

@HeinrichWizardKreuser
Copy link
Author

I've looked into the repo in a bit more detail and found how to build it for linux in .travis.yml file and in appveyor.yml and found how to compile it for linux:

./compile_clang.sh
(cd test && ./compile_clang.sh)
(cd src/examples && ./compile_clang.sh)
cd ./build
ASAN_OPTIONS=detect_stack_use_after_return=1 ./test
ASAN_OPTIONS=detect_stack_use_after_return=1 ./test_double
ASAN_OPTIONS=detect_stack_use_after_return=1 ./simple
sleep 1 # wait for output

I do wish it was a bit more clear.

Can we add a segment in the README that would just explain how to compile it from scratch (on linux)?

@JCash
Copy link
Owner

JCash commented Jun 30, 2022

The compile_clang.sh shows and actual command line.

Also, it's just a header, and it should work with C/C++.
The example section shows how it's actually used.
I.e. simply include the file like so:

#define JC_VORONOI_IMPLEMENTATION
#include "jc_voronoi.h"

This is a common way to use single file header libraries.

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