Reply
Thread Tools
Posts: 105 | Thanked: 15 times | Joined on Dec 2009 @ Baltimore, USA
#1
So ive been playing with MADDE and the QT creator,
I think i followed the tutorial at quite closely:
http://wiki.maemo.org/MADDE/QtCreato...on_for_windows


Ive tried a few different examples and I always get the following error:
make:: error: *** No rule to make target `dialog.cpp', needed by `tmp/obj/debug_shared/dialog.o'. Stop.

has anyone run into this?
 
Posts: 432 | Thanked: 645 times | Joined on Mar 2009
#2
Hi,

when does the error occur? Are you building for the device or for the desktop?

Daniel
 
Posts: 12 | Thanked: 12 times | Joined on Apr 2010 @ Berlin
#3
Hi,

could you please provide a little bit more information on your setup?
- What Qt Creator version are you using? 2.0 alpha or a recent snapshot?
- Which version of madde did you install?

Potentially you could try to disable shadowbuilding of the project, as that is a relatively new feature. There has been added updated and bufixes in the meantime, in case your Qt Creator version is too old.

Maurice
 
Posts: 105 | Thanked: 15 times | Joined on Dec 2009 @ Baltimore, USA
#4
Originally Posted by mauricek View Post
Hi,

could you please provide a little bit more information on your setup?
- What Qt Creator version are you using? 2.0 alpha or a recent snapshot?
- Which version of madde did you install?

Potentially you could try to disable shadowbuilding of the project, as that is a relatively new feature. There has been added updated and bufixes in the meantime, in case your Qt Creator version is too old.

Maurice

Im running QT creator 1.3.83 which was a snapshot from thursday.
Im running MADDE 0.6.14

I get this error only when i try to compile for the phone. when i compile on the comp it works fine.

also Ive managed to compile and run things through the MADDE terminal, but it just doesnt work for QT creator

Last edited by madmaze; 2010-04-13 at 13:09. Reason: Forgot stuff
 
Posts: 12 | Thanked: 12 times | Joined on Apr 2010 @ Berlin
#5
Hm...
unfortunately I cannot reproduce it here. One solution I could think of is creating a bug report at: http://bugreports.qt.nokia.com/ with example code as attachment causing your troubles.

Could you try to invoke the qmake and rebuild step manually? You can do that via the context menu of the project itself.
 
Posts: 105 | Thanked: 15 times | Joined on Dec 2009 @ Baltimore, USA
#6
hmm, ok thanks..
below i have the actual error log:
Code:
Running build steps for project application...
Starting: c:/madde/0.6.14/targets/fremantle-qt-0951/bin/qmake.exe C:/Qt/4.6.2/examples/mainwindows/application/application.pro -r -spec default -unix CONFIG+=debug 
c:\Qt\4.6.2\bin\rcc.exe: File does not exist 'application.qrc' 
WARNING: Failure to find: main.cpp 
WARNING: Failure to find: mainwindow.cpp 
WARNING: Failure to find: mainwindow.h 
WARNING: Failure to find: application.qrc 
Exited with code 0.
Starting: C:/madde/0.6.14/bin/make.exe -w 
make: Entering directory `/c/Qt/4.6.2/examples/mainwindows/application-build' 
make: Leaving directory `/c/Qt/4.6.2/examples/mainwindows/application-build' 
make: *** No rule to make target `main.cpp', needed by `tmp/obj/debug_shared/main.o'. Stop. 
Exited with code 2.
Error while building project application (target: Maemo)
When executing build step 'Make'
if it were linux id say my makefile is messed up, but i cant find any trace of any makefile in that dir, maybe thats the problem..
 
Posts: 105 | Thanked: 15 times | Joined on Dec 2009 @ Baltimore, USA
#7
hmm after looking at the log more closely, i wonder why it cannot find the .cpp and .h files..

time for some investigating
 
Posts: 198 | Thanked: 76 times | Joined on Mar 2010
#8
Originally Posted by madmaze View Post
C:/Qt/4.6.2/examples/mainwindows/application/application.pro
...
WARNING: Failure to find: main.cpp
WARNING: Failure to find: mainwindow.cpp
WARNING: Failure to find: mainwindow.h
WARNING: Failure to find: application.qrc
...
if it were linux id say my makefile is messed up, but i cant find any trace of any makefile in that dir, maybe thats the problem..
well, qmake creates the makefile from the *pro file -- as that fails already, no makefile is generated.
check the *pro file
C:/Qt/4.6.2/examples/mainwindows/application/application.pro
if the files are enumerated correctly.
 
Posts: 105 | Thanked: 15 times | Joined on Dec 2009 @ Baltimore, USA
#9
well as it turns out.. its something that is wrong with the examples.. they wont compile.. but i just tried making a new project, in the search of figuring out how the whole thing works, and well.. the new projects works lol

So im all set now..

Thanks for the help.
 
Posts: 726 | Thanked: 345 times | Joined on Apr 2010 @ Sweden
#10
Originally Posted by madmaze View Post
well as it turns out.. its something that is wrong with the examples.. they wont compile.. but i just tried making a new project, in the search of figuring out how the whole thing works, and well.. the new projects works lol

So im all set now..

Thanks for the help.
Even though you've solved the problem, in some sense, perhaps some more detail will help someone else in a similar situation.

make is complaining since a target depends on a cpp-file (which is the way it should be) as below:

main.o : main.cpp

but make can't find the main.cpp file in the current working directory (or the other alternative directories it searches) and then goes looking for a rule that has "main.cpp" as the target. Since there is no such rule, make gives up with the error message you saw.

So, in the general case, the first thing to check is from where make is started and which dependencies there are. If a source file is missing, it's most likely it's a case of mistaken location.
 

The Following User Says Thank You to Joorin For This Useful Post:
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 11:37.