News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Problem when buiding svn 12878

Started by gd_on, August 25, 2022, 04:59:12 PM

Previous topic - Next topic

gd_on

When I tried a full rebuild of svn 12878, I had a problem in spellcheker, at line 36 in HunspellInterface.h :

#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 :

#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.
Windows 11 64 bits (25H2), svn C::B (last version or almost!), wxWidgets 3.3.2, Msys2 Compilers 16.1.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

Miguel Gimenez

I can not compile it either. Also, that revision supposedly removes some source files but it does not.

LETARTARE

With Leap-15.4, I added the search path for the includes for target 'plugin' : 'hunspell/src/hunspell'
CB-13834, plugins-sdk-2.25.0 : Collector-2.6.5, AddOnForQt-5.1.2
1- Win7 Business Pack1 64bits : wx-3.2.8, gcc-15.2.0,
2- OpenSuse::Leap-15.6-64bits : wx-3.2.8;gtk3-u, gcc-15.2.0,
=> !! The messages are translated by 'Deepl'

Miguel Gimenez


gd_on

Windows 11 64 bits (25H2), svn C::B (last version or almost!), wxWidgets 3.3.2, Msys2 Compilers 16.1.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

Miguel Gimenez

You may need to modify your generic Spellchecker CBP so it uses the updated search path.

gd_on

QuoteYou may need to modify your generic Spellchecker CBP
done on my side but not published.
Windows 11 64 bits (25H2), svn C::B (last version or almost!), wxWidgets 3.3.2, Msys2 Compilers 16.1.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

gd_on

#7
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.
Windows 11 64 bits (25H2), svn C::B (last version or almost!), wxWidgets 3.3.2, Msys2 Compilers 16.1.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

Miguel Gimenez

I can not check ATM, but I think m_pHunhandle must be nullified after the call to Hunspell_destroy().

AndrewCot

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.