Forum Discussion
3 Replies
- Altera_Forum
Honored Contributor
I advanced in my exploration of this issue.
Here are key points of my investigations:- Setting, where the compiler options can be specified is located here: Project Properties --> Nios II Application Properties --> User flags:
- Options that contain the '=' sign (e.g. -std=c99) can't be set via GUI ... as interface merely reject such options !!! Perhaps tool bug
- The only location where it can be done (at least I've found only this way) is corresponding section in the makefile (fragment below)
- Altera_Forum
Honored Contributor
Below are the basic steps for the IPOPT compilation that should work on most systems. For special compilations and for some troubleshooting see Appendix 2.9 and consult the generic COIN-OR help page https://projects.coin-or.org/coinhelp before submitting a ticket or sending a message to the mailing list.
Create a directory where you want to compile IPOPT, for example $ mkdir $IPOPTDIR/build and go into this direcrory $ cd $IPOPTDIR/build Note: You can choose any location, including $IPOPTDIR itself, as the location of your compilation. However, on COIN-OR we recommend to keep the source and compiled files separate. Run the configure script $ $IPOPTDIR/configure One might have to give options to the configure script, e.g., in order to choose a non-default compiler, or to tell it where some third party code is installed, see Appendix 2.9. If the last output line reads ``configure: Main configuration of Ipopt successful'' then everything worked fine. Otherwise, look at the screen output, have a look at the config.log output files and/or consult Appendix 2.9. The default configure (without any options) is sufficient for most users that downloaded the source code for the linear solver. ---- - Altera_Forum
Honored Contributor
--- Quote Start --- Below are the basic steps for the IPOPT compilation that should work on most systems. For special compilations and for some troubleshooting see Appendix 2.9 and consult the generic COIN-OR help page https://projects.coin-or.org/coinhelp before submitting a ticket or sending a message to the mailing list .... --- Quote End --- Are you sure you aren't mistaken with thread ? The question was on how to set compiler options for nios2-elf-g++ compiler that is part of "Nios II Software Build Tools for Eclipse". The last one contain already all necessary tools for generating code for nios ii softprocessor. What do you mean exactly ? Abandon "Nios II Software Build Tools for Eclipse" and use 3rd part tools ?