'ld: unknown parameter: -rpath =. / libs' - binding error while creating addframework addon on mac os 10.7.5

I am new to coding and I am trying to create an example addframework addon project called ofxReprojection . When I go:

cd /Users/Macbookpro/Documents/openframeworks/addons/ofxReprojection/example-ofxKinect 

and then

 make 

I get this error:

 ld: unknown option: -rpath=./libs clang: error: linker command failed with exit code 1 (use -v to see invocation) make[1]: *** [bin/example-ofxKinect] Error 1 make: *** [Release] Error 2 Macbooks-MacBook-Pro:example-ofxKinect Macbookpro$ 

I have Mac OS 10.7.5.

I hope someone can help, for the sake of art :)

+6
source share
2 answers

Use instead of = to pass arguments. Using = is a GNU linker function. For example, use -Wl,-rpath,./libs to install RPATH .

On the clang man page:

If an option contains commas, it is divided into several options in commas. You can use this syntax to pass an option argument.

+8
source

I had a similar error while compiling another source code on my Mac. After removing '=' from '-rpath', a compilation error is resolved.

+1
source

Source: https://habr.com/ru/post/976995/


All Articles