awslabs / aws-c-event-stream

C99 implementation of the vnd.amazon.eventstream content-type.
Apache License 2.0
33 stars 46 forks source link

aws-c-event-stream error during cmake #57

Closed rafayhameed closed 1 day ago

rafayhameed commented 3 years ago

I have installed aws-c-common and aws-c-checksum.

Now I am trying to install aws-c-event-stream but getting the error. Steps I am following after installing aws-c-common and aws-c-checksum

  1. git clone https://github.com/awslabs/aws-c-event-stream
  2. mkdir build && cd build
  3. cmake .. -DCMAKE_INSTALL_PREFIX= -DCMAKE_PREFIX_PATH=

I am getting this error after command 3

CMake Error at /home/dev/share/cmake/lib64/cmake/AwsFindPackage.cmake:19 (find_package): By not providing "Findaws-c-io.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "aws-c-io", but CMake did not find one.

Could not find a package configuration file provided by "aws-c-io" with any of the following names:

aws-c-ioConfig.cmake
aws-c-io-config.cmake

Add the installation prefix of "aws-c-io" to CMAKE_PREFIX_PATH or set "aws-c-io_DIR" to a directory containing one of the above files. If "aws-c-io" provides a separate development package or SDK, be sure it has been installed. Call Stack (most recent call first): CMakeLists.txt:75 (aws_use_package)

-- Configuring incomplete, errors occurred!

glaubitz commented 3 years ago

Do you actually have the aws-c-io package installed?

Also, please be aware that all the AWS C/C++ packages (at least the ones I have touched so far), use non-standard search paths for cmake which is why cmake often fails to find the necessary modules.

See: https://github.com/awslabs/aws-c-event-stream/issues/15

JonathanHenson commented 3 years ago

We recently added aws-c-io as a dependency to support event-stream-rpc. You'll need to add that to the modules you check out and build.

yhzhou-pds commented 3 years ago

I have installed aws-c-io,and all dependencies install in /usr/local/include/aws/common/ . I failed during cmake operation。 OS: centos 7

~/aws-c-event-stream/build/ # cmake -DCMAKE_PREFIX_PATH=/usr/local/include/aws/common -DCMAKE_INSTALL_PREFIX=/usr/local/include/aws/common ../

-- Looking for pthread.h -- Looking for pthread.h - found -- Looking for pthread_create -- Looking for pthread_create - not found -- Check if compiler accepts -pthread -- Check if compiler accepts -pthread - yes -- Found Threads: TRUE
-- Found LibCrypto: /usr/local/include/aws/common/lib64/libcrypto.a
-- LibCrypto Include Dir: /usr/local/include/aws/common/include -- LibCrypto Shared Lib: /usr/lib64/libcrypto.so -- LibCrypto Static Lib: /usr/local/include/aws/common/lib64/libcrypto.a CMake Error at /root/aws-c-io/cmake/aws-c-io-config.cmake:13 (include): include could not find load file:

/root/aws-c-io/cmake/static/@PROJECT_NAME@-targets.cmake

Call Stack (most recent call first): /usr/local/include/aws/common/lib64/cmake/AwsFindPackage.cmake:19 (find_package) CMakeLists.txt:76 (aws_use_package)

-- Configuring incomplete, errors occurred! See also "/root/aws-c-event-stream/build/CMakeFiles/CMakeOutput.log". See also "/root/aws-c-event-stream/build/CMakeFiles/CMakeError.log".

jmklix commented 7 months ago

Are you still running into this error in the current version?

github-actions[bot] commented 5 days ago

Greetings! It looks like this issue hasn’t been active in longer than a week. We encourage you to check if this is still an issue in the latest release. Because it has been longer than a week since the last update on this, and in the absence of more information, we will be closing this issue soon. If you find that this is still a problem, please feel free to provide a comment or add an upvote to prevent automatic closure, or if the issue is already closed, please feel free to open a new one.