Guest User

Untitled

a guest
Oct 14th, 2011
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.46 KB | None | 0 0
  1. /////////////////////////////////////////////////////////////////////////
  2. //Windows
  3.  
  4. To compile the gameEditor (current interface) open the solution file gameEditlr.sln and build the gameEditor project (this will create the file gameEditor.exe in the output directory).
  5.  
  6. To compile the new interface (not functional yet) you need to build the wxGameEditor project thats have the follow dependencies:
  7.  
  8. 1) Get the wxWidgets at http://www.wxwidgets.org/ (wxAll version)
  9.  
  10. Put the follow dirs in your include path:
  11.  
  12. wxWidgets/include
  13. wxWidgets/include/msvc
  14. wxWidgets/contrib/include
  15. wxWidgets/contrib/wxstedit/include
  16.  
  17. Put the follow llvm dirs in your library path:
  18.  
  19. wxWidgets/lib/vc_lib
  20.  
  21. Open the wx.dsw project
  22. Configure all projects of the wxWidgets to:
  23. Multi-threaded (/MT or /MTd)
  24.  
  25. Disable the "Edit and Continue" option of the Visual Studio
  26. Build all projects
  27.  
  28.  
  29. 2) The LLVM is not used now, but are some tests in the code to generate C code from the Behavior panel.
  30. To get the LLVM and clang (you need to get the last version via svn, but if you can't compile the last version the revision 83257 runs ok) (optional for while, look the USE_LLVM definition)
  31.  
  32. cd llvm
  33. svn co http://llvm.org/svn/llvm-project/llvm/trunk .
  34.  
  35. cd tools
  36. svn co http://llvm.org/svn/llvm-project/cfe/trunk clang
  37.  
  38. If you are using the Windows to build, get the cmake (http://cmake.org/) and generate the Visual Studio files with the follow configuration:
  39.  
  40. CMAKE_INSTALL_PREFIX:llvm/bin (or other path you want)
  41. LLVM_BUILD_EXAMPLES:false
  42. LLVM_BUILD_TOOLS:true
  43. LLVM_ENABLE_ASSERTIONS:true
  44. LLVM_ENABLE_PIC:false
  45. LLVM_ENABLE_THREADS:true
  46. LLVM_TABLEGEN:tblgen
  47. LLVM_TARGETS_TO_BUILD:ARM;CBackend;CppBackend;Mips;MSIL;PowerPC;X86
  48. LLVM_TARGET_ARCH:host
  49.  
  50.  
  51. Put the follow llvm dirs in your include path (llvm/bin is the path you have used to compile the llvm):
  52.  
  53. llvm/tools/clang/include
  54. llvm/include
  55. llvm/bin/include
  56. llvm/bin/tools/clang/include
  57. llvm/win32 (for compilation on Windows)
  58.  
  59. Put the follow llvm dirs in your library path:
  60.  
  61. llvm/bin/lib
  62.  
  63. Build the ALL_BUILD project
  64.  
  65.  
  66.  
  67. /////////////////////////////////////////////////////////////////////////
  68. Linux: (tested on Kubuntu 9.10 64bits)
  69.  
  70.  
  71. 1) Open a terminal window
  72. 2) Install the libx11-dev (if not installed on your system)
  73. sudo apt-get update
  74. sudo apt-get install libx11-dev libxpm-dev x11proto-xext-dev libxext-dev
  75.  
  76. 3) Make sure you have the gcc and g++ installed. If not, install it:
  77. sudo apt-get install g++
  78.  
  79.  
  80. 4) Install the 32bit library if you are using a 64bit linux (Game Editor was not ported to 64bit yet)
  81. sudo apt-get install libc6-dev-i386
  82. sudo apt-get install lib32stdc++6
  83. sudo apt-get install g++-multilib
  84. sudo apt-get install ia32-libs
  85.  
  86. 5) Go to the Game Editor directory
  87. 6) type: make
  88. 7) Copy the contents of the directory gameEditor/res to output (or in the place you have put gameEditorLinux file)
  89.  
  90.  
  91. /////////////////////////////////////////////////////////////////////////
  92. To Compile the engines on Windows:
  93.  
  94. In the Visual Studio 2008, choose the version you want to compile:
  95.  
  96. - View->Property Manager
  97. - In gameEditor project , _BaseConfiguration of any configuration, in the User Macros put the configuration you want in the VersionType.
  98. The configurations are: Professional and Standalone_Pro
  99. For compile the engines, use: VersionType = $(Standalone_Pro)
  100.  
  101. - To compile the Pocket PC engine, select the 'Pocket PC 2003 (ARMV4)' configuration (you need to to get the PocketHAL library at http://www.droneship.com)
  102.  
  103. - To make a Pocket PC compilation works in the Pocket PC 2002, uses: /subsystem:windowsce,3.00 /MACHINE:ARM
  104. In the MSVC 2008, this flag is not working so, the generated executable have the windowsce 5.00 subsystem.
  105. To solve this issue, you need a Portable Executable editor (PE Editor) to change the follow configuration in the Optional Header to:
  106.  
  107. - OS Major Version: 0004 (Address 0x00000128) in the executable file)
  108. - SubSys Major Version: 0003 (Address 0x00000130) in the executable file)
  109.  
  110. - To compile for the GP2X select the 'Windows Mobile 5.0 Pocket PC SDK (ARMV4I)' configuration (you need to install the Windows Mobile 5.0 SDK for Pocket PC and have the devkitpro installed (http://www.devkitpro.org/))
  111.  
  112. - Build the gameEditor project (not the wxGameEditor project)
  113.  
  114. - To compile the Linux engine set the GAMEEDITOR_TYPE to GAMEEDITOR_PROFESSIONAL_STAND_ALONE in the makefile
  115.  
  116. - Copy the executable files to the bin directory without any extensions:
  117.  
  118. gameEditor.exe -> bin\\gameEditorWindows
  119. gameEditorPocket.exe -> bin\\gameEditorPocket
  120. gameEditorLinux -> bin\\gameEditorLinux
  121. gameEditorPocket.exe.gpe -> bin\\gameEditorGP2X
  122. gameEditorMacOSX -> bin\\gameEditorMacOSX
  123.  
  124.  
  125. ЛОГ СБОРКИ
  126. zurba@zurba-laptop:~$ cd /home/zurba/make/Editor
  127. zurba@zurba-laptop:~/make/Editor$ make
  128. make -f makefile.zlib -C SDL/SDL_image/png/libpng/projects/msvc 'BUILD_TYPE=-s -Os ' 'CC=gcc -m32 ' 'TARGET=-D__linux -Dlinux -D__linux__ -DLINUX_I386 '
  129. make[1]: Entering directory `/home/zurba/make/Editor/SDL/SDL_image/png/libpng/projects/msvc'
  130. gcc -m32 -c ../../../zlib/adler32.c -o ../../../../../../output//adler32.o -I"../../../zlib" -D__linux -Dlinux -D__linux__ -DLINUX_I386 -s -Os
  131. cc1: error: unrecognized command line option "-m32"
  132. make[1]: *** [../../../../../../output//adler32.o] Error 1
  133. make[1]: Leaving directory `/home/zurba/make/Editor/SDL/SDL_image/png/libpng/projects/msvc'
  134. make: *** [all] Error 2
  135. zurba@zurba-laptop:~/make/Editor$
  136.  
  137.  
  138.  
Advertisement
Add Comment
Please, Sign In to add comment