jishnujayakumar / MV-Tractus

A simple tool to extract motion vectors from h264 encoded videos.
108 stars 27 forks source link

Compile error #5

Closed marius0210 closed 4 years ago

marius0210 commented 5 years ago

Hi, I tried to compile and I have this error: /usr/bin/x86_64-linux-gnu-ld: cannot find -ljson collect2: error: ld returned 1 exit status I tried to install this package but did not solve the problem: sudo apt-get install libjson-glib-dev

jishnujayakumar commented 5 years ago

Hi @marius0210, Try using the compile command here. https://github.com/jishnujayakumar/MV-Tractus/blob/master/compile Or try with -l json

marius0210 commented 5 years ago

Thanks @jishnujayakumar, I complied the program. But now when I have this error from ./extract_mvs

root@mb-ThinkPad-L512:/home/mb/MV-Tractus# ./extract_mvs /home/mb/test.mp4 bash: ./extract_mvs: No such file or directory

root@mb-ThinkPad-L512:/home/mb/MV-Tractus# ./extract_mvs /home/mb/test.mp4 Could not open source file /home/mb/test.mp4

jishnujayakumar commented 5 years ago

Please refer #2 and #3 and see if they answer your question. I think the binary file is not generated, that's why you are getting that error. Compile properly.

marius0210 commented 5 years ago

I tried all the solution but nothing I have the same problem. You made this project on Ubuntu 16.04 and -ljson how do you installed? I think that your last commit in compiler don't work properly.

jishnujayakumar commented 5 years ago

We have tested this on 5-6 systems and they worked out really well. Please follow the instructions in the README carefully. I am sorry as I cannot help without exactly knowing what's going wrong at your end but I think there is something wrong with your setup or some library is not linked properly.