Difference between revisions of "User:Michelle2 Zenovka/cmake"
(→Add some missing files)
|Line 77:||Line 77:|
== Problems ==
== Problems ==
Revision as of 09:06, 29 May 2008
How to build the viewer with cmake
Prerequisites for windows
- cmake (well duh!)
- bison and flex (from cygwin)
- DirectX SDK (Microsoft DirectX SDK (November 2007))
- Quicktime SDK
- openssl SDK
Get cmake from http://www.cmake.org/HTML/Download.html Download and install the setup executable
Get python from http://www.python.org
Get cygwin from http://www.cygwin.com/
Get DirectX SDK November 2007 from Microsoft Warning 400MB+
Get Quicktime SDK from Apple http://developer.apple.com/quicktime/download/
Not sure why this is not packaged with the viewer, need to verifiy and or file a JIRA. Some windows packages are avaiable which may be a better solution. Work to do
Get the source
At the time of writing the source is only available via SVN. This may be a problem for windows users and the best plan is to look for a windows SVN client OR install the svn tools in cygwin. The most recent cmake test is cmake-8
Check out the source :-
After getting the source, look at the file linden/doc/assert_urls.txt to find the location of the current libs and artwork packages to support this build. Download these files and unpack them on top of the source.
In the future this section will change to a straight forward download from the usual viewer source location.
Generate the project files
- VC2003 (default)
- VC80 (VS2005)
- VC90 (VS2008)
develop.py -G VC90
will generate project files for Visual C++ 2008
Build the viewer
Now the previous cmake process will have generated some Visual Studio files for you under linden/indra/build-vc71 (in fact the exact path name depends on which visual studio you have files generated for). Just open the solution file .sln in that folder and build the solution in the standard way.
- At the last SVN drop the CMakeLists.txt refer to copy_win_scripts that do not exists.
- My last sucessful compile ended in problems linking the boost libraries but i have not tested this in a week or 2