[SOLVED]:SDL2.dll & pysdl2 error - self built ubuntu14.10 VM
Posted: Sat Dec 13, 2014 8:46 pm
Just thought I would share this. Built my own Ubuntu 14.10 vm
and hit a couple of snags.
The python pysdl2 module would not load - fixed this by instllaing the sdl2 dev library and python module.
Next when I ran
the install failed and I got this error
cfclient now works. Just waiting for my Crazyflie 2.0 to arrive and I can start playing.
and hit a couple of snags.
The python pysdl2 module would not load - fixed this by instllaing the sdl2 dev library and python module.
Code: Select all
sudo apt-get install libsdl2-dev
sudo pip install pysdl2
Next when I ran
Code: Select all
python setup.py install
a DLL file is windows binary so it did not make sense on a linux install - so I edited line 66 in setup.py and applied the following quick and dirty kluge by replacing SDL2.dll with README.md - just so the script can get past the error and install properlyrunning install_data
error: can't copy 'SDL2.dll': doesn't exist or not a regular file
Code: Select all
bitcraze@bitcraze:~/projects/crazyflie-clients-python$ diff setup.py.orig setup.py
61c61
< data_files=[('', ['README.md', 'LICENSE.txt', 'SDL2.dll']),
---
> data_files=[('', ['README.md', 'LICENSE.txt', 'README.md']),