User forums > Help
How to install C::B on cygwin?
cube1982:
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?
Thanks
--- Quote from: stahta01 on August 02, 2007, 01:21:46 am ---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
--- End code ---
Tim S
--- End quote ---
stahta01:
--- Quote from: cube1982 on August 02, 2007, 05:22:03 am ---If I build a program using Cygwin GCC via C::B under Windows, can that program run on Linux or Unix?
--- End quote ---
No, to my knowledge there is no ABI Compatibility between CygWin and Linux Distros.
--- Quote from: cube1982 on August 02, 2007, 05:22:03 am ---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?
--- End quote ---
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
cube1982:
So if I want to develop an application can run on Linux, the solution is to use the wxWidgets?
Thank you very much, Tim! you have already help me a lot.
--- Quote from: stahta01 on August 02, 2007, 06:46:57 am ---
--- Quote from: cube1982 on August 02, 2007, 05:22:03 am ---If I build a program using Cygwin GCC via C::B under Windows, can that program run on Linux or Unix?
--- End quote ---
No, to my knowledge there is no ABI Compatibility between CygWin and Linux Distros.
--- Quote from: cube1982 on August 02, 2007, 05:22:03 am ---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?
--- End quote ---
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
--- End quote ---
stahta01:
--- Quote from: cube1982 on August 02, 2007, 07:18:07 am ---So if I want to develop an application can run on Linux, the solution is to use the wxWidgets?
--- End quote ---
There is no easy option that can create an application that can run on all Linux distros.
You need separate binary packages for each major distro. Your source code should be able to work on most or even maybe all of the Linux distros, but you will need to test on a few of the Distros.
You must test you application on an Unicode OS before writing very much code, it is very easy to make mistakes in ANSI using wxWidgets that works under Cygwin, but not under an Unicode OS.
If you wish to develop an Linux Application, I suggest writing it under the Linux OS not under Cygwin!
Tim S
MortenMacFly:
--- Quote from: stahta01 on August 02, 2007, 01:21:46 am ---I spent two days trying to compile Code::Blocks under Cygwin and I failed badly.
--- End quote ---
Why are you guys trying such??? :shock: :shock: :shock:
If you want to develop Apps for Cygwin just install Cygwin and setup the Cygwin compiler inside "native" C::B. You can even setup the tool menu to run the Cygwin bash with your application if you like. This way you can produce apps that will need the Cygwin layer (DLL). There is no need to compile C::B under Cygwin for that purpose.
Hence this will not guarantee that your apps are "Linux compatible" in the end.
With regards, Morten.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version