Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fatal error: 'uWS/uWS.h' file not found #14

Closed
rchavezj opened this issue Aug 26, 2017 · 11 comments
Closed

fatal error: 'uWS/uWS.h' file not found #14

rchavezj opened this issue Aug 26, 2017 · 11 comments

Comments

@rchavezj
Copy link

I didn't touch any of main.cpp and I notice this error.

@dominikandreas
Copy link

dominikandreas commented Aug 26, 2017

You're missing the websockets library. Look inside the install_ubuntu.sh. it states:

git clone https://github.com/uWebSockets/uWebSockets 
cd uWebSockets
# git checkout e94b6e1
mkdir build
cd build
cmake ..
make 
sudo make install

Not sure why the checkout command is commented out, you may need that for compatibility with the code in main.cpp

@rchavezj
Copy link
Author

rchavezj commented Aug 26, 2017

Does it matter where we manage uWebSockets folder if we have both paths (/usr/local/include and /usr/include)? I have a Mac computer

@dominikandreas
Copy link

Generally it doesn't matter as long as the sources can be found by your toolchain.

@rchavezj
Copy link
Author

toolchain? I googled an online setup and was wondering if this is the correct link to follow.

https://esp-idf.readthedocs.io/en/v2.0/macos-setup.html

@dominikandreas
Copy link

dominikandreas commented Aug 26, 2017

Sorry, with toolchain I meant whatever set of tools you use for compiling. Your compiler needs to be able to find the sources you're including. If you're using a mac, check out install-mac.sh and see if that works for you

@rchavezj
Copy link
Author

Thank you! After Setting up install-mac.sh on my terminal, everything compiles.

@rchavezj
Copy link
Author

Also I notice I didn't have to call

git clone https://github.com/uWebSockets/uWebSockets
cd uWebSockets
git checkout e94b6e1

Is this something I should worry about even though my code compiled?

@dominikandreas
Copy link

dominikandreas commented Aug 26, 2017 via email

@253153
Copy link

253153 commented Jun 28, 2018

@rchavezj Were you ever able to fix this issue? I'm running into it in XCode.

@rchavezj
Copy link
Author

I'm sorry but I haven't touched the code in almost a year. I believe @dominikandreas was right tho because I remember the program worked eventually. Gluck @deniskrop

@bobo7727
Copy link

Install uWebSockets

See Detail: https://github.com/udacity/CarND-Path-Planning-Project/blob/master/install-ubuntu.sh

sudo apt-get install libuv1-dev libssl-dev libz-dev
git clone https://github.com/uWebSockets/uWebSockets
cd uWebSockets
git checkout e94b6e1 #Important,CMakeList.txt in this commit.
mkdir build
cd build
cmake ..
make
sudo make install
sudo ln -s /usr/lib64/libuWS.so /usr/lib/libuWS.so #Important, link libuWS.so
sudo rm -r uWebSockets

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants