Debugging in QtCreator 5 using Mingw+Gdb on Windows? - c

I have been looking for a solution for hours. I have QTC 5, Mingw and Gdb under Windows7. I can compile and run my project however I have not been able to figure out how to debug and create a debug configuration in QT 5 under Windows. Bear in mind that everything works as it should in this IDE. I am happy with it just that I have not been able to figure out debugging with this particular configuration.
Most tutorials were concerned with CDB or Qt project or in other platforms, or were talking about some tabs or menus that are not available in v5 as far as I can tell.
What is the right way of setting up a debug configuration and running my .exe in a debug environment using QT 5 and Gdb? My project is mostly C and some C++ with no Qt component. I am just using it as an IDE for C/C++.
thanks

Related

Debugging a code with a board simulator in Eclipse (no hardware)

I'm using Eclipse IDE for debugging a code with an STM32 microcontroller, and looking for a way to simulate the MCU board and not need to connect and use the actual micrcontroller, it is very helpful to run simple codes and testing.
I was using IAREW before and it is possible, it has an option for a simulator driver in the debugging tool and you can run and see the results normally as if the board is connected; i was wondering if it is also possible with Eclipse?
In the Eclipse Debugger -> Debug probe, there are only 3 options which are ST-Link(GDB), J-Link and ST-LINK(Open-OCD); i'm new to Eclipse and couldn't figure out if it could be possible somehow by modifying something with one of those options.
Update:
I have found a kind of a solution, to add an extension to include the IAR EW debugger inside eclipse:
http://eclipse-update.iar.com/plugin-manager-install.html
It is not a good solution as both IDEs need to be installed, and the project need to be created specifically for IAR to use its simulator, so it is not possible to create an STM32 project and use the IAR simulator for debugging.
Are there other solutions within eclipse, without using another IDE or an extesion?

Cross Compilation for C applications using Eclipse

I'm developing a java application which uses native code with JNI, so I developped a C shared library using Eclipse with the CDT plugin on Linux Redhat. Everything works fine since I can launch my java application and call the native methods without any problem. But my problem is, I need to compile my code on every platform (Linux, Windows, x86/x64). It's not a problem to get the libXXX.so file but I also need a .dll to run on Windows, except I can't just compile my code on it, I need a way to do that locally on Linux with Eclipse. So I am looking for some simple solutions to do that locally with Eclipse using cross compilation.
I've made some researches but I can't find a real tutorial to explain how to do that, each time people say to compile on the specified platform. So if someone could help me with this that would be great.
My configuration is : Linux RedHat, Eclipse Juno, CDT plugin 8.1
You need a Linux -> Windows cross compiler. The MinGW tools would do the job, but, last I checked, they only provide binary downloads to run on Windows (i.e. not a cross-compiler). There are some (old) instructions for building your own here.
The CodeBench compiler is probably exactly what you want, but it's not free (there is a free trial though). It's basically a professional build of the MinGW tools, and comes with it's own customized Eclipse so there's no fiddling about needed in that department.
A quick google also comes up with these tools on sourceforge, but I've not tried them.

Is there an IDE that works with CUDA on mac osx lion?

I'm trying to learn Cuda and its very interesting but I'm having problems creating code without a bit of help from an IDE. I know Java/Python but I'm unfamiliar with C/C++ so I have been using eclipse and Xcode to help me with commands and finding things(via code code completion). I can't seem to get these options for CUDA?
I have seen examples and can build them find(nvcc is working) but without the IDE to help catch some of my mistakes I'm a bit lost editing the code in just a text editor. I found a toolkit plugin for eclipse but although it seems to install I think its for a older build of eclipse because most of the options in the instructions do not match my version(Indigo). Nvidia has a plugin for Visual studio only on their site(I'd rather not install windows on my mac to use Cuda).
I'm sorry if this sounds bad but I'm curious to how people are developing cuda on Mac's. I don't care what IDE I use as long as it helps me see the options and warn me if I have syntax issues,etc..(I'm not the best programmer but switching IDE's for me has just been a matter of finding out where things are so I'm really fine with any solution as long as it helps me as I'm learning).
Nsight Eclipse Edition is available as a part of the CUDA Toolkit 5.0 (no additional download required).
Qt Creator!
You can read Qt Creator + CUDA + Linux for inspiration on how to setup the build environment on Mac OS X.
You could think about using JCuda:
http://www.jcuda.de/
There is XCode plug-in for CUDA development. I found it there. There is the main discussion on nvidia.com
Visual Studio Code + this extension:
https://github.com/gangliao/VS-Code-Cuda.
For me, Visual Studio Code is my favorite IDE for every language I found out there

Is there a way to debug VC++ compiled applications using Eclipse/WinDbg?

I'm currently using Eclipse as my main editor, and source browser for our C/C++ project. The only problem is, I have to switch to Visual C++ everytime I have to debug or trace. Is there a way to have Eclipse use the WinDbg tool to debug Windows native applications? I tried searching on the web but all the forum posts seem to trail off to nowhere around 2007/2008.
I think the answer is no. Because you will not have access to the Win Debug Symbols and libraries within the Eclipse runtime. However you could start building this as an Eclipse plugin for VS users.

Gui in C on windows cygwin

I'm trying to make a script that can generate a kind of chat client in cygwin on windows but I don't have a clue how to start, I saw something like gtk+ but how do I get that inside of cygwin, and what have I to do after that?
Cygwin has an assortment of gtk packages. After that you need to read some documentation and learn how to use the toolkit to make your program. Here is a tutorial to get you started.
Are you locked to Cygwin or are you using that because you think that is where Gtk+ apps can run? In any case I seem to remember those packages as options in the cygwin installer. Also this link seems valid: http://sourceware.org/cygwinports/ . I tend to generate native programs using Gtk+ on MinGW instead so my users don't have to have all of cygwin installed to run my software.

Resources