Skip to content

Build system proposal - #2

Merged
dailker merged 3 commits into
codehubbers:mainfrom
CoderRC:main
Sep 27, 2025
Merged

dailker merged 3 commits into
codehubbers:mainfrom
CoderRC:main

Conversation

@CoderRC

@CoderRC CoderRC commented Jul 9, 2025

Copy link
Copy Markdown
Member

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

dailker commented Jul 9, 2025

Copy link
Copy Markdown
Member

@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

@dailker dailker left a comment

Copy link
Copy Markdown
Member

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

CoderRC commented Jul 9, 2025

Copy link
Copy Markdown
Member Author

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

@dailker dailker left a comment

Copy link
Copy Markdown
Member

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

efecan0 commented Jul 11, 2025

Copy link
Copy Markdown
Member

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

LICENSE rights deleted, if you agree as contributor will be merged.

@CoderRC
@dailker

dailker commented Sep 27, 2025

Copy link
Copy Markdown
Member

LICENSE rights deleted, if you agree as contributor will be merged.

@CoderRC

@CoderRC

CoderRC commented Sep 27, 2025

Copy link
Copy Markdown
Member Author

Ok agree

@dailker
dailker merged commit bf8d2fb into codehubbers:main Sep 27, 2025
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