Fork of openGJK with minor fixes https://github.com/MattiaMontanari/openGJK/pull/42
 
 
Go to file
wilwal23 101502c438
Update CMakeLists.txt
Issue #25 solved. 
Added if at line 45, based on this question:
https://stackoverflow.com/questions/2274006/cmake-invalid-numeric-argument-wextra

After that, a new error popped up concerning "m.lib" file not found.
Removed "m" at line 61, based on this question:
https://stackoverflow.com/questions/19333898/lnk1181-cannot-open-input-file-m-lib

Now the project can be built successfully and the example runs correctly.

PS: I'm not a computer scientist so I do not assure what I did is wrong, consider this pull request as a hint to solve Issue #25.
2022-07-17 12:52:03 +02:00
examples Minalistic community edition (CE) library 2022-07-09 23:10:45 +02:00
include/openGJK Minalistic community edition (CE) library 2022-07-09 23:10:45 +02:00
.gitignore Merge branch 'cmakeWin' into dev 2021-07-03 13:33:36 +02:00
CMakeLists.txt Update CMakeLists.txt 2022-07-17 12:52:03 +02:00
LICENSE New sub-algorithm 2020-04-18 12:28:17 +01:00
README.md address in gitclone 2022-07-09 23:45:07 +02:00
openGJK.c Minalistic community edition (CE) library 2022-07-09 23:10:45 +02:00

README.md

Get started

If you have some basic tools installed (git, compiler and cmake) clone this repo:

git clone https://github.com/MattiaMontanari/openGJK.git

followed by these commands:

cmake -E make_directory build
cmake -E chdir build cmake -DRUN_UNITESTS=ON  -DCMAKE_BUILD_TYPE=Release .. 
cmake --build build 
cmake -E chdir build/examples/c ./example_lib_opengjk_ce
cmake -E chdir "build/test" ctest --build-config Release

If you get no errors, the successfull output is:

Distance between bodies 3.653650.

However, if you do get an error - any error - please file a bug! Support requests are welcome too.

Beyond getting started

With the commands above you have built a demo example tha invokes the openGJK library. The library is statically linked and the distance between two bodies is computed and returned.

To learn how to use this library in your project the best place to start is the demo. Look at main.c and the other examples. In examples/c/CMakeLists.txt you can find how simple is to link using CMake.