Skip to main content
Participating Frequently
January 13, 2016
Question

Problem with Boost logging from InDesign SDK Boost

  • January 13, 2016
  • 1 reply
  • 832 views

Hello,

I am creating an InDesign plugin for Adobe InDesign CC 2015 and

I get a few linker errors when trying to use the Boost logging library from the InDesign SDK folder.

I want to static link (never dynamic link) the Boost logging library.

Below are more details:

---- OSX:

MAC VERSION:

OS X Yosemite

Version 10.10.4

---- Xcode:

Xcode version 5.0.2 (5A3005)

Target architecture:

Release Cocoa x64

C++ library:

libc++ (I tried libstdc++, but that results in errors about std::u16string, etc. and ultimately also in the same linker errors below).

Linked libraries:

/indesign_sdk/build/mac/release_cocoa64/packagefolder/contents/Frameworks/boost_filesystem.framework

I tried them all, but there are no .framework files specific for logging in:

/indesign_sdk/build/mac/release_cocoa64/packagefolder/contents/Frameworks/

I learned that I must use the Boost libraries from the InDesign SDK, because if I use my own Boost library (which does have logging libraries – adding these don't fix the linker errors BTW), then InDesign won't load the plugin.

I would think that the InDesign SDK should contains some .framework file related to Boost logging, in my own separate Boost path (/users/x/boost) I find the following files:

libboost_log.dylib

libboost_log_setup.dylib

libboost_log.a

libboost_log_setup.a

What do I need to do in order to get the Boost logging module working from the InDesign SDK directory?

InDesign SDK location with Boost:

/indesign_sdk/external/dva/third_party/boost_libraries/

---- Error messages:

(null): "boost::log::v2s_mt_posix::aux::code_convert(wchar_t const*, unsigned long, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, std::__1::locale const&)", referenced from:

(null): "boost::log::v2s_mt_posix::sinks::text_file_backend::construct(boost::filesystem::path const&, unsigned int, unsigned long, boost::log::v2s_mt_posix::aux::light_function<bool ()> const&, bool)", referenced from:

(null): "boost::log::v2s_mt_posix::aux::once_block_sentry::enter_once_block() const", referenced from:

(null): "boost::log::v2s_mt_posix::aux::once_block_sentry::commit()", referenced from:

(null): "boost::log::v2s_mt_posix::aux::once_block_sentry::rollback()", referenced from:

(null): "boost::log::v2s_mt_posix::attribute_value_set::find(boost::log::v2s_mt_posix::attribute_name) const", referenced from:

(null): "boost::log::v2s_mt_posix::attribute_value_set::end() const", referenced from:

(null): "boost::log::v2s_mt_posix::sinks::text_file_backend::consume(boost::log::v2s_mt_posix::record_view const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)", referenced from:

(null): "boost::log::v2s_mt_posix::aux::attach_attribute_name_info(boost::exception&, boost::log::v2s_mt_posix::attribute_name const&)", referenced from:

(null): "boost::log::v2s_mt_posix::sinks::text_file_backend::~text_file_backend()", referenced from:

(null): "boost::log::v2s_mt_posix::sinks::text_file_backend::flush()", referenced from:

(null): "boost::log::v2s_mt_posix::core::get()", referenced from:

(null): "boost::log::v2s_mt_posix::aux::default_attribute_names::message()", referenced from:

(null): "boost::log::v2s_mt_posix::core::add_sink(boost::shared_ptr<boost::log::v2s_mt_posix::sinks::sink> const&)", referenced from:

(null): Linker command failed with exit code 1 (use -v to see invocation)

Thanks in advance!!

Regards,

Jan Ronner




This topic has been closed for replies.

1 reply

Inspiring
February 12, 2016

Kick. No solution found yet...