Closed
Bug 286494
Opened 20 years ago
Closed 20 years ago
Fix libart for SVG use on OS/2 (short name for OS/2 DLL)
Categories
(Core :: SVG, defect)
Tracking
()
VERIFIED
FIXED
People
(Reporter: mozilla, Assigned: mozilla)
Details
Attachments
(2 files, 1 obsolete file)
1.71 KB,
patch
|
mkaply
:
review+
mkaply
:
superreview+
|
Details | Diff | Splinter Review |
877 bytes,
patch
|
mkaply
:
review+
|
Details | Diff | Splinter Review |
The libart library under other-licenses/libart_lgpl/ compiles fine under OS/2
but cannot be used due to the 8.3 char limitation for OS/2 DLLs. To be able to
use SVG we need a small patch to let Mozilla start when compiled with
--enable-svg and --enable-svg-renderer=libart.
Assignee | ||
Comment 1•20 years ago
|
||
With these two small changes libart can be used and SVG really works on OS/2!
Comment 2•20 years ago
|
||
SHORT_LIBNAME is used by windows as well, so we need this in an if statement.
http://lxr.mozilla.org/seamonkey/source/extensions/access-builtin/accessproxy/Makefile.in#48
Nice find!
Assignee | ||
Comment 3•20 years ago
|
||
Right, thanks for the hint. Unfortunately, I can only get SVG working with a
debug build, and even there blue and red colors are reversed, so that e.g.
<http://www.croczilla.com/svg/samples/butterfly/butterfly.svg> appears in blue
instead of orange. An optimized build crashes on startup when compiled with
--enable-svg.
I will try to investigate a bit more before uploading a corrected patch.
Assignee | ||
Updated•20 years ago
|
Attachment #177671 -
Attachment is obsolete: true
Attachment #177671 -
Flags: review?(mkaply)
Assignee | ||
Updated•20 years ago
|
Summary: Use short name for OS/2 DLL instead of moz_art_lgpl → Fix libart for SVG use on OS/2 (short name for OS/2 DLL)
Assignee | ||
Comment 4•20 years ago
|
||
Fixed to not use SHORT_LIBNAME on WinNT. Also use BGRA pixel format on OS/2
instead of RGBA. Now all samples on <http://www.croczilla.com/svg/samples/>
seem to get the correct colors, just the ones with a background image don't
work.
I guess work on this is really wasted as libart is deprecated, so we should
really get cairo working as SVG renderer on OS/2, but libart is easier...
This is also just work in progress, no text is yet displayed in the SVG
graphics, probably some font handling problem on OS/2.
Comment 5•20 years ago
|
||
Text will never work with libart - cairo is required for that.
Comment 6•20 years ago
|
||
Comment on attachment 177951 [details] [diff] [review]
Short DLL name and BGRA pixel format for OS/2
r/sr = mkaply
Attachment #177951 -
Flags: superreview+
Attachment #177951 -
Flags: review+
Comment 7•20 years ago
|
||
Fix checked in.
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Comment 8•20 years ago
|
||
Build is failing looking for moz_art_lgpl_s.a .
I think the problem is that in the checked in version it did not take into
account the configure.in changes.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment 9•20 years ago
|
||
Build is failing looking for moz_art_lgpl_s.a .
The problem is that in the checked in version it did not take into account the
configure.in changes.
autoconf.mk has MOZ_LIBART_LIBS=-lmoz_art_lgpl -lm instead of MOZ_LIBART_LIBS =
-lmoz_art -lm.
The moz_art files were created successfully but the final link in bootstrap
fails because it is looking for the long name.
Assignee | ||
Comment 10•20 years ago
|
||
Indeed, sorry! My second patch was missing the configure.in additions. Here
they are again.
Attachment #179327 -
Flags: review?(mkaply)
Comment 11•20 years ago
|
||
Comment on attachment 179327 [details] [diff] [review]
configure changes for libart on OS/2
r=mkaply. I'll get this in today.
Attachment #179327 -
Flags: review?(mkaply) → review+
Comment 12•20 years ago
|
||
done.
Status: REOPENED → RESOLVED
Closed: 20 years ago → 20 years ago
Resolution: --- → FIXED
Assignee | ||
Updated•19 years ago
|
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•