MegaGlest Forum
Archives (read only) => Vanilla Glest => Bug report => Topic started by: daniel.santos on 4 February 2008, 12:45:51
-
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'
-
are you using the latest wxWidgets?
-
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...
-
I've uploaded new code to the svn that doesn't require such a recent version of wxwidgets, that should fix daniel's problems.
-
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
-
glest_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.
-
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.
-
should be fixed in svn r117. (You have to redo ./autogen.sh and ./configure )