Sign inSign up

nabla/nabla-cpp

By nabla

•Updated over 3 years ago

Nabla CPP sample

Image
0

523

nabla/nabla-cpp repository overview

⁠nabla-cpp

A project that contains cpp code sample

License Gitter Minimal java version

Jenkins build Status Travis Build Status Quality Gate

⁠Table of contents

⁠How to run it

⁠Install tools
./install.sh

See also install.sh

⁠Linux or OS X
  • Some Python packages: pip install conan termcolor distro pywin32
⁠Windows
c:\Python27[-x64]\python.exe -m pip install --upgrade pip
pip.exe install colorama conan termcolor distro pywin32 setuptools==19.2 pyinstaller==2.1
⁠Install python dependencies
#sudo pip2.7 freeze > requirements-current-2.7.txt
sudo pip2.7 install -r requirements-current-2.7.txt

#sudo pip3.8 freeze > requirements-current-3.8.txt
sudo pip3.8 install -r requirements-current-3.8.txt

See also build.sh for scons AND sample/build-linux/build.sh for cmake

⁠Build it
export SCONS="/usr/bin/python3.6 /opt/ansible/env36/bin/scons"
./build.sh
#python3 /usr/bin/scons --cache-disable opt=True gcc_version=9.2.1 color=True use_cpp11=True
⁠Clean it
scons --clean

See also clean.sh

Your components should be available

You can convert a rpm to a deb with alien

sudo apt-get install alien
⁠Wine

See https://doc.ubuntu-fr.org/wine_trucs_et_astuces⁠

# For 32 bits do first
export WINEARCH="win32"
# Start the program
WINEDEBUG=-all target/bin/x86Linux/run_app.exe
# shows dynamically linked libraries
ldd target/bin/x86Linux/run_app.exe
# shows the symbols in the file.
nm target/bin/x86Linux/run_app.exe
#convert PE32+ to ELF
strip -O elf32-i386 -o myprogram.elf -N xxxxxxx target/bin/x86Linux/run_app.exe
readelf -a -W  myprogram.elf
i686-w64-mingw32-objdump -h myprogram.elf

# See https://wiki.winehq.org/Wine_Developer%27s_Guide/Debugging_Wine
WINEDEBUG=+relay,-debug wine target/bin/x86Linux/run_app.exe
WINEDEBUG=+relay wine target/bin/x86Linux/run_app.exe 2>&1 | less -i
winedbg target/bin/x86Linux/run_app.exe


ldconfig -v | grep libstdc
g++ -print-file-name=libstdc++.a

file /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.22
#readelf -a -W /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.22
readelf -a -W target/lib/x86Linux/debug64/shared/libmain_library.so

⁠Quality tools

See pre-commit⁠ Run pre-commit install

Run pre-commit run --all-files

pylint --rcfile=.pylintrc SConstruct
pylint --rcfile=.pylintrc *.py

⁠Eclipse

File -> Import -> Existing code as Makefile project

sample/build-linux/

⁠Tools

See tools⁠

⁠Update README.md Table of Contents

npm install --save markdown-toc

brew install github-markdown-toc gh-md-toc --insert README.md

Tag summary

Content type

Image

Digest

sha256:d31149c67…

Size

44.3 MB

Last updated

over 3 years ago

docker pull nabla/nabla-cpp