Open eniac11 opened 2 months ago
The linux port is incomplete. At the moment, it compiles and passes the unit tests and skips the image tests (since it can't properly generate an image).
The current plan is to get the linux side working completely when the switch to wxWidgets happens, because everything should be cross-platform at that point.
Earlier, the intentions was to write an X11 implementation of the driver API but then I realized that I was just duplicating a lot of functionality for the text window between Win32 and X11 and that if I wrote a wxWidgets control for the text window, then the code would be the same for both platforms and essentially the driver API could be identical across both Win32 and linux.
I just built (v1.0.0) and compiled id and it compiles successfully but when I try to run it it crashes. Not sure of usability of linux port.
Anyway, I have done some debugging and it seems like when it tries to iterate over the string and set the global variable text_ it crashes. Breaking just at
::put_string
and looking attext_
gdb says that its size is 0. This means thattext_
does not get initialized.I also had to change CMAKE_BUILD_TYPE=Debug as some symbols were missing, I think this should be the default in the preset.
This error also seems to be point to another issue.
EDIT: turns out that the second error was from launching it in the build directory, had to do a
make package
though it still crashes in a similar way just in different place.backtrace
locals
print of
text_
:error message