Comments (5)
Should be fixed in sdl2 branch
from megaglest-source.
for me on 8499d25 this doesn't work still but I dug a bit deeper and with Debug build using gcc 5.2.1 I see something like this during start up:
./megaglest_editor
Using wxWidgets version [3.0.2.0]
18:08:42: Debug: Unsupported OpenGL attribute 2080637296
18:08:42: Debug: Unsupported OpenGL attribute 21946
../src/unix/glx11.cpp(50): assert "fbc" failed in wxGLContext(): invalid GLXFBConfig for OpenGL
../src/gtk/window.cpp(3454): assert "m_widget != __null" failed in SetFocus(): invalid window
../src/gtk/window.cpp(2963): assert "(m_widget != __null)" failed in DoGetClientSize(): invalid window
Trace/breakpoint trap
ASSERT INFO:
../src/unix/glx11.cpp(50): assert "fbc" failed in wxGLContext(): invalid GLXFBConfig for OpenGL
BACKTRACE:
[1] wxGLContext::wxGLContext(wxGLCanvas*, wxGLContext const*)
[2] MapEditor::GlCanvas::GlCanvas(MapEditor::MainWindow*, wxWindow*, int*)
[3] MapEditor::MainWindow::MainWindow(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)
[4] MapEditor::App::OnInit()
[5] wxAppConsoleBase::CallOnInit()
[6] wxEntry(int&, wchar_t**)
[7] main
[8] __libc_start_main
ASSERT INFO:
../src/gtk/window.cpp(3454): assert "m_widget != __null" failed in SetFocus(): invalid window
BACKTRACE:
[1] wxWindow::SetFocus()
[2] MapEditor::MainWindow::MainWindow(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)
[3] MapEditor::App::OnInit()
[4] wxAppConsoleBase::CallOnInit()
[5] wxEntry(int&, wchar_t**)
[6] main
[7] __libc_start_main
... with normal build using clang 3.5.2 I see this:
./megaglest_editor
18:15:02: Warning: Mismatch between the program and library build versions detected.
The library used 3.0 (wchar_t,compiler with C++ ABI 1009,wx containers,compatible with 2.8),
and your program used 3.0 (wchar_t,compiler with C++ ABI 1002,wx containers,compatible with 2.8).
Using wxWidgets version [3.0.2.0]
... and with Debug build using clang I see this:
./megaglest_editor
18:17:09: Warning: Mismatch between the program and library build versions detected.
The library used 3.0 (wchar_t,compiler with C++ ABI 1009,wx containers,compatible with 2.8),
and your program used 3.0 (wchar_t,compiler with C++ ABI 1002,wx containers,compatible with 2.8).
Using wxWidgets version [3.0.2.0]
../src/common/menucmn.cpp(760): assert "item" failed in Check(): wxMenu::Check: no such item
Trace/breakpoint trap
editor is starting successfully (clang + Debug) and I can even e.g. open map but any choose on toolbar ("grass" button in this case) = this:
ASSERT INFO:
../src/common/menucmn.cpp(760): assert "item" failed in Check(): wxMenu::Check: no such item
BACKTRACE:
[1] wxMenuBase::Check(int, bool)
[2] MapEditor::MainWindow::uncheckBrush()
[3] MapEditor::MainWindow::onMenuBrushSurface(wxCommandEvent&)
[4] wxAppConsoleBase::CallEventHandler(wxEvtHandler*, wxEventFunctor&, wxEvent&) const
[5] wxEvtHandler::ProcessEventIfMatchesId(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&)
[6] wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*)
[7] wxEvtHandler::TryHereOnly(wxEvent&)
[8] wxEvtHandler::ProcessEventLocally(wxEvent&)
[9] wxEvtHandler::ProcessEvent(wxEvent&)
[10] wxWindowBase::TryAfter(wxEvent&)
[11] wxWindowBase::TryAfter(wxEvent&)
[12] wxEvtHandler::SafelyProcessEvent(wxEvent&)
[13] wxToolBarBase::OnLeftClick(int, bool)
[14] g_signal_emit_valist
[15] g_signal_emit_by_name
[16] g_signal_emit_valist
[17] g_signal_emit
[18] g_closure_invoke
[19] g_signal_emit_valist
[20] g_signal_emit
[21] g_closure_invoke
[22] g_signal_emit_valist
[23] g_signal_emit
[24] gtk_propagate_event
[25] gtk_main_do_event
[26] g_main_context_dispatch
[27] g_main_loop_run
[28] gtk_main
[29] wxGUIEventLoop::DoRun()
[30] wxEventLoopBase::Run()
[31] wxAppConsoleBase::MainLoop()
[32] MapEditor::App::MainLoop()
[33] wxEntry(int&, wchar_t**)
[34] main
[35] __libc_start_main
... especially this abi mismatch from clang looks interesting and gently shows that maybe something is not 100% fine with precompiled wxWidgets 3.0 on Debian.
from megaglest-source.
you need to delete build folder and re-run cmake and build
Also, i tested the build on a Debian SID VM and both tools work fine when i build them on sid with wx 3.0.2.
from megaglest-source.
Tested in ubuntu and debian Sid and works fine
from megaglest-source.
fixed before 3.12.0 release
from megaglest-source.
Related Issues (20)
- Loading game blocking main thread HOT 3
- Rotate the camera around the center point
- warning: ‘throw’ will always call ‘terminate’
- Queueing commands after a morphing command cancels the morphing. HOT 2
- Add the option to use a texture for the mouse cursor
- The building rally point is not visible beyond a certain distance.
- Matrix chat room
- Double clicking on a game entry on the load menu should load the game HOT 3
- Implement ipv6 support
- CI needs additional tests for more recent compilers
- Doesn't build/can't link to ssh on Ubuntu 22.04 (Jammy) HOT 4
- Unfinished buildings can't be added to a control group with other buildings
- Units always get queued on the same building when there's not enough resources.
- Game goes OOS shortly after player rejoins (when rejoin is enabled) HOT 2
- Run game with command line argsument, required video device
- 3.13.0, Fedora 36, Crash on start HOT 1
- Gameserver: Please allow binding to given IP address
- crash when using a 'less than' sign within the unitDied section of scenario xml
- Add official portable Windows package for local installs
- libidn.so.11 not found HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from megaglest-source.