Closed Bug 286494 Opened 19 years ago Closed 19 years ago

Fix libart for SVG use on OS/2 (short name for OS/2 DLL)

Categories

(Core :: SVG, defect)

x86
OS/2
defect
Not set
normal

Tracking

()

VERIFIED FIXED

People

(Reporter: mozilla, Assigned: mozilla)

Details

Attachments

(2 files, 1 obsolete file)

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.
Attached patch Use moz_art.dll as short name (obsolete) — Splinter Review
With these two small changes libart can be used and SVG really works on OS/2!
Assignee: general → mozilla
Status: NEW → ASSIGNED
Attachment #177671 - Flags: review?(mkaply)
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!
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.
Attachment #177671 - Attachment is obsolete: true
Attachment #177671 - Flags: review?(mkaply)
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)
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.
Text will never work with libart - cairo is required for that.
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+
Fix checked in.
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
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 → ---
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.
Indeed, sorry! My second patch was missing the configure.in additions. Here
they are again.
Attachment #179327 - Flags: review?(mkaply)
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+
done.
Status: REOPENED → RESOLVED
Closed: 19 years ago19 years ago
Resolution: --- → FIXED
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: