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

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

Edit

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
'/Users/niandra/Desktop/statistico/r/builtpack/ProvaScript/prova2.so':  

dlopen(/Users/niandra/Desktop/statistico/r/builtpack/ProvaScript/prova2.so, 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.



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel 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 https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive