georgmartius / vid.stab

Video stabilization library
http://public.hronopik.de/vid.stab/
Other
838 stars 110 forks source link

Facing "ERROR: vidstab >= 0.98 not found using pkg-config" while installing nstalling ffmpeg with vid.stab #113

Open sudb97 opened 2 years ago

sudb97 commented 2 years ago

Hi I am following the installation guide given on vid.stab installation page(https://github.com/georgmartius/vid.stab#installation-instructions). I have successfully installed vid.stab with make. But while installing ffmpeg i am getting the below mentioned error.

Used Commands:

  1. cd path/to/ffmpeg/dir/
  2. ./configure --enable-gpl --enable-libvidstab

After this command getting the error:

ERROR: vidstab >= 0.98 not found using pkg-config

If you think configure made a mistake, make sure you are using the latest version from Git. If the latest version fails, report the problem to the ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.libera.chat. Include the log file "ffbuild/config.log" produced by configure as this will help solve the problem.

ffbuild/config.log Contents:

usr/bin/ld: /tmp/ffconf.hxvCZnls/test.o: in function foo': test.c:(.text+0xb5): undefined reference tocexp' collect2: error: ld returned 1 exit status require_pkg_config libvidstab vidstab >= 0.98 vid.stab/libvidstab.h vsMotionDetectInit check_pkg_config libvidstab vidstab >= 0.98 vid.stab/libvidstab.h vsMotionDetectInit test_pkg_config libvidstab vidstab >= 0.98 vid.stab/libvidstab.h vsMotionDetectInit false --exists --print-errors vidstab >= 0.98 ERROR: vidstab >= 0.98 not found using pkg-config

I can find one similar issue already reported URL: https://github.com/georgmartius/vid.stab/issues/65 but was not able to understand and fix my issue.

haphaeu commented 1 year ago

For some reason, my shell was not correctly seeting PKG_CONFIG_PATH using the proposed one line command.

It solved for me to just split in to lines:

export PKG_CONFIG_PATH=path\to\lib\pkgconfig
./configure --enable-gpl --enable-libvidstab

and if you want to keep it tidy: unset PKG_CONFIG_PATH

thinrope commented 5 months ago

We can probably close that issue as env-dependent (and on a quiet old version).