12-19-2012 11:02 AM - edited 12-19-2012 11:40 AM
Thanks for the answer.
I read all this after having done another clean install. I made another project from scratch and I had to do small changes, like adding QtNetwork/ to <QNetworkAccessManager>
and in the post you refer to it says: "The difference is only that in the Gold release it appears to work on the first time you create a new project in the IDE. But as soon as you restart the IDE the problem is back."
So I guess it is a quick fix because I reinstalled it, but on new projects I'll have to go through the hassle (unless they patch it). In the Includes section there are 9 items (include, cpp, cpp/c, freetype2, qt4, qt4/QtCore, qt4/QtDeclarative, a gcc one and an armv7 one). Yesterday there were only 4 or so.
Yesterday I had reinstalled the SDK, but the first projects I created were examples, so when I did the important one, the fix didn't work (or I was too tired/grumpy to realize I had to do the small changes I did today).
Welly well, I closed and reopened the SDK and most Includes are gone.
Also, the Build and Run configurations got all screwed up. If I build for Simulator-Debug and then attempt to run on Simulator-Debug, it says I'm trying to run a program made for device on the simulator : /
12-19-2012 01:54 PM
Do not touch the "Project-> add librabry" thing, just make an "include <someLibrary>" statement and it's work fine, sometimes you need to specify includes in .pro file but it's rare, look on BB10 cascades documentation, they'll tell you if an element needs .pro inclusion (Usually for big libraries like QNetwork or QSQL).
Also, if you have syntax error on QObject in your header file, just try to recompile with "Device-debug" build, and it will go, if not just ignore it, if "include <QObject>" has no syntax error, everything is fine.
01-06-2013 07:26 PM
I don't know what happened. Maybe its the fact that my IDE kept crashing and becoming unresponsive...
Getting "UnRESOLVeD INclUSION" errors in my header files when i include QNetworkaccessmanager.
SOMEONE HELP. this is critical to all my apps trying to access the internet to pull data.
11-08-2014 07:17 PM
Just happened with me after I added couple files (1 cpp and 1 hpp) into my project from another one. It appeared that this class uses QNetworkAccessManager. All Qt related includes became "unresolved inclusion".
My solution was:
1. remove those 2 from the project.
2. Clean and Build the project
3. Added those 2 files again.
Problem dissappeared. It looks like some shaman's magic. Still puzzles me what and why did happen.
05-27-2015 02:21 AM
Totally agree with the sentiment about all the voodoo "solutions" for this.
BlackBerry: would someone please, please, please write a knowledgebase article about the real, deterministic root cause of unresolved inclusion errors and a primer on: If/how Momentics IDE modifies the default behavior of Eclipse CDT, where to go in the CDT documentation to get a good coherent overview of how the IDE is resolving includes under the hood, and if necessary (and it's probably necessary given how obtuse Eclipse documentation is in general) a succinct, well written explanation of the CDT include resolution process, including how Momentics modifies project files in response to actions taken in the IDE.
This is a perenially maddening aspect of using IDE's: cookbookish click this, check-box that incantations with scant documentation on what's going on under the hood, and thus a guaranteed goose chase/treasure hunt through random "try this, it worked for me" posts on support forums whenever something doesn't work like the cookbook says it should.