This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 169655 - Error to add a include in qt using the resource files in another file
Summary: Error to add a include in qt using the resource files in another file
Status: RESOLVED DUPLICATE of bug 96207
Alias: None
Product: cnd
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P4 blocker (vote)
Assignee: Alexey Vladykin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-31 17:34 UTC by jorgeferrera23
Modified: 2009-08-04 10:37 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jorgeferrera23 2009-07-31 17:34:31 UTC
Hello everybody, congratulations for the developing, the last qt plugin is awesome.

Well, to the bug:

I am using qt to develop, but I have already a project in visual c++, I am importing it to gcc++. I added the source and header 
files, I saw an example using qt and the developer put the qt files in the resource files, I made the same, I added an existed 
file in another directory to my project, the file added is in the resource file, well I just cant add in my main because the 
netbeans cant found it in resource files, now I will try to move it to source file and test. Well I have a tip, try to make a 
option to not import a file from another directory, but to import it direct, to put it in the project, it will be best.

Finishing, my English is nearly disgusting, but I hope I could explain my problem.

Bye bye and thanks for netbeans.
Comment 1 Alexey Vladykin 2009-08-03 12:10:43 UTC
I'm afraid I didn't understand the problem.
Comment 2 Alexey Vladykin 2009-08-03 12:12:42 UTC
Could you please copy-paste here an error message that you see?
Could you also zip and attach nbproject/ directory of your project?
Comment 3 Alexey Vladykin 2009-08-04 10:09:51 UTC
Jorge's response from private email:

Thanks for your help, I will try to explain again.

I've been following this example, http://www.netbeans.org/kb/docs/cnd/qt-applications.html

Everything is going ok with it until now. Well, after that, I tried to import my project from visual c++ to netbeans,
then I selected the project files into netbeans using the menu "Add existing item" Well, I added everything, but when I
tried to compile I received an error because the main didnt find the include "HelloForm" if we use the example for an
example ^^. And what I did? I just entered in project properties and added the directory where my original files was ;)
In short, Netbeans cant find directly a file if it was in a diferent directory, my imported files was within the
Resource files, maybe because that too.
Comment 4 Alexey Vladykin 2009-08-04 10:37:32 UTC
Thank you for explanation. This is expected behavior and does not sound like a defect.

Include directories must be configured in project properties for NetBeans to work correctly. It is possible to make
NetBeans configure these directories for you by using New->C/C++ Project with Existing Sources wizard.

Another solution is to make NetBeans help to resolve failed includes. There is issue 96207.


*** This issue has been marked as a duplicate of 96207 ***