GUI in Glade — application for Linux and Windows - c

I have written a program in C, and I would like to make a GUI for it. I would like to use Glade because it is drag and drop. I am using Linux, but I would like the application that can be made to run on both Linux and Windows. Is it possible? And if it is, is there an option exporting the GUI for Windows using Linux?

After visiting the Glade site,
I found that they have Windows binaries available. Here is a link to it:
http://ftp.gnome.org/pub/GNOME/binaries/win32/glade/
I also found this:
http://wingtk.sourceforge.net/

You can install the GCC compiler for Windows (mingw) on a Linux machine.
Afterwards, you can follow #Joe's link to get the Windows binary, and link them when you compile your program using mingw.
A quick Googling should give this link which covers step-by-step instructions on how to achieve this: http://www.tarnyko.net/en/?q=node/45

Related

X11 installation in ECLIPSE

I have been trying to install X11 in Eclipse for C. I have to design visualization applications in C using X11. I am used to Eclipse for java. I need your help for the detailed steps to get X11 directory and getting Xlib.h, xatom.h,xos.h,xutil.h file access through eclipse.
I have been trying very hard but not able to find suitable answer. I like Eclipse because its easy to debug and I have windows operating system.
Please suggest me how can I proceed further?
X11 is a windowing system widely used on Linux and Unix systems. You have 2 options:
Go native and install you favorite Linux distro, either as a VM or on actual hardware, then install eclipse on that.
Try using Cygwin. Cygwin allows you to run *nix apps on Windows and X server is one of the apps supported.You can find more info on http://x.cygwin.com/
If you are trying to do C/C++ development then you need to install the Eclipse CDT package. This allows you to create a C/C++ project inside of eclipse in which you can then write your X11 program.
If you are doing Java development, then you don't use X11 or even Windows.h directly, instead you use the Java Swing framework to do your graphical UIs. When run on an X11 based system (unix) it will use X11 underneath to render the display, while on a carbon based system (OSX) it will use Carbon and on a Windows system it will use windows api.
However, you also mention you are using the "windows operating system" and if by that you mean Microsoft Windows, then there is no (practical) way to do X11 development on windows. You really need to stop and think about what you are trying to achieve and perhaps post a different question about how you can accomplish that.

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.

which development software should be used for VLC on mac?

i want to do some modification and development for VLC. i download its source code, vlc-1.1.5. and it is written by C. so usually which development environment should i use, xcode or some others?
thx...
I thought VLC was developed in Qt. Do you see the class names starting with Q? In case it is developed in Qt, Qt Creator or KDevelop would be a good choice of development environment.
The VideoLAN folks provide a wiki page with information about compiling their source on multiple platforms. The page relevant to OS X is here: http://wiki.videolan.org/OSXCompile
Compiling VLC media player on Mac OS X is different from normal linux compiling and OS X compiling. We do not use Xcode, but a simple ./configure and then make isn't enough either.
The page provides a step-by-step guide to setting up a machine running either OS X 10.5 or 10.6.
Any editor of choice should suffice. Looking at the code, it seems that VLC uses Unix-style building (autotools, make, etc). On Win32, it uses MinGW, so plain old gcc and make is probably used on OSX as well.

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.

What windows C IDE can I use that will use gcc to compile and let me insert breakpoints just like Visual Studio would for C#?

What windows C IDE can I use that will use gcc to compile and let me insert breakpoints just like Visual Studio would for C#?
I have searched Google and cannot find anything more recent that 2005.
I'm just getting back into C since graduating and would like a non MS IDE that uses GCC, but that's a versatile as Visual Studio.
The thought of having to use GDB command line is not too appealing right now.
I successfully used Eclipse with C/C++ plugin. Matter of fact I prefer it to VS. You can download it from here it's a real beaut. If you do JNI it's simply indispensable since you can setup your project to do both C/C++ and Java
Dev-C++ http://www.bloodshed.net/devcpp.html
GPL license
Uses GCC
Netbeans http://www.netbeans.org/features/cpp/index.html
Code::Blocks is another free C++ IDE for Windows/Linux/MacOSX. GPL3 license.
I highly recommend Insight Debugger that is a lightweight Tk frontend to GDB by RedHat.
It adds a convenient GUI to call stack display, breakpoints, watches and memory display (non exhaustive list).
As it is in Tk, it both supports GNU/Linux and Windows (and probably MacOS X). For MinGW users, there is even a MinGW package to install it.
Once installed, you just add the -w setting to the command line to start the GUI: gdb -w
ddd
you could found it on the "development" menu.

Resources