udacity / CarND-MPC-Project

CarND Term 2 Model Predictive Control (MPC) Project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

uWebSockets e94b6e1 causes compiler error

bertciccone opened this issue · comments

(Duplicate of udacity/sdc-issue-reports#1251)

NodehError.txt
gcc 7.2.0 already installed
GNU Make 4.2.1
cmake version 3.10.0

Hello, I have not been able to resolve a compiler error that occurs while building main.cpp for SDC Project 5 MPC. I run install-mac.sh and uWebSockets compiles, but appears to have an incompatibility that I cannot figure out how to resolve. Please find NodehError.txt attached showing the install-mac.sh log and the compiler error log. I am thinking that one of the uWebSockets dependencies are not pulled over correctly?
My repository is at https://github.com/bertciccone/CarND-MPC-Project
NodehError.txt
I would appreciate any suggestions for what to try next. Thank you!

Hi Bert,

Please change around the order of your #include statements to the below (these are all the ones you currently have, just re-ordered):

#include <math.h>
#include <uWS/uWS.h>
#include <chrono>
#include <iostream>
#include <thread>
#include <vector>
#include "Eigen-3.3/Eigen/Core"
#include "Eigen-3.3/Eigen/QR"
#include "MPC.h"
#include "json.hpp"