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

Issue compiling in windows #53

Open
hsw28 opened this issue May 20, 2022 · 1 comment
Open

Issue compiling in windows #53

hsw28 opened this issue May 20, 2022 · 1 comment
Labels

Comments

@hsw28
Copy link

hsw28 commented May 20, 2022

Hi,
I am using QT creator v5 and I am having an issue compiling, in which I get the following error:

:-1: error: No rule to make target '../../../../OneDrive/Documents/opencv/build/include/opencv2/stitching/detail/exposure_compensate.hpp', needed by 'release/backend.o'. Stop.

I believe my .pro file is setup correctly as follows:

    # Path to your openCV .lib file(s)
    LIBS += -LC:/Users/holdb/OneDrive/Documents/opencv/build/x64/vc15/lib -lopencv_world440
    
    # Path to openCV header files
     INCLUDEPATH += C:/Users/holdb/OneDrive/Documents/opencv/build/include
     INCLUDEPATH += C:/Users/holdb/OneDrive/Documents/opencv/build/include/opencv 

    # For Python
    INCLUDEPATH += C:/Users/holdb/anaconda3/envs/python38/include
    LIBS += -LC:/Users/holdb/anaconda3/envs/python38/libs -lpython38

     # For numpy
    INCLUDEPATH += LC:/Users/holdb/anaconda3/envs/python38/Lib/site-packages/numpy/core/include

Any suggestions?

Might be worth mentioning I was getting a DIFFERENT 'no rule to make target' error when I was using QT creator v7, so it's possible this is a version issue?

@daharoni
Copy link
Member

Hi, unfortunately I am not an expert on setting up compilers.... I am usually pretty surprised when I get everything to compile without errors on a new computer.

Are you sure you have built openCV correctly? Sorry I can't be of more help here.

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

No branches or pull requests

3 participants