Re: [gtk-list] Prob with compiling gtk+




steve <steve@ysgard.inka.de> writes:

> Hello,
> 
> I have a problem. When I try to compile the gtk+ toolkit for the gimp I get
> the following message:
> 
> checking whether the C compiler (gcc -g -O2 -DNDEBUG ) is a cross-compiler...
> yes
...

 
> I have no idea how to turn off the "cross-compiling" and I can't
> remember that I have installed something like a cross-compiler. Does
> anyone have an idea how to turn it off?
 
> Thanx!

Well, first of all, it might help to know what operating system,
etc. you're running under. Without that, it's hard to say much.
(The version of GTK might also be useful.)

What the above message means is that 'configure' was able to
compile a simple program, but couldn't run it.

One way of tracking this down would be to edit configure,
and find the test. It looks like:

   if { (eval echo configure:910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     ac_cv_prog_cc_works=yes
     # If we can't run a trivial program, we are probably using a cross compiler.
     if (./conftest; exit) 2>/dev/null; then
       ac_cv_prog_cc_cross=no
     else
       ac_cv_prog_cc_cross=yes
     fi
->   exit    
   else
     echo "configure: failed program was:" >&5
     cat conftest.$ac_ext >&5
     ac_cv_prog_cc_works=no
   fi
   rm -fr conftest*

and add an exit statement in the place I've marked with '->', to
prevent it from deleting the test program it has compiled.  You can
then try running the program 'conftest' yourself and see what happens.

Hope this helps,
                                        Owen



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