Scummex and Linux

Ask for help with ScummVM problems

Moderator: ScummVM Team

Post Reply
BassiB
Posts: 9
Joined: Wed Nov 09, 2005 2:44 pm
Location: Sittensen, GERMANY
Contact:

Scummex and Linux

Post by BassiB »

Hello

i can not compile Scummex under Linux

Code: Select all

mkdir -p ./.deps
c++ -Wp,-MMD,"./.deps/file.d2" -DOSUNIX -g -O -Wall -Wuninitialized -Wshadow -Wno-unused-variable -Wno-long-long -Wno-multichar -Wno-unknown-pragmas `wx-config --version=2.5 --cxxflags` `sdl-config --cflags` -I.  -c file.cpp -o file.o

  Warning: No config found to match: /usr/bin/wx-config --version=2.5 --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.

file.h:69: error: extra qualification ‘File::’ on member ‘getbit’
make: *** [file.o] Fehler 1

The scumm tools and residual compiles without problems.
User avatar
sev
ScummVM Lead
Posts: 2306
Joined: Wed Sep 21, 2005 1:06 pm
Contact:

Post by sev »

You need wxWindows toolkit installed.


Eugene
BassiB
Posts: 9
Joined: Wed Nov 09, 2005 2:44 pm
Location: Sittensen, GERMANY
Contact:

Post by BassiB »

This packages are installed

Image

Image
User avatar
Dark-Star
Posts: 150
Joined: Sun Oct 30, 2005 9:36 pm
Location: Reutlingen, GERMANY

Post by Dark-Star »

If you look at the compiler error closely, you will see the problem: your compiler wants to use v2.5, you have only installed v2.4 and v2.6

I don't know how to force the build system to use a different version, though. Your best chance is to install wxWidgets 2.5 + matching development libraries (those with "-dev" at the end)
BassiB
Posts: 9
Joined: Wed Nov 09, 2005 2:44 pm
Location: Sittensen, GERMANY
Contact:

Post by BassiB »

i think this is not really the problem.

When i edit the Makefile to WX_VERSION := 2.6 then the wx message is gone, but this error is still there:

Code: Select all

mkdir -p ./.deps
c++ -Wp,-MMD,"./.deps/file.d2" -DOSUNIX -g -O -Wall -Wuninitialized -Wshadow -Wno-unused-variable -Wno-long-long -Wno-multichar -Wno-unknown-pragmas `wx-config --version=2.6 --cxxflags` `sdl-config --cflags` -I.  -c file.cpp -o file.o
file.h:69: error: extra qualification ‘File::’ on member ‘getbit’
make: *** [file.o] Fehler 1
i think it is fact that there is a problem with the file.h ;)
User avatar
DrMcCoy
ScummVM Developer
Posts: 595
Joined: Sat Dec 17, 2005 1:33 pm
Location: Braunschweig, Germany
Contact:

Post by DrMcCoy »

Remove the extra "File::" before getbit in class File in file.h:69
BassiB
Posts: 9
Joined: Wed Nov 09, 2005 2:44 pm
Location: Sittensen, GERMANY
Contact:

Post by BassiB »

ok now it looks like 8) bigger problems :lol:

Code: Select all

