Author Topic: New configurator  (Read 10980 times)

silnarm

  • Local Moderator
  • Behemoth
  • ********
  • Posts: 1,373
    • View Profile
Re: New configurator
« Reply #25 on: 19 May 2010, 10:14:06 »
A delete cache in CMake would be the thing to do I think, but I noticed the old project files are building object files in ../../build, which happens to be the same directory we are using for cmake, shouldn't be causing problems, but is messy, so in this case, delete the build directory, then start again.

You certainly shouldn't be getting errors like that, they would seem to indicate there is something wrong with CMake or VC, neither likely, so I'd say it's just got itself in bit of mess. Start over, hopefully it all works out, if not, post more errors :)
Glest Advanced Engine - Code Monkey

Timeline | Downloads

ZaggyDad

  • Guest
Re: New configurator
« Reply #26 on: 19 May 2010, 19:50:50 »
I did what you suggested, and it did the exact same thing it did before, but there are no project files anywhere. Here's CMake's log:

Code: [Select]
Check for working CXX compiler using: Visual Studio 9 2008
Check for working CXX compiler using: Visual Studio 9 2008 -- works
Detecting CXX compiler ABI info
Detecting CXX compiler ABI info - done
Check for working C compiler using: Visual Studio 9 2008
Check for working C compiler using: Visual Studio 9 2008 -- works
Detecting C compiler ABI info
Detecting C compiler ABI info - done
Looking for glob.h
Looking for glob.h - not found
Looking for sys/ioctl.h
Looking for sys/ioctl.h - not found
Looking for sys/filio.h
Looking for sys/filio.h - not found
Looking for sys/time.h
Looking for sys/time.h - not found
Looking for byteswap.h
Looking for byteswap.h - not found
setting windeps: G:/GAE Source/glestae/deps
Found Lua51: G:/GAE Source/glestae/deps/lib/lua5.1.lib
Found VORBIS: G:/GAE Source/glestae/deps/include
Found CPPUNIT: G:/GAE Source/glestae/deps/include
Could NOT find LibXml2  (missing:  LIBXML2_LIBRARIES LIBXML2_INCLUDE_DIR)
Found wxWidgets: TRUE
disabled glexemel
Configuring done

Is it a bad thing that it can't find all those header files?

Yggdrasil

  • Local Moderator
  • Ornithopter
  • ********
  • Posts: 408
    • View Profile
Re: New configurator
« Reply #27 on: 19 May 2010, 21:27:16 »
No, shouldn't be a problem.

You did press Generate after configuring?

ZaggyDad

  • Guest
Re: New configurator
« Reply #28 on: 20 May 2010, 03:33:09 »
The generate button was disabled (even after configuring). I suppose I should've remembered to mention that. =P

silnarm

  • Local Moderator
  • Behemoth
  • ********
  • Posts: 1,373
    • View Profile
Re: New configurator
« Reply #29 on: 20 May 2010, 05:50:39 »
That CMake output is good, everything is fine, you just need to hit configure again and the generate button will be enabled.

It's the way CMake works, you may need to hit configure multiple times until it has everything, in this case, with GAE_WINDEPS set, that will be twice, then you will be able to generate project files.

The only issues for VC++ is that 'startup project' and the working directory for debugging sessions are stored in a binary file, which CMake does not generate.

To set the start-up project, right click glest_configurator,


To set the debugging working directory, go to properties on the configurator project and select the debugging page,


Then you can 'rebuild and launch in the debugger' by clicking the little green play button ;)

Cheers.
Glest Advanced Engine - Code Monkey

Timeline | Downloads

ZaggyDad

  • Guest
Re: New configurator
« Reply #30 on: 20 May 2010, 15:28:50 »
Huh. I'd tried clicking it a second time before, and it gave the two errors I posted a while ago, but now it's working. =\

I'm compiling it now. =D

Edit: It got an error while compiling:

