brijohn / gnuboy-ex

Port of gnuboy, a Gameboy Color emulator, for CASIO EX-Word electronic dictionaries.
GNU General Public License v2.0
16 stars 2 forks source link

it gives error when compiling #1

Open xfm00mm opened 5 years ago

xfm00mm commented 5 years ago
toor@Computer ~ $ git clone https://github.com/brijohn/gnuboy-ex.git
Cloning into 'gnuboy-ex'...
remote: Enumerating objects: 154, done.
remote: Total 154 (delta 0), reused 0 (delta 0), pack-reused 154
Receiving objects: 100% (154/154), 401.34 KiB | 193.00 KiB/s, done.
Resolving deltas: 100% (41/41), done.
toor@Computer ~ $ cd gnuboy-ex
toor@Computer ~/gnuboy-ex $ export DEVKITSH4=/usr/devkitSH4
toor@Computer ~/gnuboy-ex $ make
path.c
fastmem.c
emu.c
rccmds.c
hw.c
lcd.c
src/lcd.c: In function 'lcd_refreshline':
src/lcd.c:764:14: warning: passing argument 1 of 'refresh_2' from incompatible pointer type [-Wincompatible-pointer-types]
    refresh_2(dest, BUF, PAL2, 160);
              ^~~~
In file included from src/lcd.c:3:
src/gnuboy.h:90:22: note: expected 'un16 *' {aka 'short unsigned int *'} but argument is of type 'byte *' {aka 'unsigned char *'}
 void refresh_2(un16 *dest, byte *src, un16 *pal, int cnt);
                ~~~~~~^~~~
src/lcd.c:770:14: warning: passing argument 1 of 'refresh_4' from incompatible pointer type [-Wincompatible-pointer-types]
    refresh_4(dest, BUF, PAL4, 160);
              ^~~~
In file included from src/lcd.c:3:
src/gnuboy.h:92:22: note: expected 'un32 *' {aka 'unsigned int *'} but argument is of type 'byte *' {aka 'unsigned char *'}
 void refresh_4(un32 *dest, byte *src, un32 *pal, int cnt);
                ~~~~~~^~~~
src/lcd.c:778:14: warning: passing argument 1 of 'refresh_2' from incompatible pointer type [-Wincompatible-pointer-types]
    refresh_2(dest, BUF, PAL2, 160);
              ^~~~
In file included from src/lcd.c:3:
src/gnuboy.h:90:22: note: expected 'un16 *' {aka 'short unsigned int *'} but argument is of type 'byte *' {aka 'unsigned char *'}
 void refresh_2(un16 *dest, byte *src, un16 *pal, int cnt);
                ~~~~~~^~~~
src/lcd.c:781:14: warning: passing argument 1 of 'refresh_4' from incompatible pointer type [-Wincompatible-pointer-types]
    refresh_4(dest, BUF, PAL4, 160);
              ^~~~
In file included from src/lcd.c:3:
src/gnuboy.h:92:22: note: expected 'un32 *' {aka 'unsigned int *'} but argument is of type 'byte *' {aka 'unsigned char *'}
 void refresh_4(un32 *dest, byte *src, un32 *pal, int cnt);
                ~~~~~~^~~~
src/lcd.c:787:17: warning: passing argument 1 of 'refresh_4_2x' from incompatible pointer type [-Wincompatible-pointer-types]
    refresh_4_2x(dest, BUF, PAL4, 160);
                 ^~~~
In file included from src/lcd.c:3:
src/gnuboy.h:97:25: note: expected 'un32 *' {aka 'unsigned int *'} but argument is of type 'byte *' {aka 'unsigned char *'}
 void refresh_4_2x(un32 *dest, byte *src, un32 *pal, int cnt);
                   ~~~~~~^~~~
src/lcd.c:798:17: warning: passing argument 1 of 'refresh_2_3x' from incompatible pointer type [-Wincompatible-pointer-types]
    refresh_2_3x(dest, BUF, PAL2, 160);
                 ^~~~
In file included from src/lcd.c:3:
src/gnuboy.h:93:25: note: expected 'un16 *' {aka 'short unsigned int *'} but argument is of type 'byte *' {aka 'unsigned char *'}
 void refresh_2_3x(un16 *dest, byte *src, un16 *pal, int cnt);
                   ~~~~~~^~~~
