Author Topic: Problem when buiding svn 12878  (Read 5203 times)

Offline gd_on

  • Lives here!
  • ****
  • Posts: 799
Problem when buiding svn 12878
« on: August 25, 2022, 04:59:12 pm »
When I tried a full rebuild of svn 12878, I had a problem in spellcheker, at line 36 in HunspellInterface.h :
Code
#include "hunspell.h"
hunspell.h is not found.
Nevertheless this file is here in ...\SpellChecker\hunspell\src\hunspell and the search path to compile HunspellInterface.cpp seems to be correct.
May be something strange is that in HunspellInterface.cpp you have :
Code
#include "hunspell.h"
#include "HunspellInterface.h"
but HunspellInterface.h contains itself an #include "hunspell.h"

I have solved this by making a copy (in fact, creating hardlinks) of hunspell.h and hunvisapi.h directly in main spellchecker directory. But, it's just a workaround.

PS: I have not this problem with svn 12877.
« Last Edit: August 26, 2022, 09:46:31 am by gd_on »
Windows 11 64 bits (23H2), svn C::B (last version or almost!), wxWidgets 3.2.5 (tests with 3.3), Msys2 Compilers 14.1.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1628
Re: Problem when buiding svn 12878
« Reply #1 on: August 27, 2022, 01:10:30 pm »
I can not compile it either. Also, that revision supposedly removes some source files but it does not.

Offline LETARTARE

  • Lives here!
  • ****
  • Posts: 531
  • L'ami de l'homme.The friend of man.
    • LETARTARE
Re: Problem when buiding svn 12878
« Reply #2 on: August 27, 2022, 04:04:10 pm »
With Leap-15.4, I added the search path for the includes for target 'plugin' : 'hunspell/src/hunspell'
CB-13515, plugins-sdk-2.25.0 : Collector-2.0.0, AddOnForQt-3.9.6
1-Win7 Business Pack1 64bits : wx-3.2.4, gcc-8.1.0,
2-OpenSuse::Leap-15.4-64bits : wx-3.2.4;gtk3, gcc-8.2.1,
=> !! The messages are translated by Deepl

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1628
Re: Problem when buiding svn 12878
« Reply #3 on: August 28, 2022, 10:59:32 am »
Should be fixed in r12879.

Offline gd_on

  • Lives here!
  • ****
  • Posts: 799
Re: Problem when buiding svn 12878
« Reply #4 on: August 28, 2022, 12:26:44 pm »
Looks OK now. Thanks. :)
Windows 11 64 bits (23H2), svn C::B (last version or almost!), wxWidgets 3.2.5 (tests with 3.3), Msys2 Compilers 14.1.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1628
Re: Problem when buiding svn 12878
« Reply #5 on: August 29, 2022, 11:44:40 pm »
You may need to modify your generic Spellchecker CBP so it uses the updated search path.

Offline gd_on

  • Lives here!
  • ****
  • Posts: 799
Re: Problem when buiding svn 12878
« Reply #6 on: August 30, 2022, 12:01:11 am »
Quote
You may need to modify your generic Spellchecker CBP
done on my side but not published.
Windows 11 64 bits (23H2), svn C::B (last version or almost!), wxWidgets 3.2.5 (tests with 3.3), Msys2 Compilers 14.1.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

Offline gd_on

  • Lives here!
  • ****
  • Posts: 799
Re: Problem when buiding svn 12878
« Reply #7 on: August 30, 2022, 04:16:23 pm »
Nevertheless, after some tests, I have problems when I quit codeblocks (before quitting, everything seemed to work as expected). An RPT file is created and in the list of files, I find spellchecker.dll near the top of the list. I reverted to svn 18877 and the problem is no more there. I have built C::B with 32_64 workspace version from r12879.
« Last Edit: August 30, 2022, 04:37:54 pm by gd_on »
Windows 11 64 bits (23H2), svn C::B (last version or almost!), wxWidgets 3.2.5 (tests with 3.3), Msys2 Compilers 14.1.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1628
Re: Problem when buiding svn 12878
« Reply #8 on: August 30, 2022, 05:41:55 pm »
I can not check ATM, but I think m_pHunhandle must be nullified after the call to Hunspell_destroy().

Offline AndrewCot

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 678
Re: Problem when buiding svn 12878
« Reply #9 on: August 31, 2022, 05:14:52 am »
I have added a patch to ticket 1287 to fix the two crashes I seen with wx3.2. I have only tested the patch for an hour, so it could do with some more testing.