Page 1 of 2

Compiling troubles

PostPosted: Thu Feb 04, 2010 2:27 pm
by zeebrazil
Hi forum,
I recently found the source of the game editor , until i work on the VB for game programming . to achieve more powerful tasks i started c++ .
I am trying to compile the code in windows through follow the instructions in compilation.txt given with source code.
In that it mention as follows


If you are using the Windows to build, get the cmake (http://cmake.org/) and generate the Visual Studio files with the follow configuration:

CMAKE_INSTALL_PREFIX:llvm/bin (or other path you want)
LLVM_BUILD_EXAMPLES:false
LLVM_BUILD_TOOLS:true
LLVM_ENABLE_ASSERTIONS:true
LLVM_ENABLE_PIC:false
LLVM_ENABLE_THREADS:true
LLVM_TABLEGEN:tblgen
LLVM_TARGETS_TO_BUILD:ARM;CBackend;CppBackend;Mips;MSIL;PowerPC;X86
LLVM_TARGET_ARCH:host


As mentioned above i just confused how to generate visual studio files . the just give the path of the game editor folder which have the code. After set and configure as mentioned above . i got the error

CMake Error: The source directory "E:/Game editor/game-editor/trunk/gameEditor" does not appear to contain CMakeLists.txt.

this is the first error i got . where to i get this CMakeLists.txt for to generate the files .

thank you in advance

Re: Compiling troubles

PostPosted: Thu Feb 04, 2010 3:07 pm
by makslane
You can compile game editor without the LLVM now.
Just open the gameEditor.sln file in the Visual Studio and build the gameEDitor project.

Re: Compiling troubles

PostPosted: Thu Feb 04, 2010 3:29 pm
by zeebrazil
thanks for your reply,
i try as you said i got the result gameEditor - 1 error(s), 304 warning(s)
but after i am unable view the out put by debugging . i got the dialogue box which contain
please specify the name of the executable file to be used for debug session.
Actually there is no executable files in the code to specify the path .
please let we know how to resolve this . i am using vc++ 2008 express editon .

thanks

Re: Compiling troubles

PostPosted: Thu Feb 04, 2010 4:05 pm
by makslane
What is the error?

Re: Compiling troubles

PostPosted: Thu Feb 04, 2010 4:26 pm
by zeebrazil
its just "No such file or directory" error i solved my self now i am worried about the debug issue as mentioned before it was repeating how to solve this .

Re: Compiling troubles

PostPosted: Fri Feb 05, 2010 1:32 am
by makslane
What file or directory?

Re: Compiling troubles

PostPosted: Fri Feb 05, 2010 11:51 am
by zeebrazil
i got the error as follows

Linking...
LINK : fatal error LNK1181: cannot open input file 'dxguid.lib'
Creating browse information file...


How to solve this

Re: Compiling troubles

PostPosted: Fri Feb 05, 2010 3:04 pm
by makslane
The dxguid.lib file is a directX library supplied with the Visual Studio.
Search for the file in your computer and add the path to the Visual Studio library paths.

Re: Compiling troubles

PostPosted: Sat Feb 06, 2010 3:37 pm
by zeebrazil
I got the below error in Visual studio 2005. But now I have downloaded Visual studio 2008(trail Version) and then tried to run the code. I am getting the below error
.\src\stedit.cpp(49) : fatal error C1083: Cannot open include file: 'wx/wxprec.h': No such file or directory
2>stestyls.cpp
2>..\src\stestyls.cpp(44) : fatal error C1083: Cannot open include file: 'wx/wxprec.h': No such file or directory.
I have read your previous suggestions of installing wxwidgets and they got installed properly. I am struck on this.
Then I followed your suggestion "Just open the gameEditor.sln file in the Visual Studio and build the gameEDitor project" I am able to build the gameEditor project. And after the build it says ready. Now, how will I get the IDE started. I dont see anything happening after the build. Do i need to compile any project before compiling gameEditor.

Re: Compiling troubles

PostPosted: Sat Feb 06, 2010 9:46 pm
by makslane
If you buid the gameEditor project without errors,the file gameEditor.exe must be in the output directory.

Re: Compiling troubles

PostPosted: Sat Feb 06, 2010 11:47 pm
by zeebrazil
No. The build was not successful. Now I am again back to dxguid.lib error. It is missing. I searched for it in my system its not there. Some of the websites suggested to install microsoft directx. Installing it. Will keep you posted. If I download the library where do I have to set the library(Sorry to ask you basic question) I tried that aswell.

Re: Compiling troubles

PostPosted: Sun Feb 07, 2010 4:30 am
by zeebrazil
HI, I have resolved the above error by installing directx and pointing VC++ to the libraries. Now i am getting 'cannot find the file RakNetLibStaticDebug.lib'. I am working on that. Will keep posted.

Re: Compiling troubles

PostPosted: Sun Feb 07, 2010 6:44 am
by zeebrazil
I have resolved the above error by downloading RAKNet. But when I build the gameEditor project I get gameengine.lib not found. As you suggested I did build the gameEngine but it is throwing 2 errrors .

1. GameControl.cpp(10147) : error C2660: 'SystemAddress::ToString' : function does not take 0 arguments
2. BSCMAKE: error BK1506 : cannot open file '..\output\Windows\gameEngine\Debug\dlmalloc.sbr': No such file or directory

Can you please guide me through. I did search for the dlmalloc.c and tried to compile it. no results.

Re: Compiling troubles

PostPosted: Sun Feb 07, 2010 5:39 pm
by makslane
Sorry, I haven't compiled the debug version before upload.
I've updated the source code, please, download again.

Re: Compiling troubles

PostPosted: Mon Feb 08, 2010 4:46 pm
by zeebrazil
Hi,

Thanks for the reply.
I am using the link "https://game-editor.svn.sourceforge.net/svnroot/game-editor" instead of
svn co https://game-editor.svn.sourceforge.net ... itor/trunk "Game Editor" . Please correct me if I am wrong. I am seeing all the files required. Just making sure. Thanks for your replies. They are really helping me.