From gianluca.mastrantonio at yahoo.it  Thu Nov  8 21:53:28 2012
From: gianluca.mastrantonio at yahoo.it (niandra)
Date: Thu, 8 Nov 2012 12:53:28 -0800 (PST)
Subject: [Rd] unable to load shared object - opencv
In-Reply-To: <41EEA755-C100-4F04-9E02-92CF7F1294B8@r-project.org>
References: <1352405973652-4648958.post@n4.nabble.com>
	<41EEA755-C100-4F04-9E02-92CF7F1294B8@r-project.org>
Message-ID: <1352408008560-4648963.post@n4.nabble.com>

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.



[Rd] unable to load shared object - opencv
niandra