From: Marian B. <mar...@gm...> - 2009-08-25 13:53:19
|
Hi Hedayat, On Tue, Aug 25, 2009 at 12:22 AM, Hedayat Vatankhah <hed...@ai...>wrote: > Hi Marian, > > On ۰۹/۰۸/۲۵ 04:50, Marian Buchta wrote: > > Hi all. > > I installed Simspark and Rcssserver3d from [1] (for Windows). If I run > rcssserver3d.cmd, I see error about missing ruby (etc. msvcrt-ruby18.dll) > because package doesn’t include it. Rcssserver3d doesn’t need ruby library > for compilation. But it need to run. In Linux or Mac OS X is no problem with > library. But Windows package (rcssserver3d.exe) should be include this > library. I suggest insert this line into file rcssserver3d/CMakeLists.txt > after line 22: > > if(WIN32) > > find_package(Ruby REQUIRED) > > endif(WIN32) > > > > The same case is project Rsgedit. It need freetype, devil and ruby > libraries to run. In file rsgedit/CMakeLists.txt after line 13: > > If(WIN32) > > find_package(Freetype REQUIRED) > > find_package(DevIL REQUIRED) > > find_package(Ruby REQUIRED) > > endif(WIN32) > > > > This modification is only for NSIS Installer, which created package from > VS2008. > > I think this is very graceful solution how to include missing dll’s into > Windows package of projects. > > So what do you say? > > Yes, you are right. I thought that I'm using a statically linked Ruby since > there were no .dll files in ruby's lib/ directory. But surprisingly after > release someone complained about missing ruby .dll to me and I discovered > that it is located in ruby's bin/ directory. :P > > Adding these requirements is not enough, and we should add commands to find > and copy the .dll file(s) in appropriate directories. > We can add the find_package() command and other needed commands in > rcssserver3d and others... but now I'm suspect that this is the best way. > TBH, these are all simspark dependencies and not applications' (e.g. > rcssserver3d). So, I am thinking about it, and it seems that (IMHO) adding > such required .dll files in a simspark installation's directory (e.g. > simspark/lib/thirdparty) (which you suggested before) is a good solution. > We'll need to add this new directory to the .cmd files, but at least the > .dll files and commands to include them in the installer is only needed in > simspark. > > What do you think about it? > Yes, very good idea. As you said, mainly required dlls are simspark dependencies and should be in simspark installation's directory. Simspark installer will be bigger, but rcssserver3d and rsgedit installers will be smaller, because some dlls are the same in both installers. Also a updated Simspark Wiki (part Windows) [1]. I modified Rsgedit chapters. But I have one problem. During compilation project wxutils created only DLL and not LIB file. But rsgedit project need this LIB. Temporary solution is to create not dynamic but static library (delete word SHARED in trunk\rsgedit\wxutil\CMakeLists.txt:138). I think the problem is the same as [2]. I have question. Need rsgedit pthread library (\rsgedit\src\CMakeLists.txt:53)? [1] http://simspark.sourceforge.net/wiki/index.php/Installation_on_Windows [2] http://www.mail-archive.com/cm...@cm.../msg02904.html > > Thanks, > Hedayat > > > > [1] http://sourceforge.net/projects/simspark/files/ > > > __________ Information from ESET NOD32 Antivirus, version of virus > signature database 4364 (20090824) __________ > > The message was checked by ESET NOD32 Antivirus. > > http://www.eset.com > > ------------------------------ > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > > ------------------------------ > > _______________________________________________ > Simspark Generic Physical MAS Simulator > simspark-devel mailing lis...@li...https://lists.sourceforge.net/lists/listinfo/simspark-devel > > Best Regards, Marian Buchta |