Menu

#1 Patch for compiling with wxWidget 2.8 under linux

open
nobody
None
5
2010-11-27
2010-11-27
RichieQ
No

I tried to compile your editor under linux with wxWidget 2.8 and this is the result.
Main problems were:
- #pragma pack was used wrong
- creating of wxBitmap from SDL_Surface does not work
- conversion from std::string to wxString (and other way round) is not implicit in wxWidget 2.8
- wxListCtrl::GetItemText(int, int) does not exist in wxWidget 2.8
- switch from "/" to "\"
- replace sprintf_s with sprintf (the former is windows only afaik)
- use delete [] for new[]
- while setting up the windows some not yet initialized pointers were used. added check for uninitialized pointers

Discussion

  • RichieQ

    RichieQ - 2010-11-27
     
  • Robert Crossfield

    Thanks for your patch!

    Ive applied certain patches to the SVN, however there are changes which render it non-compilable on windows, and at present I don't have a linux machine setup to test against.

    A couple of changes (moving of stdafx.h references before the frame/dialog headers), cause the windows version to crash upon startup (there must be some incompatibility issues between the sdl and wxwidgets headers i guess?)

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.