Skip to content

Make bmp2epf buildable and runnable on Linux#1

Draft
wren11 wants to merge 1 commit into
masterfrom
cursor/linux-env-setup-bmp2epf-3a3f
Draft

Make bmp2epf buildable and runnable on Linux#1
wren11 wants to merge 1 commit into
masterfrom
cursor/linux-env-setup-bmp2epf-3a3f

Conversation

@wren11

@wren11 wren11 commented Apr 22, 2026

Copy link
Copy Markdown
Owner

Summary

  • make bmp2epf compile with g++ on Linux by removing the Windows/GDI+ dependency from gdi_extract and delegating to the existing BMP parser
  • replace invalid std::exception(message) usage with standard runtime/usage exceptions
  • add missing standard/POSIX includes required by GCC and fix invalid width/height range checks

Validation

  • g++ -std=c++17 -O2 -Wall -Wextra -pedantic *.cpp -o bmp2epf succeeds
  • ./bmp2epf --help prints CLI usage
  • generated a BMP fixture and converted it with ./bmp2epf --frame sample.bmp sample_output.epf, producing .epf, .pal, and .tbl outputs
Open in Web Open in Cursor 

Co-authored-by: Dean <dm8824163@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants