Forum Discussion
Altera_Forum
Honored Contributor
19 years ago<div class='quotetop'>QUOTE </div>
--- Quote Start --- <div class='quotetop'>QUOTE --- Quote End --- --- Quote Start --- Why do you want to compile program on Nios2?[/b] --- Quote End --- I want to avoid using cross compiler and emulator so I can avoid multiple errors in compilation, I want to let down the nios terminal too and communicate directly with the board via ssh and so I'll compile my apps under µClinux itself. My final goal will be to design my custom board and embed my system on(a webserver) so to be autonomous system.[/b] --- Quote End --- It is clear. You will compile on PC host and test your programs on nios2. Forget all about python,perl, and forth. Nor should you compile on nios2. If all the works are inside your lab, then you don't need ssh. It is easier and faster to use telnet. You can telnet your nios2 and get the files from your PC host via ftp. I don't use jtag download and terminal, too. ( I used them only to write the guide. ) It is much faster to use ftp or nfs. About compilation errors, you should find out where they come and resolve them. There is no big difference in the gcc itself, whether for i686 or nios2. Most problems used to be library and header. By the ways, did you get the buildroot toolchain running on Linux? You might develop and test your programs on PC linux first, and then port to nios2.