../configure --with-gtk=2 --enable-shared \
--enable-monolithic --enable-unicode=no \
--without-odbc \
--with-libjpeg=builtin --with-libpng=builtin --with-regex=builtin \
--with-libtiff=builtin --with-zlib=builtin --with-expat=builtin
Note, Please try to download the regular Code::Blocks nightly build for use under windows.
Then, set it up to use the Cygwin GCC and see if it works for what you want.
You will likely find a few bugs (since I don't know if anyone has tested C::B using Cygwin GCC recently), but just post them and they should get fixed quicky.
Note, Please try to download the regular Code::Blocks nightly build for use under windows.
Then, set it up to use the Cygwin GCC and see if it works for what you want.
You will likely find a few bugs (since I don't know if anyone has tested C::B using Cygwin GCC recently), but just post them and they should get fixed quicky.
I spent two days trying to compile Code::Blocks under Cygwin and I failed badly.
Note, if you wish to try remember Cygwin has no Unicode support so if building code::blocks under it you must do ANSI build.
Edit: The Code::Blocks configure was hard codded to use wxGTK as of a month or two ago, so try it using GTK installed.
My standard command to configure wxWidgets under Cygwin, note I never really used the build yet, so may have issues.Code../configure --with-gtk=2 --enable-shared \
--enable-monolithic --enable-unicode=no \
--without-odbc \
--with-libjpeg=builtin --with-libpng=builtin --with-regex=builtin \
--with-libtiff=builtin --with-zlib=builtin --with-expat=builtin
Tim S
If I build a program using Cygwin GCC via C::B under Windows, can that program run on Linux or Unix?
Another question is my project requires 3rd party libraries. And there is not easy way to install them on Windows. So I have to install them on Cygwin. Can I still use C::B to compile those libraries and build my program under Windows?
If I build a program using Cygwin GCC via C::B under Windows, can that program run on Linux or Unix?
No, to my knowledge there is no ABI Compatibility between CygWin and Linux Distros.Another question is my project requires 3rd party libraries. And there is not easy way to install them on Windows. So I have to install them on Cygwin. Can I still use C::B to compile those libraries and build my program under Windows?
Maybe, if you can build it with Cygwin GCC C++ compiler then you should be able to build it using C::B using Cygwin GCC.
Note, C::B is an IDE not an compiler. You need to know and understand what Cygwin GCC compiler can do, I don't really use it much so am not a good source of info.
Tim S
So if I want to develop an application can run on Linux, the solution is to use the wxWidgets?
I spent two days trying to compile Code::Blocks under Cygwin and I failed badly.Why are you guys trying such??? :shock: :shock: :shock:
Why are you guys trying such??? :shock: :shock: :shock:
If I build a program using Cygwin GCC via C::B under Windows, can that program run on Linux or Unix?
Why are you guys trying such??? :shock: :shock: :shock:I did because I wanted a way to verify my patches to Code::Blocks did not break the configure make method used by Linux.
I agree with Morten. There is no need to use Cygwin to build C::B. If you want to test that the patches you make works on Linux, I would recommend you to download & install VMWare and install a Linux distro in it. In that way you can be sure of the outcome. :)
I don't have a Linux OS installed, and I don't think I can install and learn it in a short period of time. So what's the best way, if any, to develop Linux applications under Windows?
yes, I m a newbie and really thank all you guys.
The best way, to test your application, is to have an dedicated Linux machine(s) with the OS the same as the major target Linux distribution(s).
Next, is dual booting Linux on your PC for final testing of application.
Third, is using an Virtual machine under your Windows OS.
What do you know about Linux?
Do you know that Linux distributions very a lot?
Having one binary package for Linux distributions is very hard to do for complex applications and sometimes for simple applications.
What is the top three Linux distributions you are targeting?
Edit: I am trying out Cooperative Linux from http://sourceforge.net/projects/colinux/ to test Linux Builds right now.
It is a special type of Virtual machine solution, andLinux is based on an older version of Cooperative Linux.
Tim S