You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Carefully written Issues are more likely to be given priority. 丁寧に記述された報告は優先して対応される可能性が高くなります。
ATM the lib seems to work for Arduino OR Linux Support with SDL2. But with projects that are based on Arduino C Code and get ported to Linux via portduino (https://github.com/meshtastic/framework-portduino) you run into a problem when both are defined and needed. I think its quite unusable to have a ARDUINO defines and SDL2 because its a native Linux lib. So your lib works perfect if you just have one of its tragets defined. I the case you want both ARDUINO & SDL you run into problem with the .pio/libdeps/native/LovyanGFX/src/lgfx/v1/platforms/common.hpp because for elif hits first ARDUINO define and never includes SDL2. The build that wants SDL2 as Arduino under Linux fails then because wrong headers.
Environment ( 実行環境 )
MCU or Board name: Linux Native X86 & ARM
Panel Driver IC: SDL2 X11
Bus type: [other]
LovyanGFX version: [latest develop|other]
FrameWork version: [Portdunio]
Build Environment: [PlatformIO|Eclipse]
Operating System: [Linux|macOS]
Problem Description ( 問題の内容 )
If we got a Situation where its a ARDUINO build for linux with the portdunio lib that wants to use also SDL2 the include should be made before ARDUINO
Expected Behavior ( 期待される動作 )
Use of including common.hpp for SDL sould be possible even if a define for ARDUINO is set.
Actual Behavior ( 実際の動作 )
If a define for ARDUINO is used a SDL2 lib can't because the common.hpp for arduino ist included.
Thank you are right !!! I checked it now againt the develop branch and the problem has gone. Sorry I had to check that by myself before but was focused on the version meshtastic used.
Carefully written Issues are more likely to be given priority.
丁寧に記述された報告は優先して対応される可能性が高くなります。
ATM the lib seems to work for Arduino OR Linux Support with SDL2. But with projects that are based on Arduino C Code and get ported to Linux via portduino (https://github.com/meshtastic/framework-portduino) you run into a problem when both are defined and needed. I think its quite unusable to have a ARDUINO defines and SDL2 because its a native Linux lib. So your lib works perfect if you just have one of its tragets defined. I the case you want both ARDUINO & SDL you run into problem with the .pio/libdeps/native/LovyanGFX/src/lgfx/v1/platforms/common.hpp because for elif hits first ARDUINO define and never includes SDL2. The build that wants SDL2 as Arduino under Linux fails then because wrong headers.
Environment ( 実行環境 )
Problem Description ( 問題の内容 )
If we got a Situation where its a ARDUINO build for linux with the portdunio lib that wants to use also SDL2 the include should be made before ARDUINO
Expected Behavior ( 期待される動作 )
Use of including common.hpp for SDL sould be possible even if a define for ARDUINO is set.
Actual Behavior ( 実際の動作 )
If a define for ARDUINO is used a SDL2 lib can't because the common.hpp for arduino ist included.
Steps to reproduce ( 再現のための前提条件 )
The text was updated successfully, but these errors were encountered: