Re: [Rd] unable to load shared object - opencv

From: niandra <>
Date: Thu, 08 Nov 2012 12:53:28 -0800 (PST)


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.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: *** [] Error 1

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

Errore in dyn.load("") :
  unable to load shared object

dlopen(/Users/niandra/Desktop/statistico/r/builtpack/ProvaScript/, 6): image not found


View this message in context: Sent from the R devel mailing list archive at mailing list Received on Thu 08 Nov 2012 - 20:56:35 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 08 Nov 2012 - 22:20:50 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive