Build FLEKS

Compile the FLEKS project and regenerate compile_commands.json for IntelliSense.

3|2|Updated Jul 5, 2023
One-click install
npx skills add https://github.com/SWMFsoftware/FLEKS --skill build-fleks
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Build FLEKS
Source: https://github.com/SWMFsoftware/FLEKS/tree/main/.agent/skills/build-fleks
Command: npx skills add https://github.com/SWMFsoftware/FLEKS --skill build-fleks

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill automates the compilation of the FLEKS project, ensuring that the codebase is built correctly and that development tools like IntelliSense have up-to-date information.

Core Features & Use Cases

  • Project Compilation: Builds the FLEKS executable or library using Makefiles.
  • IntelliSense Update: Regenerates compile_commands.json for accurate code completion and navigation.
  • Use Case: After making changes to the FLEKS source code, run this Skill to recompile the project and ensure your IDE correctly understands the updated code structure.

Quick Start

Run the build FLEKS skill to compile the project and regenerate compile_commands.json.

Frequently Asked Questions about Build FLEKS

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I compile a C++ simulation project and update IntelliSense automatically?

Compiling a C++ simulation project and updating IntelliSense requires building executables and libraries via Makefiles while regenerating compile_commands.json, ensuring your IDE accurately analyzes the updated code structure.

Why does IntelliSense show errors after I recompile my C++ simulation code?

IntelliSense shows errors after recompiling C++ simulation code because compile_commands.json is outdated. Regenerating this file during the build process ensures your IDE correctly understands the updated code structure and provides accurate code completion.

What environment variables are required to build FLEKS and generate compile_commands.json?

Building FLEKS and generating compile_commands.json requires specific environment variables like AMREXDIR and the presence of SWMF's Makefile.conf to properly configure the build environment for the C++ simulation project.

Can I use this build process to create both standalone executables and SWMF integration libraries?

Yes, you can use this build process to compile both standalone executables and libraries specifically designed for SWMF integration, streamlining the build workflow for your complex C++ simulation environment.

What is the best way to streamline a complex C++ simulation build and keep code analysis tools accurate?

The best way to streamline a complex C++ simulation build and keep code analysis tools accurate is to automate project compilation while ensuring the regeneration of compile_commands.json, providing up-to-date information for IDE IntelliSense.