Comments (7)
Could you expand on what commands you're running to install the tool?
from keyfinder-cli.
╰─➤ 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.
@drbarzyk you have libkeyfinder installed? What OS are you on? where is the shared library installed?
from keyfinder-cli.
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.
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.
Hello, I had the same problem. I was able to resolve it finally with these steps. I hope it helps others. Greetings!
-
Install libkeyfinder in the path of git repository keyfinder-cli:
cmake -DCMAKE_INSTALL_PREFIX=/path_to_keyfinder-cli_repository/ -S . -B build
-
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 $@
-
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.
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)
- Mention "make install" in ReadMe HOT 1
- Switch to libswresample
- Unable to decode packet HOT 10
- DIfferent key output running keyfinder-cli VS binary app HOT 4
- fatal error: 'libavutil/avutil.h' file not found HOT 9
- Ubuntu 14.04.1 build problem HOT 3
- Compiling in OSX HOT 5
- keyfinder.h, constants.h? HOT 5
- Compiling under Ubuntu 14.04 HOT 15
- Add TravisCI build test HOT 1
- Cannot find keyfinder library on OSX using make HOT 6
- Release keyfinder-cli HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from keyfinder-cli.