src/lcd.c:804:17: warning: passing argument 1 of 'refresh_4_3x' from incompatible pointer type [-Wincompatible-pointer-types]
    refresh_4_3x(dest, BUF, PAL4, 160);
                 ^~~~
In file included from src/lcd.c:3:
src/gnuboy.h:98:25: note: expected 'un32 *' {aka 'unsigned int *'} but argument is of type 'byte *' {aka 'unsigned char *'}
 void refresh_4_3x(un32 *dest, byte *src, un32 *pal, int cnt);
                   ~~~~~~^~~~
src/lcd.c:812:14: warning: passing argument 1 of 'refresh_4' from incompatible pointer type [-Wincompatible-pointer-types]
    refresh_4(dest, BUF, PAL4, 160);
              ^~~~
In file included from src/lcd.c:3:
src/gnuboy.h:92:22: note: expected 'un32 *' {aka 'unsigned int *'} but argument is of type 'byte *' {aka 'unsigned char *'}
 void refresh_4(un32 *dest, byte *src, un32 *pal, int cnt);
                ~~~~~~^~~~
src/lcd.c:815:17: warning: passing argument 1 of 'refresh_4_2x' from incompatible pointer type [-Wincompatible-pointer-types]
    refresh_4_2x(dest, BUF, PAL4, 160);
                 ^~~~
In file included from src/lcd.c:3:
src/gnuboy.h:97:25: note: expected 'un32 *' {aka 'unsigned int *'} but argument is of type 'byte *' {aka 'unsigned char *'}
 void refresh_4_2x(un32 *dest, byte *src, un32 *pal, int cnt);
                   ~~~~~~^~~~
src/lcd.c:821:17: warning: passing argument 1 of 'refresh_4_4x' from incompatible pointer type [-Wincompatible-pointer-types]
    refresh_4_4x(dest, BUF, PAL4, 160);
                 ^~~~
In file included from src/lcd.c:3:
src/gnuboy.h:99:25: note: expected 'un32 *' {aka 'unsigned int *'} but argument is of type 'byte *' {aka 'unsigned char *'}
 void refresh_4_4x(un32 *dest, byte *src, un32 *pal, int cnt);
                   ~~~~~~^~~~
rtc.c
split.c
events.c
exports.c
mem.c
palette.c
src/palette.c: In function 'bestmatch':
src/palette.c:45:9: warning: implicit declaration of function 'abs' [-Wimplicit-function-declaration]
   err = abs(r-r2) + abs(b-b2) + abs(g-g2);
         ^~~
save.c
cpu.c
keytable.c
debug.c
rcfile.c
refresh.c
sound.c
rckeys.c
rcvars.c
src/rcvars.c: In function 'my_atoi':
src/rcvars.c:60:9: warning: implicit declaration of function 'isdigit'; did you mean 'vid_init'? [-Wimplicit-function-declaration]
     if (isdigit(*s))
         ^~~~~~~
         vid_init
lcdc.c
video.c
src/sys/video.c:4:10: fatal error: graphics/lcdc.h: No such file or directory
 #include <graphics/lcdc.h>
          ^~~~~~~~~~~~~~~~~
compilation terminated.
/usr/devkitSH4/exword_rules:43: recipe for target 'src/sys/video.o' failed
make: *** [src/sys/video.o] Error 1
xfm00mm commented 5 years ago

My environment: Linux Mint Tara 64bit

Linux Computer 4.15.0-38-lowlatency #41-Ubuntu SMP PREEMPT Wed Oct 10 12:26:00 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

And devkit is installed correctly in /usr/devkitSH4

brijohn commented 5 years ago

I see where you exported DEVKITSH4, but you also need to make sure to export DEVKITPRO as well.

The actual directory structure containing your dev environment should look like the following.

devkitpro root:
    devkitSH4
    libdataplus
    tools

Since you have not defined the DEVKITPRO environment variable the compiler can't find the graphics/lcdc.h file which is part of the libdataplus library under the DEVKITPRO directory.

xfm00mm commented 5 years ago

Thanks for your help.I forgotten to export $DEVKITPRO and $PATH. For your help,Proccesing is advanced.But other probrem is happen. I tried to google this error massage to thought it may happen call is unsupported in x64 architecture. how do i do?