wxwindows.h:27:23: error: wx/wxprec.h: No such file or directory
wxwindows.h:30:23: error: wx/wx.h: No such file or directory
wxwindows.h:33:30: error: wx/html/helpctrl.h: No such file or directory
wxwindows.h:34:21: error: wx/grid.h: No such file or directory
wxwindows.h:35:22: error: wx/image.h: No such file or directory
wxwindows.h:36:25: error: wx/imaglist.h: No such file or directory
wxwindows.h:37:25: error: wx/treectrl.h: No such file or directory
wxwindows.h:38:25: error: wx/listctrl.h: No such file or directory
wxwindows.h:39:25: error: wx/statline.h: No such file or directory
wxwindows.h:51: error: expected class-name before ‘{’ token
wxwindows.h:53: error: ISO C++ forbids declaration of ‘wxHtmlHelpController’ with no type
wxwindows.h:53: error: expected ‘;’ before ‘*’ token
wxwindows.h:54: error: ISO C++ forbids declaration of ‘wxHtmlWindow’ with no type
wxwindows.h:54: error: expected ‘;’ before ‘*’ token
wxwindows.h:55: error: ISO C++ forbids declaration of ‘wxNotebook’ with no type
wxwindows.h:55: error: expected ‘;’ before ‘*’ token
wxwindows.h:56: error: ‘wxBitmap’ does not name a type
wxwindows.h:57: error: ISO C++ forbids declaration of ‘wxStaticBitmap’ with no type
wxwindows.h:57: error: expected ‘;’ before ‘*’ token
wxwindows.h:58: error: ISO C++ forbids declaration of ‘wxPanel’ with no type
wxwindows.h:58: error: expected ‘;’ before ‘*’ token
wxwindows.h:60: error: ISO C++ forbids declaration of ‘wxStaticText’ with no type
wxwindows.h:60: error: expected ‘;’ before ‘*’ token
wxwindows.h:61: error: ISO C++ forbids declaration of ‘wxStaticText’ with no type
wxwindows.h:61: error: expected ‘;’ before ‘*’ token
wxwindows.h:62: error: ISO C++ forbids declaration of ‘wxButton’ with no type
wxwindows.h:62: error: expected ‘;’ before ‘*’ token
wxwindows.h:63: error: ‘wxTreeItemId’ does not name a type
wxwindows.h:64: error: ‘wxBitmap’ does not name a type
wxwindows.h:65: error: ISO C++ forbids declaration of ‘wxTreeCtrl’ with no type
wxwindows.h:65: error: expected ‘;’ before ‘*’ token
wxwindows.h:66: error: ‘wxFileName’ does not name a type
wxwindows.h:68: error: ‘wxString’ does not name a type
wxwindows.h:69: error: ‘wxString’ does not name a type
wxwindows.h:74: error: expected ‘,’ or ‘...’ before ‘&’ token
wxwindows.h:74: error: ISO C++ forbids declaration of ‘wxString’ with no type
wxwindows.h:80: error: ‘wxCommandEvent’ has not been declared
wxwindows.h:81: error: ‘wxCommandEvent’ has not been declared
wxwindows.h:82: error: ‘wxCloseEvent’ has not been declared
wxwindows.h:83: error: ‘wxCommandEvent’ has not been declared
wxwindows.h:84: error: ‘wxTreeEvent’ has not been declared
wxwindows.h:85: error: ‘wxCommandEvent’ has not been declared
wxwindows.h:87: error: ‘wxCommandEvent’ has not been declared
wxwindows.h:88: error: ‘wxCommandEvent’ has not been declared
wxwindows.h:89: error: ‘wxCommandEvent’ has not been declared
wxwindows.h:90: error: ‘wxEvent’ has not been declared
wxwindows.h:91: error: ‘wxEvent’ has not been declared
wxwindows.h:93: error: ‘wxEvent’ has not been declared
wxwindows.h:94: error: ‘wxEvent’ has not been declared
wxwindows.h:95: error: ‘wxEvent’ has not been declared
wxwindows.h:96: error: ‘wxEvent’ has not been declared
wxwindows.h:97: error: ‘wxEvent’ has not been declared
wxwindows.h:98: error: ‘wxEvent’ has not been declared
wxwindows.h:99: error: ‘wxEvent’ has not been declared
wxwindows.h:100: error: ‘wxEvent’ has not been declared
wxwindows.h:101: error: ‘wxEvent’ has not been declared
wxwindows.h:104: error: ‘wxStaticText’ has not been declared
wxwindows.h:108: error: ISO C++ forbids declaration of ‘DECLARE_EVENT_TABLE’ with no type
wxwindows.h:109: error: expected ‘;’ before ‘}’ token
wxwindows.h:109: error: expected `;' before ‘}’ token
wxwindows.h:111: error: expected class-name before ‘{’ token
wxwindows.h:114: error: ‘wxSize’ does not name a type
wxwindows.h:115: error: ISO C++ forbids declaration of ‘wxImage’ with no type
wxwindows.h:115: error: expected ‘;’ before ‘*’ token
wxwindows.h:116: error: ISO C++ forbids declaration of ‘wxMenu’ with no type
wxwindows.h:116: error: expected ‘;’ before ‘*’ token
wxwindows.h:118: error: expected ‘,’ or ‘...’ before ‘&’ token
wxwindows.h:118: error: ISO C++ forbids declaration of ‘wxString’ with no type
wxwindows.h:128: error: ‘wxCloseEvent’ has not been declared
wxwindows.h:129: error: ‘wxCommandEvent’ has not been declared
wxwindows.h:130: error: ‘wxCommandEvent’ has not been declared
wxwindows.h:131: error: ‘wxCommandEvent’ has not been declared
wxwindows.h:132: error: ‘wxCommandEvent’ has not been declared
wxwindows.h:133: error: ‘wxCommandEvent’ has not been declared
wxwindows.h:134: error: ‘wxCommandEvent’ has not been declared
wxwindows.h:137: error: ISO C++ forbids declaration of ‘DECLARE_EVENT_TABLE’ with no type
wxwindows.h:138: error: expected ‘;’ before ‘}’ token
wxwindows.h:138: error: expected `;' before ‘}’ token
wxwindows.h:140: error: expected class-name before ‘{’ token
wxwindows.h:146: error: ‘wxPaintEvent’ has not been declared
wxwindows.h:148: error: ISO C++ forbids declaration of ‘DECLARE_EVENT_TABLE’ with no type
wxwindows.h:149: error: expected ‘;’ before ‘}’ token
wxwindows.h:149: error: expected `;' before ‘}’ token
wxwindows.h:151: error: expected class-name before ‘{’ token
wxwindows.h:153: error: ISO C++ forbids declaration of ‘wxTextCtrl’ with no type
wxwindows.h:153: error: expected ‘;’ before ‘*’ token
wxwindows.h:156: error: expected ‘,’ or ‘...’ before ‘&’ token
wxwindows.h:156: error: ISO C++ forbids declaration of ‘wxString’ with no type
wxwindows.h:162: error: ISO C++ forbids declaration of ‘DECLARE_EVENT_TABLE’ with no type
wxwindows.h:163: error: expected ‘;’ before ‘}’ token
wxwindows.h:163: error: expected `;' before ‘}’ token
wxwindows.h:165: error: expected class-name before ‘{’ token
wxwindows.h:167: error: ISO C++ forbids declaration of ‘wxConfig’ with no type
wxwindows.h:167: error: expected ‘;’ before ‘*’ token
wxwindows.h:184: error: ‘wxString’ has not been declared
wxwindows.h:184: error: ‘bool GUI_wxWindows::readConfigValue(const char*, int*)’ cannot be overloaded
wxwindows.h:183: error: with ‘bool GUI_wxWindows::readConfigValue(const char*, int*)’
wxwindows.h:186: error: ‘wxString’ has not been declared
wxwindows.h:165: warning: ‘class GUI_wxWindows’ has virtual functions but non-virtual destructor
wxwindows.h:189: error: expected class-name before ‘{’ token
scummex.cpp: In member function ‘void ScummEX::loadFile(const char*)’:
scummex.cpp:61: error: ‘wxID_CLOSE’ was not declared in this scope
make: *** [scummex.o] Fehler 1
EDIT!:

YES! Now with editing the "Makefile" to WX_VERSION := 2.6 compiling worked and scummex runs!
Thanks :)
Maybe someone can note this in the "Makefile" or in an extra readme.
Post Reply