Closed luto65 closed 5 months ago
short update:
however, i have not yet found out how to append that to all compilations...
you could try with https://cmake.org/cmake/help/latest/variable/CMAKE_LANG_FLAGS.html
cmake -S . -B build -G Xcode -DCMAKE_CXX_FLAGS="-I/Library/Frameworks/SDL2.framework/Headers -F/Library/Frameworks"
thankyou @NeroBurner now i get another error:
Undefined symbols for architecture x86_64: "lv_anim_ll", referenced from: lv_anim_core_init in libsim-base.a(lv_anim.o) _anim_task in libsim-base.a(lv_anim.o) _anim_mark_list_change in libsim-base.a(lv_anim.o) _lv_anim_start in libsim-base.a(lv_anim.o) _lv_anim_del in libsim-base.a(lv_anim.o) _lv_anim_del_all in libsim-base.a(lv_anim.o) _lv_anim_get in libsim-base.a(lv_anim.o) ...
looks to me like not-exported symbols. Does mac need to mark headers as exported like MSVC does?
maybe https://github.com/InfiniTimeOrg/InfiniSim/issues/25 helps?
This one has the same problem: https://github.com/InfiniTimeOrg/InfiniSim/issues/127
is it OK to close this one as duplicate?
dear all, i close this build since at the end the solution has been to
dear all, cmake --build build -j4 [ 11%] Building C object CMakeFiles/sim-base.dir/lv_drivers/indev/mouse.c.o In file included from /Users/bingo/InfiniSim/lv_drivers/indev/keyboard.c:9: /Users/bingo/InfiniSim/lv_drivers/indev/keyboard.h:36:10: fatal error: 'SDL2/SDL.h' file not found
include MONITOR_SDL_INCLUDE_PATH
however SDL2 are properly installed and the following test works fine g++ main.cpp -o main -I/Library/Frameworks/SDL2.framework/Headers -F/Library/Frameworks -framework SDL2
include
include
int main(int argc, char **argv){ if (SDL_Init(SDL_INIT_EVERYTHING) != 0){ std::cout << "SDL_Init Error: " << SDL_GetError() << std::endl; return 1; } SDL_Quit(); return 0; }
Thanks.