RupertAvery/et3400

Raspberry-Pi-2023:: missing in #include <sys/types.h> in -> /git/et3400/src/dev/memory_map.h

Opened this issue · 1 comments

I spent most of this morning trying to get the debug version to compile on a Raspberry-PI...

first, the QT5 libraries are misnamed in the repository - (maybe just a 2023 re-name convention) and the cmake is not installed by default.

#  apt-get install cmake-dbgsym cmake-qt-gui-dbgsym cmake
#  apt-get install qt5ct
#  apt-get install qtbase5-dev
#  apt-get install qtdeclarative5-dev

second, the "off_t" is undefined in memory_map.h
-thanks to @timothy Jones at: https://stackoverflow.com/questions/9073667/where-to-find-the-complete-definition-of-off-t-type/

all I had to do was to add the <sys/types.h> to the header file. After that , it will "make" with warnings and not errors.
-and the resulting executable will run.

pi@raspberrypi:~/git/et3400 $ head -10 /home/pi/git/et3400/src/dev/memory_map.h
#ifndef MEMORY_MAP_H
#define MEMORY_MAP_H

#include <sys/types.h>
#include <map>
#include "memory_mapped_device.h"

class MemoryMapManager
{
public:

Wow, that's a target I was not expecting. Glad you were able to get it to work.