← Back to team overview

yade-dev team mailing list archive

Re: How to use a plugin

 

Thanks Vaclav.  Yes, I have included Scene and Omega in the header.  After some trial and error, this works:
Scene* scene = Omega::instance().getScene().get();
Is it different from the previous: shared_ptr<Scene> scene = Omega()::instance().getScene() ?

Another weird error I got is this, although I've included the path in LIBPATH and CPPPATH:
13    FATAL yade.Omega /home/chiab/yadeNew/Branch6/core/Omega.cpp:229 loadPlugins: /home/chiab/yadeNew/YADEb6/lib/yade-b6/extra/libCWBoonPlugin3.so: libnagc_nag.so: cannot open shared object file: No such file or directory

I did a check:
chiab@engs-018383:/usr/local/NAG/cll6a09dhl/lib$ ls -l libnagc_nag.so
lrwxrwxrwx 1 root root 19 2010-04-07 11:10 libnagc_nag.so -> ./libnagc_nag.so.09


Yours,

Boon

 		 	   		  
_________________________________________________________________
Your E-mail and More On-the-Go. Get Windows Live Hotmail Free.
https://signup.live.com/signup.aspx?id=60969


Follow ups

References