toor@Computer ~/gnuboy-ex $ export DEVKITPRO=/usr
toor@Computer ~/gnuboy-ex $ export PATH="$PATH:/usr/tools/bin"
toor@Computer ~/gnuboy-ex $ make
video.c
src/sys/video.c:15:8: warning: type defaults to 'int' in declaration of 'frameskip' [-Wimplicit-int]
 static frameskip = 0;
        ^~~~~~~~~
src/sys/video.c: In function 'vid_settitle':
src/sys/video.c:35:2: warning: implicit declaration of function 'strncat' [-Wimplicit-function-declaration]
  strncat(caption, title, 16);
  ^~~~~~~
src/sys/video.c:35:2: note: 'strncat' is defined in header '<string.h>'; did you forget to '#include <string.h>'?
src/sys/video.c:11:1:
+#include <string.h>

src/sys/video.c:35:2:
  strncat(caption, title, 16);
  ^~~~~~~
src/sys/video.c:38:2: warning: implicit declaration of function 'set_pen'; did you mean 'sys_open'? [-Wimplicit-function-declaration]
  set_pen(create_rgb16(0, 0, 0));
  ^~~~~~~
  sys_open
src/sys/video.c:38:10: warning: implicit declaration of function 'create_rgb16' [-Wimplicit-function-declaration]
  set_pen(create_rgb16(0, 0, 0));
          ^~~~~~~~~~~~
src/sys/video.c:39:2: warning: implicit declaration of function 'draw_rect' [-Wimplicit-function-declaration]
  draw_rect(0, 0, 320, 16);
  ^~~~~~~~~
src/sys/video.c:41:2: warning: implicit declaration of function 'render_text' [-Wimplicit-function-declaration]
  render_text(0, 2, caption);
  ^~~~~~~~~~~
src/sys/video.c: In function 'vid_preinit':
src/sys/video.c:203:2: warning: implicit declaration of function 'graphics_init'; did you mean 'pcm_init'? [-Wimplicit-function-declaration]
  graphics_init(528, 320, (void*)0xAC200000);
  ^~~~~~~~~~~~~
  pcm_init
loader.c
src/sys/loader.c: In function 'loadfile':
src/sys/loader.c:112:6: warning: implicit declaration of function 'sys_get_filesize'; did you mean 'sys_sanitize'? [-Wimplicit-function-declaration]
  l = sys_get_filesize(fileno(f));
      ^~~~~~~~~~~~~~~~
      sys_sanitize
src/sys/loader.c: In function 'rom_load':
src/sys/loader.c:138:11: warning: assignment to 'byte (*)[16384]' {aka 'unsigned char (*)[16384]'} from incompatible pointer type 'byte *' {aka 'unsigned char *'} [-Wincompatible-pointer-types]
  rom.bank = header = loadfile(f, &len);
           ^
menu.c
src/sys/menu.c: In function 'roms_filename':
src/sys/menu.c:598:17: warning: implicit declaration of function 'rc_getstr' [-Wimplicit-function-declaration]
  char *romdir = rc_getstr("romdir");
                 ^~~~~~~~~
src/sys/menu.c:598:17: warning: initialization of 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
src/sys/menu.c: In function 'print_menu':
src/sys/menu.c:634:2: warning: implicit declaration of function 'set_pen'; did you mean 'strlen'? [-Wimplicit-function-declaration]
  set_pen(create_rgb16(0xff, 0xff, 0xff));
  ^~~~~~~
  strlen
src/sys/menu.c:634:10: warning: implicit declaration of function 'create_rgb16' [-Wimplicit-function-declaration]
  set_pen(create_rgb16(0xff, 0xff, 0xff));
          ^~~~~~~~~~~~
src/sys/menu.c:635:2: warning: implicit declaration of function 'draw_rect'; did you mean 'draw_glyph'? [-Wimplicit-function-declaration]
  draw_rect(0, 0, 320, 288);
  ^~~~~~~~~
  draw_glyph
src/sys/menu.c:637:2: warning: implicit declaration of function 'draw_line'; did you mean 'draw_glyph'? [-Wimplicit-function-declaration]
  draw_line(0, 0, 319, 0);
  ^~~~~~~~~
  draw_glyph
src/sys/menu.c:646:4: warning: implicit declaration of function 'invert_rect' [-Wimplicit-function-declaration]
    invert_rect(1, ((i + 1) * 24), 318, 24);
    ^~~~~~~~~~~
