From: Marian B. <mar...@gm...> - 2009-07-24 12:00:51
|
Hi Yuan. > -----Pôvodná správa----- > Od: Yuan Xu [mailto:xuy...@gm...] > Odoslané: 24. júla 2009 11:58 > Komu: Marian Buchta; Simspark Devel ML > Predmet: Re: [simspark-devel] building Simspark from source in Windows > > Hey Marian, > > Thanks! > The CPack helps, but as you said not a lot. > > 2009/7/24 Marian Buchta <mar...@gm...>: > > Hi Yuan. > > I also ran simspark successfully in Windows (with ode-0.11.1) with > single precision library. I prepeare update Simspark Wiki in part > Windows soon. Now, I testing various version of requirement libraries. > > > > As you wrote, you did many manually copying. I think it's not > necessary. After success build (simspark or rcssserver3D), cmake create > CPackConfig.cmake. CMake pack include also file cpack.exe. With > parameter >>>>> cpack -G ZIP --config > "<path_to_simspark>\CPackConfig.cmake" <<<<< and >>>>> cpack -G ZIP -- > config "<path_to_rcssserver3D>\CPackConfig.cmake" <<<<< it create two > zip files: rcssserver3d-0.6.2-win32.zip and simspark-0.1.1-win32.zip in > directory, where is cpack.exe. Create directory C:\Program > Files\simspark and unzip this two zip files to the simspark directory. > It looks like: > > c:\Program Files\simspark\bin\ > > c:\Program Files\simspark\lib\rcssserver3d\ > > c:\Program Files\simspark\lib\simspark\ > > etc. > > > > Also as you wrote, some enviroment variables are missing, but not > many. I added only path to the "c:\Program > Files\simspark\lib\rcssserver3d\" and "c:\Program > Files\simspark\lib\simspark\" . Ofcourse all requirement libraries > (ODE, Ruby, DevIL etc.) I copied manually. But in the past (simspark > version 0.6 in CVS) I created script (make.cmd), who copied all files > (rsg, rb, simspark DLLs) into a one package. But after split to a > simspark and rcssserver3D, this script is useless. I can update this > script to copy all requirement DLLs (ODE, Ruby ect.) into C:\Program > Files\simspark\bin. But I think it is not flexible solution, because > DLLs must by copy from specify directory (in simspark wiki is main > directory - C:\library) to specify directory (e.g. C:\Program > Files\simspark). > > > > So, we have this problems: > > 1. In linux (Ubuntu) is installation easy. After success build > (simspark and rcssserver3D), we type "make install" and files copying > into right directories. Is any way to do this in Windows? (except my > "hack" - pack into zip file and then upack) > > For the beginner to use our simulator, a windows-installer would be > great. > The CPacked package can only be installed in "c:\Programe Files" is not > good. > Install directory is saved in CMAKE_INSTALL_PREFIX. Default is C:\Program Files\simspark or C:\Program Files\rcssserver3d . You can easy change it during create project with cmake: cmake -G "Visual Studio 9 2008" "c:\simspark\trunk\spark" -DCMAKE_INSTALL_PREFIX=C:\whatever . Or if you like GUI, run CMakeSetup.exe and change it there. > > 2. Can CMake write into enviroment variables? > > I think it depends on windows command line. > Anyway, if we have a installer, it can do it. > CPack support Null Soft Installer. With nsi config file CPack create exe installer (I suppose). But I try to find better solution. > > 3. How and where can we copy requirement DLLs files into project? > How- script (cmd, cmake, post-build in visual studio), manually? Where- > simspark\bin\ or create new directory simspark\lib\others\ . (If copy > into new directory, we need add path into enviroment variables). > > Maybe, we need some copying task in post-build of cmake, it also helps > in Linux for that we may not to install the simspark in the system > directory. > > > > > Best Regards > > Marian Buchta > > > > -----Pôvodná správa----- > > Od: Yuan Xu [mailto:xuy...@gm...] > > Odoslané: 23. júla 2009 19:08 > > Komu: Hedayat Vatankhah > > Kópia: Simspark Devel ML > > Predmet: Re: [simspark-devel] building Simspark from source in > Windows > > > > Hi Hedayat, > > > > Thanks very much. > > > > 2009/7/22 Hedayat Vatankhah <hed...@ai...>: > >> Hi Yuan, > >> Yes, I built simspark on Windows successfully. Unfortunately, it is > not > >> documented at all. The only needed manual configuration should be > setting > >> some environment variables in Windows so that CMake can find all > required > >> stuff. And there was only one thing that I don't remember if I fixed > that or > >> not: detecting that you are linking with a double precision build of > ODE or > >> single precision and setting appropriate compiler flag for it. I > don't > >> remember what is the current state. You can try with the other kind > of > >> library (if you are linking with a single precision library, try > linking > >> with the double precision library or vice versa) to see if it solves > the > >> problem. I will have a look at it ASAP. > > > > Yes, you are right, it works after switching to single precision > library. > > If I want to use double precision ODE, how to configure it? > > > >> But, except the mentioned problem, if I remember correctly you can > build > >> both simspark and rcssserver3d by setting required environment > variables and > >> then running cmake. No tuning in Visual Studio must be required. > I've built > >> and ran simspark successfully in Windows (with ode-0.11). So, it > should > >> work. > > > > Of course, it is not necessary to turning in VS, but the > configuration > > in cmake or environment variables is time consuming. > > And also, I do a lot of copying manually, in order to put all the > data > > files (rsg, rb...) and .dll files in correct relative path. > > Is there any way to do it automatically? > > > >> > >> Also, I will try to send a brief how-to for it here. Sorry for > >> inconvenience. :( > > > > I think the information in wiki[1] is good, but some updates should > be > > added for the cmake. > > > >> > >> Good luck, > >> Hedayat > >> > >> On 07/22/2009 08:15 PM, Yuan Xu wrote: > >> > >> Hi all, > >> > >> I tried to build Simspark from source in Windows today, I followed > the > >> steps in [1] basically, but used CMake to generate solution files > for > >> Visual Studio 2008 Express Edition. > >> The project was build successfully after a lot manually > configuration > >> and copying. > >> But when I run the simspark, I got assertion from ODE: > >> > >> "ODE Message 2: mass must be > 0 (h:\nao\ode- > 0.11.1\ode\src\mass.cpp:49)" > >> > >> It seems that it caused by ball, since this error disappears after > >> committing the ball out in soccer.rsg, > >> but in this case what I got is only a black screen(with text in the > >> top of screen). > >> > >> Does anybody have idea about this or have build the simspark in > >> windows successfully? > >> Thanks! > >> > >> [1] > >> > http://simspark.sourceforge.net/wiki/index.php/Installation_on_Windows# > Creating_Windows_distribution_of_Simspark_from_source_.28from_2008-10- > 29.29 > >> > >> > > > > > > > > -- > > King Regards, > > > > Xu, Yuan > > > > --------------------------------------------------------------------- > --------- > > _______________________________________________ > > Simspark Generic Physical MAS Simulator > > simspark-devel mailing list > > sim...@li... > > https://lists.sourceforge.net/lists/listinfo/simspark-devel > > > > > > __________ Information from ESET NOD32 Antivirus, version of virus > signature database 4270 (20090723) __________ > > > > The message was checked by ESET NOD32 Antivirus. > > > > http://www.eset.com > > > > > > > > __________ Information from ESET NOD32 Antivirus, version of virus > signature database 4271 (20090723) __________ > > > > The message was checked by ESET NOD32 Antivirus. > > > > http://www.eset.com > > > > > > > > __________ Information from ESET NOD32 Antivirus, version of virus > signature database 4271 (20090723) __________ > > > > The message was checked by ESET NOD32 Antivirus. > > > > http://www.eset.com > > > > > > > > > > -- > King Regards, > > Xu, Yuan > > > __________ Information from ESET NOD32 Antivirus, version of virus > signature database 4273 (20090724) __________ > > The message was checked by ESET NOD32 Antivirus. > > http://www.eset.com > Good Luck Marian Buchta __________ Information from ESET NOD32 Antivirus, version of virus signature database 4273 (20090724) __________ The message was checked by ESET NOD32 Antivirus. http://www.eset.com |