Code: [Select]
------ Build started: Project: ZERO_CHECK, Configuration: Debug Win32 ------
Checking Build System
CMake is re-running because CMakeFiles/generate.stamp is out-of-date.
-- setting windeps: G:/GAE Source/glestae/deps
-- Could NOT find LibXml2  (missing:  LIBXML2_LIBRARIES LIBXML2_INCLUDE_DIR)
-- disabled glexemel
-- Configuring done
-- Generating done
-- Build files have been written to: G:/GAE Source/glestae/trunk/build
Build log was saved at "file://g:\GAE Source\glestae\trunk\build\ZERO_CHECK.dir\Debug\BuildLog.htm"
ZERO_CHECK - 0 error(s), 0 warning(s)
------ Build started: Project: shared_lib, Configuration: Debug Win32 ------
Compiling...
StdFileOps.cpp
PhysFileOps.cpp
ofile_streambuf.cpp
ofile_stream.cpp
ifile_streambuf.cpp
ifile_stream.cpp
FSFactory.cpp
FileOps.cpp
lua_script.cpp
..\..\..\source\shared_lib\sources\lua\lua_script.cpp(199) : warning C4244: '=' : conversion from 'lua_Number' to 'int', possible loss of data
..\..\..\source\shared_lib\sources\lua\lua_script.cpp(204) : warning C4244: '=' : conversion from 'lua_Number' to 'int', possible loss of data
..\..\..\source\shared_lib\sources\lua\lua_script.cpp(226) : warning C4244: '=' : conversion from 'lua_Number' to 'int', possible loss of data
..\..\..\source\shared_lib\sources\lua\lua_script.cpp(230) : warning C4244: '=' : conversion from 'lua_Number' to 'int', possible loss of data
..\..\..\source\shared_lib\sources\lua\lua_script.cpp(234) : warning C4244: '=' : conversion from 'lua_Number' to 'int', possible loss of data
..\..\..\source\shared_lib\sources\lua\lua_script.cpp(255) : warning C4244: '=' : conversion from 'lua_Number' to 'int', possible loss of data
..\..\..\source\shared_lib\sources\lua\lua_script.cpp(259) : warning C4244: '=' : conversion from 'lua_Number' to 'int', possible loss of data
..\..\..\source\shared_lib\sources\lua\lua_script.cpp(263) : warning C4244: '=' : conversion from 'lua_Number' to 'int', possible loss of data
..\..\..\source\shared_lib\sources\lua\lua_script.cpp(267) : warning C4244: '=' : conversion from 'lua_Number' to 'int', possible loss of data
xml_parser.cpp
tinyxmlparser.cpp
tinyxmlerror.cpp
tinyxml.cpp
sound_player_ds8.cpp
sound_player.cpp
sound_interface.cpp
sound_file_loader.cpp
sound.cpp
window.cpp
thread.cpp
Generating Code...
Compiling...
platform_util.cpp
platform_menu.cpp
gl_wrap.cpp
factory_repository.cpp
window_gl.cpp
timer.cpp
socket.cpp
input.cpp
text_renderer_gl.cpp
texture_gl.cpp
particle_renderer_gl.cpp
opengl.cpp
model_renderer_gl.cpp
font_gl.cpp
context_gl.cpp
texture_manager.cpp
texture.cpp
pixmap.cpp
particle.cpp
model_manager.cpp
Generating Code...
Compiling...
model.cpp
interpolation.cpp
graphics_interface.cpp
font_manager.cpp
font.cpp
context.cpp
camera.cpp
buffer.cpp
quaternion.cpp
math_util.cpp
util.cpp
properties.cpp
profiler.cpp
leak_dumper.cpp
conversion.cpp
pch.cpp
Generating Code...
Compiling...
glprocs.c
Creating library...
profiler.obj : warning LNK4221: no public symbols found; archive member will be inaccessible
Build log was saved at "file://g:\GAE Source\glestae\trunk\build\source\shared_lib\shared_lib.dir\Debug\BuildLog.htm"
shared_lib - 0 error(s), 10 warning(s)
------ Build started: Project: glestadv, Configuration: Debug Win32 ------
Compiling...
world.cpp
time_flow.cpp
tileset.cpp
minimap.cpp
map.cpp
sound_renderer.cpp
sound_container.cpp
route_planner.cpp
node_pool.cpp
node_map.cpp
influence_map.cpp
cluster_map.cpp
cartographer.cpp
annotated_map.cpp
script_manager.cpp
scenario.cpp
upgrade_type.cpp
unit_type.cpp
unit_stats_base.cpp
tech_tree.cpp
Generating Code...
Compiling...
skill_type.cpp
resource_type.cpp
object_type.cpp
faction_type.cpp
element_type.cpp
effect_type.cpp
earthquake_type.cpp
damage_multiplier.cpp
cmd_types_worker.cpp
cmd_types_general.cpp
cmd_types_attack.cpp
server_interface.cpp
network_types.cpp
network_status.cpp
network_message.cpp
network_interface.cpp
connection_slot.cpp
client_interface.cpp
menu_state_start_game_base.cpp
menu_state_scenario.cpp
Generating Code...
g:\GAE Source\glestae\trunk\source\game\prototypes\cmd_types_general.cpp : fatal error C1001: An internal error has occurred in the compiler.
(compiler file 'f:\dd\vctools\compiler\utc\src\p2\main.c', line 216)
 To work around this problem, try simplifying or changing the program near the locations listed above.
Please choose the Technical Support command on the Visual C++
 Help menu, or open the Technical Support help file for more information
Build log was saved at "file://g:\GAE Source\glestae\trunk\build\source\game\glestadv.dir\Debug\BuildLog.htm"
glestadv - 1 error(s), 0 warning(s)
------ Build started: Project: glest_configurator, Configuration: Debug Win32 ------
Compiling...
main.cpp
configuration.cpp
Generating Code...
Compiling manifest to resources...
Microsoft (R) Windows (R) Resource Compiler Version 6.1.6723.1
Copyright (C) Microsoft Corporation.  All rights reserved.
Linking...
Embedding manifest...
Microsoft (R) Windows (R) Resource Compiler Version 6.1.6723.1
Copyright (C) Microsoft Corporation.  All rights reserved.
Build log was saved at "file://g:\GAE Source\glestae\trunk\build\source\configurator\glest_configurator.dir\Debug\BuildLog.htm"
glest_configurator - 0 error(s), 0 warning(s)
------ Build started: Project: g3d_viewer, Configuration: Debug Win32 ------
Compiling...
renderer.cpp
main.cpp
Generating Code...
Compiling manifest to resources...
Microsoft (R) Windows (R) Resource Compiler Version 6.1.6723.1
Copyright (C) Microsoft Corporation.  All rights reserved.
Linking...
Embedding manifest...
Microsoft (R) Windows (R) Resource Compiler Version 6.1.6723.1
Copyright (C) Microsoft Corporation.  All rights reserved.
Build log was saved at "file://g:\GAE Source\glestae\trunk\build\source\g3d_viewer\g3d_viewer.dir\Debug\BuildLog.htm"
g3d_viewer - 0 error(s), 0 warning(s)
------ Build started: Project: map_editor, Configuration: Debug Win32 ------
Compiling...
renderer.cpp
program.cpp
map_maker.cpp
map.cpp
main.cpp
Generating Code...
Compiling manifest to resources...
Microsoft (R) Windows (R) Resource Compiler Version 6.1.6723.1
Copyright (C) Microsoft Corporation.  All rights reserved.
Linking...
Embedding manifest...
Microsoft (R) Windows (R) Resource Compiler Version 6.1.6723.1
Copyright (C) Microsoft Corporation.  All rights reserved.
Build log was saved at "file://g:\GAE Source\glestae\trunk\build\source\map_editor\map_editor.dir\Debug\BuildLog.htm"
map_editor - 0 error(s), 0 warning(s)
------ Build started: Project: test_suite, Configuration: Debug Win32 ------
Compiling...
reverse_rect_iter_test.cpp
heap_test.cpp
fixed_point_test.cpp
circular_buffer_test.cpp
main.cpp
line_test.cpp
influence_map_test.cpp
Generating Code...
Compiling manifest to resources...
Microsoft (R) Windows (R) Resource Compiler Version 6.1.6723.1
Copyright (C) Microsoft Corporation.  All rights reserved.
Linking...
cppunitd.lib(TestResultCollector.obj) : warning LNK4099: PDB 'vc90.pdb' was not found with 'G:\GAE Source\glestae\deps\lib\cppunitd.lib' or at 'G:\GAE Source\glestae\trunk\build\source\test\Debug\vc90.pdb'; linking object as if no debug info
cppunitd.lib(TestSuccessListener.obj) : warning LNK4099: PDB 'vc90.pdb' was not found with 'G:\GAE Source\glestae\deps\lib\cppunitd.lib' or at 'G:\GAE Source\glestae\trunk\build\source\test\Debug\vc90.pdb'; linking object as if no debug info
cppunitd.lib(TextTestProgressListener.obj) : warning LNK4099: PDB 'vc90.pdb' was not found with 'G:\GAE Source\glestae\deps\lib\cppunitd.lib' or at 'G:\GAE Source\glestae\trunk\build\source\test\Debug\vc90.pdb'; linking object as if no debug info
cppunitd.lib(TextTestRunner.obj) : warning LNK4099: PDB 'vc90.pdb' was not found with 'G:\GAE Source\glestae\deps\lib\cppunitd.lib' or at 'G:\GAE Source\glestae\trunk\build\source\test\Debug\vc90.pdb'; linking object as if no debug info
cppunitd.lib(TextOutputter.obj) : warning LNK4099: PDB 'vc90.pdb' was not found with 'G:\GAE Source\glestae\deps\lib\cppunitd.lib' or at 'G:\GAE Source\glestae\trunk\build\source\test\Debug\vc90.pdb'; linking object as if no debug info
cppunitd.lib(Asserter.obj) : warning LNK4099: PDB 'vc90.pdb' was not found with 'G:\GAE Source\glestae\deps\lib\cppunitd.lib' or at 'G:\GAE Source\glestae\trunk\build\source\test\Debug\vc90.pdb'; linking object as if no debug info
cppunitd.lib(Exception.obj) : warning LNK4099: PDB 'vc90.pdb' was not found with 'G:\GAE Source\glestae\deps\lib\cppunitd.lib' or at 'G:\GAE Source\glestae\trunk\build\source\test\Debug\vc90.pdb'; linking object as if no debug info
cppunitd.lib(Message.obj) : warning LNK4099: PDB 'vc90.pdb' was not found with 'G:\GAE Source\glestae\deps\lib\cppunitd.lib' or at 'G:\GAE Source\glestae\trunk\build\source\test\Debug\vc90.pdb'; linking object as if no debug info
cppunitd.lib(SourceLine.obj) : warning LNK4099: PDB 'vc90.pdb' was not found with 'G:\GAE Source\glestae\deps\lib\cppunitd.lib' or at 'G:\GAE Source\glestae\trunk\build\source\test\Debug\vc90.pdb'; linking object as if no debug info
cppunitd.lib(SynchronizedObject.obj) : warning LNK4099: PDB 'vc90.pdb' was not found with 'G:\GAE Source\glestae\deps\lib\cppunitd.lib' or at 'G:\GAE Source\glestae\trunk\build\source\test\Debug\vc90.pdb'; linking object as if no debug info
cppunitd.lib(Test.obj) : warning LNK4099: PDB 'vc90.pdb' was not found with 'G:\GAE Source\glestae\deps\lib\cppunitd.lib' or at 'G:\GAE Source\glestae\trunk\build\source\test\Debug\vc90.pdb'; linking object as if no debug info
cppunitd.lib(TestCase.obj) : warning LNK4099: PDB 'vc90.pdb' was not found with 'G:\GAE Source\glestae\deps\lib\cppunitd.lib' or at 'G:\GAE Source\glestae\trunk\build\source\test\Debug\vc90.pdb'; linking object as if no debug info
cppunitd.lib(TestComposite.obj) : warning LNK4099: PDB 'vc90.pdb' was not found with 'G:\GAE Source\glestae\deps\lib\cppunitd.lib' or at 'G:\GAE Source\glestae\trunk\build\source\test\Debug\vc90.pdb'; linking object as if no debug info
cppunitd.lib(TestFailure.obj) : warning LNK4099: PDB 'vc90.pdb' was not found with 'G:\GAE Source\glestae\deps\lib\cppunitd.lib' or at 'G:\GAE Source\glestae\trunk\build\source\test\Debug\vc90.pdb'; linking object as if no debug info
cppunitd.lib(TestLeaf.obj) : warning LNK4099: PDB 'vc90.pdb' was not found with 'G:\GAE Source\glestae\deps\lib\cppunitd.lib' or at 'G:\GAE Source\glestae\trunk\build\source\test\Debug\vc90.pdb'; linking object as if no debug info
cppunitd.lib(TestPath.obj) : warning LNK4099: PDB 'vc90.pdb' was not found with 'G:\GAE Source\glestae\deps\lib\cppunitd.lib' or at 'G:\GAE Source\glestae\trunk\build\source\test\Debug\vc90.pdb'; linking object as if no debug info
cppunitd.lib(TestResult.obj) : warning LNK4099: PDB 'vc90.pdb' was not found with 'G:\GAE Source\glestae\deps\lib\cppunitd.lib' or at 'G:\GAE Source\glestae\trunk\build\source\test\Debug\vc90.pdb'; linking object as if no debug info
cppunitd.lib(TestRunner.obj) : warning LNK4099: PDB 'vc90.pdb' was not found with 'G:\GAE Source\glestae\deps\lib\cppunitd.lib' or at 'G:\GAE Source\glestae\trunk\build\source\test\Debug\vc90.pdb'; linking object as if no debug info
cppunitd.lib(TestSuite.obj) : warning LNK4099: PDB 'vc90.pdb' was not found with 'G:\GAE Source\glestae\deps\lib\cppunitd.lib' or at 'G:\GAE Source\glestae\trunk\build\source\test\Debug\vc90.pdb'; linking object as if no debug info
cppunitd.lib(TypeInfoHelper.obj) : warning LNK4099: PDB 'vc90.pdb' was not found with 'G:\GAE Source\glestae\deps\lib\cppunitd.lib' or at 'G:\GAE Source\glestae\trunk\build\source\test\Debug\vc90.pdb'; linking object as if no debug info
cppunitd.lib(DefaultProtector.obj) : warning LNK4099: PDB 'vc90.pdb' was not found with 'G:\GAE Source\glestae\deps\lib\cppunitd.lib' or at 'G:\GAE Source\glestae\trunk\build\source\test\Debug\vc90.pdb'; linking object as if no debug info
cppunitd.lib(Protector.obj) : warning LNK4099: PDB 'vc90.pdb' was not found with 'G:\GAE Source\glestae\deps\lib\cppunitd.lib' or at 'G:\GAE Source\glestae\trunk\build\source\test\Debug\vc90.pdb'; linking object as if no debug info
cppunitd.lib(ProtectorChain.obj) : warning LNK4099: PDB 'vc90.pdb' was not found with 'G:\GAE Source\glestae\deps\lib\cppunitd.lib' or at 'G:\GAE Source\glestae\trunk\build\source\test\Debug\vc90.pdb'; linking object as if no debug info
Embedding manifest...
Microsoft (R) Windows (R) Resource Compiler Version 6.1.6723.1
Copyright (C) Microsoft Corporation.  All rights reserved.
Build log was saved at "file://g:\GAE Source\glestae\trunk\build\source\test\test_suite.dir\Debug\BuildLog.htm"
test_suite - 0 error(s), 23 warning(s)
------ Build started: Project: ALL_BUILD, Configuration: Debug Win32 ------
Building Custom Rule G:/GAE Source/glestae/trunk/CMakeLists.txt
CMake is re-running because CMakeFiles/generate.stamp is out-of-date.
-- setting windeps: G:/GAE Source/glestae/deps
-- Could NOT find LibXml2  (missing:  LIBXML2_LIBRARIES LIBXML2_INCLUDE_DIR)
-- disabled glexemel
-- Configuring done
-- Generating done
-- Build files have been written to: G:/GAE Source/glestae/trunk/build
Build log was saved at "file://g:\GAE Source\glestae\trunk\build\ALL_BUILD.dir\Debug\BuildLog.htm"
ALL_BUILD - 0 error(s), 0 warning(s)
------ Skipped Build: Project: INSTALL, Configuration: Debug Win32 ------
Project not selected to build for this solution configuration
------ Skipped Build: Project: PACKAGE, Configuration: Debug Win32 ------
Project not selected to build for this solution configuration
========== Build: 7 succeeded, 1 failed, 0 up-to-date, 2 skipped ==========
« Last Edit: 20 May 2010, 15:35:30 by ZaggyDad »

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: New configurator
« Reply #31 on: 20 May 2010, 16:01:28 »
Always when you hit an internal error in VC++ check to see if you have the latest service pack. Tom123 had similar errors compiling and when I directed him to update his VC++ to the latest Service PAck all was ok. Get it from here:

