Difference between revisions of "Build from source for Win32"

From CEGUI Wiki - Crazy Eddie's GUI System (Open Source)
Jump to: navigation, search
(CURRENTLY UNDER CONSTRUCTION 8/22/12)
m (Installing CEGUI on Windows XP Visual Studio 2003 .NET)
Line 2: Line 2:
 
= CURRENTLY UNDER CONSTRUCTION 8/22/12 =
 
= CURRENTLY UNDER CONSTRUCTION 8/22/12 =
  
= Installing CEGUI on Windows XP Visual Studio 2003 .NET =
+
= Installing CEGUI on Windows 7 Visual Studio 2010 Express =
Install instructions: 21/09/06
+
Install instructions: 08/22/2012
 +
 
 +
# Download: [http://sourceforge.net/projects/crayzedsgui/files/CEGUI%20Mk-2/0.7.7/CEGUI-0.7.7.zip/download] [http://sourceforge.net/projects/crayzedsgui/files/CEGUI%20Mk-2%20MSVC%2B%2B%20Dependencies/0.7.x/CEGUI-DEPS-0.7.x-r3-vc10.zip/download]
 +
 
 +
# Unpack <tt>CEGUI-0.7.7.zip</tt> files to <tt>c:\CEGUI-0.7.7\</tt> or some other path.
 +
 
 +
# Unpack <tt>CEGUI-DEPS-0.7.x-r3-vc10.zip</tt> files. Now cut and past the '''dependencies''' folder into <tt>c:\CEGUI-0.7.7\</tt>
 +
 
 +
# Run '''build_vs2008.bat''' located in <tt>C:\CEGUI-0.7.7\projects\premake\</tt> -You should now have a '''CEGUI.sln''' file.
 +
 
 +
# Run the '''CEGUI.sln''' using ''Visual C++ Express 2010''. It should now load up the MSVC integrated development environment (IDE). It should also present you with a conversion wizard to convert the MSVC 2008 solution file (.sln) into a '''MSVC 2010 .sln'''
 +
 
 +
# Press the '''Finish''' button in the conversion wizard, and then press '''Close'''. It should convert it to the proper format now.
 +
 
 +
# Change the Solution Configurations drop-down list-box at the top of the MSVC IDE from the default '''Debug''' to '''Release''', or leave it set to '''Debug'''.
 +
 
 +
# Next, you have 3 options on how you may proceed to actually build the solution. You can click on the menu bar, which will open up a context menu; click on the '''Build Solution''' option when you're ready. You do that, or if you'd like, you can just press '''F7''' instead. Alternately, in the Solution Explorer, usually found to the right side of the IDE, you can ''right-click'' on the top most label which reads '''Solution 'CEGUI' (14 Projects)''', and then click on '''Build Solution''' from that context  menu.
 +
 
 +
Your ''CEGUI-0.7.7'' lib files will now be generated in
 +
<tt>C:\CEGUI-0.7.7\lib\</tt>
 +
 
 +
Notice that after it all builds that one project, called '''CEGUIDirect3D9Renderer''' will not build due to an error, but the other 13 projects will. Inspecting the compiler output located at the bottom of the IDE will reveal why. If you look carefully through the output, you'll see this error repeating itself:
 +
''fatal error C1083: Cannot open include file: 'd3dx9.h': No such file or directory''
 +
