| name | drogon-build |
| description | Build Drogon payment plugin with correct Release mode configuration |
| user-invocable | false |
Build Requirements
CRITICAL: This project MUST be built in Release mode due to local Drogon framework configuration.
Correct Build Commands
Windows (from PayBackend/):
..\scripts\build.bat
Never use:
cmake --build build directly (wrong configuration)
- Debug mode builds (linker errors with Release Drogon)
- Visual Studio build button (unless configured for Release)
Why This Matters
- Local Drogon is compiled in Release mode
- Mixing Debug/Release causes linker errors
- Conan manages all third-party dependencies
- build.bat handles all necessary CMake configuration
Build Process Details
The build.bat script automatically:
- Changes to PayBackend directory
- Creates build directory if needed
- Runs CMake with Release configuration
- Sets up Conan toolchain
- Builds the target in Release mode
- Places output in build/Release/
Post-Build Verification
After building, verify:
ls -lh build/Release/*.exe
./build/Release/test_payplugin.exe
./build/Release/PayServer.exe --version
Troubleshooting
Linker errors with Drogon
Problem: Unresolved external symbols
Solution: Ensure Release mode build (Debug/Release mismatch)
Conan dependency issues
Problem: Cannot find Conan packages
Solution: Run conan install . from PayBackend/ first
Build速度快 but runtime crashes
Problem: Debug build succeeded but app crashes
Solution: You likely built Debug against Release Drogon - rebuild in Release mode
Related Files
- Build script:
scripts/build.bat
- CMake config:
PayBackend/CMakeLists.txt
- Conan dependencies:
PayBackend/conanfile.txt
- Project docs:
AGENTS.md (Build Rules section)