Author Topic: a62e44 fails to build  (Read 2423 times)

John.d.h

  • Moderator
  • Airship
  • ********
  • Posts: 3,757
  • I have to go now. My planet needs me.
    • View Profile
a62e44 fails to build
« on: 15 August 2011, 18:15:26 »
Xubuntu 11.04, 32-bit

Code: [Select]
Log of git pull
Mon Aug 15 14:07:39 2011

Already up-to-date.

Mon Aug 15 14:07:41 2011
----------------
Log of git log -1 --pretty=tformat:You're now at this commit: %H
Mon Aug 15 14:07:41 2011

You're now at this commit: a62e449a73988a45cc64c09766ef41f86ccf00b0

Mon Aug 15 14:07:41 2011
----------------
Log of cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DGAE_DATA_DIR=/home/john/glestae_git/data/game -DGAE_USE_PHYSFS=ON ..
Mon Aug 15 14:07:41 2011

-- Could NOT find Doxygen (missing:  DOXYGEN_EXECUTABLE)
-- disabled doc
-- Configuring done
-- Generating done
-- Build files have been written to: /home/john/glestae_git/build

Mon Aug 15 14:07:47 2011
----------------
Log of make
Mon Aug 15 14:07:47 2011

[ 28%] Built target shared_lib
[ 90%] Built target glestadv
[ 90%] Built target version
[ 90%] Built target blendnorm
[ 90%] Building CXX object source/map_editor/CMakeFiles/gae_mapeditor.dir/main.cpp.o
In file included from /home/john/glestae_git/source/map_editor/main.cpp:14:0:
/home/john/glestae_git/source/map_editor/main.h:79:34: error: invalid use of incomplete type ‘struct wxFrame’
/usr/include/wx-2.8/wx/utils.h:50:28: error: forward declaration of ‘struct wxFrame’
/home/john/glestae_git/source/map_editor/main.h:139:2: error: ‘wxPanel’ does not name a type
/home/john/glestae_git/source/map_editor/main.h:141:2: error: ‘wxTimer’ does not name a type
/home/john/glestae_git/source/map_editor/main.h:142:2: error: ‘wxToolBar’ does not name a type
/home/john/glestae_git/source/map_editor/main.h:144:2: error: ‘wxMenuBar’ does not name a type
/home/john/glestae_git/source/map_editor/main.h:145:2: error: ‘wxMenu’ does not name a type
/home/john/glestae_git/source/map_editor/main.h:146:2: error: ‘wxMenu’ does not name a type
/home/john/glestae_git/source/map_editor/main.h:147:2: error: ‘wxMenu’ does not name a type
/home/john/glestae_git/source/map_editor/main.h:148:2: error: ‘wxMenu’ does not name a type
/home/john/glestae_git/source/map_editor/main.h:149:2: error: ‘wxMenu’ does not name a type
/home/john/glestae_git/source/map_editor/main.h:150:2: error: ‘wxMenu’ does not name a type
/home/john/glestae_git/source/map_editor/main.h:152:2: error: ‘wxMenu’ does not name a type
/home/john/glestae_git/source/map_editor/main.h:153:2: error: ‘wxMenu’ does not name a type
/home/john/glestae_git/source/map_editor/main.h:154:2: error: ‘wxMenu’ does not name a type
/home/john/glestae_git/source/map_editor/main.h:155:2: error: ‘wxMenu’ does not name a type
/home/john/glestae_git/source/map_editor/main.h:156:2: error: ‘wxMenuItem’ does not name a type
/home/john/glestae_git/source/map_editor/main.h:157:2: error: ‘wxBitmap’ does not name a type
/home/john/glestae_git/source/map_editor/main.h:158:2: error: ‘wxMenu’ does not name a type
/home/john/glestae_git/source/map_editor/main.h:186:15: error: ‘wxCloseEvent’ has not been declared
/home/john/glestae_git/source/map_editor/main.h:188:19: error: ‘wxMouseEvent’ has not been declared
/home/john/glestae_git/source/map_editor/main.h:189:19: error: ‘wxMouseEvent’ has not been declared
/home/john/glestae_git/source/map_editor/main.h:191:17: error: ‘wxKeyEvent’ has not been declared
/home/john/glestae_git/source/map_editor/main.h:193:21: error: ‘wxCommandEvent’ has not been declared
/home/john/glestae_git/source/map_editor/main.h:194:22: error: ‘wxCommandEvent’ has not been declared
/home/john/glestae_git/source/map_editor/main.h:195:22: error: ‘wxCommandEvent’ has not been declared
/home/john/glestae_git/source/map_editor/main.h:196:24: error: ‘wxCommandEvent’ has not been declared
/home/john/glestae_git/source/map_editor/main.h:197:22: error: ‘wxCommandEvent’ has not been declared
/home/john/glestae_git/source/map_editor/main.h:199:22: error: ‘wxCommandEvent’ has not been declared
/home/john/glestae_git/source/map_editor/main.h:200:22: error: ‘wxCommandEvent’ has not been declared
/home/john/glestae_git/source/map_editor/main.h:201:23: error: ‘wxCommandEvent’ has not been declared
/home/john/glestae_git/source/map_editor/main.h:202:30: error: ‘wxCommandEvent’ has not been declared
/home/john/glestae_git/source/map_editor/main.h:203:24: error: ‘wxCommandEvent’ has not been declared
/home/john/glestae_git/source/map_editor/main.h:204:23: error: ‘wxCommandEvent’ has not been declared
/home/john/glestae_git/source/map_editor/main.h:205:23: error: ‘wxCommandEvent’ has not been declared
/home/john/glestae_git/source/map_editor/main.h:206:34: error: ‘wxCommandEvent’ has not been declared
/home/john/glestae_git/source/map_editor/main.h:207:27: error: ‘wxCommandEvent’ has not been declared
/home/john/glestae_git/source/map_editor/main.h:208:32: error: ‘wxCommandEvent’ has not been declared
/home/john/glestae_git/source/map_editor/main.h:209:22: error: ‘wxCommandEvent’ has not been declared
/home/john/glestae_git/source/map_editor/main.h:210:26: error: ‘wxCommandEvent’ has not been declared
/home/john/glestae_git/source/map_editor/main.h:212:33: error: ‘wxCommandEvent’ has not been declared
/home/john/glestae_git/source/map_editor/main.h:213:23: error: ‘wxCommandEvent’ has not been declared
/home/john/glestae_git/source/map_editor/main.h:214:22: error: ‘wxCommandEvent’ has not been declared
/home/john/glestae_git/source/map_editor/main.h:215:25: error: ‘wxCommandEvent’ has not been declared
/home/john/glestae_git/source/map_editor/main.h:217:25: error: ‘wxCommandEvent’ has not been declared
/home/john/glestae_git/source/map_editor/main.h:218:27: error: ‘wxCommandEvent’ has not been declared
/home/john/glestae_git/source/map_editor/main.h:219:26: error: ‘wxCommandEvent’ has not been declared
/home/john/glestae_git/source/map_editor/main.h:220:25: error: ‘wxCommandEvent’ has not been declared
/home/john/glestae_git/source/map_editor/main.h:221:27: error: ‘wxCommandEvent’ has not been declared
/home/john/glestae_git/source/map_editor/main.h:222:32: error: ‘wxCommandEvent’ has not been declared
/home/john/glestae_git/source/map_editor/main.h:223:20: error: ‘wxCommandEvent’ has not been declared
/home/john/glestae_git/source/map_editor/main.h:225:20: error: ‘wxCommandEvent’ has not been declared
/home/john/glestae_git/source/map_editor/main.h:251:35: error: expected class-name before ‘{’ token
/home/john/glestae_git/source/map_editor/main.h:258:19: error: ‘wxMouseEvent’ has not been declared
/home/john/glestae_git/source/map_editor/main.h:259:19: error: ‘wxMouseEvent’ has not been declared
/home/john/glestae_git/source/map_editor/main.h:260:17: error: ‘wxKeyEvent’ has not been declared
/home/john/glestae_git/source/map_editor/main.h:261:15: error: ‘wxPaintEvent’ has not been declared
/home/john/glestae_git/source/map_editor/main.h:271:37: error: expected class-name before ‘{’ token
/home/john/glestae_git/source/map_editor/main.cpp: In constructor ‘MapEditor::MainWindow::MainWindow()’:
/home/john/glestae_git/source/map_editor/main.cpp:51:5: error: type ‘wxFrame’ is not a direct base of ‘MapEditor::MainWindow’
/home/john/glestae_git/source/map_editor/main.cpp:51:46: error: ‘wxDefaultPosition’ was not declared in this scope
/home/john/glestae_git/source/map_editor/main.cpp:51:80: error: ‘wxSize’ was not declared in this scope
/home/john/glestae_git/source/map_editor/main.cpp:65:34: error: ‘wxIcon’ was not declared in this scope
/home/john/glestae_git/source/map_editor/main.cpp:65:35: error: ‘SetIcon’ was not declared in this scope
/home/john/glestae_git/source/map_editor/main.cpp:67:8: error: ‘class MapEditor::MainWindow’ has no member named ‘panel’
/home/john/glestae_git/source/map_editor/main.cpp:67:20: error: expected type-specifier before ‘wxPanel’
/home/john/glestae_git/source/map_editor/main.cpp:67:20: error: expected ‘;’ before ‘wxPanel’
/home/john/glestae_git/source/map_editor/main.cpp:70:17: error: ‘WX_GL_RGBA’ was not declared in this scope
/home/john/glestae_git/source/map_editor/main.cpp:70:29: error: ‘WX_GL_DOUBLEBUFFER’ was not declared in this scope
/home/john/glestae_git/source/map_editor/main.cpp:71:38: error: ‘class MapEditor::MainWindow’ has no member named ‘panel’
/home/john/glestae_git/source/map_editor/main.cpp:77:2: error: ‘wxBoxSizer’ was not declared in this scope
/home/john/glestae_git/source/map_editor/main.cpp:77:14: error: ‘boxsizer’ was not declared in this scope
/home/john/glestae_git/source/map_editor/main.cpp:77:29: error: expected type-specifier before ‘wxBoxSizer’
/home/john/glestae_git/source/map_editor/main.cpp:77:29: error: expected ‘;’ before ‘wxBoxSizer’
/home/john/glestae_git/source/map_editor/main.cpp:78:16: error: ‘toolbar’ was not declared in this scope
/home/john/glestae_git/source/map_editor/main.cpp:79:16: error: ‘toolbar2’ was not declared in this scope
/home/john/glestae_git/source/map_editor/main.cpp:82:2: error: ‘panel’ was not declared in this scope
/home/john/glestae_git/source/map_editor/main.cpp:85:12: error: ‘class MapEditor::GlCanvas’ has no member named ‘SetFocus’
/home/john/glestae_git/source/map_editor/main.cpp: In member function ‘void MapEditor::MainWindow::buildMenuBar()’:
/home/john/glestae_git/source/map_editor/main.cpp:90:2: error: ‘menuBar’ was not declared in this scope
/home/john/glestae_git/source/map_editor/main.cpp:90:16: error: expected type-specifier before ‘wxMenuBar’
/home/john/glestae_git/source/map_editor/main.cpp:90:16: error: expected ‘;’ before ‘wxMenuBar’
/home/john/glestae_git/source/map_editor/main.cpp:93:2: error: ‘menuFile’ was not declared in this scope
/home/john/glestae_git/source/map_editor/main.cpp:93:17: error: expected type-specifier before ‘wxMenu’
/home/john/glestae_git/source/map_editor/main.cpp:93:17: error: expected ‘;’ before ‘wxMenu’
/home/john/glestae_git/source/map_editor/main.cpp:104:2: error: ‘menuEdit’ was not declared in this scope
/home/john/glestae_git/source/map_editor/main.cpp:104:17: error: expected type-specifier before ‘wxMenu’
/home/john/glestae_git/source/map_editor/main.cpp:104:17: error: expected ‘;’ before ‘wxMenu’
/home/john/glestae_git/source/map_editor/main.cpp:120:2: error: ‘menuMisc’ was not declared in this scope
/home/john/glestae_git/source/map_editor/main.cpp:120:17: error: expected type-specifier before ‘wxMenu’
/home/john/glestae_git/source/map_editor/main.cpp:120:17: error: expected ‘;’ before ‘wxMenu’
/home/john/glestae_git/source/map_editor/main.cpp:128:2: error: ‘menuBrush’ was not declared in this scope
/home/john/glestae_git/source/map_editor/main.cpp:128:18: error: expected type-specifier before ‘wxMenu’
/home/john/glestae_git/source/map_editor/main.cpp:128:18: error: expected ‘;’ before ‘wxMenu’
/home/john/glestae_git/source/map_editor/main.cpp:131:2: error: ‘menuBrushHeight’ was not declared in this scope
/home/john/glestae_git/source/map_editor/main.cpp:131:24: error: expected type-specifier before ‘wxMenu’
/home/john/glestae_git/source/map_editor/main.cpp:131:24: error: expected ‘;’ before ‘wxMenu’
/home/john/glestae_git/source/map_editor/main.cpp:141:2: error: ‘menuBrushGradient’ was not declared in this scope
/home/john/glestae_git/source/map_editor/main.cpp:141:26: error: expected type-specifier before ‘wxMenu’
/home/john/glestae_git/source/map_editor/main.cpp:141:26: error: expected ‘;’ before ‘wxMenu’
/home/john/glestae_git/source/map_editor/main.cpp:148:2: error: ‘menuBrushSurface’ was not declared in this scope
/home/john/glestae_git/source/map_editor/main.cpp:148:25: error: expected type-specifier before ‘wxMenu’
/home/john/glestae_git/source/map_editor/main.cpp:148:25: error: expected ‘;’ before ‘wxMenu’
/home/john/glestae_git/source/map_editor/main.cpp:157:2: error: ‘menuBrushObject’ was not declared in this scope
/home/john/glestae_git/source/map_editor/main.cpp:157:24: error: expected type-specifier before ‘wxMenu’
/home/john/glestae_git/source/map_editor/main.cpp:157:24: error: expected ‘;’ before ‘wxMenu’
/home/john/glestae_git/source/map_editor/main.cpp:172:2: error: ‘menuBrushResource’ was not declared in this scope
/home/john/glestae_git/source/map_editor/main.cpp:172:26: error: expected type-specifier before ‘wxMenu’
/home/john/glestae_git/source/map_editor/main.cpp:172:26: error: expected ‘;’ before ‘wxMenu’
/home/john/glestae_git/source/map_editor/main.cpp:181:2: error: ‘bmStartPos’ was not declared in this scope
/home/john/glestae_git/source/map_editor/main.cpp:181:44: error: ‘wxBitmap’ was not declared in this scope
/home/john/glestae_git/source/map_editor/main.cpp:191:2: error: ‘menuBrushStartLocation’ was not declared in this scope
/home/john/glestae_git/source/map_editor/main.cpp:191:31: error: expected type-specifier before ‘wxMenu’
/home/john/glestae_git/source/map_editor/main.cpp:191:31: error: expected ‘;’ before ‘wxMenu’
/home/john/glestae_git/source/map_editor/main.cpp:192:2: error: ‘miStartPos’ was not declared in this scope
/home/john/glestae_git/source/map_editor/main.cpp:192:22: error: expected type-specifier before ‘wxMenuItem’
/home/john/glestae_git/source/map_editor/main.cpp:192:22: error: expected ‘;’ before ‘wxMenuItem’
/home/john/glestae_git/source/map_editor/main.cpp:195:22: error: expected type-specifier before ‘wxMenuItem’
/home/john/glestae_git/source/map_editor/main.cpp:195:22: error: expected ‘;’ before ‘wxMenuItem’
/home/john/glestae_git/source/map_editor/main.cpp:198:22: error: expected type-specifier before ‘wxMenuItem’
/home/john/glestae_git/source/map_editor/main.cpp:198:22: error: expected ‘;’ before ‘wxMenuItem’
/home/john/glestae_git/source/map_editor/main.cpp:201:22: error: expected type-specifier before ‘wxMenuItem’
/home/john/glestae_git/source/map_editor/main.cpp:201:22: error: expected ‘;’ before ‘wxMenuItem’
/home/john/glestae_git/source/map_editor/main.cpp:204:22: error: expected type-specifier before ‘wxMenuItem’
/home/john/glestae_git/source/map_editor/main.cpp:204:22: error: expected ‘;’ before ‘wxMenuItem’
/home/john/glestae_git/source/map_editor/main.cpp:207:22: error: expected type-specifier before ‘wxMenuItem’
/home/john/glestae_git/source/map_editor/main.cpp:207:22: error: expected ‘;’ before ‘wxMenuItem’
/home/john/glestae_git/source/map_editor/main.cpp:210:22: error: expected type-specifier before ‘wxMenuItem’
/home/john/glestae_git/source/map_editor/main.cpp:210:22: error: expected ‘;’ before ‘wxMenuItem’
/home/john/glestae_git/source/map_editor/main.cpp:213:22: error: expected type-specifier before ‘wxMenuItem’
/home/john/glestae_git/source/map_editor/main.cpp:213:22: error: expected ‘;’ before ‘wxMenuItem’
/home/john/glestae_git/source/map_editor/main.cpp:220:2: error: ‘menuRadius’ was not declared in this scope
/home/john/glestae_git/source/map_editor/main.cpp:220:19: error: expected type-specifier before ‘wxMenu’
/home/john/glestae_git/source/map_editor/main.cpp:220:19: error: expected ‘;’ before ‘wxMenu’
/home/john/glestae_git/source/map_editor/main.cpp:226:20: error: ‘SetMenuBar’ was not declared in this scope
/home/john/glestae_git/source/map_editor/main.cpp: In member function ‘void MapEditor::MainWindow::buildToolBars()’:
/home/john/glestae_git/source/map_editor/main.cpp:230:2: error: ‘toolbar’ was not declared in this scope
/home/john/glestae_git/source/map_editor/main.cpp:230:16: error: expected type-specifier before ‘wxToolBar’
/home/john/glestae_git/source/map_editor/main.cpp:230:16: error: expected ‘;’ before ‘wxToolBar’
/home/john/glestae_git/source/map_editor/main.cpp:231:60: error: ‘wxBitmap’ was not declared in this scope
/home/john/glestae_git/source/map_editor/main.cpp:264:2: error: ‘toolbar2’ was not declared in this scope
/home/john/glestae_git/source/map_editor/main.cpp:264:17: error: expected type-specifier before ‘wxToolBar’
/home/john/glestae_git/source/map_editor/main.cpp:264:17: error: expected ‘;’ before ‘wxToolBar’
/home/john/glestae_git/source/map_editor/main.cpp: In member function ‘void MapEditor::MainWindow::buildStatusBar()’:
/home/john/glestae_git/source/map_editor/main.cpp:312:36: error: ‘CreateStatusBar’ was not declared in this scope
/home/john/glestae_git/source/map_editor/main.cpp:313:15: error: ‘GetStatusBar’ was not declared in this scope
/home/john/glestae_git/source/map_editor/main.cpp:315:75: error: ‘SetStatusText’ was not declared in this scope
/home/john/glestae_git/source/map_editor/main.cpp: At global scope:
/home/john/glestae_git/source/map_editor/main.cpp:323:31: error: variable or field ‘onToolPlayer’ declared void
/home/john/glestae_git/source/map_editor/main.cpp:323:31: error: ‘wxCommandEvent’ was not declared in this scope
/home/john/glestae_git/source/map_editor/main.cpp:323:47: error: ‘event’ was not declared in this scope
/home/john/glestae_git/source/map_editor/main.cpp: In member function ‘void MapEditor::MainWindow::init(std::string, wxString)’:
/home/john/glestae_git/source/map_editor/main.cpp:328:12: error: ‘class MapEditor::GlCanvas’ has no member named ‘SetCurrent’
/home/john/glestae_git/source/map_editor/main.cpp:329:34: error: ‘class MapEditor::GlCanvas’ has no member named ‘GetClientSize’
/home/john/glestae_git/source/map_editor/main.cpp:329:63: error: ‘class MapEditor::GlCanvas’ has no member named ‘GetClientSize’
/home/john/glestae_git/source/map_editor/main.cpp:339:52: error: ‘SetTitle’ was not declared in this scope
/home/john/glestae_git/source/map_editor/main.cpp: In member function ‘void MapEditor::MainWindow::centreMap()’:
/home/john/glestae_git/source/map_editor/main.cpp:347:8: error: ‘wxSize’ does not name a type
/home/john/glestae_git/source/map_editor/main.cpp:351:26: error: ‘canvasSize’ was not declared in this scope
/home/john/glestae_git/source/map_editor/main.cpp: In member function ‘void MapEditor::MainWindow::setFactionCount()’:
/home/john/glestae_git/source/map_editor/main.cpp:373:18: error: ‘menuBrushStartLocation’ was not declared in this scope
/home/john/glestae_git/source/map_editor/main.cpp:377:35: error: ‘miStartPos’ was not declared in this scope
/home/john/glestae_git/source/map_editor/main.cpp:381:4: error: ‘miStartPos’ was not declared in this scope
/home/john/glestae_git/source/map_editor/main.cpp:381:29: error: ‘bmStartPos’ was not declared in this scope
/home/john/glestae_git/source/map_editor/main.cpp: In member function ‘bool MapEditor::MainWindow::checkChanges()’:
/home/john/glestae_git/source/map_editor/main.cpp:391:34: error: ‘wxMessageBox’ was not declared in this scope
/home/john/glestae_git/source/map_editor/main.cpp: At global scope:
/home/john/glestae_git/source/map_editor/main.cpp:397:26: error: variable or field ‘onClose’ declared void
/home/john/glestae_git/source/map_editor/main.cpp:397:26: error: ‘wxCloseEvent’ was not declared in this scope
/home/john/glestae_git/source/map_editor/main.cpp:397:40: error: ‘event’ was not declared in this scope
/home/john/glestae_git/source/map_editor/main.cpp:1163:1: error: expected ‘}’ at end of input
make[2]: *** [source/map_editor/CMakeFiles/gae_mapeditor.dir/main.cpp.o] Error 1
make[1]: *** [source/map_editor/CMakeFiles/gae_mapeditor.dir/all] Error 2
make: *** [all] Error 2
make died with exit status 2

Mon Aug 15 14:07:55 2011
----------------

hailstone

  • Local Moderator
  • Battle Machine
  • ********
  • Posts: 1,568
    • View Profile
Re: a62e44 fails to build
« Reply #1 on: 16 August 2011, 12:09:32 »
It looks like there's a define that needs to be set to 1 in wxWidgets setup.h called wxUSE_GUI otherwise the needed headers aren't included in wx.h. setup.h is in a folder called msvc so it might be different on Linux.
Glest Advanced Engine - Admin/Programmer
https://sourceforge.net/projects/glestae/

Yggdrasil

  • Local Moderator
  • Ornithopter
  • ********
  • Posts: 408
    • View Profile
Re: a62e44 fails to build
« Reply #2 on: 16 August 2011, 16:27:11 »
It builds just fine here. I don't really have a clue what could be wrong. (Try deleting your cmake cache or just try in a new and clean build directory.)

Could you post the output of:
Code: [Select]
wx-config --cxxflagsAnd also run this in the build folder, so we'll see the compile instruction:
Code: [Select]
make VERBOSE=1 gae_mapeditor
I have the feeling it includes '-DwxUSE_GUI=0'. If that's the case make sure you really have wxGTK installed (libwxgtk2.8-dev).

John.d.h

  • Moderator
  • Airship
  • ********
  • Posts: 3,757
  • I have to go now. My planet needs me.
    • View Profile
Re: a62e44 fails to build
« Reply #3 on: 16 August 2011, 19:54:11 »
Code: [Select]
john@satellite:~$ wx-config --cxxflags
-I/usr/lib/wx/include/base-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DwxUSE_GUI=0 -pthread

Ah, I guess I had the wrong thing installed.  Strange that cmake didn't catch that. :look:  Anyway, it builds now.  Thanks.

PS. Nice options menu. :)

 

anything