Why am I receiving the "System.DllNotFoundException: …" error in my ODA .NET app, even though I have put the specified DLL in the output folder?
Most likely, this is happening because of missing C++ libraries from the output folder: as our .NET SDKs are only wrappers over our C++ ones, all the required native libraries should be available to .NET application too. This applies to all of our SDKs.
Most of the original C++ libraries are presented as separate .NET DLLs: FacetModeler_{version}.dll -> OdSwig_FacetModeler_Mgd.dll
However, there are two exceptions: TD_RootIntegrated and TD_DbCoreIntegrated, which contain combined APIs from several C++ modules.
Core C++ libraries are specified in the "Core components" section in "Determining which Libraries to Use" documentation page: https://docs.opendesign.com/td/tdrawings_libraries.html.
Why am I receiving BadImageFormatException error when running my ODA .NET application?
This error occurs due to architecture mismatch in project and its dependencies.
In Visual Studio, the platform target is usually set to "Any CPU" with "Prefer 32bit" flag checked by default, which starts the program as a 32bit process on both 32bit Windows and 64bit Windows – disable this option in project properties in the build menu.
Do you have compatible packages to install along standard libraries (Drawings for Java) to enable running ODA on a CentOS 7 platform? Currently I get the errors.
CentOS uses GCC 4.8.5 and we are compiling native libraries with a more recent GCC version. You will get the following error if you’re using Drawings for Java:
java.lang.UnsatisfiedLinkError: /lib64/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by libTeighaJavaCore.so)
The error appeared due to the gcc 4.8.5 and gcc 5.3 are not ABI compatible. Since gcc 5.3 within glibc library use CXX11 ABI version, and gcc 4.8.5 doesn't (more information about gcc ABI compatibility can be found here and release notes for gcc 5 that tells that "A Dual ABI is provided by the library. A new ABI is enabled by default."
Since we use a defualt ABI version (means we use new version) - you have such errors. You need to upgrade your OS version to have more modern gcc compiler within enabled new ABI version by default.
I am getting following error while building a solution: error MSB8031: Building an MFC project for a non-Unicode character set is deprecated.
You need to install MFC. It doesn't come with default install configuration. Run Visual Studio installer, click "Modify", and select Visual C++ MFC.
I am getting following error while building a solution: fatal error LNK1104: cannot open file 'mfc140u.lib'.
You need to install MFC. It doesn't come with default install configuration. Run Visual Studio installer, click "Modify", and select Visual C++ MFC.
I got an error MSB8036: The Windows SDK version 8.1 was not found. Install the required version of Windows SDK or change the SDK version in the project property pages or by right-clicking the solution and selecting "Retarget solution".
Please follow this link to resolve this issue.
How should I configure the project in Eclipse (I am using Java 8)?
Open the Project Properties in Eclipse and switch to Java Build Path -> Libraries. Add the .jar files to the project and set the "Native library location" to the exe/<platform> folder of your archive (for example exe/vc17_amd64dll) — the folder that holds the activated native binaries.
Is it possible to load DLLs and TX files from a different folder than where the main application is installed, e.g., a subfolder of my installation such as ODA\DLLs?
Yes, it is possible - to achieve this, their folders should be in the PATH variable. ODA DLL and TX modules work the same as any regular DLL.
For TX modules that are not linked (loaded dynamically with loadModule()), you can override OdRxSystemServices::findModule() and return the full path.