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

the compiling problem #5

Open
liningzh opened this issue Jul 15, 2017 · 1 comment
Open

the compiling problem #5

liningzh opened this issue Jul 15, 2017 · 1 comment

Comments

@liningzh
Copy link

liningzh commented Jul 15, 2017

I am compling the program, however, i have got the following errors:could you please fix the problem? many thanks!

                                                               ^

/usr/bin/ld: cannot find -lml
/usr/bin/ld: cannot find -lcvaux
/usr/bin/ld: cannot find -lhighgui
/usr/bin/ld: cannot find -lcv
/usr/bin/ld: cannot find -lcxcore
collect2: error: ld returned 1 exit status
make: *** [all] Error 1

@liningzh liningzh changed the title the complie problem the compiling problem Jul 15, 2017
@lesterlo
Copy link

lesterlo commented Jan 9, 2018

you need to modify the Makefile to this.
I tested with opencv2.4. I compiled the code without any error.

CC=g++
CV=-I/usr/include/opencv
CV2_old=-lml -lcvaux -lhighgui -lcv -lcxcore
CV2=-lopencv_imgproc -lopencv_highgui -lopencv_core -lopencv_ml

all:
        $(CC) main.cpp HOG.cpp HOGFeaturesOfBlock.cpp $(CV) $(CV2) -o featureExtractor

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