src/sys/menu.c:649:2: warning: implicit declaration of function 'lcdc_copy_vram' [-Wimplicit-function-declaration]
  lcdc_copy_vram();
  ^~~~~~~~~~~~~~
src/sys/menu.c: In function 'show_no_roms_available':
src/sys/menu.c:673:2: warning: implicit declaration of function 'lcdc_set_vram_address' [-Wimplicit-function-declaration]
  lcdc_set_vram_address((void*)0xAC202800);
  ^~~~~~~~~~~~~~~~~~~~~
src/sys/menu.c:674:2: warning: implicit declaration of function 'lcdc_set_window' [-Wimplicit-function-declaration]
  lcdc_set_window(104, 24, 320, 288);
  ^~~~~~~~~~~~~~~
src/sys/menu.c: In function 'select_rom':
src/sys/menu.c:751:2: warning: implicit declaration of function 'loader_init'; did you mean 'log_init'? [-Wimplicit-function-declaration]
  loader_init(file_mask);
  ^~~~~~~~~~~
  log_init
exword.c
src/sys/exword.c: In function 'timer_init':
src/sys/exword.c:21:2: warning: implicit declaration of function 'tmu0_stop' [-Wimplicit-function-declaration]
  tmu0_stop(0);
  ^~~~~~~~~
src/sys/exword.c:25:2: warning: implicit declaration of function 'tmu0_set_priority' [-Wimplicit-function-declaration]
  tmu0_set_priority(0, 15);
  ^~~~~~~~~~~~~~~~~
src/sys/exword.c:26:2: warning: implicit declaration of function 'tmu0_enable' [-Wimplicit-function-declaration]
  tmu0_enable(0);
  ^~~~~~~~~~~
src/sys/exword.c:27:2: warning: implicit declaration of function 'tmu0_start'; did you mean 'va_start'? [-Wimplicit-function-declaration]
  tmu0_start(0, 0, 3000);
  ^~~~~~~~~~
  va_start
src/sys/exword.c: In function 'delay':
src/sys/exword.c:52:18: warning: implicit declaration of function 'get_ticks' [-Wimplicit-function-declaration]
  uint32_t time = get_ticks();
                  ^~~~~~~~~
src/sys/exword.c: In function 'sys_initpath':
src/sys/exword.c:88:2: warning: implicit declaration of function 'rc_setvar' [-Wimplicit-function-declaration]
  rc_setvar("rcpath", 1, &buf);
  ^~~~~~~~~
main.c
src/sys/main.c: In function 'doevents':
src/sys/main.c:40:2: warning: implicit declaration of function 'ev_poll' [-Wimplicit-function-declaration]
  ev_poll();
  ^~~~~~~
src/sys/main.c: In function 'shutdown':
src/sys/main.c:76:2: warning: implicit declaration of function 'sram_save'; did you mean 'vram_write'? [-Wimplicit-function-declaration]
  sram_save();
  ^~~~~~~~~
  vram_write
src/sys/main.c:77:2: warning: implicit declaration of function 'rtc_save' [-Wimplicit-function-declaration]
  rtc_save();
  ^~~~~~~~
src/sys/main.c:82:2: warning: implicit declaration of function 'timer_fini'; did you mean 'log_fini'? [-Wimplicit-function-declaration]
  timer_fini();
  ^~~~~~~~~~
  log_fini
src/sys/main.c:83:2: warning: implicit declaration of function 'cpg_fini'; did you mean 'log_fini'? [-Wimplicit-function-declaration]
  cpg_fini();
  ^~~~~~~~
  log_fini
src/sys/main.c: In function 'main':
src/sys/main.c:92:2: warning: implicit declaration of function 'cpg_init'; did you mean 'log_init'? [-Wimplicit-function-declaration]
  cpg_init();
  ^~~~~~~~
  log_init
src/sys/main.c:95:2: warning: implicit declaration of function 'timer_init'; did you mean 'memmgr_init'? [-Wimplicit-function-declaration]
  timer_init();
  ^~~~~~~~~~
  memmgr_init
src/sys/main.c:99:2: warning: implicit declaration of function 'init_exports'; did you mean 'rc_export'? [-Wimplicit-function-declaration]
  init_exports();
  ^~~~~~~~~~~~
  rc_export
