Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
how can I develop a cross platform c++ application in netbeans 7.3
Posted

1 solution

The trite answer is, any way you want.
I suspect what you're really asking is what cross platform frameworks are available that integrate with Netbeans in the way that MFC integrates with Visual Studio or Qt with QtCreator.
As far as I know the answer is none, primarily because Netbeans like Eclipse was initially designed as a Java IDE. C++ support was later added as a plugin. It should be possible to get Qt to work and I guess there are instructions out there somewhere. Certainly Boost will build in as much as that's a framework these days.

Personally I like Netbeans a lot and I just happen to be developing a cross platform C++ framework at the moment which builds with Netbeans on Windows and Linux. Here's the link[^] to the introductory CodeProject Article to accompany that shameless plug. Unfortunately it's a long way from being ready for production projects but all assistance, ideas and critiques on the small ammount published so far are welcome.
 
Share this answer
 
Comments
AsthaS 29-Mar-13 7:19am    
Thanx for the reply. I am a newbie to the cross platform development and am using cygwin for compiling my c++ code in netbeans. What I want to know is will g++,gcc,gdb and make which are accompanied in cygwin suffice for cross platform development or will I require some other libraries too.
Matthew Faithfull 29-Mar-13 7:30am    
Hmm, that depends on how cross platform you want to be and how you write your code. If you write code that builds on Windows with the Cygwin tools then take the same code and build it on Linux with approximately the same GCC version e.g 4.7 then as long as your original code only used the core C library/POSIX functions ( i.e. No Win32 API ) and C++ standard library calls that don't stray into C++11 territory then you'll probably be OK with a little tweaking unless you're making heavy use of templates which will require more tweaking than a tweaker at a tweakfest.
If you want to build a Linux/Unix exectuable directly on Windows you'll need to build a GCC cross-compiler under Cygwin against the headers of the OS you're targetting and that is a world of pain I wouldn't want to go near. There are those that do and good luck to them. If you need them I'm sure there's a support group out there somewhere on the net.
AsthaS 29-Mar-13 7:35am    
Does netbeans 7.3 provides any option by which I can generate makefile of the application directly.?
Matthew Faithfull 29-Mar-13 7:41am    
Not as far as I can tell however Netbeans does generate and use Makefiles when you build a project. They're in a slightly unusual format and style even for Makefiles. No reason why they shouldn't work externally though if you can work out what environment variables are required with what values.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900