[SOLVED]:SDL2.dll & pysdl2 error - self built ubuntu14.10 VM

Discussions about all things Bitcraze
Post Reply
lxrocks
Member
Posts: 31
Joined: Sat Feb 15, 2014 1:24 am

[SOLVED]:SDL2.dll & pysdl2 error - self built ubuntu14.10 VM

Post by lxrocks »

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.

Code: Select all

sudo apt-get install libsdl2-dev
sudo pip install pysdl2

Next when I ran

Code: Select all

python setup.py install 
the install failed and I got this error
running install_data
error: can't copy 'SDL2.dll': doesn't exist or not a regular file
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 :oops: by replacing SDL2.dll with README.md - just so the script can get past the error and install properly

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']),
cfclient now works. Just waiting for my Crazyflie 2.0 to arrive and I can start playing.
Last edited by lxrocks on Sat Jan 03, 2015 9:53 pm, edited 1 time in total.
dbrgn
Member
Posts: 51
Joined: Tue Dec 16, 2014 9:42 pm

Re: cflcient:SDL2.dll & pysdl2 error - self built ubuntu14.1

Post by dbrgn »

I stumbled over the same issue this evening. Pull request is already here: https://github.com/bitcraze/crazyflie-c ... n/pull/133
marcus
Bitcraze
Posts: 659
Joined: Mon Jan 28, 2013 7:02 pm
Location: Sweden
Contact:

Re: cflcient:SDL2.dll & pysdl2 error - self built ubuntu14.1

Post by marcus »

The fix for this is merged now.

/Marcus
Post Reply