News:

Currently available MegaGlest gameservers are listed on Play.MG.

Main Menu

Map Editor: rev 99 & 100 fail to compile on Linux

Started by daniel.santos, 4 February 2008, 12:45:51

daniel.santos

glest_map_editor/main.cpp: In member function 'void Glest::MapEditor::MainWindow::onMenuFileLoad(wxCommandEvent&)':
glest_map_editor/main.cpp:209: error: 'class wxString' has no member named 'To8BitData'
glest_map_editor/main.cpp: In member function 'void Glest::MapEditor::MainWindow::onMenuFileSaveAs(wxCommandEvent&)':
glest_map_editor/main.cpp:233: error: 'class wxString' has no member named 'To8BitData'
glest_map_editor/main.cpp: In member function 'void Glest::MapEditor::SimpleDialog::show()':
glest_map_editor/main.cpp:553: error: 'class wxString' has no member named 'To8BitData'

martiño

#1
are you using the latest wxWidgets?

v.v.b.

#2
Quote from: "martiño"are you using the latest wxWidgets?

 Same problem. I have installed:
---
compat-wxGTK26-2.6.4-0.8
wxGTK-2.8.3-2.fc7
wxGTK-devel-2.8.3-2.fc7
wxGTK-gl-2.8.3-2.fc7
---

 After configure command I get:
checking for wx-config... /usr/bin/wx-config
checking for wxWidgets version >= 2.6.0 (--unicode=no)... yes (version 2.8.3)

  Warning: No config found to match: /usr/bin/wx-config --unicode=no std,gl --libs
           in /usr/lib/wx/config
  If you require this configuration, please install the desired
  library build.  If this is part of an automated configuration
  test and no other errors occur, you may safely ignore it.
  You may use wx-config --list to see all configs available in
  the default prefix.


  Warning: No config found to match: /usr/bin/wx-config --unicode=no std,gl --cppflags
           in /usr/lib/wx/config
  If you require this configuration, please install the desired
  library build.  If this is part of an automated configuration
  test and no other errors occur, you may safely ignore it.
  You may use wx-config --list to see all configs available in
  the default prefix.


  Warning: No config found to match: /usr/bin/wx-config --unicode=no std,gl --cxxflags
           in /usr/lib/wx/config
  If you require this configuration, please install the desired
  library build.  If this is part of an automated configuration
  test and no other errors occur, you may safely ignore it.
  You may use wx-config --list to see all configs available in
  the default prefix.


  Warning: No config found to match: /usr/bin/wx-config --unicode=no std,gl --cflags
           in /usr/lib/wx/config
  If you require this configuration, please install the desired
  library build.  If this is part of an automated configuration
  test and no other errors occur, you may safely ignore it.
  You may use wx-config --list to see all configs available in
  the default prefix.

configure: creating ./config.status
config.status: creating Jamconfig
config.status: executing Jamfile commands
configure:

Notice: This project uses jam (and not make) as build tool.

 and after jam:
C++ ./build/i686-pc-linux-gnu/optimize/glest_map_editor/main.o
In file included from glest_map_editor/main.cpp:1:
glest_map_editor/main.h:7:19: error: wx/wx.h: No such file or directory
glest_map_editor/main.h:8:25: error: wx/glcanvas.h: No such file or directory
glest_map_editor/main.h:24: error: expected class-name before ‘{’ token
glest_map_editor/main.h:26: error: ISO C++ forbids declaration of ‘DECLARE_EVENT_TABLE’ with no type

and so on...

martiño

#3
I've uploaded new code to the svn that doesn't require such a recent version of wxwidgets, that should fix daniel's problems.

v.v.b.

#4
Quote from: "martiño"I've uploaded new code to the svn that doesn't require such a recent version of wxwidgets, that should fix daniel's problems.

 Ahem... And what about v.v.b.'s problems? ;)
 I can't compile map_editor still.
C++ ./build/i686-pc-linux-gnu/optimize/glest_map_editor/main.o
In file included from glest_map_editor/main.cpp:1:
glest_map_editor/main.h:7:19: error: wx/wx.h: No such file or directory
glest_map_editor/main.h:8:25: error: wx/glcanvas.h: No such file or directory
glest_map_editor/main.h:24: error: expected class-name before ‘{’ token
glest_map_editor/main.h:26: error: ISO C++ forbids declaration of ‘DECLARE_EVENT_TABLE’ with no type
...................................

 I think it's all about include paths...
 I have following rpms installed
>rpm -qa | grep wxGTK
compat-wxGTK26-2.6.4-0.8
wxGTK-2.8.3-2.fc7
wxGTK-devel-2.8.3-2.fc7
wxGTK-gl-2.8.3-2.fc7

martiño

#5
Quoteglest_map_editor/main.h:7:19: error: wx/wx.h: No such file or directory

This line means that something is definitely going wrong, since this is the main wxWidgets include file, I cant help you anymore because I don't know how these things work on Linux, maybe Matze is able to help.

v.v.b.

#6
Quote from: "martiño"This line means that something is definitely going wrong, since this is the main wxWidgets include file, I cant help you anymore because I don't know how these things work on Linux, maybe Matze is able to help.

 The problem is solved.
 I have to change --unicode=no -> --unicode=yes in "configure".
 After this I've successfully compile glest_editor and now can run it.

MatzeB

#7
should be fixed in svn r117. (You have to redo ./autogen.sh and ./configure )