Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add cegui #24

Open
LinuxDonald opened this issue Jan 29, 2017 · 7 comments
Open

Add cegui #24

LinuxDonald opened this issue Jan 29, 2017 · 7 comments

Comments

@LinuxDonald
Copy link
Collaborator

http://static.cegui.org.uk/docs/0.8.7/compiling.html

For activate Python support: "CEGUI_BUILD_PYTHON_MODULES"
Disable LUA , Direct3D
Enable OpenGL, OpenGL3
XML parser expat

@LinuxDonald
Copy link
Collaborator Author

Config from Belair

//Specifies whether to build the application templates.
CEGUI_BUILD_APPLICATION_TEMPLATES:BOOL=OFF

//Specifies whether to build the application template for GLFW3
CEGUI_BUILD_APPLICATION_TEMPLATE_GLFW3:BOOL=OFF

//Specifies whether to build the application template for SDL2
CEGUI_BUILD_APPLICATION_TEMPLATE_SDL2:BOOL=OFF

//Specifies whether to build the datafiles test.
CEGUI_BUILD_DATAFILES_TEST:BOOL=OFF

//Specifies whether to build the Corona based ImageCodec module
CEGUI_BUILD_IMAGECODEC_CORONA:BOOL=OFF

//Specifies whether to build the DevIL based ImageCodec module
CEGUI_BUILD_IMAGECODEC_DEVIL:BOOL=OFF

//Specifies whether to build the FreeImage based ImageCodec module
CEGUI_BUILD_IMAGECODEC_FREEIMAGE:BOOL=OFF

//Specifies whether to build the PVR only ImageCodec module
CEGUI_BUILD_IMAGECODEC_PVR:BOOL=OFF

//Specifies whether to build the SDL2 ImageCodec module
CEGUI_BUILD_IMAGECODEC_SDL2:BOOL=OFF

//Specifies whether to build the SILLY based ImageCodec module
CEGUI_BUILD_IMAGECODEC_SILLY:BOOL=ON

//Specifies whether to build the STB based ImageCodec module
CEGUI_BUILD_IMAGECODEC_STB:BOOL=OFF

//Specifies whether to build the based TGA only ImageCodec module
CEGUI_BUILD_IMAGECODEC_TGA:BOOL=OFF

//Specifies whether to build the custom tolua binding generator
// 'toluappcegui'
CEGUI_BUILD_LUA_GENERATOR:BOOL=OFF

//Specifies whether to build the Lua based script module
CEGUI_BUILD_LUA_MODULE:BOOL=OFF

//Specifies whether to build the Python extension module(s)
CEGUI_BUILD_PYTHON_MODULES:BOOL=ON

//Specifies whether to build the Direct3D 10 renderer module
CEGUI_BUILD_RENDERER_DIRECT3D10:BOOL=OFF

//Specifies whether to build the Direct3D 11 renderer module
CEGUI_BUILD_RENDERER_DIRECT3D11:BOOL=OFF

//Specifies whether to build the Direct3D 9 renderer module
CEGUI_BUILD_RENDERER_DIRECT3D9:BOOL=OFF

//Specifies whether to build the DirectFB renderer module (not
// supported!)
CEGUI_BUILD_RENDERER_DIRECTFB:BOOL=OFF

//Specifies whether to build the Irrlicht renderer module
CEGUI_BUILD_RENDERER_IRRLICHT:BOOL=OFF

//Specifies whether to build the null renderer module
CEGUI_BUILD_RENDERER_NULL:BOOL=OFF

//Specifies whether to build the Ogre renderer module
CEGUI_BUILD_RENDERER_OGRE:BOOL=OFF

//Specifies whether to build the old OpenGL renderer module
CEGUI_BUILD_RENDERER_OPENGL:BOOL=ON

//Specifies whether to build the renderer module that supports
// OpenGL 3.2 (core profile) and OpenGL ES 2.0.
CEGUI_BUILD_RENDERER_OPENGL3:BOOL=ON

//Specifies whether to build the OpenGL ES 1 renderer module
CEGUI_BUILD_RENDERER_OPENGLES:BOOL=OFF

//Specifies whether to build the Expat based XMLParser module
CEGUI_BUILD_XMLPARSER_EXPAT:BOOL=ON

//Specifies whether to build the libxml2 based XMLParser module
CEGUI_BUILD_XMLPARSER_LIBXML2:BOOL=OFF

//Specifies whether to build the RapidXML based XMLParser module
CEGUI_BUILD_XMLPARSER_RAPIDXML:BOOL=OFF

//Specifies whether to build the TinyXML based XMLParser module
CEGUI_BUILD_XMLPARSER_TINYXML:BOOL=OFF

//Specifies whether to build the Xerces-C++ based XMLParser module
CEGUI_BUILD_XMLPARSER_XERCES:BOOL=OFF

@jakoch
Copy link
Member

jakoch commented Jan 29, 2017

I get the intention to add cegui to the installer, but it's the wrong repository for the rest of the information and the cmake/build instructions. Because this installer repository bundles only already build stuff, for example the libfife-dependencies.

  1. The correct location to build the cegui dependency is the superbuild project of fifengine.
    You need to handle CeGui like Fifechan in the dependencies:
  1. After that, Fifengine itself searches for cegui, when cegui is enabled.

Once cegui is build fifengine would be linked against it, either statically or dynamically.
That produces 3 more libfife artifacts of the fifengine repo: libfife-with-cegui-static + libfife-with-cegui-dynamic + the extra and optional libfife-cegui-dependency package.

  1. Finally, you can add it to the installer. By consuming the libfife-cegui-dependency (and probably the optionally linked cegui libfife-builds, too).

@LinuxDonald
Copy link
Collaborator Author

Thanks for the info jakoch :-)

@LinuxDonald
Copy link
Collaborator Author

Found cegui on appveyor: https://ci.appveyor.com/project/cegui-ci/cegui/history

@Niektory
Copy link
Contributor

Niektory commented Feb 3, 2017

Something like this should work for building CEGUI for FIFE:

set cegui_deps_source_dir=??? (where cegui dependencies source package was extracted)
set cegui_deps_build_dir=??? (choose whatever)
set cegui_source_dir=??? (where cegui source package was extracted)
set cegui_build_dir=??? (choose whatever)

mkdir %cegui_deps_build_dir%
cd %cegui_deps_build_dir%
cmake -G "Visual Studio 14" %cegui_deps_source_dir%
cmake --build . --target ALL_BUILD --config Release

mkdir %cegui_source_dir%\dependencies
xcopy /Y /S %cegui_deps_build_dir%\dependencies %cegui_source_dir%\dependencies

mkdir %cegui_build_dir%
cd %cegui_build_dir%
cmake -G "Visual Studio 14" -D BOOST_ROOT:PATH=%boost_root% -D CEGUI_BUILD_APPLICATION_TEMPLATES:BOOL=OFF -D CEGUI_BUILD_PYTHON_MODULES:BOOL=ON -D CEGUI_SAMPLES_ENABLED:BOOL=OFF %cegui_source_dir%
cmake --build . --target ALL_BUILD --config Release

CEGUI download links are here: http://cegui.org.uk/download/cegui-087

@LinuxDonald
Copy link
Collaborator Author

LinuxDonald commented Feb 6, 2017

Need to be done:
Find cmake scripts:

  • libexpat
  • glew
  • glfw
  • glm
  • pcre

Get cmake scripts:

  • libexpat
  • glew
  • glfw
  • glm
  • pcre

@LinuxDonald
Copy link
Collaborator Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants