[Scilab-Dev] compile error

Masaru Nomiya nomiya at galaxy.dti.ne.jp
Sat Sep 20 08:56:01 CEST 2014


Hello,

In the Message; 

  Subject    : [Scilab-Dev] compile error
  Message-ID : <87bnqau9mv.wl%nomiya at galaxy.dti.ne.jp>
  Date & Time: Sat, 20 Sep 2014 14:46:32 +0900

[Me] == Masaru Nomiya <nomiya at galaxy.dti.ne.jp> has written:

Me> Hello,

Me> I got the very latest git of the scilab, then tried to compile.
Me> But failed as follows;

Me> [...]
Me> /bin/sh ../../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../modules/core/includes  -I./includes/ -I./src/c/ -I./src/cpp/ -I../../modules/api_scilab/includes/ -I../../modules/elementary_functions/includes/ -I../../modules/fileio/includes/ -I../../modules/graphics/includes/ -I../../modules/graphic_objects/includes/ -I../../modules/localization/includes/ -I../../modules/output_stream/includes/ -I../../modules/renderer/includes/ -I../../modules/scicos/includes/ -I../../modules/string/includes/   -D_LARGEFILE64_SOURCE -DNDEBUG -m64 -fno-stack-protector -g -O2 -MT src/c/libsciscicos_blocks_algo_la-cscope.lo -MD -MP -MF src/c/.deps/libsciscicos_blocks_algo_la-cscope.Tpo -c -o src/c/libsciscicos_blocks_algo_la-cscope.lo `test -f 'src/c/cscope.c' || echo './'`src/c/cscope.c
Me> libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../modules/core/includes -I./includes/ -I./src/c/ -I./src/cpp/ -I../../modules/api_scilab/includes/ -I../../modules/elementary_functions/includes/ -I../../modules/fileio/includes/ -I../../modules/graphics/includes/ -I../../modules/graphic_objects/includes/ -I../../modules/localization/includes/ -I../../modules/output_stream/includes/ -I../../modules/renderer/includes/ -I../../modules/scicos/includes/ -I../../modules/string/includes/ -D_LARGEFILE64_SOURCE -DNDEBUG -m64 -fno-stack-protector -g -O2 -MT src/c/libsciscicos_blocks_algo_la-cscope.lo -MD -MP -MF src/c/.deps/libsciscicos_blocks_algo_la-cscope.Tpo -c src/c/cscope.c  -fPIC -DPIC -o src/c/.libs/libsciscicos_blocks_algo_la-cscope.o
Me> src/c/cscope.c: In function ‘cscope’:
Me> src/c/cscope.c:257:25: error: #if with no expression
Me>              #if WITH_GUI
Me>                          ^
Me> src/c/cscope.c: In function ‘getFigure’:
Me> src/c/cscope.c:698:13: error: #if with no expression
Me>  #if WITH_GUI
Me>              ^
Me> make[3]: *** [src/c/libsciscicos_blocks_algo_la-cscope.lo] error 1
Me> make[3]: ディレクトリ `/tmp/tes/scilab-master-1411133661/modules/scicos_blocks' から出ます
Me> make[2]: *** [all] error 2
Me> make[2]: ディレクトリ `/tmp/tes/scilab-master-1411133661/modules/scicos_blocks' から出ます
Me> make[1]: *** [all-recursive] error 1
Me> make[1]: ディレクトリ `/tmp/tes/scilab-master-1411133661/modules' から出ます
Me> make: *** [all-recursive] error 1

Me> Any idea?

Possible solutions;

1. add "--without-gui" option to configure,

2. change #if WITH_GUI to #ifdef WITH_GUI.

I used 2., and compilation finished.

Is this right?

Thanks,

---
┏━━┓彡 Masaru Nomiya             mail-to: nomiya @ galaxy.dti.ne.jp
┃\/彡
┗━━┛ "Bill! You married with Computers.
          Not with Me!"
         "No..., with money."



More information about the dev mailing list