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

Could not find a package configuration file provided by "miniupnpc" #495

Open
raphael10-collab opened this issue Dec 13, 2024 · 1 comment

Comments

@raphael10-collab
Copy link

After install libminiupnpc-dev :

raphy@raohy:~$ sudo apt-get install libminiupnpc-dev
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
  libminiupnpc-dev
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 37,7 kB of archives.
After this operation, 161 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu noble/main amd64 libminiupnpc-dev amd64 2.2.6-1build2 [37,7 kB]
Fetched 37,7 kB in 0s (321 kB/s)          
Selecting previously unselected package libminiupnpc-dev:amd64.
(Reading database ... 466411 files and directories currently installed.)
Preparing to unpack .../libminiupnpc-dev_2.2.6-1build2_amd64.deb ...
Unpacking libminiupnpc-dev:amd64 (2.2.6-1build2) ...
Setting up libminiupnpc-dev:amd64 (2.2.6-1build2) ...
Processing triggers for man-db (2.12.0-4build2) ..

I get :

raphy@raohy:~/airdcpp-core$ cmake -B builddir
CMake Warning (dev) at CMakeLists.txt:1 (project):
  cmake_minimum_required() should be called prior to this top-level project()
  call.  Please see the cmake-commands(7) manual for usage documentation of
  both commands.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- The C compiler identification is GNU 12.3.0
-- The CXX compiler identification is GNU 14.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- 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
-- Found BZip2: /usr/lib/x86_64-linux-gnu/libbz2.so (found version "1.0.8")
-- Looking for BZ2_bzCompressInit
-- Looking for BZ2_bzCompressInit - found
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.3")
-- Found OpenSSL: /usr/lib/x86_64-linux-gnu/libcrypto.so (found version "3.0.13")
CMake Error at CMakeLists.txt:57 (find_package):
  By not providing "Findminiupnpc.cmake" in CMAKE_MODULE_PATH this project
  has asked CMake to find a package configuration file provided by
  "miniupnpc", but CMake did not find one.

  Could not find a package configuration file provided by "miniupnpc" with
  any of the following names:

    miniupnpcConfig.cmake
    miniupnpc-config.cmake

  Add the installation prefix of "miniupnpc" to CMAKE_PREFIX_PATH or set
  "miniupnpc_DIR" to a directory containing one of the above files.  If
  "miniupnpc" provides a separate development package or SDK, be sure it has
  been installed.


-- Configuring incomplete, errors occurred!

OS: Ubuntu 24.04
gcc version: 14.2.0

@maksis
Copy link
Member

maksis commented Dec 14, 2024

According to the CMake output, your GCC version is 12.3.0:

-- The C compiler identification is GNU 12.3.0
-- The CXX compiler identification is GNU 14.2.0

I'd recommend putting the code into a fresh directory in case the old generated files are causing problems.

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