Linux MIPS Architecture development
 help / color / mirror / Atom feed
From: Ulrich Eckhardt <eckhardt@satorlaser.com>
To: linux-mips@linux-mips.org
Subject: Re: GD Library on MIPS Processor
Date: Fri, 29 Apr 2005 12:09:33 +0200	[thread overview]
Message-ID: <200504291209.34016.eckhardt@satorlaser.com> (raw)
In-Reply-To: <005201c54c93$64a5fb30$3c67a8c0@netsity.com>

Inpreet Singh wrote:
> I want to use gd library on MIPS processor. Due to limited memory on mips,
> I cannot compile gd library on it. So I need to compile it on linux intel
> processor and transfer executable files on MIPS. I have compiled gd library
> on intel linux and successfully tested it. But how to compile gd library
> for MIPS processor? I tried to configure it with these commands
> 1. ./configure --host=mips-unknown-linux-gnu
> 2. ./configure --host=mips-linux
> 3. ./configure --host=mips-linux --build=mips-linux --target=mips-linux
> 4. ./configure --host=mips-linux --build=mips-linux

If you're building on Linux/x86, using '--build=mips-linux' is obviously 
completely bogus.

> but none of them had worked for me. Whenever after compiling I place my
> executables and try to test them, they fails to return results.

This could have another reason, see below...

> gd library after configure command dynamically generates Makefile. Now
> method to test your application which you have to write in a c program is
> so make this program with this Makefile. Lets suppose you make an example
> and name it as test.c so what you have to do is enter test.c in this
> dynamically generated Makefile and write command make test this will
> outputs in test executable file. Which we can run using command ./test on
> our command prompt.
>
> Whenever I perform this task it always shows errors:
> **************************************************************
> /launchpad # ./gddemo
> ./gddemo: 1: Syntax error: "(" unexpected

If this program gives this message, then it is running. Why it gives it is a 
totally unrelated thing. 

 Now, what could also be the case is that you didn't grab the executable but a 
script. Autotools usually generate a script in the builddir that setup the 
runtime linker so it finds the (not yet installed) libraries and then calls 
the executable inside the hidden .lib directory.

If this all fails, create a minimal hello-world and compile it with
'mips-linux-gcc -Wall -o hw hello.c' and try that on the host machine.

Uli

      reply	other threads:[~2005-04-29 10:08 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-28 14:50 GD Library on MIPS Processor Inpreet Singh
2005-04-29  6:51 ` Stuart Longland
2005-04-29  6:51   ` Stuart Longland
2005-04-29  8:13   ` Inpreet Singh
2005-04-29 10:09     ` Ulrich Eckhardt [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200504291209.34016.eckhardt@satorlaser.com \
    --to=eckhardt@satorlaser.com \
    --cc=linux-mips@linux-mips.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox