Roger Mc Murtrie <[email protected]> writes: > Seem to be getting closer. > gprconfig --target=i386-apple-darwin10.2.0 > ...
ok. Now we just have to get gprbuild to do the same. > Based on the above I changed configure: Ah. you are using autotools. Highly not recommended; gprbuild can do everything you need. But you are just trying to build QtAda using the provided build structure, so you have no choice. Actually, you do have a choice; create a new build structure, using just gprbuild. I have not tried that yet for QtAda for Debian, but I plan to some day. > test -d gnat || mkdir gnat > # $GPRCONFIG -o gnat/config.cgpr --config=ada --config=c++ --batch > $GPRCONFIG --batch --target=i386-apple-darwin10.2.0 --config=Ada, \ > 2009,default,/opt/gnat-gpl-2009/bin/,GNAT > --config=C++,4.2.1,,/usr/local/bin/,G++ I have not tried this particular mode of specifying the compiler path in the config line. While it should work, there may be a bug. I always ensure the right compiler is first (or only) in PATH before running any build tools. > configure then produced a Makefile that includes: > gnat/config.cgpr: > test -d gnat || mkdir gnat > $(GPRCONFIG) -o gnat/config.cgpr --config=ada --config=c++ --batch \ > --target=i686-apple-darwin10 As you can see, your edit did not take effect. One of the many reasons not to use autotools. Most likely the problem is that you edited configure, rather than configure.ac, and something regenerated configure. Ah; that's not it. Notice in configure.ac this comment: # This code must be synchronized with the same code in the Makefile.am file. Followed by: $GPRCONFIG -o gnat/config.cgpr --config=ada --config=c++ --batch So you need to edit this line in both configure.ac and Makefile.am. Yuck. Change it to: $GPRCONFIG -o gnat/config.cgpr --target=i386-apple-darwin10.2.0 --config=ada --config=c++ --batch Then run 'autoreconf -i' (that's the command that regenerates configure etc), configure, and make. Please remember to report the gprbuild bug about the wrong default target. Note that a portable workaround for the gprbuild bug is for the gprconfig line in configure.ac to be: $GPRCONFIG -o gnat/config.cgpr --target=`gcc -dumpmachine` --config=ada --config=c++ --batch but that's not necessary in your case. -- -- Stephe _______________________________________________ qtada-users mailing list [email protected] http://box347.bluehost.com/mailman/listinfo/qtada-users_lists.qtada.com
