asdfjkl / ctegaki-lib

Japanese Online Handwriting Recognition Engine
BSD 2-Clause "Simplified" License
13 stars 3 forks source link

"Stack smashing error" when trying to run the demo #2

Closed tuanna-hsp closed 8 years ago

tuanna-hsp commented 8 years ago

Error with G++ 5.3, Ubuntu 14.04

asdfjkl commented 8 years ago

Thanks for reporting. I am slightly busy with other projects right now. I'll look into it asap!

tuanna-hsp commented 8 years ago

Thank you, looking forward it :+1:

asdfjkl commented 8 years ago

I can't reproduce this here on a vanilla Ubuntu 14.04 64bit. Compiles fine and runs fine:

asdfjkl@ubuntu:~/ctegaki-lib/demo$ ./tegaki 
日 目 田 ٸ 由 且 召 ロ 自 囚 寡

1.) Standard g++ is

g++ -v
[...]
gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04.1) 

Any specific requirement on why you use g++ 5.3? How did you install g++ 5.3? Could you try with the default gcc and look if the bug still occurrs? 2.) If you are on a 64bit system: Did you try to build the pattern data? The supplied pattern data are only for 32bit. 3.) If you are on a 32bit system: Can you try to build the pattern data and use those instead of the supplied ones? Does the bug still occurr then?

tuanna-hsp commented 8 years ago

Make gave out following error: capture2

So i manually compile and run capture

I have just reinstalled Lubuntu 15.10 32bit, so GCC is newer (5.2.1) I will try again with with old version soon.

asdfjkl commented 8 years ago

well the error message apparently says that the linker can't find the lib. And looking at your screenshot, you have no

/ctegaki-lib/demo/lib/libctegaki.a

and when you call make in /ctegaki-lib/demo, the linker is looking for a lib subdirectory.

so, either try to create that lib subdirectory within demo and copy the lib to it, or change the include-dir in the makefile according to your directory structure.... So I doubt that you have an issue with GCC or a bug within the lib, it's just that you failed to link the lib.

asdfjkl commented 8 years ago

it seems your issue has been solved. Otherwise, please open a new one...