No rules to make target of qtmultipagewidget
-
i have a qt project i was creating on linux and windows , so i made everything on linux and almost finished when i try to compile it on windows there is an error in multipagewidget(i faced many issues on linux too but in the end it ran)
this is the error message and i replaced all the dir of file on windows which is multipagewidget
:-1: error: No rule to make target 'C:/Qt1/Examples/Qt-5.15.0/designer/containerextensionsion/multipagewidget.cpp', needed by 'debug/multipagewidget.o'. Stop.
Thanks in advance
-
Hi,
First thing, always use forward slashes in your paths.
Next, are you sure of the location of that file ?
About its casing ? -
Hi ,
about forward slashes of dir of the file "multipagewidget" ? it's backward slash on windows so this's the right dir (linux is backward slash)And Yes i'm totally sure about the destination coz i copied from the path of Qt after searching so it's true
-
Thanks you make me notice for the Headers file and search for the Class itself "qt multipagewidget" i found that i didn't included the header files of multipagewidget so this error has gone
-
Hi ,
about forward slashes of dir of the file "multipagewidget" ? it's backward slash on windows so this's the right dir (linux is backward slash)And Yes i'm totally sure about the destination coz i copied from the path of Qt after searching so it's true
@MostafaEzzat said in No rules to make target of qtmultipagewidget:
about forward slashes of dir of the file "multipagewidget" ? it's backward slash on windows so this's the right dir (linux is backward slash)
If you want to go that way: backslashes in string must be escaped because the backslash is an escape sequence.
That said, Qt allows you to use forward slashes on all supported OS so you do not have to adapt the notation based on whether you are on Windows or a Unix system.