Giter Club home page Giter Club logo

Comments (5)

sezero avatar sezero commented on July 17, 2024

BTW, this is with cmake-3.9.6 and cmake-3.11.2.

from libsamplerate.

evpobr avatar evpobr commented on July 17, 2024
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.23") 
-- Checking for module 'sndfile'
--   Found sndfile, version 1.0.20
-- Checking processor clipping capabilities...
-- Checking processor clipping capabilities... disabled
-- Performing Test HAVE_VISIBILITY
-- Performing Test HAVE_VISIBILITY - Failed
-- Looking for sys/times.h
-- Looking for sys/times.h - not found
-- Looking for alarm
-- Looking for alarm - found
-- Looking for signal
-- Looking for signal - found
-- Looking for SIGALRM
-- Looking for SIGALRM - not found
-- Checking for module 'fftw3'
--   No package 'fftw3' found
-- Could NOT find ALSA (missing: ALSA_LIBRARY ALSA_INCLUDE_DIR) 
-- Configuring done
CMake Error at tests/CMakeLists.txt:88 (add_executable):
  Target "src-evaluate" links to target "PkgConfig::SndFile" but the target
  was not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?


CMake Error at examples/CMakeLists.txt:14 (add_executable):
  Target "timewarp-file" links to target "PkgConfig::SndFile" but the target
  was not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?


CMake Error at examples/CMakeLists.txt:20 (add_executable):
  Target "varispeed-play" links to target "PkgConfig::SndFile" but the target
  was not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?


-- Generating done
-- Build files have been written to: XXX

It does report errors, but it does generate the makefiles..
The toolchain file in question is this:

SET(CMAKE_SYSTEM_NAME Windows)

SET(CMAKE_C_COMPILER /opt/cross_win64/bin/x86_64-w64-mingw32-gcc)
SET(CMAKE_CXX_COMPILER /opt/cross_win64/bin/x86_64-w64-mingw32-g++)
SET(CMAKE_RC_COMPILER /opt/cross_win64/bin/x86_64-w64-mingw32-windres)

SET(CMAKE_FIND_ROOT_PATH /opt/cross_win64 /opt/cross_win64/x86_64-w64-mingw32)

SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)

I did not setup a cross-pkgconfig, can it be the reason? (Don't know how but..)

I guess so.

from libsamplerate.

sezero avatar sezero commented on July 17, 2024

With autotools, I can set pkg-config path by setting PKG_CONFIG_PATH
environment variable, or I can disable pkg-config functionality altogether
by setting PKG_CONFIG to /bin/false. Is there a similar way to do so
with cmake?

If I am to setup a corss-pkgconfig, how should I set it up in my
toolchain file, i.e. what is the cmake variable name for it?

from libsamplerate.

evpobr avatar evpobr commented on July 17, 2024

With autotools, I can set pkg-config path by setting PKG_CONFIG_PATH
environment variable, or I can disable pkg-config functionality altogether
by setting PKG_CONFIG to /bin/false. Is there a similar way to do so
with cmake?

FindPkgConfig is just wrapper around of pkg-config, i guess you can use all the same tricks. Also you can try PKG_CONFIG_EXECUTABLE.

from libsamplerate.

sezero avatar sezero commented on July 17, 2024

OK thanks. Closing this one.

from libsamplerate.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.