User forums > Help
Compile CodeBlocks by Cygwin
Jenna:
The wx/tooltip.h header is included at the top of the cbauibook.cpp file.
It's most likely a wxWidgets configuration problem.
Configuring and compiling wxWidgets in a way you get all defines correctly is surely a hard way. And without good knowledge of wxWidgets (and surely C::B) it will be really hard and I doubt there will be much help from the community.
Not because nobody wants to help, but because nobody ever did it.
And I personally see no reason not to use a standard windows build.
stahta01:
--- Quote from: oBFusCATed on November 05, 2013, 08:13:51 pm ---stahta01: Why? What is the benefit of running a cygwin version of C::B?
--- End quote ---
When I was doing a lot of CB Patches; I thought building CB under CygWin would mostly test the Linux CB Build stuff.
I was also thinking of making a CB version to do better debugging of programs under CygWin;
that is the only reason I can think of to run a CygWin built CB.
Tim S.
PetrPetrov:
It seems that wxWidgets library was configured incorrectly.
I.e. It is required that wxWidgets should be compiled with --enable-tooltips flag.
However, if I set --enable-tooltips option for ./configure script then setup.h will anyway #define wxUSE_TOOLTIPS 0 ,
i.e. something goes wrong.
I manually edited this file after configuration step to enable wxUSE_TOOLTIPS to 1:
C:\cygwin64\usr\src\wxWidgets-2.8.12\lib\wx\include\gtk2univ-ansi-release-static-2.8\wx\setup.h
Also I used static configuration to avoid problem with wxScintilla class.
My full configuration line is:
./configure --build=x86_64-pc-cygwin --without-msw --without-x11 --with-gtk --enable-tooltips --enable-monolithic --enable-dnd --disable-shared --enable-universal
PetrPetrov:
Just have noticed from configure's log:
configure: WARNING: wxTooltip not supported yet in wxUniversal... disabled
stahta01:
--- Quote ---gtk2univ-ansi-release-static-2.8
--- End quote ---
I would NOT use Universal.
I might try Unicode instead of ANSI; but, you are likely right in trying ANSI because the last time I tried CygWin did NOT support Unicode.
I would NOT use static because I think CB requires wxWidgets be in a DLL.
Tim S.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version