xmos / xcore_iot

Other
30 stars 40 forks source link

CMake error during installation #584

Closed PelleS0205 closed 1 year ago

PelleS0205 commented 1 year ago

System information

Problem When installing the SDK, CMake gives the following error and fails:

_CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: XSCOPE_ENDPOINT_LIB linked by target "xscope2psf" in directory /xcore_sdk/examples/freertos/tracealyzer/host linked by target "xscope_host_endpoint" in directory /xcore_sdk/modules/xscopefileio/xscope _

Steps

  1. git clone --recurse-submodules https://github.com/xmos/xcore_sdk.git
  2. cmake -B build_host
keithm-xmos commented 1 year ago

Hi @PelleS0205,

I apologize you ran into this issue building the host applications. Some host applications require that the location of xscope_endpoint.so be added to your LD_LIBRARY_PATH environment variable. This environment variable will be set if you run the host application build in the XTC Tools command-line environment.

Or, you may prefer to set this environment variable manually.

    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:<path-to-XTC-Tools>/lib

This should resolve your issue.

PelleS0205 commented 1 year ago

This removed the CMake error, but the subsequent make command did not install the library correctly; the folder is created in the /opt directory, but with no library files in it.

keithm-xmos commented 1 year ago

Do you get an error when you run?

sudo make install