Forum Discussion
Altera_Forum
Honored Contributor
21 years agoabout compilers
I'm using the nios1 for a mp3-player,I'm building the software, I use the MAD-0.11.0b software package from the internet! when I want to compile it... http://forum.niosforum.com/work2/styl...
Altera_Forum
Honored Contributor
21 years agoHi Huck,
> So if there is an --host option :./configure --host=nios-elf Yes, this is the option you will need. The concept is the same: you need to add a "nios" entry to the config.sub script. This is what configure will use when is checks for all of those magic options ;-) Basically, it will attempt to use nios-elf-xxx when performing its tests. E.g. nios-elf-gcc, nios-elf-ld, etc. Once the configure script knows what "basic machine" it's using (and therefore what prefix to use for the binutils/gcc excutables), it will need to know the correct include and library paths. This is the reason you need to set CPPFLAGS and LDFLAGS in your environment. For other architectures, such as powerpc-linux, you normally don't need to do this, but for nios, you most likely will. Since you're using Nios-32 (rather than Nios II), you will probably do well to use the cdk4nios as Brendan suggested ... or bite the bullet and upgrade to Nios II ;-) Good Luck, --Scott