rohmer / LVGL_UI_Creator

Drag and Drop UI Creation for LVGL
MIT License
40 stars 18 forks source link

Build issue #7

Open mvturnho opened 4 years ago

mvturnho commented 4 years ago

Hi, I am trying to build the project and seems that when I clone the repo an open the solution file in Visualstudio it fails to build.

Severity    Code    Description Project File    Line    Suppression State
Error   C1083   Cannot open include file: 'lvgl/lvgl.h': No such file or directory  LVGL    C:\git\LVGL_UI_Creator\3rdParty\LVGL\lvgl\src\lv_font\lv_font_roboto_12.c   1   

I clone the project as follows:

$ git clone --recurse-submodules --remote-submodules https://github.com/rohmer/LVGL_UI_Creator.git
Cloning into 'LVGL_UI_Creator'...
remote: Enumerating objects: 71, done.
remote: Counting objects: 100% (71/71), done.
remote: Compressing objects: 100% (54/54), done.
remote: Total 4908 (delta 30), reused 40 (delta 17), pack-reused 4837
Receiving objects: 100% (4908/4908), 32.64 MiB | 9.95 MiB/s, done.
Resolving deltas: 100% (1710/1710), done.
Updating files: 100% (3111/3111), done.

what do I need to do to get this up and running in Visual Studio?

mvturnho commented 4 years ago

Then I tried on a VirtualBox VM Ubuntu system.

git clone https://github.com/rohmer/LVGL_UI_Creator.git

cmake LVGL_UI_Creator/

-- The C compiler identification is GNU 7.4.0
-- The CXX compiler identification is GNU 7.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
..
..
..
--  Build Shared Library: ON
--  Build Static Library: OFF
-- 
-- If something was not detected, although the libraries
-- were installed, then make sure you have set the
-- CFLAGS and LDFLAGS environment variables correctly.
-- 
-- Configuring done
-- Generating done
-- Build files have been written to: /home/mvturnho/git/lvuidesigner
make
Scanning dependencies of target SDL2
[  0%] Building C object 3rdParty/SDL2-2.0.10/CMakeFiles/SDL2.dir/src/SDL.c.o
[  1%] Building C object 3rdParty/SDL2-2.0.10/CMakeFiles/SDL2.dir/src/SDL_assert.c.o
[  1%] Building C object 3rdParty/SDL2-2.0.10/CMakeFiles/SDL2.dir/src/SDL_dataqueue.c.o
[  1%] Building C object 3rdParty/SDL2-2.0.10/CMakeFiles/SDL2.dir/src/SDL_error.c.o
[  1%] Building C object 3rdParty/SDL2-2.0.10/CMakeFiles/SDL2.dir/src/SDL_hints.c.o
[  2%] Building C object 3rdParty/SDL2-2.0.10/CMakeFiles/SDL2.dir/src/SDL_log.c.o
..
..
[ 99%] Building CXX object UICreator/CMakeFiles/UICreator.dir/Windows/UI.cpp.o
[ 99%] Building CXX object UICreator/CMakeFiles/UICreator.dir/Windows/VariableCreateWindow.cpp.o
[100%] Building CXX object UICreator/CMakeFiles/UICreator.dir/main.cpp.o
[100%] Linking CXX executable UICreator
[100%] Built target UICreator

It seems the build was succesfull, but when I run the binary:

~/git$ ./UICreator/UICreator
Segmentation fault (core dumped)
rohmer commented 4 years ago

Ok, I suspect the first (Visual Studio) one is an issue with a non-relative path. Ill take a look at that now.

The second (Linux), I am not sure. I litterally just got it building last night on linux, so again Ill take a look.

rohmer commented 4 years ago

Ok I recreated the issue on Visual Studio. Taking a look. I should have a fix in a few moments.

rohmer commented 4 years ago

Ok, I see what the issue is. I had set all of the variables up in Visual Studio for the X64 environment, not for AnyCPU and x86.

I am removing AnyCPU and setting up x86 now.

