Skip to content

Entity Component System library for C++

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
COPYING
Notifications You must be signed in to change notification settings

metaverse-systems/libecs-cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

2cf019d · Jan 29, 2025
Nov 8, 2023
Nov 8, 2023
Nov 8, 2023
Jan 29, 2025
Jan 29, 2025
Feb 2, 2019
Feb 8, 2022
Feb 2, 2019
Feb 18, 2019
Feb 2, 2019
Sep 29, 2020
Feb 2, 2019
Mar 20, 2022
Jan 29, 2025
Feb 2, 2019
Feb 2, 2019
Mar 20, 2022
Jun 22, 2019
Nov 8, 2023
Mar 20, 2022
Nov 8, 2023

Repository files navigation

libecs-cpp - Entity Component System for C++

See src/example.cpp for a minimal example.

Build environment setup

The build system and its dependencies are designed around Linux, if you want to build on Windows you will need to use Windows Subsystem for Linux.

  • Install base packages
sudo apt install build-essential libtool pkg-config curl git gawk
  • Install wine and Windows dev packages
sudo su -
dpkg --add-architecture i386
apt update
apt install libz-mingw-w64-dev mingw-w64-x86-64-dev binutils-mingw-w64-x86-64 \
g++-mingw-w64-x86-64 gcc-mingw-w64-x86-64 wine wine32 wine64 wixl osslsigncode \
mingw-w64-tools
exit
  • Download std::thread implementation for mingw
sudo su -

curl -o /usr/x86_64-w64-mingw32/include/mingw.thread.h \
https://raw.githubusercontent.com/meganz/mingw-std-threads/master/mingw.thread.h

curl -o /usr/x86_64-w64-mingw32/include/mingw.invoke.h \
https://raw.githubusercontent.com/meganz/mingw-std-threads/master/mingw.invoke.h

curl -o  /usr/x86_64-w64-mingw32/include/mingw.mutex.h \
https://raw.githubusercontent.com/meganz/mingw-std-threads/master/mingw.mutex.h

exit

Build library

  • Build and install libecs-cpp
cd libecs-cpp
./autogen.sh
./configure
make
sudo make install
  • Test
./src/example

Build library for Windows

  • Build and install libecs-cpp
export PKG_CONFIG_PATH=/usr/x86_64-w64-mingw32/lib/pkgconfig/
cd libecs-cpp
./autogen.sh
make distclean
./configure --host=x86_64-w64-mingw32 --prefix=/usr/x86_64-w64-mingw32
make
sudo make install
unset PKG_CONFIG_PATH
  • Test
export MING_LIB=`ls  /usr/lib/gcc/x86_64-w64-mingw32/|grep posix|head -n1`
WINEPATH="/usr/lib/gcc/x86_64-w64-mingw32/${MING_LIB};/usr/x86_64-w64-mingw32/lib" wine64 src/example.exe

About

Entity Component System library for C++

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
COPYING

Stars

Watchers

Forks

Packages

No packages published

Languages