http://www.microsoft.com/downloads/details.aspx?familyid=f3fbb04e-92c2-4701-b4ba-92e26e408569&displaylang=en

ZaggyDad

  • Guest
Re: New configurator
« Reply #32 on: 24 May 2010, 16:56:14 »
It turns out I just had to use CMake to generate the solution again. It's compiling perfectly now.

Btw, it turns out that the toStr method already does give true/false. I managed to make the "notebook" scale to fit the window, though.

Now I need to have access to the SVN so that I can commit the changes I made to it...

Yggdrasil

  • Local Moderator
  • Ornithopter
  • ********
  • Posts: 408
    • View Profile
Re: New configurator
« Reply #33 on: 24 May 2010, 18:16:58 »
Why not just post a patch here or on the mailing list?

Btw, could someone on windows please update the CompileGuide?
http://sourceforge.net/apps/trac/glestae/wiki/CompileGuide

Would be nice to have it working most of the time. Maybe also extend the description a little.

ZaggyDad

  • Guest
Re: New configurator
« Reply #34 on: 24 May 2010, 18:23:24 »
Because I'm planning to make more changes. Why else?

I just updated the compile guide for Windows, though there didn't seem to be anything really needing updating, except for mention of the old solution files.
« Last Edit: 24 May 2010, 19:22:40 by ZaggyDad »

