Building wxWidgets 3.0.2 (Windows, Cygwin)

Do you have a question about makefiles, a compiler or IDE you are using and need to know how to set it up for wxWidgets or why it doesn't compile but other IDE's do ? Post your questions here.
Post Reply
PrStirling
In need of some credit
In need of some credit
Posts: 1
Joined: Thu Sep 24, 2015 8:46 pm

Building wxWidgets 3.0.2 (Windows, Cygwin)

Post by PrStirling »

Hello,


I am trying to build wxWidgets 3.0.2 (from Windows sources), and I have a fatal error during the compilation, the file "wx/setup.h" may be missing:

Code: Select all

In file included from ../include/wx/defs.h:27:0,
                 from ../include/wx/wxprec.h:12,
                 from ../src/common/any.cpp:12:
../include/wx/platform.h:183:22: fatal error: wx/setup.h: No such file or directory
compilation terminated.
Makefile:28679 : the recipe for target « basedll_any.o » failed
make: *** [basedll_any.o] Error 1
Before that, I used the configure file:

Code: Select all

/cygdrive/d/Libraries/wxWidgets-3.0.2/build-debug
$ ../configure --enable-debug
which returned :

Code: Select all

Configured wxWidgets 3.0.2 for `x86_64-unknown-cygwin'
I have Windows 7 (64-bit) and Cygwin (with MinGW64-x86_64 and make). I didn't find the "wx/setup.h" file into the include directory, and I think that the compiler should not look for it. But it did…


Do you have any idea about that ?
Joelito
Earned some good credits
Earned some good credits
Posts: 128
Joined: Wed Jun 18, 2008 8:35 pm
Location: Tijuana, BC, México

Re: Building wxWidgets 3.0.2 (Windows, Cygwin)

Post by Joelito »

When I build wxWidgets for gcc in windows...I use Strawberry perl's version of gcc (you will missing mingw32-make but is on the web) or download TDM-gcc version. After that you use the old form like:

Code: Select all

mingw32-make -f makefile.gcc UNICODE=1 SHARED=1 MONOLITHIC=0 BUILD=release CXXFLAGS="-std=gnu++11 -fno-keep-inline-dllexport -Wno-deprecated-declarations"
Without msys or cygwin, hope my suggestion helps you.
* PC: Intel Core 2 DUO E6550 @ 2.33 GHz with 2 GB RAM: Archlinux x86_64 with xfce desktop & wxgtk{2,3}-3.0.5.
stahta01
Ultimate wxWidgets Guru
Ultimate wxWidgets Guru
Posts: 550
Joined: Fri Nov 03, 2006 2:00 pm

Re: Building wxWidgets 3.0.2 (Windows, Cygwin)

Post by stahta01 »

Under Cygwin as under Linux, it is normal to use wx-config script/command to find the header locations and other stuff.

wx-config --cflags
wx-config --libs
wx-config --list

I think is the correct syntax of the command.

Tim S.
User avatar
yasriady
Knows some wx things
Knows some wx things
Posts: 32
Joined: Mon Apr 28, 2014 5:17 am

Re: Building wxWidgets 3.0.2 (Windows, Cygwin)

Post by yasriady »

Hi,
My steps to build wxWidgets in Msys way is similar to Cygwin did:
http://yasriady.blogspot.co.id/2015/08/ ... ndows.html
wxWidgets Journal at http://yasriady.blogspot.com
User avatar
evstevemd
Part Of The Furniture
Part Of The Furniture
Posts: 2409
Joined: Wed Jan 28, 2009 11:57 am
Location: United Republic of Tanzania

Re: Building wxWidgets 3.0.2 (Windows, Cygwin)

Post by evstevemd »

Any reason you use Cygwin? Is Linux emulation a goal?
If no go for MinGW
Chief Justice: We have trouble dear citizens!
Citizens: What it is his honor?
Chief Justice:Our president is an atheist, who will he swear to?
Post Reply