From: Marian B. <mar...@gm...> - 2009-07-24 14:51:06
|
Hi Yuan, > -----Pôvodná správa----- > Od: Yuan Xu [mailto:xuy...@gm...] > Odoslané: 24. júla 2009 14:14 > Komu: Marian Buchta; Simspark Devel ML > Predmet: Re: [simspark-devel] building Simspark from source in Windows > > Hi Marian, > > > > > > 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. > > > > > > That's true, but the directory can only be set before building, > so someone do not want to build from source, but the package have to > be installed in the same directory. > I think, we can do this: 1. Build from source: download source code, cmake, open simspark project, build project ALL_BUILD and then build project INSTALL - this copy all files into C:\Program Files\simspark. Then open rcssserver3d project and build project ALL_BUILD and then build project INSTALL - C:\Program Files\rcssserver3d. If it change install directory for simspark (e.g. C:\whatever), project rcssserver3d will have a problem with finding simspark directory because trunk\rcssserver3d\cmake\FindSpark.cmake find only in "C:/Program Files/simspark" and "C:/Library/simspark" (line 30: SET(SPARK_DIR $ENV{SPARK_DIR} "C:/Program Files/simspark" "C:/Library/simspark")). Can you set SPARK_DIR from console via cmake? If yes, problem solved :). But enviroment variable must be manually set up. 2. We can create installer by Null Soft. One for simspark and one rcssserver3d. And then upload to the [1] as 2 separate packages. In past I created some nsi files. But it take some time to create them, because I have a lot of work to do. Null Soft Installer can set up also set up registers, enviroment variables, copy files and many more. What do you think? > > > > CPack support Null Soft Installer. With nsi config file CPack create > exe installer (I suppose). But I try to find better solution. > > > > Do you have any idea? > > -- > 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 > Cheers, Marian Buchta [1] https://sourceforge.net/projects/simspark/files/ __________ Information from ESET NOD32 Antivirus, version of virus signature database 4274 (20090724) __________ The message was checked by ESET NOD32 Antivirus. http://www.eset.com |