hi
i was trying to cross-compile an app-"gstreamer" for my ARM box.
i configured the package like this:
./configure --host=arm-linux --disable-tests --disable-failing-tests --disable-examples LDFLAGS=-L/home/bayyavs/backup/popt-1.7/.libs/ CPPFLAGS=/home/bayyavs/backup/popt-1.7/
But while compiling,iam getting this error :
arm-linux-gcc : cannot specify -o with -c or -S and multiple compilations
A noticable point is that iam able to compile the same package with gcc. Only incase of cross compilation there is a problem. Plz help.
Regards,
Neo
Will you be able to post the
Will you be able to post the dump you get on giving the configure command. This would help me.
1. Also just look out whether you are missing an -c option when you configure it for ARM. As your configure script generates Makefiles, it may be possible that your CFLAGS or equivalent macro in your newly generated Makefile for ARM doesnot include -c option but rather has -o option only.
Rgds,
hlrprasad
the other way round
It is the other way round:
You cannot specify a name for 'the' output file (-o : name of output file) when compiling multiple source files and not link them together (-c : just compile or -S : compile input files to assembler).
Just -o without -c is ok, it is standard, if you don't want your programs called a.out .
configure created a bogus Makefile or just the CFLAGS are bad.
drupal bug
we found a drupal bug, it does not close unclosed bold text in postings :)
Your CPPFLAGS look wrong to me
Your CPPFLAGS look wrong; what you've written tells the C preprocessor to use "/home/bayyavs/backup/popt-1.7/" as an extra source file (almost certainly not what you want).
Try changing it to CPPFLAGS=-I/home/bayyavs/backup/popt-1.7/; this tells the C preprocessor to look in the directory "/home/bayyavs/backup/popt-1.7/" for extra include files.