Giter Site home page Giter Site logo

Add support for xp about lcui HOT 9 CLOSED

felixmaker avatar felixmaker commented on September 18, 2024
Add support for xp

from lcui.

Comments (9)

felixmaker avatar felixmaker commented on September 18, 2024 1

Thank you! I switch to v141_xp toolchain and build the program successful. I checked my project, maybe when I test the program in XP, I forgot to move the .xml file at the same time, so the window do not show.

👍 I have tested the program, it just works fine! 👍

run in xp

PS: If we want to support XP, we need to disable the touch support first in config.h (maybe XP do not support touch!) and then use v141_xp toolchain to build.

from lcui.

lc-soft avatar lc-soft commented on September 18, 2024

This is possible if VCPkg supports compilation of dependent libraries for Windows XP. Otherwise, you need to manually use the XP compilation toolchain to compile LCUI and its dependent libraries.

from lcui.

felixmaker avatar felixmaker commented on September 18, 2024

I tried to build LCUI using /MT option, but it failed. Link error 2001 @_BrotliDecoderDecompress (freetype).

from lcui.

lc-soft avatar lc-soft commented on September 18, 2024

You need to link to the Brotli library because FreeType depends on it.

from lcui.

felixmaker avatar felixmaker commented on September 18, 2024

Thank you! I have built the dll, but when I replace the dll in my project, the program run failed, it does not show in screen and needs to kill in the task manager. Have you met with this situation?

from lcui.

lc-soft avatar lc-soft commented on September 18, 2024

You didn't provide your build environment and build methods, so I couldn't give a solution.

Maybe you can run the program with debugging tools.

from lcui.

felixmaker avatar felixmaker commented on September 18, 2024

Sorry, I use VS2019 and MSVC V142 (both are the latest version) to build LCUI.dll etc and use lcpkg to install all dependcies.
The first time I built the program, the compiler can not include some header files. So I change those lines.
In platform.h, before

#if defined(WINAPI_PARTITION_APP)
    #define LCUI_APP_H <LCUI/platform/windows/uwp.h>
#else
    #define LCUI_EVENTS_H <LCUI/platform/windows/windows_events.h>
    #define LCUI_MOUSE_H <LCUI/platform/windows/windows_mouse.h>
    #define LCUI_KEYBOARD_H <LCUI/platform/windows/windows_keyboard.h>
    #define LCUI_DISPLAY_H <LCUI/platform/windows/windows_display.h>
#endif

after

#define LCUI_EVENTS_H <LCUI/platform/windows/windows_events.h>
#define LCUI_MOUSE_H <LCUI/platform/windows/windows_mouse.h>
#define LCUI_KEYBOARD_H <LCUI/platform/windows/windows_keyboard.h>
#define LCUI_DISPLAY_H <LCUI/platform/windows/windows_display.h>

Then I built the program, but when I replace it in my project, it doesn't work.

from lcui.

lc-soft avatar lc-soft commented on September 18, 2024

I use VS2019 and MSVC V142 (both are the latest version) to build LCUI.dll etc

v142? Why not use v142_xp? You said you want to support windows XP, then you should use v142_xp.

In the solution configuration of LCUI, the platform toolset has selected v141_xp, you can switch to v142_xp, so you don't need to modify the platform.h file.

image

the program run failed, it does not show in screen and needs to kill in the task manager.
... Then I built the program, but when I replace it in my project, it doesn't work.

Are you using VS2019 to build your project? If so, please use vs2019 to debug it. The general steps are as follows:

  1. Add a breakpoint on the line of code below LCUI_Init().
    image
  2. Click "Local windows debugger".
    image
  3. Check local variables.
    image
  4. Click "Continue".
    image
  5. If nothing is displayed, click “Break All”.
    image
  6. Check Threads and Call stack.
    image

from lcui.

lc-soft avatar lc-soft commented on September 18, 2024

It seems that the problem has been solved and this issue can be closed.

from lcui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.