rohmer commented 4 years ago

The Visual Studio build is "fixed" in the Dev branch. Please take a look. I removed x86 and AnyCPU as they are unnecessary for a window build.

I will now look at why the CMake is seg faulting on linux

rohmer commented 4 years ago

As far as linux build.

There seems to be something amiss in the SDL build (Which is odd, I am just using the SDL standard cmake). I will investigate.

mvturnho commented 4 years ago

The Visual Studio build is "fixed" in the Dev branch. Please take a look. I removed x86 and AnyCPU as they are unnecessary for a window build.

I will now look at why the CMake is seg faulting on linux

Hi, thanks for the fast reply. I cloned the project again, and opened the "UICreator.sln" in Visual studio. Then didctrl-shift-B (rebuild solution) it ended with one error.

Severity    Code    Description Project File    Line    Suppression State
Error   LNK1104 cannot open file 'C:\git\LVGL_UI_Creator\3rdParty\freetype-2.10.1\objs\x64\Debug Static\freetype.lib'   UICreator   C:\git\LVGL_UI_Creator\UICreator\LINK   1   

When I just press the local windows debugger button I get a popup saying:

---------------------------
Microsoft Visual Studio
---------------------------
Unable to start program 'C:\git\LVGL_UI_Creator\3rdParty\MXML\vcnet\Release\x64\mxml1\mxml1.dll'.

Het systeem kan het opgegeven bestand niet vinden. (system cannot find the file)
rohmer commented 4 years ago

Ok..

The second one is weird. For some reason Visual Studio keeps making the mxml1 library the "Startup Project". I am not sure why.

Se UICreator to the start up project and you should be good on that.

rohmer commented 4 years ago

The linux build, digging deeper. On my machine it was based on libX11 not being installed for the build of SDL. This created a situation where SDL did not have a video device.

I need to figure out how to make sure libX11 is installed before cmake is run.

Either: A) Readme - Tell people to do it or B) (Preferred) - If its not there, build it

mvturnho commented 4 years ago

Hi, I checked for the named libs;

ibx11-6/disco,now 2:1.6.7-1 amd64 [installed]
libx11-data/disco,disco,now 2:1.6.7-1 all [installed,automatic]
libx11-dev/disco,now 2:1.6.7-1 amd64 [installed]
libx11-protocol-perl/disco,disco,now 0.56-7 all [installed,automatic]
libx11-xcb-dev/disco,now 2:1.6.7-1 amd64 [installed,automatic]
libx11-xcb1/disco,now 2:1.6.7-1 amd64 [installed,automatic]

libx11-dev seems to be available.

I did a full rebuild with cmake and then make still I get the segmentation fault. here is the cmake output;

cmake LVGL_UI_Creator/
-- The C compiler identification is GNU 8.3.0
-- The CXX compiler identification is GNU 8.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
CMake Warning (dev) at /usr/share/cmake-3.13/Modules/CMakeDetermineCompilerABI.cmake:78 (if):
  Policy CMP0054 is not set: Only interpret if() arguments as variables or
  keywords when unquoted.  Run "cmake --help-policy CMP0054" for policy
  details.  Use the cmake_policy command to set the policy and suppress this
  warning.

  Quoted variables like "CXX" will no longer be dereferenced when the policy
  is set to NEW.  Since the policy is not set the OLD behavior will be used.
Call Stack (most recent call first):
  /usr/share/cmake-3.13/Modules/CMakeTestCXXCompiler.cmake:59 (CMAKE_DETERMINE_COMPILER_ABI)
  CMakeLists.txt:9 (project)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1") 
-- Performing Test HAVE_GCC_WALL
-- Performing Test HAVE_GCC_WALL - Success
-- Performing Test HAVE_GCC_NO_STRICT_ALIASING
-- Performing Test HAVE_GCC_NO_STRICT_ALIASING - Success
-- Performing Test HAVE_GCC_WDECLARATION_AFTER_STATEMENT
-- Performing Test HAVE_GCC_WDECLARATION_AFTER_STATEMENT - Success
-- Performing Test HAVE_GCC_WERROR_DECLARATION_AFTER_STATEMENT
-- Performing Test HAVE_GCC_WERROR_DECLARATION_AFTER_STATEMENT - Success
-- Performing Test HAVE_GCC_ATOMICS
-- Performing Test HAVE_GCC_ATOMICS - Success
-- Performing Test HAVE_GCC_PREFERRED_STACK_BOUNDARY
-- Performing Test HAVE_GCC_PREFERRED_STACK_BOUNDARY - Failed
-- Performing Test HAVE_GCC_FVISIBILITY
-- Performing Test HAVE_GCC_FVISIBILITY - Success
-- Performing Test HAVE_GCC_WSHADOW
-- Performing Test HAVE_GCC_WSHADOW - Success
-- Performing Test HAVE_NO_UNDEFINED
-- Performing Test HAVE_NO_UNDEFINED - Success
-- Performing Test HAVE_MMX
-- Performing Test HAVE_MMX - Success
-- Performing Test HAVE_3DNOW
-- Performing Test HAVE_3DNOW - Success
-- Performing Test HAVE_SSE
-- Performing Test HAVE_SSE - Success
-- Performing Test HAVE_SSE2
-- Performing Test HAVE_SSE2 - Success
-- Performing Test HAVE_SSE3
-- Performing Test HAVE_SSE3 - Success
-- Looking for immintrin.h
-- Looking for immintrin.h - found
-- Performing Test HAVE_ALTIVEC_H_HDR
-- Performing Test HAVE_ALTIVEC_H_HDR - Failed
-- Performing Test HAVE_ALTIVEC
-- Performing Test HAVE_ALTIVEC - Failed
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdio.h
-- Looking for stdio.h - found
-- Looking for stdlib.h
-- Looking for stdlib.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Looking for stdarg.h
-- Looking for stdarg.h - found
-- Looking for malloc.h
-- Looking for malloc.h - found
-- Looking for memory.h
-- Looking for memory.h - found
-- Looking for string.h
-- Looking for string.h - found
-- Looking for limits.h
-- Looking for limits.h - found
-- Looking for strings.h
-- Looking for strings.h - found
-- Looking for wchar.h
-- Looking for wchar.h - found
-- Looking for inttypes.h
-- Looking for inttypes.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for ctype.h
-- Looking for ctype.h - found
-- Looking for math.h
-- Looking for math.h - found
-- Looking for iconv.h
-- Looking for iconv.h - found
-- Looking for signal.h
-- Looking for signal.h - found
-- Looking for libunwind.h
-- Looking for libunwind.h - not found
-- Looking for 8 include files dlfcn.h, ..., float.h
-- Looking for 8 include files dlfcn.h, ..., float.h - found
-- Check size of size_t
-- Check size of size_t - done
-- Looking for M_PI
-- Looking for M_PI - found
-- Performing Test HAVE_MPROTECT
-- Performing Test HAVE_MPROTECT - Success
-- Looking for strtod
-- Looking for strtod - found
-- Looking for malloc
-- Looking for malloc - found
-- Looking for calloc
-- Looking for calloc - found
-- Looking for realloc
-- Looking for realloc - found
-- Looking for free
-- Looking for free - found
-- Looking for getenv
-- Looking for getenv - found
-- Looking for setenv
-- Looking for setenv - found
-- Looking for putenv
-- Looking for putenv - found
-- Looking for unsetenv
-- Looking for unsetenv - found
-- Looking for qsort
-- Looking for qsort - found
-- Looking for abs
-- Looking for abs - found
-- Looking for bcopy
-- Looking for bcopy - found
-- Looking for memset
-- Looking for memset - found
-- Looking for memcpy
-- Looking for memcpy - found
-- Looking for memmove
-- Looking for memmove - found
-- Looking for memcmp
-- Looking for memcmp - found
-- Looking for strlen
-- Looking for strlen - found
-- Looking for strlcpy
-- Looking for strlcpy - not found
-- Looking for strlcat
-- Looking for strlcat - not found
-- Looking for _strrev
-- Looking for _strrev - not found
-- Looking for _strupr
-- Looking for _strupr - not found
-- Looking for _strlwr
-- Looking for _strlwr - not found
-- Looking for strchr
-- Looking for strchr - found
-- Looking for strrchr
-- Looking for strrchr - found
-- Looking for strstr
-- Looking for strstr - found
-- Looking for itoa
-- Looking for itoa - not found
-- Looking for _ltoa
-- Looking for _ltoa - not found
-- Looking for _uitoa
-- Looking for _uitoa - not found
-- Looking for _ultoa
-- Looking for _ultoa - not found
-- Looking for strtol
-- Looking for strtol - found
-- Looking for strtoul
-- Looking for strtoul - found
-- Looking for _i64toa
-- Looking for _i64toa - not found
-- Looking for _ui64toa
-- Looking for _ui64toa - not found
-- Looking for strtoll
-- Looking for strtoll - found
-- Looking for strtoull
-- Looking for strtoull - found
-- Looking for atoi
-- Looking for atoi - found
-- Looking for atof
-- Looking for atof - found
-- Looking for strcmp
-- Looking for strcmp - found
-- Looking for strncmp
-- Looking for strncmp - found
-- Looking for _stricmp
-- Looking for _stricmp - not found
-- Looking for strcasecmp
-- Looking for strcasecmp - found
-- Looking for _strnicmp
-- Looking for _strnicmp - not found
-- Looking for strncasecmp
-- Looking for strncasecmp - found
-- Looking for vsscanf
-- Looking for vsscanf - found
-- Looking for vsnprintf
-- Looking for vsnprintf - found
-- Looking for fopen64
-- Looking for fopen64 - found
-- Looking for fseeko
-- Looking for fseeko - found
-- Looking for fseeko64
-- Looking for fseeko64 - found
-- Looking for sigaction
-- Looking for sigaction - found
-- Looking for setjmp
-- Looking for setjmp - found
-- Looking for nanosleep
-- Looking for nanosleep - found
-- Looking for sysconf
-- Looking for sysconf - found
-- Looking for sysctlbyname
-- Looking for sysctlbyname - not found
-- Looking for getauxval
-- Looking for getauxval - found
-- Looking for poll
-- Looking for poll - found
-- Looking for _Exit
-- Looking for _Exit - found
-- Looking for pow in m
-- Looking for pow in m - found
-- Looking for atan
-- Looking for atan - found
-- Looking for atan2
-- Looking for atan2 - found
-- Looking for ceil
-- Looking for ceil - found
-- Looking for copysign
-- Looking for copysign - found
-- Looking for cos
-- Looking for cos - found
-- Looking for cosf
-- Looking for cosf - found
-- Looking for fabs
-- Looking for fabs - found
-- Looking for floor
-- Looking for floor - found
-- Looking for log
-- Looking for log - found
-- Looking for pow
-- Looking for pow - found
-- Looking for scalbn
-- Looking for scalbn - found
-- Looking for sin
-- Looking for sin - found
-- Looking for sinf
-- Looking for sinf - found
-- Looking for sqrt
-- Looking for sqrt - found
-- Looking for sqrtf
-- Looking for sqrtf - found
-- Looking for tan
-- Looking for tan - found
-- Looking for tanf
-- Looking for tanf - found
-- Looking for acos
-- Looking for acos - found
-- Looking for asin
-- Looking for asin - found
-- Looking for iconv_open in iconv
-- Looking for iconv_open in iconv - not found
-- Looking for alloca.h
-- Looking for alloca.h - found
-- Looking for alloca
-- Looking for alloca - not found
-- Performing Test HAVE_SA_SIGACTION
-- Performing Test HAVE_SA_SIGACTION - Success
-- Looking for dlopen
-- Looking for dlopen - not found
-- Looking for dlopen in dl
-- Looking for dlopen in dl - found
-- Performing Test OSS_FOUND
-- Performing Test OSS_FOUND - Success
-- Looking for alsa/asoundlib.h
-- Looking for alsa/asoundlib.h - found
-- Looking for snd_pcm_recover in asound
-- Looking for snd_pcm_recover in asound - found
-- dynamic libasound -> libasound.so.2
-- Checking for module 'jack'
--   No package 'jack' found
-- Checking for module 'libpulse-simple'
--   Found libpulse-simple, version 12.2
-- dynamic libpulse-simple -> libpulse-simple.so.0
-- Checking for module 'esound'
--   No package 'esound' found
-- Looking for audio/audiolib.h
-- Looking for audio/audiolib.h - not found
-- Looking for sndio.h
-- Looking for sndio.h - found
-- Looking for samplerate.h
-- Looking for samplerate.h - not found
-- Checking for modules 'bcm_host;brcmegl'
--   No package 'bcm_host' found
--   No package 'brcmegl' found
-- Performing Test HAVE_VIDEO_RPI
-- Performing Test HAVE_VIDEO_RPI - Failed
-- dynamic libX11 -> libX11.so.6
-- dynamic libXext -> libXext.so.6
-- dynamic libXcursor -> libXcursor.so.1
-- dynamic libXinerama -> libXinerama.so.1
-- dynamic libXi -> libXi.so.6
-- dynamic libXrandr -> libXrandr.so.2
-- dynamic libXrender -> libXrender.so.1
-- dynamic libXss -> libXss.so.1
-- dynamic libXxf86vm -> libXxf86vm.so.1
-- Looking for X11/Xcursor/Xcursor.h
-- Looking for X11/Xcursor/Xcursor.h - found
-- Looking for X11/extensions/Xinerama.h
-- Looking for X11/extensions/Xinerama.h - found
-- Looking for X11/extensions/XInput2.h
-- Looking for X11/extensions/XInput2.h - found
-- Looking for X11/extensions/Xrandr.h
-- Looking for X11/extensions/Xrandr.h - found
-- Looking for X11/extensions/Xrender.h
-- Looking for X11/extensions/Xrender.h - found
-- Looking for X11/extensions/scrnsaver.h
-- Looking for X11/extensions/scrnsaver.h - found
-- Looking for X11/extensions/shape.h
-- Looking for X11/extensions/shape.h - found
-- Looking for include files X11/Xlib.h, X11/extensions/xf86vmode.h
-- Looking for include files X11/Xlib.h, X11/extensions/xf86vmode.h - found
-- Looking for 3 include files X11/Xlib.h, ..., X11/extensions/Xext.h
-- Looking for 3 include files X11/Xlib.h, ..., X11/extensions/Xext.h - found
-- Looking for shmat
-- Looking for shmat - found
-- Performing Test HAVE_CONST_XEXT_ADDDISPLAY
-- Performing Test HAVE_CONST_XEXT_ADDDISPLAY - Success
-- Performing Test HAVE_XGENERICEVENT
-- Performing Test HAVE_XGENERICEVENT - Success
-- Looking for XkbKeycodeToKeysym
-- Looking for XkbKeycodeToKeysym - found
-- Performing Test HAVE_XINPUT2_MULTITOUCH
-- Performing Test HAVE_XINPUT2_MULTITOUCH - Success
-- Performing Test HAVE_VIDEO_OPENGL
-- Performing Test HAVE_VIDEO_OPENGL - Success
-- Performing Test HAVE_VIDEO_OPENGL_EGL
-- Performing Test HAVE_VIDEO_OPENGL_EGL - Success
-- Performing Test HAVE_VIDEO_OPENGLES_V1
-- Performing Test HAVE_VIDEO_OPENGLES_V1 - Failed
-- Performing Test HAVE_VIDEO_OPENGLES_V2
-- Performing Test HAVE_VIDEO_OPENGLES_V2 - Success
-- Checking for modules 'wayland-client;wayland-scanner;wayland-protocols;wayland-egl;wayland-cursor;egl;xkbcommon'
--   No package 'wayland-protocols' found
-- Performing Test HAVE_VIDEO_VIVANTE_VDK
-- Performing Test HAVE_VIDEO_VIVANTE_VDK - Failed
-- Performing Test HAVE_VIDEO_VIVANTE_EGL_FB
-- Performing Test HAVE_VIDEO_VIVANTE_EGL_FB - Failed
-- Checking for modules 'libdrm;gbm;egl'
--   No package 'gbm' found
-- Performing Test HAVE_INPUT_EVENTS
-- Performing Test HAVE_INPUT_EVENTS - Success
-- Performing Test HAVE_INPUT_KD
-- Performing Test HAVE_INPUT_KD - Success
-- Looking for libudev.h
-- Looking for libudev.h - found
-- Checking for one of the modules 'dbus-1;dbus'
-- Checking for one of the modules 'ibus-1.0;ibus'
-- Looking for fcitx/frontend.h
-- Looking for fcitx/frontend.h - not found
-- Performing Test HAVE_INPUT_TSLIB
-- Performing Test HAVE_INPUT_TSLIB - Failed
-- Looking for hid_init in usbhid
-- Looking for hid_init in usbhid - not found
-- Looking for usb.h
-- Looking for usb.h - not found
-- Looking for libusb.h
-- Looking for libusb.h - not found
-- Looking for hid_init in usb
-- Looking for hid_init in usb - not found
-- Performing Test HAVE_USBHID
-- Performing Test HAVE_USBHID - Failed
-- Performing Test HAVE_PTHREADS
-- Performing Test HAVE_PTHREADS - Success
-- Performing Test HAVE_RECURSIVE_MUTEXES
-- Performing Test HAVE_RECURSIVE_MUTEXES - Success
-- Performing Test HAVE_PTHREADS_SEM
-- Performing Test HAVE_PTHREADS_SEM - Success
-- Performing Test HAVE_SEM_TIMEDWAIT
-- Performing Test HAVE_SEM_TIMEDWAIT - Success
-- Performing Test HAVE_PTHREAD_NP_H
-- Performing Test HAVE_PTHREAD_NP_H - Failed
-- Looking for pthread_setname_np
-- Looking for pthread_setname_np - found
-- Looking for pthread_set_name_np
-- Looking for pthread_set_name_np - not found
-- Looking for linux/version.h
-- Looking for linux/version.h - found
-- Performing Test HAVE_ENABLE_NEW_DTAGS
-- Performing Test HAVE_ENABLE_NEW_DTAGS - Success
-- 
-- SDL2 was configured with the following options:
-- 
-- Platform: Linux-5.0.0-31-generic
-- 64-bit:   TRUE
-- Compiler: /usr/bin/cc
-- 
-- Subsystems:
--   Atomic:    ON
--   Audio:     ON
--   Video:     ON
--   Render:    ON
--   Events:    ON
--   Joystick:  ON
--   Haptic:    ON
--   Power:     ON
--   Threads:   ON
--   Timers:    ON
--   File:      ON
--   Loadso:    ON
--   CPUinfo:   ON
--   Filesystem:        ON
--   Dlopen:    ON
--   Sensor:    ON
-- 
-- Options:
--   3DNOW                  (Wanted: ON): ON
--   ALSA                   (Wanted: ON): ON
--   ALSA_SHARED            (Wanted: ON): ON
--   ALTIVEC                (Wanted: ON): OFF
--   ARTS                   (Wanted: ON): OFF
--   ARTS_SHARED            (Wanted: ON): OFF
--   ASSEMBLY               (Wanted: ON): ON
--   ASSERTIONS             (Wanted: auto): auto
--   BACKGROUNDING_SIGNAL   (Wanted: OFF): OFF
--   CLOCK_GETTIME          (Wanted: OFF): OFF
--   DIRECTFB_SHARED        (Wanted: OFF): OFF
--   DIRECTX                (Wanted: OFF): OFF
--   DISKAUDIO              (Wanted: ON): ON
--   DUMMYAUDIO             (Wanted: ON): ON
--   ESD                    (Wanted: ON): OFF
--   ESD_SHARED             (Wanted: ON): OFF
--   FOREGROUNDING_SIGNAL   (Wanted: OFF): OFF
--   FUSIONSOUND            (Wanted: OFF): OFF
--   FUSIONSOUND_SHARED     (Wanted: OFF): OFF
--   GCC_ATOMICS            (Wanted: ON): ON
--   HIDAPI                 (Wanted: OFF): OFF
--   INPUT_TSLIB            (Wanted: ON): OFF
--   JACK                   (Wanted: ON): OFF
--   JACK_SHARED            (Wanted: ON): OFF
--   KMSDRM_SHARED          (Wanted: ON): OFF
--   LIBC                   (Wanted: ON): ON
--   LIBSAMPLERATE          (Wanted: ON): OFF
--   LIBSAMPLERATE_SHARED   (Wanted: ON): OFF
--   MMX                    (Wanted: ON): ON
--   NAS                    (Wanted: ON): OFF
--   NAS_SHARED             (Wanted: ON): OFF
--   OSS                    (Wanted: ON): ON
--   PTHREADS               (Wanted: ON): ON
--   PTHREADS_SEM           (Wanted: ON): ON
--   PULSEAUDIO             (Wanted: ON): ON
--   PULSEAUDIO_SHARED      (Wanted: ON): ON
--   RENDER_D3D             (Wanted: OFF): OFF
--   RPATH                  (Wanted: ON): ON
--   SDL_DLOPEN             (Wanted: ON): ON
--   SDL_STATIC_PIC         (Wanted: OFF): OFF
--   SDL_TEST               (Wanted: OFF): OFF
--   SNDIO                  (Wanted: ON): ON
--   SSE                    (Wanted: ON): ON
--   SSE2                   (Wanted: ON): ON
--   SSE3                   (Wanted: ON): ON
--   SSEMATH                (Wanted: ON): OFF
--   VIDEO_COCOA            (Wanted: OFF): OFF
--   VIDEO_DIRECTFB         (Wanted: OFF): OFF
--   VIDEO_DUMMY            (Wanted: ON): ON
--   VIDEO_KMSDRM           (Wanted: ON): OFF
--   VIDEO_OPENGL           (Wanted: ON): ON
--   VIDEO_OPENGLES         (Wanted: ON): ON
--   VIDEO_RPI              (Wanted: ON): OFF
--   VIDEO_VIVANTE          (Wanted: ON): OFF
--   VIDEO_VULKAN           (Wanted: ON): ON
--   VIDEO_WAYLAND          (Wanted: ON): OFF
--   VIDEO_WAYLAND_QT_TOUCH (Wanted: ON): OFF
--   VIDEO_X11              (Wanted: ON): ON
--   VIDEO_X11_XCURSOR      (Wanted: ON): ON
--   VIDEO_X11_XINERAMA     (Wanted: ON): ON
--   VIDEO_X11_XINPUT       (Wanted: ON): ON
--   VIDEO_X11_XRANDR       (Wanted: ON): ON
--   VIDEO_X11_XSCRNSAVER   (Wanted: ON): ON
--   VIDEO_X11_XSHAPE       (Wanted: ON): ON
--   VIDEO_X11_XVM          (Wanted: ON): ON
--   WASAPI                 (Wanted: OFF): OFF
--   WAYLAND_SHARED         (Wanted: ON): OFF
--   X11_SHARED             (Wanted: ON): ON
-- 
--  CFLAGS:        -g -O3 -idirafter /home/mvturnho/git/lvuidesigner/LVGL_UI_Creator/3rdParty/SDL2-2.0.10/src/video/khronos -DHAVE_LINUX_VERSION_H
--  EXTRA_CFLAGS:  -I/usr/include -D_REENTRANT -msse3 -msse2 -msse -m3dnow -mmmx -Wshadow -fvisibility=hidden -Wdeclaration-after-statement -Werror=declaration-after-statement -fno-strict-aliasing -Wall 
--  EXTRA_LDFLAGS: -Wl,--no-undefined;-pthread
--  EXTRA_LIBS:    m;dl;/usr/lib/x86_64-linux-gnu/libsndio.so;dbus-1;ibus-1.0;gio-2.0;gobject-2.0;glib-2.0
-- 
--  Build Shared Library: ON
--  Build Static Library: OFF
-- 
-- If something was not detected, although the libraries
-- were installed, then make sure you have set the
-- CFLAGS and LDFLAGS environment variables correctly.
-- 
-- Found harfbuzz: /usr/include/harfbuzz (found version "2.3.1") 
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.11") 
-- Found PNG: /usr/lib/x86_64-linux-gnu/libpng.so (found version "1.6.36") 
-- Found BZip2: /usr/lib/x86_64-linux-gnu/libbz2.so (found version "1.0.6") 
-- Looking for BZ2_bzCompressInit
-- Looking for BZ2_bzCompressInit - found
-- Looking for unistd.h
-- Looking for unistd.h - found
-- Looking for fcntl.h
-- Looking for fcntl.h - found
-- Configuring done
-- Generating done
-- Build files have been written to: /home/mvturnho/git/lvuidesigner
mvturnho commented 4 years ago

