[Rd] unable to load shared object - opencv

niandra gianluca.mastrantonio at yahoo.it
Thu Nov 8 21:53:28 CET 2012


i try to use this comman in terminal:
R CMD SHLIB  prova2.cpp -l/usr/local/lib -l/usr/local/include
-l/System/Library/Frameworks  and gave me this error

g++ -arch x86_64 -dynamiclib -Wl,-headerpad_max_install_names -undefined
dynamic_lookup -single_module -multiply_defined suppress -L/usr/local/lib -o
prova2.so prova2.o -l/usr/local/lib -l/usr/local/include
-l/System/Library/Frameworks -F/Library/Frameworks/R.framework/.. -framework
R -Wl,-framework -Wl,CoreFoundation
ld: library not found for -l/usr/local/lib
collect2: ld returned 1 exit status
make: *** [prova2.so] Error 1

Then when i use dyn.load("prova2.so") i get 

Errore in dyn.load("prova2.so") : 
  unable to load shared object
6): image not found

View this message in context: http://r.789695.n4.nabble.com/unable-to-load-shared-object-opencv-tp4648958p4648963.html
Sent from the R devel mailing list archive at Nabble.com.

More information about the R-devel mailing list