src/sys/main.c:100:2: warning: implicit declaration of function 'sys_initpath' [-Wimplicit-function-declaration]
  sys_initpath();
  ^~~~~~~~~~~~
src/sys/main.c:105:2: warning: implicit declaration of function 'vid_preinit' [-Wimplicit-function-declaration]
  vid_preinit();
  ^~~~~~~~~~~
src/sys/main.c:107:2: warning: implicit declaration of function 'select_rom' [-Wimplicit-function-declaration]
  select_rom();
  ^~~~~~~~~~
src/sys/main.c:109:2: warning: implicit declaration of function 'vid_init'; did you mean 'log_init'? [-Wimplicit-function-declaration]
  vid_init();
  ^~~~~~~~
  log_init
src/sys/main.c:110:2: warning: implicit declaration of function 'pcm_init'; did you mean 'log_init'? [-Wimplicit-function-declaration]
  pcm_init();
  ^~~~~~~~
  log_init
src/sys/main.c:111:2: warning: implicit declaration of function 'emu_init'; did you mean 'log_init'? [-Wimplicit-function-declaration]
  emu_init();
  ^~~~~~~~
  log_init
src/sys/main.c:113:2: warning: implicit declaration of function 'emu_reset'; did you mean 'lcd_reset'? [-Wimplicit-function-declaration]
  emu_reset();
  ^~~~~~~~~
  lcd_reset
src/sys/main.c:114:2: warning: implicit declaration of function 'emu_run' [-Wimplicit-function-declaration]
  emu_run();
  ^~~~~~~
keypad.c
nosound.c
time.c
strdup.c
src/libc/strdup.c: In function 'strdup':
src/libc/strdup.c:13:30: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
  register unsigned long l = (strlen(s1) + 1) * sizeof(char);
                              ^~~~~~
src/libc/strdup.c:13:30: note: 'strlen' is defined in header '<string.h>'; did you forget to '#include <string.h>'?
src/libc/strdup.c:9:1:
+#include <string.h>

src/libc/strdup.c:13:30:
  register unsigned long l = (strlen(s1) + 1) * sizeof(char);
                              ^~~~~~
src/libc/strdup.c:16:3: warning: implicit declaration of function 'memcpy' [-Wimplicit-function-declaration]
   memcpy(s, s1, l);
   ^~~~~~
src/libc/strdup.c:16:3: note: 'memcpy' is defined in header '<string.h>'; did you forget to '#include <string.h>'?
stdlib.c
src/libc/stdlib.c: In function 'exit':
src/libc/stdlib.c:24:2: warning: implicit declaration of function '_exit'; did you mean 'exit'? [-Wimplicit-function-declaration]
  _exit(-2);
  ^~~~~
  exit
src/libc/stdlib.c: In function 'atoi':
src/libc/stdlib.c:47:9: warning: implicit declaration of function 'isdigit' [-Wimplicit-function-declaration]
     if (isdigit(*s))
         ^~~~~~~
src/libc/stdlib.c:49:14: warning: implicit declaration of function 'strchr' [-Wimplicit-function-declaration]
     else if (strchr("ABCDEF", *s))
              ^~~~~~
