Author Topic: Map Editor: rev 99 & 100 fail to compile on Linux  (Read 4789 times)

daniel.santos

  • Guest
Map Editor: rev 99 & 100 fail to compile on Linux
« on: 4 February 2008, 12:45:51 »
Code: [Select]
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'
« Last Edit: 1 January 1970, 00:00:00 by daniel.santos »

martiño

  • Behemoth
  • *******
  • Posts: 1,095
    • View Profile
(No subject)
« Reply #1 on: 4 February 2008, 13:18:11 »
are you using the latest wxWidgets?
« Last Edit: 1 January 1970, 00:00:00 by martiño »

v.v.b.

  • Guest
(No subject)
« Reply #2 on: 4 February 2008, 20:18:42 »
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:
Code: [Select]
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:
Code: [Select]
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...
« Last Edit: 1 January 1970, 00:00:00 by v.v.b. »

martiño

  • Behemoth
  • *******
  • Posts: 1,095
    • View Profile
(No subject)
« Reply #3 on: 4 February 2008, 22:45:16 »
I've uploaded new code to the svn that doesn't require such a recent version of wxwidgets, that should fix daniel's problems.
« Last Edit: 1 January 1970, 00:00:00 by martiño »

v.v.b.

  • Guest
(No subject)
« Reply #4 on: 5 February 2008, 19:52:07 »
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.
Code: [Select]
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
Code: [Select]
>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
« Last Edit: 1 January 1970, 00:00:00 by v.v.b. »

martiño

  • Behemoth
  • *******
  • Posts: 1,095
    • View Profile
(No subject)
« Reply #5 on: 5 February 2008, 20:50:55 »
Quote
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.
« Last Edit: 1 January 1970, 00:00:00 by martiño »

v.v.b.

  • Guest
(No subject)
« Reply #6 on: 15 February 2008, 06:38:14 »
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.
« Last Edit: 1 January 1970, 00:00:00 by v.v.b. »

MatzeB

  • Guest
(No subject)
« Reply #7 on: 16 February 2008, 13:57:18 »
should be fixed in svn r117. (You have to redo ./autogen.sh and ./configure )
« Last Edit: 1 January 1970, 00:00:00 by MatzeB »