How to fix CMP0148 error

I’m trying to configure a build for a project, but when I run cmake ../ to try to set it up, it gives the following errors.


I’m not sure how to fix these errors without causing a problem with the project itself. Can someone help give me advice?

Hi,

Could you share more info about your use case?

Which JetPack version do you use? Do you have CUDA installed in your environment?
More, is any custom Python version used?

Thanks.

I use 6.2.1+b38 JetPack. I do not have CUDA or a custom Python version installed.

Hi,

Please install CUDA first.
It looks like the source you try to compile is finding the CUDA library locally.

This can be done via apt command.

$ sudo apt show nvidia-cuda*

Thanks.

Now it’s telling me to add Qt5, VPI, and opencv. I’ve figured out what opencv is, but I don’t know how to add it or the other two to my program.

Hi,

Do you want to build jetson-inference?
If so, the repo expects to run with all the JetPack components installed.

$ sudo apt install nvidia-jetpack

Please note that it’s recommended to use JetPack 6.0 to test the repo.
Most of the models are Caffe-based but we have removed the support in TensorRT 10.

Thanks.

I’ve installed it onto my computer, but it’s still not working. It’s specifically telling me to add installation prefixes to CMAKE_PREFIX_PATH, set DIR segments(don’t know the actual word) to the locations of the needed packages, and suppress the CMP1048 with cmake_policy and -Wno-dev. It’s also telling me that it can’t create the jetson-utils-python-312 library because it’s already present, but I haven’t found anything there and I don’t know if altering names elsewhere would break more things. How can I fix all of it?

Hi,

Would you mind sharing more details about your use case?

Do you want to install it on the Jetson or an x86 device?
On JetPack 6.0, the default Python version should be 3.10, and you can build it with the steps shared in the section below:

Thanks.

I’ve been trying to do it within Github, but I installed the docker into my Jetson and now the terminal’s saying root@ubuntu instead of (my username)@ubuntu. Did I do something wrong, and would I continue in Github or the terminal if it’s correct?

Hi,

Could you try to launch the container with --user <username>?
Thanks.

I got the root@ubuntu issue fixed, but now how do I get the container to run in Github and how do I fix the initial error?

There is no update from you for a period, assuming this is not an issue anymore.
Hence, we are closing this topic. If need further support, please open a new one.
Thanks
~0813

Hi,

Do you want to install it on the Jetson or an x86 device?
Could you try it on Jetson with JetPack 6.0?

Thanks.