Giter Club home page Giter Club logo

xyproto / cxx Goto Github PK

View Code? Open in Web Editor NEW
118.0 5.0 4.0 8.6 MB

:electric_plug: Configuration-free utility for building, testing and packaging executables written in C++. Can auto-detect compilation flags based on includes, via the package system and pkg-config.

License: BSD 3-Clause "New" or "Revised" License

Makefile 10.53% Python 82.84% Shell 4.45% Ruby 0.59% Dockerfile 1.59%
cpp cxx bsd linux cmake cpp20 arch-linux freebsd void-linux scons

cxx's People

Contributors

felixonmars avatar winspool avatar xyproto avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

cxx's Issues

cxx fails, when CXX or CXXFLAGS are used

the cxx tool fails to handle CXX or CXXFLAGS environment variables correctly,
even for a hello.cpp

Examples:

CXX="g++  -DHELLO_FROM_CXX" cxx
CXX="g++"  CXXFLAGS="-DHELLO_FROM_CXXFLAGS" cxx

Instead of building the example, scons prints the scons commandline help.


When avoiding a "-D" in CXXFLAGS and using a "-I" instead (with a script for CXX),
the failure is different:

Example with "scriptname":

CXX="scriptname"  CXXFLAGS=" -I/$HOME/dummy_include_dir "  cxx 

scriptname -o hello.o -c -std=c++20 -O2 -pipe -fPIC -fno-plt -fstack-protector-strong -Wall -Wshadow -Wpedantic -Wno-parentheses -Wfatal-errors -Wvla -Wignored-qualifiers hello.cpp
sh: 1: scriptname: not found
*** [hello.o] Error 127

Using export makes no difference:

export CXX="scriptname"
export CXXFLAGS=" -I/$HOME/dummy_include_dir "
cxx

scriptname -o hello.o -c -std=c++20 -O2 -pipe -fPIC -fno-plt -fstack-protector-strong -Wall -Wshadow -Wpedantic -Wno-parentheses -Wfatal-errors -Wvla -Wignored-qualifiers hello.cpp
sh: 1: scriptname: not found
*** [hello.o] Error 127

cxx export error

$ cxx export
make: *** No rule to make target 'export'. Stop.

Python problem

Hello Alexander,
I got a Python warning and some Error on MacOS Sonoma (on all Projects). Here an Example:

โžœ  gtk4ui git:(main) cxx build                                                     
/usr/local/share/cxx/build.py:257: SyntaxWarning: invalid escape sequence '\.'
  cmd = '/usr/bin/pacman -Ql -- ' + package + ' | /usr/bin/grep "\.pc$" | /usr/bin/cut -d" " -f2-'
/usr/local/share/cxx/build.py:361: SyntaxWarning: invalid escape sequence '\.'
  cmd = "/usr/sbin/pkg list " + package + " | /usr/bin/grep '\.pc$'"
/usr/local/share/cxx/build.py:526: SyntaxWarning: invalid escape sequence '\.'
  cmd = 'LC_ALL=C /usr/bin/dpkg-query -L ' + package + ' | /bin/grep "\.pc$"'
/usr/local/share/cxx/build.py:616: SyntaxWarning: invalid escape sequence '\.'
  cmd = 'LC_ALL=C brew ls --verbose ' + package + " | grep '\.pc$'"
IndexError: list index out of range:
  File "/usr/local/share/cxx/build.py", line 2385:
    cxx_main()
  File "/usr/local/share/cxx/build.py", line 2210:
    add_flags(env, src_file, system_include_dirs, win64, compiler_includes)
  File "/usr/local/share/cxx/build.py", line 1540:
    includes, defines, libs, libpaths, linkflags, other_cxxflags = get_buildflags(
  File "/usr/local/share/cxx/build.py", line 1033:
    framework_dict[path_components[5]] = os.path.normpath(framework_dir)

Perhaps something with the new Python version?

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.