From: Yuan Xu <xu...@in...> - 2009-01-22 10:37:18
|
Hi Hedayat, > > I don't know what's the problem since it works for me! :( > Would you please make sure that your simspark binary is actually rebuilt?! > rcssserver3d data directory is expected to be added inside simspark/main.cpp > to the list of resource locations. Would you please check the value of > RCSS_BUNDLE_PATH macro inside rcssserver3d_config.h? It should contain the > path of rcssserver3d data directory. > I've just rebuilt everything and installed both spark/rcssserver3d from > scratch and it works. :( > If it still doesn't work for you with the latest svn, you could put some > debugging messages in fileserver.cpp (LocateResource) to see which > directories are checked. > Please let me know the results. I changed the AC_DEFINE_UNQUOTED(RCSS_BUNDLE_PATH,["$prefix/share/"PACKAGE_NAME],["Data dir"]) to AC_DEFINE_UNQUOTED(RCSS_BUNDLE_PATH,[PREFIX"/share/"PACKAGE_NAME],["Data dir"]) in configure.ac, then it works for me. The new cmake supporting for rcssserver3d also works for me ( great work, Hedayat! ) maybe it's time to forget automake. ;-) > > This is not a new behavior, and not related to the resource management. It's > done by ScriptServer if I remember correctly (before separating packages, it > used .rcssserver3d instead). The script file is installed in the > installation directory, but when you run simspark (or monitorspark(now > rcssmonitor3d!)) it checks to see if kerosin.rb is available in your home > directory. If not, it'll copy kerosin.rb to .simspark in your home > directory. It's not a bad thing, since you can modify settings in your local > kerosin.rb without changing the original file. In fact it is proposed to do > the same thing with other configuration files so that users don't need root > access to change some settings. It's like other programs who store user > specific configuration in his home directory. > Yes, I know, and hope you will implement this soon ;-P Sincerely Xu, Yuan |