Attempting to build the project results in several errors. #1
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hello! I'm quite new to C++, but find myself needing to compile a custom build of the TDLight project.
I have a java application that depends on TDLight, so I'm attempting to generate a custom version of the tdlight-natives-linux-amd64 jar that contains my custom build of TDLight.
I've been able to successfully build TDLight, producing a
libtdjni.so
file, but I have so far been stumped on how I can include my newlibtdjni.so
in a jar that will work withtdlight-java
. I tried manually swapping in the new so file to my localtdlight-natives-linux-amd64-4.0.219.jar
just to see if it would work... unsurprisingly it did not. I got the following error when I attempted to start my java app:So next I decided to try building this project myself to try and exactly replicate how you are building the jar. However, I've been met with several issues.
export OPERATING_SYSTEM_NAME=linux
etc.install-dependencies.sh
was giving me a bunch of 404 errors on jdk dependencies. the 11_0_13_8 version was no longer available on the debian website so I updated to 11_0_14_9.install-dependencies.sh
requires a validCROSS_BUILD_DEPS_DIR
variable, but this isn't mentioned.generate_td_tools.sh
is giving me the following error:Based on this error, I'm led to believe that something (or maybe me?) was supposed to have copied
src/main/jni-cpp-src/common/CMakeLists.txt
into the./generated/implementation
directory... which makes me think I'm doing something very wrong. I can't find where in the scripts it would have copied this file...Any tips you could give me would be much appreciated! I'm attaching the output of
compile-natives-package.sh
in case that sheds any light on how I'm messing this up.Okay I figured out I was supposed to copy in the TDLight source into the ./implementation/tdlight directory, but the build now fails in
compile_tdjni.sh
with:Attaching full output of
compile_tdjni.sh
...I don't know why this is happening, it seems that you have set a bad environment variable or you deleted/moved some files in the repository.
Can you try building the original repository on your computer? (by the way you should git clone using
--recursive
)