Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Unable to compile OpenJPEG 2.5.3 with MinGW on Windows #1569

Open
gengjianbo opened this issue Dec 22, 2024 · 0 comments
Open

Error: Unable to compile OpenJPEG 2.5.3 with MinGW on Windows #1569

gengjianbo opened this issue Dec 22, 2024 · 0 comments

Comments

@gengjianbo
Copy link

Description:
I am encountering several errors while trying to compile OpenJPEG 2.5.3 on Windows using MinGW. The errors seem to be related to missing function declarations, unknown types, and undeclared constants in the JavaOpenJPEGDecoder.c file.

Error messages:

  • 'opj_dinfo_t' is undefined
  • Implicit declaration of function 'reset_options_reading'
  • 'CODEC_J2K' undeclared
  • 'opj_common_ptr' undeclared
  • 'opj_cio_open' and 'opj_decode' have incompatible argument types
  • 'CODEC_JP2' undeclared
  • Implicit declaration of functions like 'opj_set_event_mgr' and 'opj_cio_close'

Steps to reproduce:

  1. Clone the repository:
    git clone https://github.com/openjpeg/openjpeg.git
  2. Follow the build instructions provided in the README.
  3. Run mingw32-make to compile the project.

Expected behavior:
The project should compile successfully without errors.

Actual behavior:
The build fails with multiple errors related to undeclared functions, types, and constants, especially in the JavaOpenJPEGDecoder.c file.

Environment:

  • Operating system: Windows 10
  • Compiler: MinGW
  • OpenJPEG version: 2.5.3
  • CMake version: [cmake version 3.5.0-rc2]
  • Java version: [javac 1.8.0_202]

Additional context:
I have tried to build OpenJPEG 2.5.3 multiple times using the provided build instructions, but I keep encountering the same errors. Any help or guidance would be greatly appreciated.

Thanks!

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

No branches or pull requests

1 participant