Skip to content

Build system proposal #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Build system proposal #2

wants to merge 2 commits into from

Conversation

CoderRC
Copy link
Member

@CoderRC CoderRC commented Jul 9, 2025

main for the user compiling the source code and tests to test the code with test cases. These branches are only an attempt to show how c++ code can be compiled for the msg-sdk-cpp repository. I just wanted to show a possible build system for the msg-sdk-cpp repository. We can discuss here for feedback.
Just change the variables in the configure file to add or change files to compilation.
SOURCES='$(srcdir)/source/protcolManager.cpp
'
INCLUDE_DIRECTORIES='
include
'
INCLUDE_FILES='
include/protcolManager.h
'
This is how I build it below in windows:
Download msys2 installer from https://www.msys2.org/ it is an exe
Then run C:\msys64\mingw64.exe
There I do below

pacman -S git
pacman -S mingw-w64-x86_64-gcc
pacman -S mingw-w64-x86_64-g++
pacman -S make
pacman -S mingw-w64-x86_64-autotools
pacman -S bison
pacman -S flex
git clone https://github.com/CoderRC/libmingw32_extended.git
cd libmingw32_extended
mkdir build
cd build
../configure
make
make install
cd ../..
git clone https://github.com/CoderRC/noise-c.git
cd noise-c
./autogen.sh
mkdir build
cd build
../configure LDFLAGS=-lmingw32_extended
make
make install
cd ../..
git clone https://github.com/codehubbers/msg-sdk-cpp.git
cd msg-sdk-cpp
mkdir build
cd build
../configure LDFLAGS=-lmingw32_extended
make

Build system that does something
@dailker
Copy link
Member

dailker commented Jul 9, 2025

@codehubbers/core-contributors c developers, look his code and put your opinions shall merge or not?

@dailker dailker mentioned this pull request Jul 9, 2025
@dailker dailker linked an issue Jul 9, 2025 that may be closed by this pull request
@dailker dailker removed a link to an issue Jul 9, 2025
@dailker dailker linked an issue Jul 9, 2025 that may be closed by this pull request
Copy link
Member

@dailker dailker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

build.sh for easy installation. please create it and do same functionality as explained in README.md

build.sh and build.ps1 for easy installation - requested by dailker
@CoderRC
Copy link
Member Author

CoderRC commented Jul 9, 2025

Added build.sh and build.ps1 for easy installation - requested by dailker

Copy link
Member

@dailker dailker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems great waiting other code reviewers opinions.

@efecan0
Copy link
Member

efecan0 commented Jul 11, 2025

We have no issue with the build system proposal. However, if we want to work together as open community, we first need to design architecture and follow the steps properly.
Note: Change MIT license

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

High Level Architecture
3 participants