Installing Ipopt, or other numerical optimizer, on TX2?

I would like to refresh this as I came up to the same problem with Jetson Nano:

  1. As @gabriel.giani mentioned, someone wrote a tutorial to build Ipopt (in Chinese but Google translate is sufficient) with copying config files.
  2. Only problem is, it kept throwing
    configure: error: cannot guess build type; you must specify one error after calling
    ./configure --prefix=/usr/local command.
  3. In addition to @linuxdev’s code, someone in an other topic recommended to run the same command as
    ./configure --prefix=/usr/local --build=unknown-unknown-linux and I managed to make and install afterwards calling it this way.

I hope this help others in case they need it.

Best wishes