Re: [anjuta-list] How to: Configure multiple compile targets



Hi,


On 24/10/2012 06:16, Arnel A. Borja wrote:
On Monday, 22 October, 2012 10:29 PM, BSquared wrote:
I am looking for some documentation or guidance in setting up multiple
targets (ie. Linux, win32 and mac) in Anjuta.  I believe I have to
provide separate PKG_CONFIG_PATH variables and toolchains.
Go to "Build -> Configure Project..." in the menu. Select one of the
configurations as sacrifice for Windows :D (I used Optimized).

In my idea, you shouldn't need to sacrifice one configuration for Windows because the combo box should be editable. But I have just seen that it doesn't work on the master. It's a bug, I will check why it happens.


In "Configure Options:", add "'PKG_CONFIG_LIBDIR='
'PKG_CONFIG_PATH=/home/kyoushuu/Devel/MinGW/lib/pkgconfig:/home/kyoushuu/Devel/MinGW/share/pkgconfig'
--build=x86_64-pc-linux-gnu --host=i686-w64-mingw32". Set appropriate
values for PKG_CONFIG_PATH, --build and --host. Make sure to add the
environment variables to "Configure Options" instead of "Environment
Variables"; otherwise your other configurations will be affected and
they will be all compile for Windows, "Environment Variables" are global.

Do you think it makes more sense to have the environment variables local to each configuration?

I have never tried to compile a program for Windows from Anjuta, I have thought that it is more complex and that we need a special plugin for doing it. There was a scratchbox plugin but I'm not sure it is still working.

What advantages do you see if we write a plugin for this?


Regards,

Sébastien


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