Open Fjallraven-hc opened 9 months ago
seems need to build and install fmt
in third_party
dir manually first.
seems need to build and install
fmt
inthird_party
dir manually first.
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
do you clone recursive submodules?
$ git clone --recursive https://github.com/netcan/asyncio.git $ cd asyncio $ mkdir build $ cd build $ cmake .. $ make -j
yes, git clone with --recursive
Seems like #18 makes it
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.
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.
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: