GithubHelp home page GithubHelp logo

Comments (7)

evanpurkhiser avatar evanpurkhiser commented on June 3, 2024

Could you expand on what commands you're running to install the tool?

from keyfinder-cli.

drbarzyk avatar drbarzyk commented on June 3, 2024

╰─➤ make
c++ keyfinder_cli.cpp -std=c++11 -Wall -lkeyfinder -lavcodec -lavformat -lavutil -lswresample -lfftw3 -o keyfinder-cli
keyfinder_cli.cpp:5:10: fatal error: 'keyfinder/keyfinder.h' file not found
#include <keyfinder/keyfinder.h>
^~~~~~~~~
1 error generated.
make: *** [keyfinder-cli] Error 1

from keyfinder-cli.

evanpurkhiser avatar evanpurkhiser commented on June 3, 2024

@drbarzyk you have libkeyfinder installed? What OS are you on? where is the shared library installed?

from keyfinder-cli.

jordyf15 avatar jordyf15 commented on June 3, 2024
make install
g++ keyfinder_cli.cpp -std=c++11 -Wall -lkeyfinder -lavcodec -lavformat -lavutil -lswresample -lfftw3 -o keyfinder-cli
keyfinder_cli.cpp:5:10: fatal error: keyfinder/keyfinder.h: No such file or directory
    5 | #include <keyfinder/keyfinder.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:4: keyfinder-cli] Error 1

Hello, i also encounter the same problem.
I used WSL and i installed the libkeyfinder in /home/username by following the steps in the libkeyfinder repo which resulted in /home/username/include/keyfinder and /home/username/lib.
Is there any other information i could help provide?

from keyfinder-cli.

aleksblendwerk avatar aleksblendwerk commented on June 3, 2024

I've also had a little trouble building both projects but that's just because I don't do that often and am not familiar with the respective paths.

On Ubuntu via WSL2, the following steps worked for me:

In my cloned libkeyfinder repo directory (from https://github.com/mixxxdj/libkeyfinder/), I did this:

cmake -DCMAKE_INSTALL_PREFIX=/usr/local -S . -B build
cmake --build build --parallel 2
sudo cmake --install build

(cmake --build build --parallel 2 because the Windows task manager shows 2 cores for the CPU on this system.)

In my cloned keyfinder-cli repo directory, I did this:

sudo apt-get install libavutil-dev libavcodec-dev libavformat-dev
make
sudo make install

Then I ended up with a shiny new keyfinder-cli executable in /usr/local/bin/.

The ffmpeg package was already installed on my system.

Thanks for this project, @evanpurkhiser!

Next I'll be looking for a command-line tool to properly detect the BPM...

from keyfinder-cli.

j3-solutions avatar j3-solutions commented on June 3, 2024

Hello, I had the same problem. I was able to resolve it finally with these steps. I hope it helps others. Greetings!

  1. Install libkeyfinder in the path of git repository keyfinder-cli:
    cmake -DCMAKE_INSTALL_PREFIX=/path_to_keyfinder-cli_repository/ -S . -B build

  2. Add this texto to the file /path_to_keyfinder-cli_repository/Makefile, -I argument and -L argument:
    keyfinder-cli: keyfinder_cli.cpp key_notations.h $(CXX) $< -std=c++11 -Wall -lkeyfinder -lavcodec -lavformat -lavutil -lswresample -lfftw3 -I"./include" -L"./lib" -lkeyfinder -o $@

  3. Launch make command

The directory structure is:

keyfinder-cli
├── fftw-3.3.10
│   ├── api
│   ├── dft
│   │   ├── scalar
│   │   └── simd
│   ├── doc
│   │   ├── FAQ
│   │   └── html
│   ├── genfft
│   ├── kernel
│   ├── libbench2
│   ├── m4
│   ├── mpi
│   ├── rdft
│   │   ├── scalar
│   │   └── simd
│   ├── reodft
│   ├── simd-support
│   ├── support
│   ├── tests
│   ├── threads
│   └── tools
├── include
│   └── keyfinder

├── lib
│   ├── cmake
│   │   └── KeyFinder
│   └── pkgconfig
└── libkeyfinder
├── build
│   ├── CMakeFiles
│   ├── Testing
│   ├── _deps
│   ├── packaging
│   └── tests
├── cmake
├── docs
├── examples
├── packaging
├── src
└── tests

from keyfinder-cli.

j3-solutions avatar j3-solutions commented on June 3, 2024

Updated

Info extracted from .github/workflows/main.yml

sudo apt-get install --yes \
            libswresample-dev libavformat-dev libavutil-dev libavcodec-dev \
            cmake **catch2** libfftw3-dev

If fail catch2, compile from -> git clone https://github.com/catchorg/Catch2.git

Launch inside of keyfinder-cli repository cloned in you system

git clone https://github.com/mixxxdj/libkeyfinder keyfinder
cd keyfinder
cmake -S . -B build
cmake --build build
sudo cmake --install build

Return to keyfinder-cli repository directory

make; make install;

Note: It is not necessary to fix the Makefile.

Note 2: if fail import of libkeyfinder.so, use:

export LD_LIBRARY_PATH=/path_to_keyfinder-cli_repository/lib

from keyfinder-cli.

Related Issues (13)

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.