On 22 Apr 2011, at 1:53 AM, Smokey Ardisson wrote: > At 12:58 AM -0400 on 4/22/11, Edward Mendelson wrote: > >> I seem to have built libwpd from the latest sources and installed it. >> /usr/local/lib has libwpd-0.9.9 dylib, libwpd-0.9.la, and >> libwpd-stream-0.9.la. And /usr/local/include has a libwpd-0,9 folder. >> >> When I try to configure libwpg, I get these error messages: >> >> configure: error: Package requirements ( >> libwpd-0.9 >= 0.9.0 >> libwpd-stream-0.9 >= 0.9.0 >> ) were not met: >> >> No package 'libwpd-0.9' found >> No package 'libwpd-stream-0.9' found >> >> Further messages suggest adjusting the PKG_ENVIRONMENT_PATH environment >> variable, or "Alternatively, you may set the environment variables >> WRITERPERFECTCORE_CFLAGS and WRITERPERFECTCORE_LIBS to avoid the need to >> call pkg-config." > > Again, with the caveat I haven't tried to build libwpg in a while, setting > the PKG_CONFIG_PATH environment variable before trying to configure should > work; it's in my list of standard commands to run when doing a libwp* build, > and that's clearly a pkg-config-related error message you're seeing. (If > that variable doesn't work, perhaps the PKG_ENVIRONMENT_PATH variable the > errors mentioned is a new name for the PKG_CONFIG_PATH var in more recent > pkg-config versions?) > > You'll want that variable to be set to something like > "/usr/lib/pkgconfig:/usr/local/lib/pkgconfig" for your setup (the former path > might not be necessary; it depends on whether libwpg or writerperfect needs > to identify libxml via pkg-config, because that's where libxml's pkg-config > file is when shipped by the OS, at least 10.3-10.5). You can verify that > /usr/local/lib/pkgconfig does contain the .pc files for libwpd-0.9 and > libwpd-stream-0.9, and if not hunt around for the path that does contain > those files. >
Thanks to clear, generous advice from Fridrich and Smokey, I've successfully compiled writerperfect under OS X. Thank you. What I did was this: 1. Following Fridrich's advice, I made sure that libtool, automake, autoconf and pkg-config were on my system. Whatever wasn't there through Xcode, I installed through MacPorts. (I am vague about this because I've been using MacPorts and am not certain what I added via MacPorts, and what I had through Xcode.) 2. Following the advice in the readme (modified by Smokey's instructions), I ran the first of the two perl commands in the README file for libwpd. 3. I used ./autogen.sh, then ./configure, make, sudo make install to install libwpd. 4. I then used similar methods to install libwpg (which is required for writerperfect, apparently) 5. Then I used Smokey's suggestion to set PKG_CONFIG_PATH exactly as described above, and built writerperfect. Thank you again. At some point, I would like to ask how to build a static copy of wpd2odt, so that I can distribute it as a part of a solution, but that will be asking a lot from other people, and I don't want to burden anyone now. I'll write in another message about the results I got with wpd2odt on files with Japanese kanji. Edward Mendelson Contributing Editor PC Magazine ------------------------------------------------------------------------------ Fulfilling the Lean Software Promise Lean software platforms are now widely adopted and the benefits have been demonstrated beyond question. Learn why your peers are replacing JEE containers with lightweight application servers - and what you can gain from the move. http://p.sf.net/sfu/vmware-sfemails _______________________________________________ Libwpd-devel mailing list Libwpd-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libwpd-devel