Apologies if this is the wrong place to post this. I've been trying to build libwpd in macOS 10.13 High Sierra, but make exits with these errors:
CXXLD libwpd-0.10.la
Undefined symbols for architecture x86_64:
"_WP1_FUNCTION_GROUP_SIZE", referenced from:
WP1FixedLengthGroup::_read(librevenge::RVNGInputStream, WPXEncryption) in WP1FixedLengthGroup.o
WP1Heuristics::isWP1FileFormat(librevenge::RVNGInputStream, char const) in WP1Heuristics.o
WP1Part::constructPart(librevenge::RVNGInputStream, WPXEncryption, unsigned char) in WP1Part.o
"_WP3_FIXED_LENGTH_FUNCTION_GROUP_SIZE", referenced from:
WP3FixedLengthGroup::isGroupConsistent(librevenge::RVNGInputStream, WPXEncryption, unsigned char) in WP3FixedLengthGroup.o
WP3FixedLengthGroup::_read(librevenge::RVNGInputStream, WPXEncryption) in WP3FixedLengthGroup.o
"_WP42_FUNCTION_GROUP_SIZE", referenced from:
WP42Heuristics::isWP42FileFormat(librevenge::RVNGInputStream, char const) in WP42Heuristics.o
"_WP5_FIXED_LENGTH_FUNCTION_GROUP_SIZE", referenced from:
WP5FixedLengthGroup::isGroupConsistent(librevenge::RVNGInputStream, WPXEncryption, unsigned char) in WP5FixedLengthGroup.o
WP5FixedLengthGroup::_read(librevenge::RVNGInputStream, WPXEncryption) in WP5FixedLengthGroup.o
"WP42Listener::WP42Listener()", referenced from:
WP42ContentListener::WP42ContentListener(std::__1::list<wpxpagespan, std::__1::allocator\<wpxpagespan=""> >&, std::__1::vector<wp42subdocument*, std::__1::allocator\<wp42subdocument*=""> >&, librevenge::RVNGTextInterface*) in WP42ContentListener.o
WP42StylesListener::WP42StylesListener(std::__1::list<wpxpagespan, std::__1::allocator\<wpxpagespan=""> >&, std::__1::vector<wp42subdocument*, std::__1::allocator\<wp42subdocument*=""> >&) in WP42StylesListener.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)</wp42subdocument*,></wpxpagespan,></wp42subdocument*,></wpxpagespan,>
Is this just because I'm incompetent, or is there any solution?
Hello,
do you do a make clean all (or better ./autogen.sh ; ./configure; make clean all ) ? Ie. I just check and the build ends succefully on my mac ( which is also in OSX 10.13) ....
Hello,
Thank you for this. I tried ./autogen.sh ; ./configure; make clean all - and the errors disappeared. Thank you again!
But now, oddly enough I cannot seem to create a static build. I used ./configure —enable-static and ./configure —enable-static=YES, but the resulting executables in in the src/conv/ folder were all 6KB, and make install created builds that are 300-600KB, not the 1.9MB that seem to be needed for standalone executables. Am I missing something obvious?
Apologies for my incompetence!
Edward
Related
Tickets:
#16And ignore my last question: I forgot that I also needed to use —enable-shared=NO
Last edit: Edward Mendelson 2018-06-11
No problem. Happy to see this problem solved...
note :