silnarm

  • Local Moderator
  • Behemoth
  • ********
  • Posts: 1,373
    • View Profile
Re: New configurator
« Reply #35 on: 26 May 2010, 04:01:49 »
Btw, could someone on windows please update the CompileGuide?
http://sourceforge.net/apps/trac/glestae/wiki/CompileGuide

Would be nice to have it working most of the time. Maybe also extend the description a little.
Sorry, I was changing things without providing any explanations  :look:
I have taken to using the 'grouped view' in the CMake gui, so I would like any vars relating to the engine to have the prefix GAE_ to get them all grouped together. That's why I changed/broke WINDEPS & USE_PHYSFS, sorry.

I just updated the compile guide for Windows, though there didn't seem to be anything really needing updating, except for mention of the old solution files.
Thanks Zaggy, I might move those sceenshots onto it as well, maybe we should make the current page a 'compile guide overview' and add specific pages for Windows/Linux/Mac.

Why not just post a patch here or on the mailing list?
Yeah, hit us up with a patch or two first, if they work as advertised you'll have svn access before long :)
Glest Advanced Engine - Code Monkey

Timeline | Downloads

ZaggyDad

  • Guest
Re: New configurator
« Reply #36 on: 26 May 2010, 18:20:28 »
Okay, here's the patch: http://www.mediafire.com/?jhqdlmdzfyy

I changed a bit of the indentation because it's harder to read with the classes on the same level as the namespace it's contained in. Is that okay, or should I undo it?

silnarm

  • Local Moderator
  • Behemoth
  • ********
  • Posts: 1,373
    • View Profile
Re: New configurator
« Reply #37 on: 6 June 2010, 04:57:23 »
Nice work.

Be careful if making changes in the shared library though, remember it is used by the other tools and the game as well, the property map values must be matched in all lower-case, the game relies on it.

I've applied the patch (with lower-casing in the propertyMap restored), but I just hacked a glest 3.2.2 configuration.xml, so if you have a better one, please update :)

You've been added to the project and have SVN access, just be careful with the shared lib ;)

Cheers.

Edit: Ohh... indenting the body of a namespace may seem like a good idea, but it's not :P Most source files contain code all in the same namespace, so you just end up with extra indentation that conveys no useful information. Just say no.
« Last Edit: 6 June 2010, 05:16:30 by silnarm »
Glest Advanced Engine - Code Monkey

Timeline | Downloads

 

anything