-
Notifications
You must be signed in to change notification settings - Fork 80
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
cmake error: Could not find a package configuration file provided by "fmt" #23
Comments
seems need to build and install |
sure it is, so maybe the origin CMakeLists.txt file need to be modified for automating this process |
do you clone recursive submodules? $ git clone --recursive https://github.com/netcan/asyncio.git
$ cd asyncio
$ mkdir build
$ cd build
$ cmake ..
$ make -j |
yes |
yes, git clone with --recursive |
Seems like #18 makes it |
The same issue occured:
I have to run this first:
after this, cmake is ok. |
I use ubuntu 22.04 and install cmake by snap. cmake is on /snap/bin/cmake. |
Woooooo, Thanks for sharing the solution! : )
…-----原始邮件-----
发件人:Bigben ***@***.***>
发送时间:2024-10-25 11:35:00 (星期五)
收件人: netcan/asyncio ***@***.***>
抄送: "H.Yuan" ***@***.***>, Author ***@***.***>
主题: Re: [netcan/asyncio] cmake error: Could not find a package configuration file provided by "fmt" (Issue #23)
The same issue occured:
$cmake ..
-- The CXX compiler identification is GNU 11.4.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at CMakeLists.txt:62 (find_package):
By not providing "Findfmt.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "fmt", but
CMake did not find one.
Could not find a package configuration file provided by "fmt" with any of
the following names:
fmtConfig.cmake
fmt-config.cmake
Add the installation prefix of "fmt" to CMAKE_PREFIX_PATH or set "fmt_DIR"
to a directory containing one of the above files. If "fmt" provides a
separate development package or SDK, be sure it has been installed.
-- Configuring incomplete, errors occurred!
I have to run this first:
cd third_party/fmt
mkdir build
cd build
cmake ..
make
sudo make install
after this, cmake is ok.
I use ubuntu 22.04 and install cmake by snap. cmake is on /snap/bin/cmake.
This make me touble. On vscode, it cannot find cmake even it just be there!
After reinstall it with apt, everything is ok.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Below is the error msg:
The text was updated successfully, but these errors were encountered: