compiling wxWidgets on windows 10 with 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
saurabhk
In need of some credit
In need of some credit
Posts: 1
Joined: Sat Jan 12, 2019 8:52 pm

compiling wxWidgets on windows 10 with cygwin

Post by saurabhk » Sat Jan 12, 2019 9:01 pm

getting this error while 'make' wxWidgets version 3.1.2

please help.

Code: Select all

ranlib /cygdrive/c/wxWidgets-3.1.2/build-debug/lib/libwx_mswu_gl-3.1.a
(if test -f utils/wxrc/Makefile ; then cd utils/wxrc && make all ; fi)
make[1]: Entering directory '/cygdrive/c/wxWidgets-3.1.2/build-debug/utils/wxrc'
/cygdrive/c/wxWidgets-3.1.2/build-debug/bk-deps g++ -c -o wxrc_wxrc.o -D__WXMSW__      -I../../../utils/wxrc  -DwxUSE_GUI=0 -Wall -Wundef -Wunused-parameter -Wno-ctor-dtor-privacy -Woverloaded-virtual -D_FILE_OFFSET_BITS=64 -I/cygdrive/c/wxWidgets-3.1.2/build-debug/lib/wx/include/msw-unicode-static-3.1 -I../../../include -ggdb -O0  ../../../utils/wxrc/wxrc.cpp
g++ -o wxrc.exe wxrc_wxrc.o    -L/cygdrive/c/wxWidgets-3.1.2/build-debug/lib    -lwx_baseu_xml-3.1  -lwx_baseu-3.1    -lwxzlib-3.1 -lwxregexu-3.1 -lwxexpat-3.1 -lrpcrt4 -loleaut32 -lole32 -luuid -luxtheme -lwinspool -lwinmm -lshell32 -lshlwapi -lcomctl32 -lcomdlg32 -ladvapi32 -lversion -lwsock32 -lgdi32 -loleacc -lkernel32 -luser32  -lrpcrt4 -loleaut32 -lole32 -luuid -luxtheme -lwinspool -lwinmm -lshell32 -lshlwapi -lcomctl32 -lcomdlg32 -ladvapi32 -lversion -lwsock32 -lgdi32 -loleacc -lkernel32 -luser32
/cygdrive/c/wxWidgets-3.1.2/build-debug/lib/libwx_baseu-3.1.a(baselib_filename.o):filename.cpp:(.rdata$.refptr.IID_IPersistFile[.refptr.IID_IPersistFile]+0x0): undefined reference to `IID_IPersistFile'
/cygdrive/c/wxWidgets-3.1.2/build-debug/lib/libwx_baseu-3.1.a(baselib_filename.o):filename.cpp:(.rdata$.refptr.IID_IShellLinkW[.refptr.IID_IShellLinkW]+0x0): undefined reference to `IID_IShellLinkW'
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:114: wxrc.exe] Error 1
make[1]: Leaving directory '/cygdrive/c/wxWidgets-3.1.2/build-debug/utils/wxrc'
make: *** [Makefile:14632: wxrc] Error 2

User avatar
TwistedSpace
In need of some credit
In need of some credit
Posts: 6
Joined: Tue Mar 05, 2019 7:59 am

Re: compiling wxWidgets on windows 10 with cygwin

Post by TwistedSpace » Tue Mar 05, 2019 10:08 am

I recommend using Mingw-w64 instead of cygwin since it has no overhead.
I'm using wxWidgets 3.1.2 with Mingw-w64 8.1 and it works fine.
From your error message I seems to me that you have linker issue.
Make sure you included everything required.
Last edited by TwistedSpace on Tue Mar 05, 2019 9:39 pm, edited 1 time in total.

catalin
Moderator
Moderator
Posts: 1517
Joined: Wed Nov 12, 2008 7:23 am
Location: Romania

Re: compiling wxWidgets on windows 10 with cygwin

Post by catalin » Tue Mar 05, 2019 10:17 am

TwistedSpace wrote:
Tue Mar 05, 2019 10:08 am
you have header issue
No, that is a linker error. It has nothing to do with the headers.

stahta01
Super wx Problem Solver
Super wx Problem Solver
Posts: 258
Joined: Fri Nov 03, 2006 2:00 pm

Re: compiling wxWidgets on windows 10 with cygwin

Post by stahta01 » Tue Mar 05, 2019 4:25 pm

What Cygwin GCC are you using? Include 32 or 64 bit information.

With that I can see if I can duplicate the problem.

Edit: I also need the configure command used?

Tim S.

Post Reply