Hi,
First thanks for your work, very fine for VR flying ;-)
I would like to build your software to extend online tile maps support .
Under Win10 with mingw64, and regarding your wiki https://github.com/fpw/avitab/wiki/Compiling,
I succeded in building :
-mupdf: after pulled it from git and patched Makethird
-curl: by downloading the curl-7.61.1.zip version (since there is no configure script present inside the git pulled version) and using your configure parameter described in your lib/curl-config.
then I tried to build your plugin, here is the result of "cmake .." in build directory :
$ git describe --tags
v0.2.5
$ cd build
$ cmake ..
-- The C compiler identification is GNU 8.2.0
-- The CXX compiler identification is GNU 8.2.0
System is unknown to cmake, create:
Platform/MINGW64_NT-10.0 to use this system, please send your config file to [email protected] so it can be added to cmake
-- Check for working C compiler: /mingw64/bin/cc.exe
System is unknown to cmake, create:
Platform/MINGW64_NT-10.0 to use this system, please send your config file to [email protected] so it can be added to cmake
-- Check for working C compiler: /mingw64/bin/cc.exe -- works
-- Detecting C compiler ABI info
System is unknown to cmake, create:
Platform/MINGW64_NT-10.0 to use this system, please send your config file to [email protected] so it can be added to cmake
-- Detecting C compiler ABI info - done
-- Detecting C compile features
System is unknown to cmake, create:
Platform/MINGW64_NT-10.0 to use this system, please send your config file to [email protected] so it can be added to cmake
System is unknown to cmake, create:
Platform/MINGW64_NT-10.0 to use this system, please send your config file to [email protected] so it can be added to cmake
System is unknown to cmake, create:
Platform/MINGW64_NT-10.0 to use this system, please send your config file to [email protected] so it can be added to cmake
-- Detecting C compile features - done
-- Check for working CXX compiler: /mingw64/bin/g++.exe
System is unknown to cmake, create:
Platform/MINGW64_NT-10.0 to use this system, please send your config file to [email protected] so it can be added to cmake
-- Check for working CXX compiler: /mingw64/bin/g++.exe -- works
-- Detecting CXX compiler ABI info
System is unknown to cmake, create:
Platform/MINGW64_NT-10.0 to use this system, please send your config file to [email protected] so it can be added to cmake
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
System is unknown to cmake, create:
Platform/MINGW64_NT-10.0 to use this system, please send your config file to [email protected] so it can be added to cmake
System is unknown to cmake, create:
Platform/MINGW64_NT-10.0 to use this system, please send your config file to [email protected] so it can be added to cmake
System is unknown to cmake, create:
Platform/MINGW64_NT-10.0 to use this system, please send your config file to [email protected] so it can be added to cmake
System is unknown to cmake, create:
Platform/MINGW64_NT-10.0 to use this system, please send your config file to [email protected] so it can be added to cmake
System is unknown to cmake, create:
Platform/MINGW64_NT-10.0 to use this system, please send your config file to [email protected] so it can be added to cmake
-- Detecting CXX compile features - done
-- Found CURL: /usr/local/lib/libcurl.a (found version "7.61.1")
-- Configuring done
-- Generating done
-- Build files have been written to: /c/Dev/XPlaneDev/avitab2/build
Then I try despite the problem of plateform detection of cmake to build the plugin :
$ make
Scanning dependencies of target lvgl
[ 0%] Building C object lib/CMakeFiles/lvgl.dir/lvgl/lv_core/lv_group.c.obj
[ 1%] Building C object lib/CMakeFiles/lvgl.dir/lvgl/lv_core/lv_indev.c.obj
[ 1%] Building C object lib/CMakeFiles/lvgl.dir/lvgl/lv_core/lv_obj.c.obj
[ 2%] Building C object lib/CMakeFiles/lvgl.dir/lvgl/lv_core/lv_refr.c.obj
[ 2%] Building C object lib/CMakeFiles/lvgl.dir/lvgl/lv_core/lv_style.c.obj
[ 3%] Building C object lib/CMakeFiles/lvgl.dir/lvgl/lv_core/lv_vdb.c.obj
[ 3%] Building C object lib/CMakeFiles/lvgl.dir/lvgl/lv_draw/lv_draw_vbasic.c.obj
[ 4%] Building C object lib/CMakeFiles/lvgl.dir/lvgl/lv_draw/lv_draw.c.obj
[ 4%] Building C object lib/CMakeFiles/lvgl.dir/lvgl/lv_draw/lv_draw_rbasic.c.obj
[ 5%] Building C object lib/CMakeFiles/lvgl.dir/lvgl/lv_hal/lv_hal_disp.c.obj
[ 5%] Building C object lib/CMakeFiles/lvgl.dir/lvgl/lv_hal/lv_hal_indev.c.obj
[ 5%] Building C object lib/CMakeFiles/lvgl.dir/lvgl/lv_hal/lv_hal_tick.c.obj
[ 6%] Building C object lib/CMakeFiles/lvgl.dir/lvgl/lv_misc/lv_fonts/lv_font_dejavu_10.c.obj
[ 6%] Building C object lib/CMakeFiles/lvgl.dir/lvgl/lv_misc/lv_fonts/lv_font_dejavu_20.c.obj
[ 7%] Building C object lib/CMakeFiles/lvgl.dir/lvgl/lv_misc/lv_fonts/lv_font_dejavu_30.c.obj
[ 7%] Building C object lib/CMakeFiles/lvgl.dir/lvgl/lv_misc/lv_fonts/lv_font_dejavu_40.c.obj
[ 8%] Building C object lib/CMakeFiles/lvgl.dir/lvgl/lv_misc/lv_fonts/lv_font_dejavu_10_cyrillic.c.obj
[ 8%] Building C object lib/CMakeFiles/lvgl.dir/lvgl/lv_misc/lv_fonts/lv_font_dejavu_20_cyrillic.c.obj
[ 9%] Building C object lib/CMakeFiles/lvgl.dir/lvgl/lv_misc/lv_fonts/lv_font_dejavu_30_cyrillic.c.obj
[ 9%] Building C object lib/CMakeFiles/lvgl.dir/lvgl/lv_misc/lv_fonts/lv_font_dejavu_40_cyrillic.c.obj
[ 10%] Building C object lib/CMakeFiles/lvgl.dir/lvgl/lv_misc/lv_fonts/lv_font_dejavu_10_latin_sup.c.obj
[ 10%] Building C object lib/CMakeFiles/lvgl.dir/lvgl/lv_misc/lv_fonts/lv_font_dejavu_20_latin_sup.c.obj
[ 11%] Building C object lib/CMakeFiles/lvgl.dir/lvgl/lv_misc/lv_fonts/lv_font_dejavu_30_latin_sup.c.obj
[ 11%] Building C object lib/CMakeFiles/lvgl.dir/lvgl/lv_misc/lv_fonts/lv_font_dejavu_40_latin_sup.c.obj
[ 12%] Building C object lib/CMakeFiles/lvgl.dir/lvgl/lv_misc/lv_fonts/lv_font_symbol_10.c.obj
[ 12%] Building C object lib/CMakeFiles/lvgl.dir/lvgl/lv_misc/lv_fonts/lv_font_symbol_20.c.obj
[ 13%] Building C object lib/CMakeFiles/lvgl.dir/lvgl/lv_misc/lv_fonts/lv_font_symbol_30.c.obj
[ 13%] Building C object lib/CMakeFiles/lvgl.dir/lvgl/lv_misc/lv_fonts/lv_font_symbol_40.c.obj
[ 14%] Building C object lib/CMakeFiles/lvgl.dir/lvgl/lv_misc/lv_font.c.obj
[ 14%] Building C object lib/CMakeFiles/lvgl.dir/lvgl/lv_misc/lv_circ.c.obj
[ 14%] Building C object lib/CMakeFiles/lvgl.dir/lvgl/lv_misc/lv_area.c.obj
[ 15%] Building C object lib/CMakeFiles/lvgl.dir/lvgl/lv_misc/lv_task.c.obj
[ 15%] Building C object lib/CMakeFiles/lvgl.dir/lvgl/lv_misc/lv_fs.c.obj
[ 16%] Building C object lib/CMakeFiles/lvgl.dir/lvgl/lv_misc/lv_anim.c.obj
[ 16%] Building C object lib/CMakeFiles/lvgl.dir/lvgl/lv_misc/lv_mem.c.obj
[ 17%] Building C object lib/CMakeFiles/lvgl.dir/lvgl/lv_misc/lv_ll.c.obj
[ 17%] Building C object lib/CMakeFiles/lvgl.dir/lvgl/lv_misc/lv_color.c.obj
[ 18%] Building C object lib/CMakeFiles/lvgl.dir/lvgl/lv_misc/lv_txt.c.obj
[ 18%] Building C object lib/CMakeFiles/lvgl.dir/lvgl/lv_misc/lv_ufs.c.obj
[ 19%] Building C object lib/CMakeFiles/lvgl.dir/lvgl/lv_misc/lv_trigo.c.obj
[ 19%] Building C object lib/CMakeFiles/lvgl.dir/lvgl/lv_misc/lv_math.c.obj
[ 20%] Building C object lib/CMakeFiles/lvgl.dir/lvgl/lv_objx/lv_bar.c.obj
[ 20%] Building C object lib/CMakeFiles/lvgl.dir/lvgl/lv_objx/lv_cb.c.obj
[ 21%] Building C object lib/CMakeFiles/lvgl.dir/lvgl/lv_objx/lv_ddlist.c.obj
[ 21%] Building C object lib/CMakeFiles/lvgl.dir/lvgl/lv_objx/lv_kb.c.obj
[ 22%] Building C object lib/CMakeFiles/lvgl.dir/lvgl/lv_objx/lv_line.c.obj
[ 22%] Building C object lib/CMakeFiles/lvgl.dir/lvgl/lv_objx/lv_mbox.c.obj
[ 23%] Building C object lib/CMakeFiles/lvgl.dir/lvgl/lv_objx/lv_roller.c.obj
[ 23%] Building C object lib/CMakeFiles/lvgl.dir/lvgl/lv_objx/lv_tabview.c.obj
[ 23%] Building C object lib/CMakeFiles/lvgl.dir/lvgl/lv_objx/lv_btn.c.obj
[ 24%] Building C object lib/CMakeFiles/lvgl.dir/lvgl/lv_objx/lv_chart.c.obj
[ 24%] Building C object lib/CMakeFiles/lvgl.dir/lvgl/lv_objx/lv_gauge.c.obj
[ 25%] Building C object lib/CMakeFiles/lvgl.dir/lvgl/lv_objx/lv_label.c.obj
[ 25%] Building C object lib/CMakeFiles/lvgl.dir/lvgl/lv_objx/lv_list.c.obj
[ 26%] Building C object lib/CMakeFiles/lvgl.dir/lvgl/lv_objx/lv_slider.c.obj
[ 26%] Building C object lib/CMakeFiles/lvgl.dir/lvgl/lv_objx/lv_ta.c.obj
[ 27%] Building C object lib/CMakeFiles/lvgl.dir/lvgl/lv_objx/lv_btnm.c.obj
[ 27%] Building C object lib/CMakeFiles/lvgl.dir/lvgl/lv_objx/lv_cont.c.obj
[ 28%] Building C object lib/CMakeFiles/lvgl.dir/lvgl/lv_objx/lv_img.c.obj
[ 28%] Building C object lib/CMakeFiles/lvgl.dir/lvgl/lv_objx/lv_led.c.obj
[ 29%] Building C object lib/CMakeFiles/lvgl.dir/lvgl/lv_objx/lv_lmeter.c.obj
[ 29%] Building C object lib/CMakeFiles/lvgl.dir/lvgl/lv_objx/lv_page.c.obj
[ 30%] Building C object lib/CMakeFiles/lvgl.dir/lvgl/lv_objx/lv_sw.c.obj
[ 30%] Building C object lib/CMakeFiles/lvgl.dir/lvgl/lv_objx/lv_win.c.obj
[ 31%] Building C object lib/CMakeFiles/lvgl.dir/lvgl/lv_themes/lv_theme_alien.c.obj
[ 31%] Building C object lib/CMakeFiles/lvgl.dir/lvgl/lv_themes/lv_theme.c.obj
[ 32%] Building C object lib/CMakeFiles/lvgl.dir/lvgl/lv_themes/lv_theme_default.c.obj
[ 32%] Building C object lib/CMakeFiles/lvgl.dir/lvgl/lv_themes/lv_theme_night.c.obj
[ 32%] Building C object lib/CMakeFiles/lvgl.dir/lvgl/lv_themes/lv_theme_templ.c.obj
[ 33%] Building C object lib/CMakeFiles/lvgl.dir/lvgl/lv_themes/lv_theme_zen.c.obj
[ 33%] Building C object lib/CMakeFiles/lvgl.dir/lvgl/lv_themes/lv_theme_material.c.obj
[ 34%] Linking C static library liblvgl.a
[ 34%] Built target lvgl
Scanning dependencies of target detex
[ 34%] Building C object lib/CMakeFiles/detex.dir/detex/bptc-tables.c.obj
[ 34%] Building C object lib/CMakeFiles/detex.dir/detex/bits.c.obj
[ 35%] Building C object lib/CMakeFiles/detex.dir/detex/clamp.c.obj
[ 35%] Building C object lib/CMakeFiles/detex.dir/detex/convert.c.obj
[ 36%] Building C object lib/CMakeFiles/detex.dir/detex/dds.c.obj
[ 36%] Building C object lib/CMakeFiles/detex.dir/detex/decompress-bc.c.obj
[ 37%] Building C object lib/CMakeFiles/detex.dir/detex/decompress-bptc.c.obj
[ 37%] Building C object lib/CMakeFiles/detex.dir/detex/decompress-bptc-float.c.obj
[ 38%] Building C object lib/CMakeFiles/detex.dir/detex/decompress-etc.c.obj
[ 38%] Building C object lib/CMakeFiles/detex.dir/detex/decompress-eac.c.obj
[ 39%] Building C object lib/CMakeFiles/detex.dir/detex/decompress-rgtc.c.obj
[ 39%] Building C object lib/CMakeFiles/detex.dir/detex/division-tables.c.obj
[ 40%] Building C object lib/CMakeFiles/detex.dir/detex/file-info.c.obj
[ 40%] Building C object lib/CMakeFiles/detex.dir/detex/half-float.c.obj
[ 41%] Building C object lib/CMakeFiles/detex.dir/detex/hdr.c.obj
[ 41%] Building C object lib/CMakeFiles/detex.dir/detex/ktx.c.obj
[ 42%] Building C object lib/CMakeFiles/detex.dir/detex/misc.c.obj
[ 42%] Building C object lib/CMakeFiles/detex.dir/detex/raw.c.obj
[ 43%] Building C object lib/CMakeFiles/detex.dir/detex/texture.c.obj
[ 43%] Linking C static library libdetex.a
[ 43%] Built target detex
Scanning dependencies of target avitab_plugin
[ 44%] Building CXX object src/CMakeFiles/avitab_plugin.dir/Plugin.cpp.obj
[ 44%] Building CXX object src/CMakeFiles/avitab_plugin.dir/Logger.cpp.obj
[ 45%] Linking CXX shared library AviTab.xpl
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles/avitab_plugin.dir/Plugin.cpp.obj:Plugin.cpp:(.text+0x169): undefined reference to __imp_XPLMEnableFeature' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles/avitab_plugin.dir/Plugin.cpp.obj:Plugin.cpp:(.text+0x175): undefined reference to
curl_global_init'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles/avitab_plugin.dir/Plugin.cpp.obj:Plugin.cpp:(.text+0x1bd): undefined reference to avitab::Environment::loadConfig()' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles/avitab_plugin.dir/Plugin.cpp.obj:Plugin.cpp:(.text+0x1db): undefined reference to
avitab::Environment::getConfig()'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles/avitab_plugin.dir/Plugin.cpp.obj:Plugin.cpp:(.text+0x22e): undefined reference to avitab::Config::getBool(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles/avitab_plugin.dir/Plugin.cpp.obj:Plugin.cpp:(.text+0x486): undefined reference to
avitab::AviTab::startApp()'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles/avitab_plugin.dir/Plugin.cpp.obj:Plugin.cpp:(.text+0x59c): undefined reference to avitab::AviTab::onPlaneLoad()' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles/avitab_plugin.dir/Plugin.cpp.obj:Plugin.cpp:(.text+0x5d9): undefined reference to
avitab::AviTab::stopApp()'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles/avitab_plugin.dir/Plugin.cpp.obj:Plugin.cpp:(.text+0x6f5): undefined reference to avitab::AviTab::stopApp()' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles/avitab_plugin.dir/Plugin.cpp.obj:Plugin.cpp:(.text+0x717): undefined reference to
curl_global_cleanup'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles/avitab_plugin.dir/Plugin.cpp.obj:Plugin.cpp:(.text$ZSt11make_uniqueIN6avitab6AviTabEJRSt10shared_ptrINS0_11EnvironmentEEEENSt9_MakeUniqIT_E15__single_objectEDpOT0[ZSt11make_uniqueIN6avitab6AviTabEJRSt10shared_ptrINS0_11EnvironmentEEEENSt9_MakeUniqIT_E15__single_objectEDpOT0]+0x45): undefined reference to avitab::AviTab::AviTab(std::shared_ptr<avitab::Environment>)' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles/avitab_plugin.dir/Plugin.cpp.obj:Plugin.cpp:(.text$_ZN9__gnu_cxx13new_allocatorIN6avitab17XPlaneEnvironmentEE9constructIS2_JEEEvPT_DpOT0_[_ZN9__gnu_cxx13new_allocatorIN6avitab17XPlaneEnvironmentEE9constructIS2_JEEEvPT_DpOT0_]+0x30): undefined reference to
avitab::XPlaneEnvironment::XPlaneEnvironment()'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles/avitab_plugin.dir/Logger.cpp.obj:Logger.cpp:(.text+0xc7): undefined reference to `platform::getLocalTime(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)'
collect2.exe: error: ld returned 1 exit status
make[2]: *** [src/CMakeFiles/avitab_plugin.dir/build.make:99: src/AviTab.xpl] Error 1
make[1]: *** [CMakeFiles/Makefile2:207: src/CMakeFiles/avitab_plugin.dir/all] Error 2
make: *** [Makefile:84: all] Error 2
I tried too the last version from today :
$ git describe --tags
v0.3.2-8-g2463f80
$ make
[ 32%] Built target lvgl
[ 41%] Built target detex
[ 42%] Building CXX object src/CMakeFiles/avitab_plugin.dir/Plugin.cpp.obj
In file included from C:/Dev/XPlaneDev/avitab.last/src/libnavigraph/OIDCClient.h:27,
from C:/Dev/XPlaneDev/avitab.last/src/libnavigraph/NavigraphAPI.h:33,
from C:/Dev/XPlaneDev/avitab.last/src/avitab/AviTab.h:23,
from C:/Dev/XPlaneDev/avitab.last/src/Plugin.cpp:24:
C:/Dev/XPlaneDev/avitab.last/src/libnavigraph/Crypto.h:21:10: fatal error: mbedtls/config.h: No such file or directory
#include <mbedtls/config.h>
^~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [src/CMakeFiles/avitab_plugin.dir/build.make:63: src/CMakeFiles/avitab_plugin.dir/Plugin.cpp.obj] Error 1
make[1]: *** [CMakeFiles/Makefile2:210: src/CMakeFiles/avitab_plugin.dir/all] Error 2
make: *** [Makefile:84: all] Error 2
cmake problem is the same than with the 0.2.5, but build failed before
HOPE YOU CAN HELP ;-)
THANKS