This is due to the fact that we haven't told the compiler to locate '''d3dx9.h''' If you're missing the appropriate ''DirectX SDK'' header files that the compiler is supposed to be linking to for the '''CEGUIDirect3D9Renderer''' project, and you want to render CEGUI using DirectX, you should link the ''proper version'' of DirectX to this project.
 +
 
 +
I'm a bit vague on this aspect because I do not use DirectX SDK myself, it is beyond the scope of my practical knowledge relating to CEGUI, but it shouldn't be hard to figure out how to link it in manual via '''Debug\Options and Settings...''' found in the ''main menu bar'' at the top of the IDE.
 +
 
 +
Now, excluding the '''CEGUIDirect3D9Renderer''' project, if you've made it this far: '''CONGRATULATIONS!''' You're now playing with power - '''CEGUI POWER!!!''' Enjoy XD
 +
 
  
# Download: [http://prdownloads.sourceforge.net/crayzedsgui/CEGUI-0.5.0-RC2.zip?download 0.5.0-RC2] [http://prdownloads.sourceforge.net/crayzedsgui/CEGUI-0.5.0-RC2-deps-vc71.zip?download Dependencies] to <tt>c:\CEGUI\</tt> or some other path.
 
# Unpack <tt>CEGUI-0.5.0-RC2.zip</tt> files. Now the catalog structure lookes like this: <tt>c:\CEGUI\CEGUI-0.5-0-RC2</tt>
 
# Download [http://sourceforge.net/project/showfiles.php?group_id=71616 premake 3.1], unzip it, and place it in <tt>c:\CEGUI\CEGUI-0.5-0-RC2\makefiles\premake\</tt>
 
# Unzip the <tt>CEGUI-0.5.0-RC2-deps-vc71.zip</tt>
 
  
 
[[Category:HowTo]]
 
[[Category:HowTo]]
 
[[Category:WIP]]
 
[[Category:WIP]]

Revision as of 09:35, 22 August 2012

Written for CEGUI 0.5


Works with versions 0.5.x (obsolete)

CURRENTLY UNDER CONSTRUCTION 8/22/12

Installing CEGUI on Windows 7 Visual Studio 2010 Express

Install instructions: 08/22/2012

  1. Download: [1] [2]
  1. Unpack CEGUI-0.7.7.zip files to c:\CEGUI-0.7.7\ or some other path.
  1. Unpack CEGUI-DEPS-0.7.x-r3-vc10.zip files. Now cut and past the dependencies folder into c:\CEGUI-0.7.7\
  1. Run build_vs2008.bat located in C:\CEGUI-0.7.7\projects\premake\ -You should now have a CEGUI.sln file.
  1. Run the CEGUI.sln using Visual C++ Express 2010. It should now load up the MSVC integrated development environment (IDE). It should also present you with a conversion wizard to convert the MSVC 2008 solution file (.sln) into a MSVC 2010 .sln
  1. Press the Finish button in the conversion wizard, and then press Close. It should convert it to the proper format now.
  1. Change the Solution Configurations drop-down list-box at the top of the MSVC IDE from the default Debug to Release, or leave it set to Debug.
  1. Next, you have 3 options on how you may proceed to actually build the solution. You can click on the menu bar, which will open up a context menu; click on the Build Solution option when you're ready. You do that, or if you'd like, you can just press F7 instead. Alternately, in the Solution Explorer, usually found to the right side of the IDE, you can right-click on the top most label which reads Solution 'CEGUI' (14 Projects), and then click on Build Solution from that context menu.

Your CEGUI-0.7.7 lib files will now be generated in C:\CEGUI-0.7.7\lib\

Notice that after it all builds that one project, called CEGUIDirect3D9Renderer will not build due to an error, but the other 13 projects will. Inspecting the compiler output located at the bottom of the IDE will reveal why. If you look carefully through the output, you'll see this error repeating itself: fatal error C1083: Cannot open include file: 'd3dx9.h': No such file or directory This is due to the fact that we haven't told the compiler to locate d3dx9.h If you're missing the appropriate DirectX SDK header files that the compiler is supposed to be linking to for the CEGUIDirect3D9Renderer project, and you want to render CEGUI using DirectX, you should link the proper version of DirectX to this project.

I'm a bit vague on this aspect because I do not use DirectX SDK myself, it is beyond the scope of my practical knowledge relating to CEGUI, but it shouldn't be hard to figure out how to link it in manual via Debug\Options and Settings... found in the main menu bar at the top of the IDE.

Now, excluding the CEGUIDirect3D9Renderer project, if you've made it this far: CONGRATULATIONS! You're now playing with power - CEGUI POWER!!! Enjoy XD