From: Marian B. <mar...@gm...> - 2009-02-15 20:13:19
|
Hi Hedayat and all developers. I successfully compiled Spark package in Windows Platform (Vista), but I have a couple questions about it: 1. Following projects need OpenGL extension header files[1]: glext.h – kerosin and imageperceptor glxext.h, wglext.h – kerosin I think it is a good idea to add this header files into Spark in spark/windows/include/GL (e.g. because of #include <GL/wglext.h>) 2. I must add many of “include_directories()” into different projects in Spark. My question is: Variable ${Boost_INCLUDE_DIRS} is required in many cmakelists.txt but not in all. It is better to add this variable to the each project, that are need? Or add this variable in global cmakelists.txt in spark directory? Or following variable is the same as previous: add_definitions(-D_CRT_SECURE_NO_WARNINGS). Not all project need this. 3. So, my major problem. Projects create executable and library files. All libraries are set to dynamic library (SHARED) except libobject and sexp. CMake generate Visual studio (I use 2008) projects. But some projects need STATIC version of other libraries. E.g. Sparkagent is dependent from oxygen, salt and zeitgeist libraries. So, this three libraries must be set to the STATIC (.lib) library. If not, Visual studio write out thousands of linking error. Maybe I found a solution[3] (please read all discusion), but it need many changes in (or redesign) CMmakeLists.txt files. If you have any proposal how to fix it, your wellcome :) . At last some notes: - In some projects I must add add_dependencies(), because I have a example, where one project compiled earlier then other at which first project need library of second project, so I have link error of missing library.. - I replaced old FindBoost.cmake with new one, because of error with finding library path (in ${Boost_LIBRARIES} variable). Old script found both libraries (boost thread and boost regex) but in variable ${Boost_LIBRARIES} was only second found path library. This new script is from new cmake 2.7 from this[2] site (file cmake-2.7.20090210-win32-x86.zip). Some changes (only for Windows compatibility) I uploaded to the SVN. Please, see changelog. Best Regards Marian [1] http://www.opengl.org/registry/ [2] http://www.cmake.org/files/vCVS/ [3] http://www.cmake.org/pipermail/cmake/2009-February/026964.html From: Hedayat Vatankhah [mailto:hed...@ai...] Sent: Sunday, January 25, 2009 3:42 PM To: Marian Buchta Cc: sim...@li... Subject: Re: [simspark-devel] Windows build of Simspark Thanks a lot :) Sorry for lack of information about cmake from my side :) Good luck, Hedayat "Marian Buchta" <mailto:mar...@gm...> <mar...@gm...> wrote on ۰۹/۰۱/۲۳ 12:46:19: Hi Hedayat, Ok, no problem. I will try it. But first, I must read the Wiki about CMake to know „what going on :)“. Best Regards Marian From: Hedayat Vatankhah [mailto:hed...@ai...] Sent: Friday, January 23, 2009 9:24 AM To: Marian Buchta Cc: sim...@li... Subject: Re: [simspark-devel] Windows build of Simspark Hi Marian, Thanks a lot for working on this. Yes, after migration Windows and Mac OSX support were expected to break since I don't use them :(. But can I ask you something? A good thing about CMake is that it can generate Visual Studio project files. It would be nice if we can generate VS project files using CMake, then we won't need to maintain VS files which will break from time to time when introducing new features. So, it would be much better if you can try to generate VS project files using cmake and fix the problems in cmake so that the generated files work without any problems. In this case, there is no need to put VS project files in SVN. Also, in this case sparkconfig.h will be generated by CMake. Would you please try it? Thanks in advance! ;) Anyway, please fix windows\sparkconfig.h as required. I don't know why the mentioned line is absent, maybe I've used sparkconfig.h from the old simspark CVS instead of rcssserver3d CVS. :) I've just copied these windows and MacOSX related files blindly. Sorry for that :( Good luck, Hedayat "Marian Buchta" <mailto:mar...@gm...> <mar...@gm...> wrote on 01/23/2009 04:29:58 AM: Hi all. Sorry for my long delay, but I have a lot of work. So I have not much time for Simspark. As I have read (in rcssserver3d in simspark SVN, what's next?[1]) Windows binaries are out of date. In past, I created binary of rcssserver3D (from last source code from CVS from 29.10.08) and also created Instalation guide for build rcssserver3D for Windows[2]. Instalation guide is out of date because I cannot login to the Wiki (reason is set the permission only for Mr. Oliver Obst). So, Windows build already exists but only from source code of CVS. Ofcourse after migration of Simspark to the SVN (btw, great work Hedayat), Visual Studio 2008 project not work. I modified this project and Simspark successfuly build and tested (simspark, agentspark (new rcssagent3d), monitorspark)[3]. The name of agentspark is old and I change this later. In the near term I upload Visual Studio 2008 project to the SVN. Before upload I post here structure of directories of project. I think, best directory for this project is simspark\trunk\spark\windows\. @Hedayat: If I compare file simspark\trunk\spark\windows\sparkconfig.h from CVS and from SVN, I see different. New file hasn’t this define: #define HAVE_IL_IL_H 1 It’s necessary for Windows build. Cheers, Marian [1] https://sourceforge.net/mailarchive/message.php?msg_name=fcadf6b00811281425l23618931maeb8e7a83e206b3%40mail.gmail.com [2] http://simspark.sourceforge.net/wiki/index.php/Installation_on_Windows [3] http://img517.imageshack.us/my.php?image=simsparksvnsj8.jpg __________ Information from ESET NOD32 Antivirus, version of virus signature database 3791 (20090122) __________ The message was checked by ESET NOD32 Antivirus. http://www.eset.com |