Describe your problem:
I run the example code of C++ BUILDER.FRAMEWORK api, but got a segment fault error on this line 'CContext oContext = oBuilder.GetContext();'
`
// Main function
int main(int argc, char* argv[])
{
CDocBuilder::Initialize(workDir);
CDocBuilder oBuilder;
oBuilder.SetProperty("--work-directory", workDir);
Describe your problem: I run the example code of C++ BUILDER.FRAMEWORK api, but got a segment fault error on this line 'CContext oContext = oBuilder.GetContext();' ` // Main function int main(int argc, char* argv[]) { CDocBuilder::Initialize(workDir); CDocBuilder oBuilder; oBuilder.SetProperty("--work-directory", workDir);
} ` Steps to reproduce the problem:
mkdir docbuildertest/build && cd docubuildertest/build
cmake ../
make
./main
DocumentBuilder version: v8.0.0.99
Installation method: download from this website 'https://www.onlyoffice.com/download-builder.aspx?from=api'. then install locally.
sudo apt install ./onlyoffice-documentbuilder_amd64.deb
Operating system: PRETTY_NAME="Debian GNU/Linux 12 (bookworm)" NAME="Debian GNU/Linux" VERSION_ID="12" VERSION="12 (bookworm)" VERSION_CODENAME=bookworm ID=debian HOME_URL="https://www.debian.org/" SUPPORT_URL="https://www.debian.org/support" BUG_REPORT_URL="https://bugs.debian.org/"