Sysprogs forums › Forums › VisualGDB › Ui and intellisense
- This topic has 9 replies, 3 voices, and was last updated 10 years, 8 months ago by
support.
-
AuthorPosts
-
February 15, 2015 at 15:43 #6153
philmacu
ParticipantHi, I am using VisualGDB to remote compile on an A20 linux embedded board. All is working well, I am using Qt on the remote device. I have managed to add all the #include libraries on the A20 so that intellisense is happy. That is with the exception of ui(new Ui::MainWindow) I can’t seem to get rid of this one! I get an intellisense error on the ui part. I know it will compile fine but I would like to get rid of the ‘error’ any suggestions on what I must add to the intellisense path?
Thanks,
Phil
February 21, 2015 at 04:17 #6161support
KeymasterHi,
Most likely you are missing the UI header file that is generated from the UI definition files on the remote machien as a part of the build. Please locate it on the remote machine and either copy it manually to the Windows machine, or setup a post-build action that will automatically download it after each build.
February 21, 2015 at 09:37 #6163philmacu
ParticipantThanks for that I will try it out later today
February 21, 2015 at 16:56 #6164philmacu
ParticipantYep that sorted it, I had been looking in the /usr/include thinking it was one of the Qt files that I needed to point to, never realised that it was the ui_MainWindow.h file tht was in my own debug folder! Adding that did the trick.
Many thanks,
Phil
February 22, 2015 at 19:24 #6165on4bhm
ParticipantHi, i have the same problem… solved for once by copying the file.
But whenever i change something to the ui, i have to copy the file again… 🙁
can i solve it by making a post-build action?
how can i do this?
shouldn’t that be a pre-build action?
whenever i save my ui, the file should be copied, no?
February 22, 2015 at 20:41 #6166philmacu
ParticipantYep same for me, if I change the ui, for example if I add a button, it shows up as an intellisence error. It compiles fine but is a bummer because intellisense thinks it’s an error it won’t show we the methods associated with the object… not the end if the world but it is annoying
February 22, 2015 at 22:30 #6168on4bhm
ParticipantIndeed very annoying.
March 2, 2015 at 05:18 #6190support
KeymasterHi,
You need to make a post-build action because the header file will be updated during build. Simply use the Custom Actions page in the VisualGDB Project Properties dialog to setup a custom action. Note that you will need VisualGDB Custom Edition and higher.
You can also configure VisualGDB to use a cross-compilation toolchain (i.e. build the code on the Windows machine) to avoid this problem completely.
March 2, 2015 at 14:04 #6199on4bhm
ParticipantCan you explain how i can walk the road of cross-compile toolchain?
March 2, 2015 at 18:07 #6200support
KeymasterSure, have a look at this tutorial: http://visualgdb.com/tutorials/raspberry/qt-cross/
-
AuthorPosts
- You must be logged in to reply to this topic.