[GrafX2] #173: Win32 SDL builds are broken

11 views
Skip to first unread message

GrafX2

unread,
Nov 4, 2022, 3:20:27 PM11/4/22
to gra...@googlegroups.com
#173: Win32 SDL builds are broken
------------------------+----------------------------
Reporter: PulkoMandy | Owner: Thomas Bernard
Type: defect | Status: assigned
Priority: major | Milestone: 2.8
Component: GrafX2 | Version: 2.9WIP
Keywords: |
------------------------+----------------------------
The executable or one of the libraries needs libgcc_s_sjlj-1.dll.

This appears to be a dependency of sdl2_ttf that wasn't there before?
--
Ticket URL: <http://pulkomandy.tk/projects/GrafX2/ticket/173>
GrafX2 <http://pulkomandy.tk/projects/GrafX2>
The ultimate 256-color painting program

GrafX2

unread,
Nov 4, 2022, 5:05:25 PM11/4/22
to gra...@googlegroups.com
#173: Win32 SDL builds are broken
-------------------------+----------------------------
Reporter: PulkoMandy | Owner: Thomas Bernard
Type: defect | Status: assigned
Priority: major | Milestone: 2.8
Component: GrafX2 | Version: 2.9WIP
Resolution: | Keywords:
-------------------------+----------------------------
Comment (by Thomas Bernard):

https://stackoverflow.com/questions/12921911/mingw-libgcc-s-sjlj-1-dll-is-
missing

are you sure it is a dependency of sdl2_tff ?

is that the same with SDL 1.2 and SDL 2.x builds ?
--
Ticket URL: <http://pulkomandy.tk/projects/GrafX2/ticket/173#comment:1>

GrafX2

unread,
Nov 5, 2022, 5:11:52 AM11/5/22
to gra...@googlegroups.com
#173: Win32 SDL builds are broken
-------------------------+----------------------------
Reporter: PulkoMandy | Owner: Thomas Bernard
Type: defect | Status: assigned
Priority: major | Milestone: 2.8
Component: GrafX2 | Version: 2.9WIP
Resolution: | Keywords:
-------------------------+----------------------------
Comment (by PulkoMandy):

I checked with depends.exe (https://www.dependencywalker.com)

For the SDL2 build it is SDL_TTF

For the SDL build it is libfreetype6.dll

Maybe the root problem is in Freetype, but in the case of SDL2_TTF that's
statically linked?
--
Ticket URL: <http://pulkomandy.tk/projects/GrafX2/ticket/173#comment:2>

GrafX2

unread,
Nov 6, 2022, 1:22:54 PM11/6/22
to gra...@googlegroups.com
#173: Win32 SDL builds are broken
-------------------------+----------------------------
Reporter: PulkoMandy | Owner: Thomas Bernard
Type: defect | Status: assigned
Priority: major | Milestone: 2.8
Component: GrafX2 | Version: 2.9WIP
Resolution: | Keywords:
-------------------------+----------------------------
Comment (by Thomas Bernard):

it looks like I force the -static-libgcc linker option but it may be not
enforced in the freetype build.
--
Ticket URL: <http://pulkomandy.tk/projects/GrafX2/ticket/173#comment:3>

GrafX2

unread,
Nov 6, 2022, 4:41:06 PM11/6/22
to gra...@googlegroups.com
#173: Win32 SDL builds are broken
-------------------------+----------------------------
Reporter: PulkoMandy | Owner: Thomas Bernard
Type: defect | Status: assigned
Priority: major | Milestone: 2.8
Component: GrafX2 | Version: 2.9WIP
Resolution: | Keywords:
-------------------------+----------------------------
Comment (by Thomas Bernard):

https://gitlab.com/GrafX2/grafX2/-/merge_requests/337
--
Ticket URL: <http://pulkomandy.tk/projects/GrafX2/ticket/173#comment:4>

GrafX2

unread,
Nov 6, 2022, 4:42:40 PM11/6/22
to gra...@googlegroups.com
#173: Win32 SDL builds are broken
-------------------------+----------------------------
Reporter: PulkoMandy | Owner: Thomas Bernard
Type: defect | Status: assigned
Priority: major | Milestone: 2.8
Component: GrafX2 | Version: 2.9WIP
Resolution: | Keywords:
-------------------------+----------------------------
Comment (by Thomas Bernard):

It is possible to check dll dependencies with :

mingw32-objdump -x usr-win32/bin/libfreetype-6.dll |grep 'DLL Name'

;)
--
Ticket URL: <http://pulkomandy.tk/projects/GrafX2/ticket/173#comment:5>

GrafX2

unread,
Nov 7, 2022, 2:22:24 PM11/7/22
to gra...@googlegroups.com
#173: Win32 SDL builds are broken
-------------------------+----------------------------
Reporter: PulkoMandy | Owner: Thomas Bernard
Type: defect | Status: assigned
Priority: major | Milestone: 2.8
Component: GrafX2 | Version: 2.9WIP
Resolution: | Keywords:
-------------------------+----------------------------
Comment (by PulkoMandy):

sdl2_ttf in
https://gitlab.com/GrafX2/grafX2/-/jobs/3281363439/artifacts/raw/grafx2-sdl2-2.8.3141-win32.zip
still requires libgcc_s_sjlj-1.dll

> mingw32-objdump -x usr-win32/bin/libfreetype-6.dll |grep 'DLL Name'

Yes, if you want to check them one by one (and if you have mingw
installed). In depends.exe you can load the .exe file and it will show a
tree of all needed DLL and highlight the ones not available.
--
Ticket URL: <http://pulkomandy.tk/projects/GrafX2/ticket/173#comment:6>

GrafX2

unread,
Nov 7, 2022, 5:55:39 PM11/7/22
to gra...@googlegroups.com
#173: Win32 SDL builds are broken
-------------------------+----------------------------
Reporter: PulkoMandy | Owner: Thomas Bernard
Type: defect | Status: assigned
Priority: major | Milestone: 2.8
Component: GrafX2 | Version: 2.9WIP
Resolution: | Keywords:
-------------------------+----------------------------
Comment (by Thomas Bernard):

I'm doing everything from freeBSD anyway ;)

is the latest build from https://grafx2.gitlab.io/grafX2/ ok ?
--
Ticket URL: <http://pulkomandy.tk/projects/GrafX2/ticket/173#comment:7>

GrafX2

unread,
Nov 8, 2022, 3:25:57 PM11/8/22
to gra...@googlegroups.com
#173: Win32 SDL builds are broken
-------------------------+----------------------------
Reporter: PulkoMandy | Owner: Thomas Bernard
Type: defect | Status: assigned
Priority: major | Milestone: 2.8
Component: GrafX2 | Version: 2.9WIP
Resolution: | Keywords:
-------------------------+----------------------------
Comment (by PulkoMandy):

The SDL1 version works now, but in the SDL2 version, it seems SDL2_TTF.dll
still depends on libgcc.
--
Ticket URL: <http://pulkomandy.tk/projects/GrafX2/ticket/173#comment:8>
Reply all
Reply to author
Forward
0 new messages