Hi,
I'm trying to get wxWidgets working on Ubuntu Linux and I recognized, that the developement packs are already installed.
But I haven't found the setup.h yet, where is it?
Ubuntu, where is setup.h?
-
- wxWorld Domination!
- Posts: 1339
- Joined: Wed Aug 03, 2005 8:10 am
- Location: BANGALORE, INDIA
- Contact:
Did you installed using the Synaptic package manager or what?
setup.h is used for compiling the wxWidgets libraries, ubuntu comes with pre-compiled libraries (I think so).
If you are compiling wxWidgets using the downloaded package, then the setup.h will be in your build folder, just search that directories where you extracted wxWidgets and created subfolder for compilation.
setup.h is used for compiling the wxWidgets libraries, ubuntu comes with pre-compiled libraries (I think so).
If you are compiling wxWidgets using the downloaded package, then the setup.h will be in your build folder, just search that directories where you extracted wxWidgets and created subfolder for compilation.
Hi,
Regards,
David
Make sure you have the correct .dev package. It should be libwxgtk2.8-dev.I installed it using synaptic.
I understand that, on Windows, people have to alter setup.h to get different builds. That isn't done in Linux: there's a script, wx-config, that lets you select which wx version you want your app to build against.But it tells me, that he needs the setup.h.(He marks #include <wx/wx.h> as an error and says, that wx/setup.h isn't found)(And I also needed it when I compiled it myself(on Windows))
Regards,
David
Not necessarily.DavidHart wrote:(..) on Windows, people have to alter setup.h to get different builds. That isn't done in Linux: there's a script, wx-config, that lets you select which wx version you want your app to build against. (..)
Using MinGW (gnu-gcc) you can edit <wxMSW>\build\msw\config.gcc (I suppose that like using other compiler tools) and build different versions for wxMSW. You can also use the desired command line parameters to build them. And, then, using the correct parameters, you can compile and build your app against any of those versions. Besides, you can use even a wx-config port for Windows, if you want.
The file setup.h needs to be edited (AFAIK) only if you want OpenGL support (wxGLCanvas is set to 0 as default, if I'm not wrong) or any other non-default feature, before building your wxWidgets libraries, and this must be done at least once for all platforms (including Linux).
Regards.
Misquotations are the only quotations that are never misquoted