Code Monkey home page Code Monkey logo

Comments (3)

kisvegabor avatar kisvegabor commented on August 18, 2024

It seems you are using windows. In this case you need to use pthread.dll too.
http://sourceware.org/pthreads-win32/

from lv_port_pc_eclipse.

kisvegabor avatar kisvegabor commented on August 18, 2024

I tried it on Windows again and need to do the following steps:

  1. Download pthread from here: ftp://sourceware.org/pub/pthreads-win32/pthreads-w32-2-9-1-release.zip
  2. Copy Pre-built.2/include/ content to C:/MinGW/include
  3. Copy Pre-built.2/lib/x64/ content to C:/MinGW/lib (If you have a 64 machine)
  4. Copy Pre-built.2/dll/x64/ content to {eclipse_worksapce}/lv_pc/Debug/
  5. I got an error: 'struct timespec' redefined. To solve this: Project properties -> C/C++ Build -> Settings -> GCC C++ Compiler -> Miscellaneous -> Others flag and add -DHAVE_STRUCT_TIMESPEC (it could be a pthread issue)
  6. Download the development libraries of SDL from https://www.libsdl.org/download-2.0.php here Development Libraries: SDL2-devel-2.0.5-mingw.tar.gz
    To get it work I need to use the i686 (32 bit) libraries even on 64 bit system. So if you get undefined reference to SDL_init() error try the x86_64_w64_mingw folder
  7. Copy i686-w64-mingw32/include/SDL2 folder to C:/MinGW/include
  8. Copy i686-w64-mingw32/lib/ content to C:/MinGW/lib
  9. Copy i686-w64-mingw32/bin/SDL2.dll content to {eclipse_worksapce}/lv_pc/Debug/

Does it working now?

from lv_port_pc_eclipse.

kisvegabor avatar kisvegabor commented on August 18, 2024

In v5.0.0 pthread is already not used. More info

from lv_port_pc_eclipse.

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.