Re: [anjuta-list] Couple of problems with Anjuta



Hi,


Le 27/02/2016 16:04, Igor Korot a écrit :
You probably misunderstood my comment.
My wxWidgets is compiled in 2 different directories - one against GTK+2 and one
against GTK+3. So its like this:

wxWidgets -> GTK+2 build
wxWidgets -> GTK+3 build

And I want to switch between those different configuration. So in
essense I need the
configuration of the project to work.

I still don't understand your setup. If you compiled two versions of WxWidgets, you still have to install them.

Then, if it's planned in WxWidgets itself, you can install both versions at the same time.

If not, it's always possible to install them in a different directory, using the --prefix option of the configure script.

All this has nothing to do with Anjuta.


For the quick test I can try to install wxWidgets GTK+2 build and try it
but I really prefer to work with the project configuration.

What does it mean exactly to work with the project configuration?

In Anjuta, you can have several configurations for one project. Each configuration has a different build directory and a different set of options that you can pass to the configure script and that's all.

By default, you have some predefined configurations (Debug, Profile, Optimize...) with a directory and a default set of options. You can create new configurations, so eventually a Gtk+2 and Gtk+3 configuration. Anjuta will only create a new directory and use some user define option when running the configure script.

It's up to you to make sure that you use a different version of WxWiget based on these options. It could needs that you write a custom configure.ac and Makefile.am file.

The one provided by the WxWidget project wizard don't do that for sure but it defines an option --wx-config in the configure script. Perhaps you can do what you want by using this option and setting it to the path of wx-config of the installed version compiled with Gtk+2 or of the installed version compiled with Gtk+3.


Everything should be configurable - otherwise it defeats the purpose of IDE.

I haven't exactly the same definition. For me an IDE should make common things easier, to do everything, you have to write your build file yourself.


Let's say my project is called test.
So in the project window I have:
Root branch called "test".
Under it I have 2 branches: po and src - I set up project to have
internationalization.
Under the src branch I have a branch called test.
Under the branch called test I have my source and header files.
So for which branch of the project tree I should change the properties?
I'm asking because I can do that for all branches: root, src and test.

You need to change that on the target. I suppose that it's what you call src/test. This branch src/test should have a different icon that src and po and the properties dialog must be named Target properties and not Group properties.

But, note that such settings is valid for all configurations, so it wouldn't allow you to select between a build using Gtk+2 or Gtk+3. Moreover it has nothing to do with project template or configuration handling.


Best Regards,

Sébastien


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]