本文へ移動
cccskills
無料GitHub で公開

build-and-compile

Building, compiling, and resolving dependency issues across languages

インストール方法を見る

含まれるファイル(1)

  • SKILL.md2.2 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Build & Compile

Strategies for building code and resolving dependency issues.

Build System Detection

Check for build files in order:

  • Makefile → make (read it first to understand targets)
  • CMakeLists.txt → cmake -B build && cmake --build build
  • pyproject.toml / setup.py → pip install -e .
  • package.json → npm install && npm run build
  • Cargo.toml → cargo build --release
  • go.mod → go build ./...
  • No build system → compile directly (gcc, g++, rustc, etc.)

Compilation Strategies

C/C++

  • Always read the Makefile/CMakeLists first
  • Common flags: -O2 -Wall -lm -lpthread
  • Missing headers → apt-get install lib<name>-dev
  • Linking errors → check library order (dependencies last: -lfoo -lbar -lm)

Python

  • Use virtual environments when possible
  • pip install -e . for editable installs
  • Missing modules → check requirements.txt, pyproject.toml
  • Version conflicts → read the actual error, pin versions

Multi-language projects

  • Build dependencies first (C libraries before Python bindings)
  • Check for Cython, SWIG, or FFI bridges
  • Environment variables often needed: LD_LIBRARY_PATH, PYTHONPATH

Dependency Resolution

  1. Read the FULL error message — the missing dependency is usually named
  2. Search for the package: apt-cache search <name>, pip search <name>
  3. Install the minimum needed — don't install everything
  4. If a package is unavailable, check for alternatives or build from source

Common Build Failures

ErrorLikely CauseFix
fatal error: foo.h: No such fileMissing dev headersapt-get install libfoo-dev
undefined reference toMissing library at link timeAdd -lfoo flag
No module named 'foo'Missing Python packagepip install foo
command not found: makeBuild tools missingapt-get install build-essential
version 'GLIBC_X.Y' not foundBinary built for newer systemRebuild from source

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Review Python code for quality, security, and best practices

日本語の概要は準備中です。原文の説明を表示しています。

vstorm-co/pydantic-deepagents1,0862026年10月6日 更新

Systematic code review for bugs, security, style, and performance

日本語の概要は準備中です。原文の説明を表示しています。

vstorm-co/pydantic-deepagents1,0862026年10月6日 更新

Comprehensive data analysis skill for CSV files using Python and pandas

日本語の概要は準備中です。原文の説明を表示しています。

vstorm-co/pydantic-deepagents1,0862026年10月6日 更新

Working with diverse data formats: binary, text, structured, and custom

日本語の概要は準備中です。原文の説明を表示しています。

vstorm-co/pydantic-deepagents1,0862026年10月6日 更新

Best practices for creating research diagrams with Excalidraw MCP tools

日本語の概要は準備中です。原文の説明を表示しています。

vstorm-co/pydantic-deepagents1,0862026年10月6日 更新

Systematic exploration of unknown environments before starting work

日本語の概要は準備中です。原文の説明を表示しています。

vstorm-co/pydantic-deepagents1,0862026年10月6日 更新

vstorm-co のスキルをすべて見る

このスキルの問題を報告する