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

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

Closed
rafayhameed opened this issue Dec 15, 2020 · 5 comments
Closed

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

rafayhameed opened this issue Dec 15, 2020 · 5 comments
Labels
bug We can reproduce the issue and confirmed it is a bug. closed-for-staleness p2 This is a standard priority issue response-requested Waiting on additional info and feedback from GitHub community. Will start to close soon in 3 days.

Comments

@rafayhameed
Copy link

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
Copy link

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: #15

@JonathanHenson
Copy link
Contributor

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
Copy link

yhzhou-pds commented Dec 24, 2020

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/@[email protected]

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
Copy link
Member

jmklix commented Nov 15, 2023

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

@jmklix jmklix added bug We can reproduce the issue and confirmed it is a bug. response-requested Waiting on additional info and feedback from GitHub community. Will start to close soon in 3 days. p2 This is a standard priority issue labels Nov 15, 2023
Copy link

github-actions bot commented Jul 2, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug We can reproduce the issue and confirmed it is a bug. closed-for-staleness p2 This is a standard priority issue response-requested Waiting on additional info and feedback from GitHub community. Will start to close soon in 3 days.
Projects
None yet
Development

No branches or pull requests

5 participants