Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding libraries to cppbuild.sh #763

Closed
peardox opened this issue Jul 16, 2019 · 5 comments
Closed

Adding libraries to cppbuild.sh #763

peardox opened this issue Jul 16, 2019 · 5 comments

Comments

@peardox
Copy link

peardox commented Jul 16, 2019

Hi

I'm (trying) to build JavaCPP-Presets on my Jetson Nano and have an issue with CUDA

It dies at this point...

[INFO] g++ -I/usr/local/cuda-10.0/include/ -I/usr/lib/jvm/java-8-openjdk-arm64/include -I/usr/lib/jvm/java-8-openjdk-arm64/include/linux /home/simon/src/jcpp/1.4.2/javacpp-presets/cuda/target/classes/org/bytedeco/javacpp/jnicufft.cpp /home/simon/src/jcpp/1.4.2/javacpp-presets/cuda/target/classes/jnijavacpp.cpp -O3 -s -Wl,-rpath,$ORIGIN/ -Wl,-z,noexecstack -Wl,-Bsymbolic -Wall -fPIC -shared -o libjnicufft.so -lcufft -lcuda -lcudart
In file included from /usr/local/cuda-10.0/include/driver_functions.h:54:0,
                 from /home/simon/src/jcpp/1.4.2/javacpp-presets/cuda/target/classes/org/bytedeco/javacpp/jnicufft.cpp:99:
/usr/local/cuda-10.0/include/crt/host_defines.h:54:2: warning: #warning "crt/host_defines.h is an internal header file and must not be used directly.  Please use cuda_runtime_api.h or cuda_runtime.h instead." [-Wcpp]
 #warning "crt/host_defines.h is an internal header file and must not be used directly.  Please use cuda_runtime_api.h or cuda_runtime.h instead."
  ^~~~~~~
/usr/bin/ld: cannot find -lcufft

If I cut + paste the command used to compile and add -L/usr/local/cuda-10.0/targets/aarch64-linux/lib to that one it works

So, given this...

linux-arm64)
        if [[ ! -d "/usr/local/cuda/" ]]; then
            echo "Please install CUDA under the default installation directory"
            exit 1
        fi
        ;;

How do I add my "-L/usr/local/cuda-10.0/targets/aarch64-linux/lib" to it so it gets passed thru?

@saudet
Copy link
Member

saudet commented Jul 16, 2019

Duplicate of #735

@saudet saudet marked this as a duplicate of #735 Jul 16, 2019
@saudet saudet closed this as completed Jul 16, 2019
@saudet
Copy link
Member

saudet commented Jul 16, 2019

You'll need to use the "cuda100" branch as there are no CUDA 10.1 yet available for Jetson.

@peardox
Copy link
Author

peardox commented Jul 16, 2019

I'm using the version from 1.4.4 inside 1.4.2

All I want to know is how to include the lib in the g++ statement...

It says it's 10.0 all the way through the snippet above

@peardox
Copy link
Author

peardox commented Jul 17, 2019

Thanks

Just added linux-arm64 and it went thru smootly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants