abougouffa / minemacs

MinEmacs: an Emacs configuration framework for daily use
https://abougouffa.github.io/minemacs/
MIT License
140 stars 17 forks source link

[BUG] Jinx compilation failed [Windows] #147

Closed raylemon closed 8 months ago

raylemon commented 8 months ago

Describe the bug

gcc -I. -O2 -Wall -Wextra -fPIC -shared -o jinx-mod.dll jinx-mod.c -I/usr/include/enchant-2 -lenchant-2
jinx-mod.c:19:10: fatal error: enchant.h: No such file or directory
   19 | #include <enchant.h>
      |          ^~~~~~~~~~~
compilation terminated.
Jinx: Compilation of jinx-mod.dll failed

Emacs version

GNU Emacs 29.1.90 (build 1, x86_64-w64-mingw32) of 2023-12-15 Windows version

Checkup list

To Reproduce Steps to reproduce the behavior:

  1. Start Emacs
  2. Visit any file

Expected behavior Compilation of jinx, I suppose (?)

Backtrace none

Screenshots none

Additional context none

jonathanwilner commented 8 months ago

You need to have the headers for enchant that are appropriate for your platform in order for that to compile that library.

On Wed, Dec 27, 2023 at 05:56 raylemon @.***> wrote:

Describe the bug

gcc -I. -O2 -Wall -Wextra -fPIC -shared -o jinx-mod.dll jinx-mod.c -I/usr/include/enchant-2 -lenchant-2 jinx-mod.c:19:10: fatal error: enchant.h: No such file or directory 19 | #include | ^~~ compilation terminated. Jinx: Compilation of jinx-mod.dll failed

Emacs version

GNU Emacs 29.1.90 (build 1, x86_64-w64-mingw32) of 2023-12-15 Windows version

Checkup list

  • [X ] You've tested disabling your config.el using MINEMACS_IGNORE_CONFIG_EL=1 emacs?

To Reproduce Steps to reproduce the behavior:

  1. Start Emacs
  2. Visit any file

Expected behavior Compilation of jinx, I suppose (?)

Backtrace none

Screenshots none

Additional context none

— Reply to this email directly, view it on GitHub https://github.com/abougouffa/minemacs/issues/147, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABEOIB34HQ7U2DFAYLWNA6DYLQSHHAVCNFSM6AAAAABBEMQG5OVHI2DSMVQWIX3LMV43ASLTON2WKOZSGA2TONBQGE4TGMI . You are receiving this because you are subscribed to this thread.Message ID: @.***>

abougouffa commented 8 months ago

@raylemon Thanks for reporting this. Yep, as @jonathanwilner said, Jinx will need the enchant library to be installed.

I think I will fall back to spell-fu on Windows, otherwise, you would need to manually install libenchant in order for this to compile.

raylemon commented 8 months ago

Pour info, jinx fonctionne sous Windows. Avec MSYS, il faut installer libenchant, glib2 et les dictionnaires. Seulement, ta mise à jour vient de le désactiver sous Windows ^^. Si ça t’intéresse, je peux t’expliquer comment j’ai fait sous Windows.

abougouffa commented 8 months ago

Ah, super! Je le réactive du coup!