udacity / CarND-MPC-Project

CarND Term 2 Model Predictive Control (MPC) Project
MIT License
280 stars 1.2k forks source link

make error #33

Closed hxlee309 closed 5 years ago

hxlee309 commented 6 years ago

I have installed all the required dependencies. When I typed "make" in the "build" folder, I got the following error:

[100%] Linking CXX executable mpc /usr/local/lib/libipopt.so: undefined reference to dpotrf_' /usr/local/lib/libipopt.so: undefined reference todgemm' /usr/local/lib/libipopt.so: undefined reference to `dnrm2' /usr/local/lib/libipopt.so: undefined reference to dscal_' /usr/local/lib/libipopt.so: undefined reference todpotrs' /usr/local/lib/libipopt.so: undefined reference to `dtrsm' /usr/local/lib/libipopt.so: undefined reference to daxpy_' /usr/local/lib/libipopt.so: undefined reference todgetrf' /usr/local/lib/libipopt.so: undefined reference to `dcopy' /usr/local/lib/libipopt.so: undefined reference to idamax_' /usr/local/lib/libipopt.so: undefined reference todsyrk' /usr/local/lib/libipopt.so: undefined reference to `dasum' /usr/local/lib/libipopt.so: undefined reference to dsyev_' /usr/local/lib/libipopt.so: undefined reference todmumpsc' /usr/local/lib/libipopt.so: undefined reference to `dgetrs' /usr/local/lib/libipopt.so: undefined reference to ddot_' /usr/local/lib/libipopt.so: undefined reference todsymv' /usr/local/lib/libipopt.so: undefined reference to `dgemv' collect2: error: ld returned 1 exit status CMakeFiles/mpc.dir/build.make:120: recipe for target 'mpc' failed make[2]: [mpc] Error 1 CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/mpc.dir/all' failed make[1]: [CMakeFiles/mpc.dir/all] Error 2 Makefile:83: recipe for target 'all' failed make: *** [all] Error 2

Any help will be appreciated.

Thanks,

Hanxiang

mvirgo commented 5 years ago

I would suggest going back to check the installation for ipopt - it looks like it did not completely link everything correctly. Otherwise, the next best solution would be to use the new project Workspace in the classroom, which has ipopt pre-installed.

mvirgo commented 5 years ago

No further responses this past week, so I'm guessing you had this resolved already. Feel free to re-open if needed.