CanberraUAV / cuav

CanberraUAV OBC code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Need to update install instructions

rmackay9 opened this issue · comments

When I tried to follow the install instructions for Ubuntu (on WSL2) here I ran into the following errors

  • sudo apt-get install python-pip libusb-1.0.0-dev libdc1394-22-dev
    • E: Unable to locate package libdc1394-22-dev
    • Maybe this package should be updated to "libdc1394-dev" according to some random googling
  • sudo apt-get install libjpeg-turbo8-dev python-opencv python-wxgtk3.0
    • E: Unable to locate package python-opencv
    • E: Unable to locate package python-wxgtk3.0
    • E: Couldn't find any package by glob 'python-wxgtk3.0'
    • Maybe it is not "python-opencv" but rather "opencv-python" and maybe it should be installed with pip3? e.g. "pip3 install --upgrade opencv-python"
  • pip install numpy future gooey
    • ERROR: Failed building wheel for wxpython
    • maybe this command needs to be added to the list, "sudo apt-get install libgtk-3-dev"

When attempting to run, "python geosearch.py " the application started but this error appeared in the console, "could not find module piexif" so maybe we also need, "pip3 install --upgrade piexif"

There may also be an issue when using Ubuntu 22.x that "python-wxgtk3.0" is not found.

Same also with Debian 10 (buster), which I'm pretty sure is what I used to run it with. I just tried to get this up and running with buster in a docker container and I've hit a few other snags too:

  • maybe the libjpeg62-turbo-dev package replaces the libjpeg-turbo8-dev? I remember there was some confusion back in the day about libjpeg-turbo / libturbo-jpeg or something like that (yes, I realise that's totally unhelpful - unless it manages to jog someone's memory)
  • after that, pip install numpy future colored==1.3.4 opencv-python==3.4.0.14 got things to the point where pip install cuav ran without complaining.
FROM python:2.7                                                                 
                                                                                
RUN apt-get update && \
   apt-get install -y \
   python-pip libusb-1.0.0-dev \
   libdc1394-22-dev \
   libjpeg62-turbo-dev \
   cmake \
   python-opencv python-wxgtk3.0 \
   && rm -rf /var/lib/apt/lists/*

RUN apt-get install -y build-essential                
#RUN apt-get install -y qtbase5-dev  # no joy, hmm
#RUN apt-cache search qt  # no joy! source.list problem?
RUN cat /etc/os-release  # definitely buster

RUN pip install --upgrade pip
RUN pip install numpy future colored==1.3.4 opencv-python==3.4.0.14
RUN pip install cuav