I tried running the commands line by line as you suggested. turns out that I was using visual studio as generator for cmake which doesn't generate 'makefile'. so I ran cmake -G "MSYS Makefiles" and which generated 'makefile' but still fails to build at different stages of build.
I'm assuming that I should use specific generator for cmake in order to build Chipmunk package. But I gave up at this point and move on to GLVisualize.jl <https://github.com/JuliaGL/GLVisualize.jl> which looks more promising. but thanks for your advise! that was very helpful