Hi, I know its late (here). Did another try with Visual studio and it now has one error:

Severity    Code    Description Project File    Line    Suppression State
Error   LNK1104 cannot open file 'C:\git\LVGL_UI_Creator\3rdParty\freetype-2.10.1\objs\x64\Debug Static\freetype.lib'   UICreator   C:\git\LVGL_UI_Creator\UICreator\LINK   1   

I checked, and it seems there is no freetype.lib in that directory, but I do have a freetype.dll file there.

From the project settings for freetype I set configuration type to Static library (.lib) and run again. This time it opened a window with a message that there was no mxml1.dllfile found. So I went to the mxml dir in 3rdParty and copied themxml1.dllfile that was there to the ...\LVGL_UI_Creator\x64\Debug dir. then tried again, and it now works.

rohmer commented 4 years ago

Ok, cool on it working. I need to figure out the weirdness of the VS build. Its a tad hokey.

The good news is I got the linux build working now, there was a minor bug that didnt show in VC that does in GCC.

TimJTi commented 4 years ago

FYI Had similar issues getting this to run (Windows 10 Pro, VS2019 Community. Setting freetype to Static library (.lib) worked, but my install threw an error relating to mxml1.dll although it was present in the debug directory. I noted that all the other dll's were being loaded from Windows\System32 - so I copied the dll to there and it now runs.

Doesn't do much yet though and buggy ;)

Looking forward to enhancements so I can try it for real - will keep an eye out for updates and will certainly make use of it for an actual design if I possibly can.

rohmer commented 4 years ago

Well that is the plan, yes there are a few bugs sadly :(

TimJTi commented 4 years ago

Don't get me wrong - I think it could prove really useful and you've obviously put in a lot of work: I'm impressed :) But anything I tried didn't work (e.g. backspace in the simulator window, to change the resolution did nothing; or trying things reported lvgl NULL pointer errors.) I have probably not set something up right so I'll persevere and if I end up sure that there's a bug rather than finger trouble I'll raise a new issue (assuming that's what you'd prefer).

rohmer commented 4 years ago

Oh, I am 1000% sure there are bugs. Right now I am focused on getting it coded. There is a huge amount of work to be done. Right now I have just gotten the creators thru button map done :(.

rohmer commented 4 years ago

Also, making it easier to simply download and build is definitely on my radar.

I have a Jenkins build running on a server here in my house, and it is bouncing off a pi as well for Linux variants