On Fri, Dec 12, 2008 at 9:08 AM, Verge <[email protected]> wrote: > > > 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.
There could be some stupidity in the library linking script, but I'd need to see what's happening. > 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. So, are you cross compiling? Is the host you're on a sparc? Does gcc == sparc-linux-gcc for you? Can you compile other programs using sparc-linux-gcc? For mesa, there's really not much magic to cross compiling besides setting up the right compiler to use. In configure a couple decisions are made based on what platform you say you're building for, but the build really just depends on the compiler doing the right thing for us. Again, could you please show the command that's failing? -- 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
