This is an Application to Create an Mapview in SDL2 with libosmscout

Sorry for my bad English !

This is an Test Project for the Big Idea of the CarPC. I will Test Functions and Speed The Project is Build with Codelite and MSYS2 on Windows 7 64Bit but as 32 Bit Version because Raspberry is also 32 Bit.

The run CMake Command in IDE do not work. Please Use Custom Target CMake or Commandline to Build.

the Env Var SDL2DIR=D:/Mine/OpenSource/SDL2-2.0.6-mingw/i686-w64-mingw32/ OSMSCOUT_PATH=D:/Mine/OpenSource/libosmscout-code/build/MinGW/Release Is use to find SDL and OSMScout with Cmake in msys and Windows Custom install path wenn use Linux Install path you don't need it.

Build LibOsmscount cmake -E env CXXFLAGS="-O2" cmake .. -G"MSYS Makefiles" -DCMAKE_INSTALL_PREFIX=/F/Mine/OpenSource/libosmscout-code/build/MinGW/Release -DOSMSCOUT_ENABLE_SSE=ON cmake -E env CXXFLAGS="-O2" cmake --build . --target install --config Release cmake --build . --target install --config Debug

Auto Build an Test


Day Night Toogle

void DBThread::ToggleDaylight() { { QWriteLocker locker(&lock);

if (!isInitializedInternal()) {
qDebug() << "Toggling daylight from " << daylight << " to " << !daylight << "...";
stylesheetFlags["daylight"] = daylight;



qDebug() << "Toggling daylight done."; }

/ new map style may require more data types. when tile is marked as "completed" // such data types are never loaded into these tiles // so we mark them as "incomplete" to make sure that all types for new stylesheet are loaded mapService->InvalidateTileCache(); osmscout::StyleConfigRef newStyleConfig=std::make_shared<osmscout::StyleConfig>(typeConfig);

for (const auto& flag : stylesheetFlags) { newStyleConfig->AddFlag(flag.first,flag.second); }

Karte bewegen

SDL -> x0 x100 y0


karte nach oben heißt Bitamp nach unten aber karten für nach oben laden

&& (dx > 5 || dy > 5)

SDL_Texture *texture = SDL_CreateTexture(renderer, SDL_PIXELFORMAT_ARGB8888, SDL_TEXTUREACCESS_STREAMING, width, height);

void pixels; int pitch; SDL_LockTexture(texture, NULL, &pixels, &pitch); cairo_surface_t cairo_surface = cairo_image_surface_create_for_data( pixels, CAIRO_FORMAT_ARGB32, width, height, pitch);



Switch to QT-Frame work ?

wget chmod +x ./ sysroot

Text to Speak echo "Just what do you think you're doing, Dave?" | festival --tts local C:\Program Files (x86)\eSpeak NG

Threading C++ lesen

Raspberry Typ ermitteln cat /proc/cpuinfo | grep Revision | cut -d ':' -f 2 | sed -e "s/ //g"