Thanks Vadim,
        Actually I had to:
> copy GPS plugin from <qtada>/gps into <gnat>/share/gps/plug-ins.
I tried your suggested T8 project file and it worked fine.
Also, in case I haven't already mentioned it, I am now using QT4.8.
I still have the "no selector "Button" for type "Q_Dialog_Button_Box'Class"" 
problem.
Best regards,
Roger


On 14/01/2012, at 11:02 PM, Vadim Godunko wrote:

> On 01/13/2012 08:26 AM, Roger Mc Murtrie wrote:
>> 
>> I am now using GPS 5.0.1 which is installed with 
>> gnat-2011-x86_64-apple-darwin10.2.0-bin (as I only just discovered).
>> However, I can't get GPS to recognize the amoc compiler.
>> In previous GPS versions amoc showed up in the Edit Project 
>> Properties/Languages dialog but I can't get this with my GPS 5 installation.
>> I have amoc.xml in both /usr/local/share/gprconfig and 
>> /usr/local/gnat/share/gprconfig.
>> I couldn't get gprconfig to recognise amos until amoc.xml was in 
>> /usr/local/gnat/share/gprconfig.
>> How can I fix this?
> You need to copy GPS plugin from <qtada>/share/gps into <gnat>/share/gps.
> 
> Latest GPS plugin has useful (but not documented) feature: it can run amoc 
> automatically if project file looks like below:
> 
> with "qt_gui";
> 
> project T8 is
> 
>   type Build_Modes is ("Application", "Metadata");
>   Build_Mode : Build_Modes := external ("BUILD_MODE");
> 
>   for Source_Dirs use (".", ".amoc");
> 
>   case Build_Mode is
>      when "Application" =>
>         for Main use ("main.adb");
>         for Object_Dir use ".objs";
>         for Exec_Dir use ".";
> 
>      when "Metadata" =>
>         for Languages use ("Amoc");
>         for Object_Dir use ".amoc";
>         for Source_Files use
>          ("my_widgets.ads",
>           "lcd_ranges.ads",
>           "cannon_fields.ads");
>   end case;
> 
>   package Compiler is
>      for Default_Switches ("Ada") use ("-g", "-gnat05");
>   end Compiler;
> 
>   package IDE is
>      for QtAda_Amoc_Invocation_Switch use "-XBUILD_MODE=Metadata";
>   end IDE;
> 
> end T8;
> 
> Such format of project file allows to have only one project file instead.


_______________________________________________
qtada-users mailing list
[email protected]
http://box347.bluehost.com/mailman/listinfo/qtada-users_lists.qtada.com

Reply via email to