Ticket #2949 (closed bug: fixed)

Opened 17 months ago

Last modified 5 months ago

Missing freetype2 headers, the freetype-config tool and its pkg-config files are missing.

Reported by: scottmc Owned by: nobody
Priority: normal Milestone: R1
Component: - General Version: R1/Development
Keywords: Cc: planche2k@…
Blocked By: Platform: All
Blocking: #3167

Description

Splitting this off from #1739 as it grew from the discussion. Freetype2 is part of Haiku, but the freetype2 headers, the freetype-config tool and its pkg-config files are missing. This makes it difficult to port things to Haiku that rely on the system having those in place. They don't need to be part of Haiku, but should at least be available as an optional package or part of the development package.

Change History

  Changed 17 months ago by andreasf

  • cc andreas.faerber@… added

  Changed 16 months ago by scottmc

This looks to be partially fixed in r28570, but still need the the config tool and pkg-config to be added.

  Changed 16 months ago by anevilyak

  • blocking 3167 added

(In #3167) Thanks for the note!

  Changed 15 months ago by scottmc

I've built and posted a freetype-2.3.7 binary for Haiku over on HaikuPorts, this package includes thee freetype2 headers, freetype-config tool and pkg-config files. So this could either be added as an optional package or the files can be pulled out of the binary zip and put into svn where needed. Once that is done this ticket can be closed out.

  Changed 15 months ago by korli

It's just the config tool and pkg-config should be tuned with /boot/develop/headers and /boot/develop/lib

follow-ups: ↓ 7 ↓ 8   Changed 10 months ago by scottmc

I've taken another look at this one and seems using --libdir=/boot/develop/headers/3rdparty during ./configure does the trick.  http://ports.haiku-files.org/wiki/media-libs/freetype/2.3.9/1

in reply to: ↑ 6   Changed 10 months ago by bonefish

Replying to scottmc:

I've taken another look at this one and seems using --libdir=/boot/develop/headers/3rdparty during ./configure does the trick.  http://ports.haiku-files.org/wiki/media-libs/freetype/2.3.9/1

Maybe that's different for freetype, but usually "--libdir" specifies the installation directory for libraries.

in reply to: ↑ 6   Changed 10 months ago by korli

Replying to scottmc:

I've taken another look at this one and seems using --libdir=/boot/develop/headers/3rdparty during ./configure does the trick.  http://ports.haiku-files.org/wiki/media-libs/freetype/2.3.9/1

bonefish is right, you might try using --includedir=/boot/develop/headers/3rdparty instead.

  Changed 10 months ago by scottmc

corrected.. i've updated the haikuports portlog entry to reflect this.

follow-up: ↓ 11   Changed 10 months ago by korli

I added freetype-config in r30904. Should we use /boot/develop/abi/current for the prefix directory to be generic ?

in reply to: ↑ 10 ; follow-up: ↓ 12   Changed 10 months ago by bonefish

Replying to korli:

I added freetype-config in r30904. Should we use /boot/develop/abi/current for the prefix directory to be generic ?

Nope, that isn't a prefix path, anyway.

in reply to: ↑ 11 ; follow-up: ↓ 13   Changed 10 months ago by korli

Replying to bonefish:

Replying to korli:

I added freetype-config in r30904. Should we use /boot/develop/abi/current for the prefix directory to be generic ?

Nope, that isn't a prefix path, anyway.

Libs reside in /boot/develop/lib/x86/. Should we then customize the script with the arch ?

in reply to: ↑ 12 ; follow-up: ↓ 14   Changed 10 months ago by bonefish

Replying to korli:

Replying to bonefish:

Replying to korli:

I added freetype-config in r30904. Should we use /boot/develop/abi/current for the prefix directory to be generic ?

Nope, that isn't a prefix path, anyway.

Libs reside in /boot/develop/lib/x86/. Should we then customize the script with the arch ?

I'm not quite sure, what the script is supposed to return. If it is the path for the linker, it should be /boot/develop/lib/x86 (for x86) or more generally /boot/develop/abi/current/lib. If it is the path where the library is located at runtime, it would be /system/lib.

Other then that, I think the prefix in the script is incorrect anyway, since with don't install freetype in /boot/common, but in /system.

in reply to: ↑ 13   Changed 10 months ago by korli

Replying to bonefish:

Libs reside in /boot/develop/lib/x86/. Should we then customize the script with the arch ?

I'm not quite sure, what the script is supposed to return. If it is the path for the linker, it should be /boot/develop/lib/x86 (for x86) or more generally /boot/develop/abi/current/lib. If it is the path where the library is located at runtime, it would be /system/lib.

When used with --libs, it's supposed to return how to link : -L/boot/develop/lib/x86 -lfreetype -lz For the time being, we could use /boot/develop/abi/current/lib then.

Other then that, I think the prefix in the script is incorrect anyway, since with don't install freetype in /boot/common, but in /system.

Agreed, I committed it as is to have an initial version. I suppose in a Linux environment, runtime and link libraries are at the same place.

  Changed 9 months ago by andreasf

  • cc andreas.faerber@… removed

  Changed 9 months ago by andreasf

  • cc planche2k@… added

  Changed 5 months ago by scottmc

Is there anything left to do on this one? Freetype-2.3.11 is out now... Have the correct locations been ironed out yet?

  Changed 5 months ago by axeld

  • owner changed from axeld to nobody
  • version changed from R1/pre-alpha1 to R1/Development

  Changed 5 months ago by scottmc

  • status changed from new to closed
  • resolution set to fixed

I've updated the pathnames in freetype-config in r33649, and updated freetype in r33650, then built and tried building of sdl-ttf and it checked for both freetype-config and pkg-config and was happy to just find the freetype-config. I suspect in most cases packages will do this, that is check for both and if they find one will be happy with it. So unless there's a need for the pkg-config I'm ok with leaving it out and closing this ticket as fixed. The paths may (or may not) need adjusting if/when the time comes for addressing the arch issues listed above.

Note: See TracTickets for help on using tickets.