You are not logged in.

Dear visitor, welcome to QtForum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Saturday, March 31st 2012, 10:40am

No Rule To Make Target ??

Hi all. There was no problem when I try to compile my project wiht my old notebook on Ubuntu 12.04. I've bought a new notebook and installed Ubuntu 12.04 again. But now, I can not compile my project with QT. I'm always getting these errors :

Source code

1
Issues:No rule to make target `../resources/forms/*.ui', needed by `ui_*.h'.  Stop.



Source code

1
2
3
4
5
6
7
8
9
10
Compile Output:
12:35:34: Running build steps for project my...
12:35:34: Configuration unchanged, skipping qmake step.
12:35:34: Starting: "/usr/bin/make" -w
make: Entering directory `/home/wsw/C:/Users/Wsw/Desktop/Project/QT/SettingPoints/my-build-desktop-Qt_4_8_0_for_Desktop_-_MSVC2008__Qt_SDK__Debug'
make: Leaving directory `/home/wsw/C:/Users/Wsw/Desktop/Project/QT/SettingPoints/my-build-desktop-Qt_4_8_0_for_Desktop_-_MSVC2008__Qt_SDK__Debug'
make: *** No rule to make target `../resources/forms/*.ui', needed by `ui_*.h'.  Stop.
12:35:34: The process "/usr/bin/make" exited with code 2.
Error while building project my (target: Desktop)
When executing build step 'Make'

2

Saturday, March 31st 2012, 1:25pm

msvc on ubuntu.

what?
If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.

3

Sunday, April 1st 2012, 9:15am

msvc on ubuntu.

what?
Sorry but I don'w understand what you mean. What is msvc and what is this "what?" question?

4

Sunday, April 1st 2012, 9:33am

why do you have any kind of qt setup on ubuntu that thinks it needs msvc (microsoft visual C++):

Source code

1
2
                                                                                                                    \/
Entering directory `/home/wsw/C:/Users/Wsw/Desktop/Project/QT/SettingPoints/my-build-desktop-Qt_4_8_0_for_Desktop_-_MSVC2008__Qt_SDK__Debug


Install your stuff properly/make new pro files etc. You should not be seeing reference to MS for Qt on ubuntu



p.s.
QT is Quick Time.
Qt is Qt.
If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.

5

Sunday, April 1st 2012, 9:42pm

why do you have any kind of qt setup on ubuntu that thinks it needs msvc (microsoft visual C++):
To be honest, I was thinking about it. I'm not using anything related to Microsoft softwares. This was a ready project compiled by my friend and I borrowed all of project folder from them. As I said before, it was running smoothly on my old laptop, but now it is giving me errors while I'm trying to compile. By the way, I've solved this problem. If you ask "How", I've just removed all of project folder (I wasn't developing it, just analyzing the code, so I've nothing to lose), and asked to my friend to send me a copy of project again. He send a new copy and it was running perfectly until yesterday. My Ubuntu has broken down...

Now, I have another problem. I don't want to open a new thread for this and asking help here.

I'm new at Linux and Qt. So, until now, I always used Ubuntu's Package Manager for installing Qt Development Environment. But I want to learn Linux Distros. So, I've decided to install Qt from Qt's Offical Website instead of using package manager. I've downloaded Qt and tried to apply all steps (just aggravating, there's just two steps) to install. But installation gave me a warning like this

"
You need a C++ compiler"
What is this? Does Ubuntu not include any C++ compiler? If so, how can I install a C++ compiler?
Thanks again. And thanks for correcting me about difference of QT and Qt.

Ps.

English is not my mother language. I hope I'm able to explain myself clearly.

M_C_M

Trainee

  • "M_C_M" is male

Posts: 104

Location: GOC

Occupation: SW

  • Send private message

6

Monday, April 2nd 2012, 6:40am

I prefer you to remove '.pro' (pro.user1 etc etc) files other than '.pro', along with entire build directory (where Obj files are there. Also make sure no more includes as like mentioned like this 'c:/' )
I prefer you to use QtCreator because it is user friendly for you while you are migrating from windows. In QtCreator Tools->Options->Qt4 you need to show the path to qmake.
Also make sure QRC file got included and its all files are present.
Else you need to link with g++ compiler. By default Ubuntu will have g++. Else do

sudo apt-get install gcc
sudo apt-get install g++
You can google apt-get.
an Eye 4 Qt :thumbup:

7

Monday, April 2nd 2012, 7:50am

Thank you again and again. All problems have solved.