src/libc/stdlib.c:49:14: note: 'strchr' is defined in header '<string.h>'; did you forget to '#include <string.h>'?
src/libc/stdlib.c:1:1:
+#include <string.h>
 /*
src/libc/stdlib.c:49:14:
     else if (strchr("ABCDEF", *s))
              ^~~~~~
sprintf.c
isdigit.c
strcmp.c
strrchr.c
memcmp.c
tolower.c
stdio.c
strchrnul.c
strcat.c
strcasecmp.c
src/libc/strcasecmp.c: In function 'strcasecmp':
src/libc/strcasecmp.c:13:19: warning: implicit declaration of function 'tolower' [-Wimplicit-function-declaration]
     !(r = ((int)( tolower(*((unsigned char *)s1))))
                   ^~~~~~~
strncat.c
memmgr.c
src/libc/memmgr.c: In function 'get_r_hdr':
src/libc/memmgr.c:57:9: warning: implicit declaration of function 'memcmp' [-Wimplicit-function-declaration]
     if (memcmp(hdr->sig, "CASIODICS", 9) == 0) {
         ^~~~~~
src/libc/memmgr.c:57:9: note: 'memcmp' is defined in header '<string.h>'; did you forget to '#include <string.h>'?
src/libc/memmgr.c:10:1:
+#include <string.h>

src/libc/memmgr.c:57:9:
     if (memcmp(hdr->sig, "CASIODICS", 9) == 0) {
         ^~~~~~
src/libc/memmgr.c: In function 'set_mem_pool':
src/libc/memmgr.c:70:21: warning: implicit declaration of function 'atoi' [-Wimplicit-function-declaration]
             model = atoi(hdr->model + 1);
                     ^~~~
src/libc/memmgr.c: In function 'memmgr_realloc':
src/libc/memmgr.c:254:3: warning: implicit declaration of function 'memcpy' [-Wimplicit-function-declaration]
   memcpy(newptr, ptr, (old_size < size ? old_size : size));
   ^~~~~~
src/libc/memmgr.c:254:3: note: 'memcpy' is defined in header '<string.h>'; did you forget to '#include <string.h>'?
logger.c
strpbrk.c
strchr.c
internal_timer.s
udivsi3_i4i.s
strlen.s
strcpy.s
_exit.s
memcpy.s
src/libc/memcpy.s: Assembler messages:
src/libc/memcpy.s:441: Error: opcode not valid for this cpu variant
src/libc/memcpy.s:646: Error: opcode not valid for this cpu variant
/usr/devkitSH4/exword_rules:48: recipe for target 'src/libc/memcpy.o' failed
make: *** [src/libc/memcpy.o] Error 1
brijohn commented 5 years ago

I have added a commit that fixed this and another error related to using newer versions of gcc. The code should compile successfully now.

If you haven't make sure to put $DEVKITPRO/tools/bin in your path before compiling as the process will need to have access to the elf2d01 binary.

xfm00mm commented 5 years ago

Thx.I succeed building gnuboy-ex and created 5 files. so... how can i install this?

I have

diction.htm fileinfo.cji gnuby.d01 infodp5.htm infogt5.htm

in GNUBY folder.

I tried these , but failure.

\_INTERNAL_00\ >> dict auth **** ******
Authentication sucessful.
\_INTERNAL_00\ >> dict install '/home/toor/test/gnuboy-ex/build/ja/GNUBY/gnuby.d01' 
Id must be 5 characters long.
\_INTERNAL_00\ >> dict install '/home/toor/test/gnuboy-ex/build/ja/GNUBY/' 
Id must be 5 characters long.

\_INTERNAL_00\ >> set mkdir yes
\_INTERNAL_00\ >> setpath drv0:///GNUBY
\_INTERNAL_00\GNUBY >> send /home/toor/GNUBY/diction.htm
uploading...OK, Success
\_INTERNAL_00\GNUBY >> send /home/toor/GNUBY/fileinfo.cji
uploading...OK, Success
\_INTERNAL_00\GNUBY >> send /home/toor/GNUBY/gnuby.d01
uploading...OK, Success
\_INTERNAL_00\GNUBY >> send /home/toor/GNUBY/infodp5.htm
uploading...OK, Success
\_INTERNAL_00\GNUBY >> send /home/toor/GNUBY/infogt5.htm
uploading...OK, Success
\_INTERNAL_00\GNUBY >> dict install GNUBY
Can find dictionary directory GNUBY.
\_INTERNAL_00\GNUBY >> setpath drv0:///
\_INTERNAL_00\ >> dict install GNUBY
Can find dictionary directory GNUBY.

then, I was trying to do it with exword_tools.but it comping was failed. autogen.sh probrem could solve by myself(plz apply pullreq).but make was failed and I couldnt solved it.

checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating src/textloader/Makefile
config.status: creating src/library/Makefile
config.status: creating src/libraryinstaller/Makefile
config.status: creating src/unshield/Makefile
config.status: creating config.h
config.status: executing libtool commands
config.status: executing depfiles commands
toor@Computer ~/exword_tools $ make
make  all-recursive
make[1]: ディレクトリ '/home/toor/exword_tools' に入ります
Making all in src
make[2]: ディレクトリ '/home/toor/exword_tools/src' に入ります
Making all in unshield
make[3]: ディレクトリ '/home/toor/exword_tools/src/unshield' に入ります
depbase=`echo md5/md5c.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I../..  -Imd5 -I/usr/local/lib/wx/include/gtk2-unicode-3.0 -I/usr/local/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__  -g -O2 -pthread -MT md5/md5c.o -MD -MP -MF $depbase.Tpo -c -o md5/md5c.o md5/md5c.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo bswap.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I../..  -Imd5 -I/usr/local/lib/wx/include/gtk2-unicode-3.0 -I/usr/local/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__  -g -O2 -pthread -MT bswap.o -MD -MP -MF $depbase.Tpo -c -o bswap.o bswap.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo component.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I../..  -Imd5 -I/usr/local/lib/wx/include/gtk2-unicode-3.0 -I/usr/local/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__  -g -O2 -pthread -MT component.o -MD -MP -MF $depbase.Tpo -c -o component.o component.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo directory.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I../..  -Imd5 -I/usr/local/lib/wx/include/gtk2-unicode-3.0 -I/usr/local/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__  -g -O2 -pthread -MT directory.o -MD -MP -MF $depbase.Tpo -c -o directory.o directory.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo file.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I../..  -Imd5 -I/usr/local/lib/wx/include/gtk2-unicode-3.0 -I/usr/local/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__  -g -O2 -pthread -MT file.o -MD -MP -MF $depbase.Tpo -c -o file.o file.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo file_group.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I../..  -Imd5 -I/usr/local/lib/wx/include/gtk2-unicode-3.0 -I/usr/local/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__  -g -O2 -pthread -MT file_group.o -MD -MP -MF $depbase.Tpo -c -o file_group.o file_group.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo helper.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I../..  -Imd5 -I/usr/local/lib/wx/include/gtk2-unicode-3.0 -I/usr/local/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__  -g -O2 -pthread -MT helper.o -MD -MP -MF $depbase.Tpo -c -o helper.o helper.c &&\
mv -f $depbase.Tpo $depbase.Po
In file included from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33:0,
                 from /usr/include/stdint.h:26,
                 from /usr/lib/gcc/x86_64-linux-gnu/7/include/stdint.h:9,
                 from internal.h:9,
                 from helper.c:3:
/usr/include/features.h:184:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
   ^~~~~~~
helper.c: In function ‘unshield_fopen_for_reading’:
helper.c:74:52: warning: ‘__builtin___snprintf_chk’ output may be truncated before the last format character [-Wformat-truncation=]
         snprintf(filename, sizeof(filename), "%s/%s", dirname, dent->d_name);
                                                    ^
In file included from /usr/include/stdio.h:862:0,
                 from internal.h:15,
                 from helper.c:3:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:64:10: note: ‘__builtin___snprintf_chk’ output 2 or more bytes (assuming 257) into a destination of size 256
   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        __bos (__s), __fmt, __va_arg_pack ());
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
depbase=`echo libunshield.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I../..  -Imd5 -I/usr/local/lib/wx/include/gtk2-unicode-3.0 -I/usr/local/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__  -g -O2 -pthread -MT libunshield.o -MD -MP -MF $depbase.Tpo -c -o libunshield.o libunshield.c &&\
mv -f $depbase.Tpo $depbase.Po
In file included from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33:0,
                 from /usr/include/stdint.h:26,
                 from /usr/lib/gcc/x86_64-linux-gnu/7/include/stdint.h:9,
                 from internal.h:9,
                 from libunshield.c:3:
/usr/include/features.h:184:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
   ^~~~~~~
depbase=`echo log.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I../..  -Imd5 -I/usr/local/lib/wx/include/gtk2-unicode-3.0 -I/usr/local/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__  -g -O2 -pthread -MT log.o -MD -MP -MF $depbase.Tpo -c -o log.o log.c &&\
mv -f $depbase.Tpo $depbase.Po
rm -f libunshield.a
ar cru libunshield.a md5/md5c.o bswap.o component.o directory.o file.o file_group.o helper.o libunshield.o log.o 
ar: `u' modifier ignored since `D' is the default (see `U')
ranlib libunshield.a
make[3]: ディレクトリ '/home/toor/exword_tools/src/unshield' から出ます
Making all in textloader
make[3]: ディレクトリ '/home/toor/exword_tools/src/textloader' に入ります
/usr/local/bin/wxrc-3.0 -c -e ../resources/xrc/TextLoader.xrc -o Resources.cpp
make  all-am
make[4]: ディレクトリ '/home/toor/exword_tools/src/textloader' に入ります
g++ -DHAVE_CONFIG_H -I. -I../..   -I/usr/local/lib/wx/include/gtk2-unicode-3.0 -I/usr/local/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -I../common   -I/usr/include/libusb-1.0 -g -O2  -g -O2  -MT ExwordTextLoader-TextLoader.o -MD -MP -MF .deps/ExwordTextLoader-TextLoader.Tpo -c -o ExwordTextLoader-TextLoader.o `test -f 'TextLoader.cpp' || echo './'`TextLoader.cpp
In file included from TextLoader.cpp:22:0:
TextLoader.h:24:10: fatal error: wx/app.h: そのようなファイルやディレクトリはありません
 #include <wx/app.h>
          ^~~~~~~~~~
compilation terminated.
Makefile:497: recipe for target 'ExwordTextLoader-TextLoader.o' failed
make[4]: *** [ExwordTextLoader-TextLoader.o] Error 1
make[4]: ディレクトリ '/home/toor/exword_tools/src/textloader' から出ます
Makefile:352: recipe for target 'all' failed
make[3]: *** [all] Error 2
make[3]: ディレクトリ '/home/toor/exword_tools/src/textloader' から出ます
Makefile:376: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: ディレクトリ '/home/toor/exword_tools/src' から出ます
Makefile:438: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: ディレクトリ '/home/toor/exword_tools' から出ます
Makefile:370: recipe for target 'all' failed
make: *** [all] Error 2

My device is Model: gy131,ON,0100 Sub: gy999 Capabilities: SW P F C CC Name: EX-word DATAPLUS 10 XD-Z4700

brijohn commented 5 years ago

So when using the exword CLI "dict install" does not take a full path. You only give it the 5 character app id in this case GNUBY. It will then look for that dictionary in the following location $HOME/.local/share/exword/ja/GNUBY.

This is where you need to copy the dictionary files to when using the 2.0-dev branch. the master or the old 1.0 version just looks in your current directory for a folder called GNUBY.

I'll look into fixing compilation of the exword_tools as well.

xfm00mm commented 5 years ago

Thanks.Install was done correctly. Gnuboy EX 1.0.5-2 was appered in Library. I placed GBC rom in drv0:///ROMS then bootup it. and it was crashed and reboot my device.

brijohn commented 5 years ago

g++ -DHAVE_CONFIG_H -I. -I../.. -I/usr/local/lib/wx/include/gtk2-unicode-3.0 -I/usr/local/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -DWXGTK -I../common -I/usr/include/libusb-1.0 -g -O2 -g -O2 -MT ExwordTextLoader-TextLoader.o -MD -MP -MF .deps/ExwordTextLoader-TextLoader.Tpo -c -o ExwordTextLoader-TextLoader.o test -f 'TextLoader.cpp' || echo './'TextLoader.cpp In file included from TextLoader.cpp:22:0: TextLoader.h:24:10: fatal error: wx/app.h: そのようなファイルやディレクトリはありません

include <wx/app.h>

      ^~~~~~~~~~

compilation terminated.

This looks like you don't ave the proper header files installed on your system. As you are using Linux mint make sure the following packages are installed: wx3.0-headers, wx-common, and libwxgtk3.0-dev

If the headers are there doing a find /usr/include -name app.h should return at least one entry.

Thanks.Install was done correctly. Gnuboy EX 1.0.5-2 was appered in Library. I placed GBC rom in drv0:///ROMS and bootup it. and it was crashed and reboot my device.

Ok that is unfortunate, my guess is that the issue is that there was a hardware change somewhere that has broke the method I use for direct screen writes or keyboard access. I know this was working up to the dataplus 7 line of devices, but without access to newer devices or thier firmware it is hard to fix.

Looking up some of the devices it seems that the lower screen was removed starting on the dataplus 9 line, so that at least indicates there was at least some hardware change on the newer devices which may have broken things.

xfm00mm commented 5 years ago

Alright.thanks a lot.

caesarw commented 4 years ago

Thanks.Install was done correctly. Gnuboy EX 1.0.5-2 was appered in Library. I placed GBC rom in drv0:///ROMS then bootup it. and it was crashed and reboot my device.

Same issue here. Device: Casio CN E-E99

Edit: the issue only occurs on first start. After the first crash, the rom run normally