Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: gd_on on August 25, 2022, 04:59:12 pm

Title: Problem when buiding svn 12878
Post by: gd_on 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.
Title: Re: Problem when buiding svn 12878
Post by: Miguel Gimenez 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.
Title: Re: Problem when buiding svn 12878
Post by: LETARTARE 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'
Title: Re: Problem when buiding svn 12878
Post by: Miguel Gimenez on August 28, 2022, 10:59:32 am
Should be fixed in r12879 (https://sourceforge.net/p/codeblocks/code/12879/).
Title: Re: Problem when buiding svn 12878
Post by: gd_on on August 28, 2022, 12:26:44 pm
Looks OK now. Thanks. :)
Title: Re: Problem when buiding svn 12878
Post by: Miguel Gimenez on August 29, 2022, 11:44:40 pm
You may need to modify your generic Spellchecker CBP so it uses the updated search path.
Title: Re: Problem when buiding svn 12878
Post by: gd_on 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.
Title: Re: Problem when buiding svn 12878
Post by: gd_on 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.
Title: Re: Problem when buiding svn 12878
Post by: Miguel Gimenez 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().
Title: Re: Problem when buiding svn 12878
Post by: AndrewCot on August 31, 2022, 05:14:52 am
I have added a patch to ticket 1287 (https://sourceforge.net/p/codeblocks/tickets/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.