Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

does not start on ubuntu #21

Open
teo2022 opened this issue May 6, 2021 · 18 comments
Open

does not start on ubuntu #21

teo2022 opened this issue May 6, 2021 · 18 comments

Comments

@teo2022
Copy link

teo2022 commented May 6, 2021

I installed everything according to the instructions

root@80-78-247-58:/var/www/html/mods# ./mods.cpp examples/cat.png examples/1.png 3.png 2.png k1.txt k2.txt m.txt l.txt 0 0 examples/cat.txt config_iter_mods_cviu.ini iters_mods_cviu.ini
./mods.cpp: line 1: /------------------------------------------------------/: No such file or directory
./mods.cpp: line 2: /bin: Is a directory
./mods.cpp: line 3: /------------------------------------------------------/: No such file or directory
./mods.cpp: line 33: //#define: No such file or directory
./mods.cpp: line 47: using: command not found
./mods.cpp: line 49: const: command not found
./mods.cpp: line 49: //number: No such file or directory
./mods.cpp: line 51: syntax error near unexpected token (' ./mods.cpp: line 51: //inline long getMilliSecs()'
root@80-78-247-58:/var/www/html/mods#

root@80-78-247-58:/var/www/html/mods# ./mods examples/cat.png examples/1.png out1.png out2.png k1.txt k2.txt m.txt l.txt 0 0 examples/cat.txt config_iter_mods_cviu.ini iters_mods_cviu.ini
-bash: ./mods: No such file or directory

@ducha-aiki
Copy link
Owner

ducha-aiki commented May 6, 2021

First, I don't recommend to run it under root.
Second, you cannot run cpp file, you need to compile everything first.

@teo2022
Copy link
Author

teo2022 commented May 6, 2021

I followed these commands! still the same (do you need to do something else?

cd vlfeat
make

cd ../build
cmake ..
make

@teo2022
Copy link
Author

teo2022 commented May 6, 2021

root@80-78-247-58:/var/www/html/mods/build# cmake ..
Looking for OpenCV
Not found!
-- A library with BLAS API found.
-- A library with LAPACK API found.
OpenMP found
OPENMP FOUND
-- Configuring done
-- Generating done
-- Build files have been written to: /var/www/html/mods/build

@ducha-aiki
Copy link
Owner

OK, then you should go into build directory and run the compiled file, not .cpp

./mods examples/cat.png examples/cat2.png out1.png out2.png k1.txt k2.txt m.txt l.txt 0 0 examples/cat.txt config_iter_mods_cviu.ini iters_mods_cviu.ini

@teo2022
Copy link
Author

teo2022 commented May 6, 2021

-bash: ./mods: No such file or directory

@ducha-aiki
Copy link
Owner

Then you haven't compiled it (I don't see logs from running make command), or you are not in the correct directory

@teo2022
Copy link
Author

teo2022 commented May 6, 2021

Снимок экрана 2021-05-06 в 17 56 05

@ducha-aiki
Copy link
Owner

Of course, there is no mods file, there is "fatal error".
Another hint: when you run cmake command, it didn't find OpenCV.
So, please, install OpenCV first.

@teo2022
Copy link
Author

teo2022 commented May 6, 2021

Снимок экрана 2021-05-06 в 19 20 06

@teo2022
Copy link
Author

teo2022 commented May 6, 2021

Снимок экрана 2021-05-06 в 19 20 22

@teo2022
Copy link
Author

teo2022 commented May 6, 2021

can't install this package, already tried different options

Снимок экрана 2021-05-06 в 19 21 23

@teo2022
Copy link
Author

teo2022 commented May 6, 2021

ubuntu 20.04

@teo2022
Copy link
Author

teo2022 commented May 6, 2021

sudo apt install python3-opencv - installed this package

@ducha-aiki
Copy link
Owner

The instructions are for ubuntu 14.04, which is stated in the readme.
Sorry, but I cannot guide you on how to install OpenCV on modern Ubuntu, there are enough resources on the web on it, and also C++ development is tricky and might be time-consuming.

@teo2022
Copy link
Author

teo2022 commented May 6, 2021

i installed it, here is the screen
117297147-124d7a80-aea0-11eb-8c97-92f11cdda1b7

@ducha-aiki
Copy link
Owner

No, what you have installed is python version. Instead you need C++ libraries and headers, as MODS is C++ algorithm.

@teo2022
Copy link
Author

teo2022 commented May 6, 2021

Installed ubuntu 16.04, everything was installed according to the instructions without errors and now this is

Снимок экрана 2021-05-06 в 19 54 35

@teo2022
Copy link
Author

teo2022 commented May 6, 2021

Снимок экрана 2021-05-06 в 19 59 13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants