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

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

Open
tom63005 opened this issue Dec 1, 2023 · 1 comment

Comments

@tom63005
Copy link

tom63005 commented Dec 1, 2023

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:
@RupertAvery
Copy link
Owner

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

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

2 participants