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

failed to build on ubuntu 18.04 with cmake #12

Open
wyfSunflower opened this issue Jun 7, 2022 · 2 comments
Open

failed to build on ubuntu 18.04 with cmake #12

wyfSunflower opened this issue Jun 7, 2022 · 2 comments

Comments

@wyfSunflower
Copy link

xtark@xtark-vmpc:/Documents$ git clone https://github.com/embeddedmz/httpclient-cpp.git
正克隆到 'httpclient-cpp'...
remote: Enumerating objects: 176, done.
remote: Counting objects: 100% (45/45), done.
remote: Compressing objects: 100% (31/31), done.
remote: Total 176 (delta 23), reused 32 (delta 13), pack-reused 131
接收对象中: 100% (176/176), 253.54 KiB | 295.00 KiB/s, 完成.
处理 delta 中: 100% (62/62), 完成.
xtark@xtark-vmpc:
/Documents$ cd httpclient-cpp/
xtark@xtark-vmpc:/Documents/httpclient-cpp$ ls
CMakeLists.txt HTTP LICENSE README.md TestHTTP VERSION
xtark@xtark-vmpc:
/Documents/httpclient-cpp$ mkdir build;cd build
xtark@xtark-vmpc:~/Documents/httpclient-cpp/build$ cmake ..
-- The CXX compiler identification is GNU 7.5.0
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found CURL: /usr/lib/x86_64-linux-gnu/libcurl.so (found version "7.58.0")
CMake Error at HTTP/CMakeLists.txt:13 (install):
install TARGETS given no ARCHIVE DESTINATION for static library target
"httpclient".

-- Configuring incomplete, errors occurred!
See also "/home/xtark/Documents/httpclient-cpp/build/CMakeFiles/CMakeOutput.log".

@embeddedmz
Copy link
Owner

embeddedmz commented Jun 7, 2022

You can comment that line (13 of HTTP/CMakeLists.txt) with a '#' or simply remove the whole line until I fix that issue. That line was added by a contributor to enable CI on github.

@embeddedmz
Copy link
Owner

By the way, on Ubuntu 20.04 and CMake 3.16.3 (the one that you install with apt) there's no issue.

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

No branches or pull requests

2 participants