Ah, really sorry. Made a stupid mistake.
Ofcourse, what I kept as an input was infact the compiler. What I meant  to
write was

./configure --target=sparc-linux --host=sparc-linux

I am trying to make mesa make libraries for sparc-linux architecture.
libraries like glut (libglut, libGL etc). Basically, all those libraries
which the demos in mesa would make use of.

THe solution which I thought I could implement was to tell mesa that it's
making programs for a sparc-linux architecture.

Now, the problem I have is, 
I can use gcc compiler to successfully compile and link one of the demos;
and also run d resulting executable flawlessly.
But when I try to make use of sparc-linux-gcc to compile and link the demos
(.c source code), I could only manage to compile the .c source file, but
unable to link it. It seems o have problems with the libraries.

I include the path, but then it says the library are not compatible, thus it
can't read it.

SO I figured having a sparc-linux version of the libraries from the
beginning (telling mesa via configure) before 'make' that when it's time to
'make' it would know it has to aim for the sparc-linux arrchitecture.

I hope you all understand

Thanks in advance 



Dan Nicholson-2 wrote:
> 
> On Fri, Dec 12, 2008 at 4:49 AM, Verge <[email protected]> wrote:
>>
>> ./configure --target=sparc-linux-gcc --host=sparc-linux-gcc
>>
>> The host variable I included, due to desperation
> 
> This isn't quite the way that these parameters work. They tell
> configure your system type, whereas you're trying to tell it your
> compiler. So, --host=i686-pc-linux-gnu says what type of system I will
> run the compiled binaries on. In turn, when searching for the compiler
> to use, it will try to find i686-pc-linux-gnu-gcc.
> 
> FYI, --target is only meaningful if you're building a compiler, even
> though some people abuse it in their configure scripts. Whereas --host
> says what kind of system you will run the programs on, --target says
> what kind of system the programs produced by these programs will run
> on. If that makes sense. Anyway, it's harmless to set --target as you
> like, but --host is the important one here.
> 
> So, are you trying to cross compile mesa or are you just trying use a
> different compiler? If you just want to specify the compiler, just
> `export CC=sparc-linux-gcc' before you run ./configure.
> 
>> Dan Nicholson-2 wrote:
>>>
>>> On Thu, Dec 11, 2008 at 12:07 PM, Verge <[email protected]> wrote:
>>>>
>>>> As requested.
>>>> The errors were so much, couldn't dispaly it all.
>>>>
>>>> BY the way, I obtained this errors when I try to gmake Mesa after
>>>> ./configuring it to sparc-linux target.
>>>
>>> What arguments did you give to configure?
>>>
>>>> Paste of the errors.
>>>>
>>>> fakeglx.c: In function `Fake_glXIsDirect':
>>>> fakeglx.c:1663: error: `ctx' undeclared (first use in this function)
>>>> fakeglx.c:1664: error: `dpy' undeclared (first use in this function)
>>>> fakeglx.c:1665: error: dereferencing pointer to incomplete type
>>>
>>> Is this the very first error that shows up? Could you also show the
>>> command make is running when this error is produced?
>>>
>>> Yes, this is the first set of errors that shows up. And how can I show
>>> the
>>> command make is running when the error is produced?
> 
> Log all the messages from running make. Make shows the commands it
> runs as it builds along. If you're not doing a parallel build, then it
> will be the command just before these errors. It should be something
> like
> 
> gcc -c <bunch of switches> fakeglx.c -o fakeglx.o
> 
> --
> Dan
> 
> ------------------------------------------------------------------------------
> SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas,
> Nevada.
> The future of the web can't happen without you.  Join us at MIX09 to help
> pave the way to the Next Web now. Learn more and register at
> http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
> _______________________________________________
> Mesa3d-dev mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mesa3d-dev
> 
> 

-- 
View this message in context: 
http://www.nabble.com/mesa-libraries-%28glut---co.%29-for-sparc-linux-target-tp20816102p20979665.html
Sent from the mesa3d-dev mailing list archive at Nabble.com.


------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to