[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[dennou-ruby:002726] Re: [VTK-ruby]make is failed



中野さま

登録メールと違うメールで送っていて、
気がつかず、遅くなりました。

06/11/07 に Seiya Nishizawa<seiya@xxxxxxxxxxxxxxxxxxxx> さんは書きました:
なかのさま

これをCommonにおいたら通りますか?

西澤

06/11/07 に Seiya Nishizawa<seiya@xxxxxxxxxxxxxxxxxxxx> さんは書きました:
> 西澤です。
>
> rubyが古いとNUM2ULLがないんですね。
> ちょっと対応を考えます。
> ちなみにバージョンはいくつでしょぅか
>
> 06/11/06 に Masuo NAKANO<masuo@xxxxxxxxxxxxxxxxxx> さんは書きました:
> > 西澤さま
> >
> > なかのです。
> >
> > vtk-ruby-061028.tar.gz
> > の make をDebian/sarge(i386, amd64)でこころみているのですが、いずれの環境でもうまくいきません。
> >
> > vtkUnsignedLongLongArrayRuby.o をつくるところでこけます。
> >
> > cmakeはdebian package なものでバージョンは 2.0.5です。
> >
> > エラーは以下の通りです。
> > なにかわかりますでしょうか??
> >
> > よろしくお願いします。
> >
> >
> > Building object file vtkUnsignedLongLongArrayRuby.o...
> > /home/masuo/dennou/vtk20061028/VTK/Common/vtkUnsignedLongLongArrayRuby.cxx: function
> >     内の `VALUE rb_vtkUnsignedLongLongArray_SetValue(int, VALUE*, long unsigned
> >    int)':
> > /home/masuo/dennou/vtk20061028/VTK/Common/vtkUnsignedLongLongArrayRuby.cxx:217: error: `
> >    NUM2ULL' undeclared (first use this function)
> > /home/masuo/dennou/vtk20061028/VTK/Common/vtkUnsignedLongLongArrayRuby.cxx:217: error: (Each
> >    undeclared identifier is reported only once for each function it appears
> >    in.)
> > /home/masuo/dennou/vtk20061028/VTK/Common/vtkUnsignedLongLongArrayRuby.cxx: function
> >     内の `VALUE rb_vtkUnsignedLongLongArray_InsertValue(int, VALUE*, long
> >    unsigned int)':
> > /home/masuo/dennou/vtk20061028/VTK/Common/vtkUnsignedLongLongArrayRuby.cxx:277: error: `
> >    NUM2ULL' undeclared (first use this function)
> > /home/masuo/dennou/vtk20061028/VTK/Common/vtkUnsignedLongLongArrayRuby.cxx: function
> >     内の `VALUE rb_vtkUnsignedLongLongArray_InsertNextValue(int, VALUE*, long
> >    unsigned int)':
> > /home/masuo/dennou/vtk20061028/VTK/Common/vtkUnsignedLongLongArrayRuby.cxx:306: error: `
> >    NUM2ULL' undeclared (first use this function)
> > make[3]: *** [vtkUnsignedLongLongArrayRuby.o] エラー 1
> > make[2]: *** [default_target] エラー 2
> > make[1]: *** [default_target_Common] エラー 2
> > make: *** [default_target] エラー 2
> >
> >
> >
> > masuo@noon:~/dennou/vtk20061028/VTK$ cat VTKBuildSettings.cmake
> > # This file has been automatically generated by CMake.  DO NOT EDIT!
> > # It contains the build configuration for VTK.  The command
> > # CMAKE_EXPORT_BUILD_SETTINGS(...) was used by VTK to
> > # generate this file.  Another project can use
> > # CMAKE_IMPORT_BUILD_SETTINGS(...) to load the build configuration
> > # from this file.  The contents of this file may be different across
> > # versions of CMake.  The values set here should not be used by user
> > # code.
> >
> > SET(CMAKE_BUILD_SETTING_CMAKE_MAJOR_VERSION "2")
> > SET(CMAKE_BUILD_SETTING_CMAKE_MINOR_VERSION "0")
> > SET(CMAKE_BUILD_SETTING_PROJECT_NAME "VTK")
> >
> > SET(CMAKE_BUILD_SETTING_C_COMPILER "gcc")
> > SET(CMAKE_BUILD_SETTING_C_FLAGS "")
> > SET(CMAKE_BUILD_SETTING_C_FLAGS_DEBUG "-g")
> > SET(CMAKE_BUILD_SETTING_C_FLAGS_RELEASE "-O3")
> > SET(CMAKE_BUILD_SETTING_C_FLAGS_MINSIZEREL "-Os")
> > SET(CMAKE_BUILD_SETTING_C_FLAGS_RELWITHDEBINFO "-O2 -g")
> >
> > SET(CMAKE_BUILD_SETTING_BUILD_TYPE "")
> > SET(CMAKE_BUILD_SETTING_BUILD_TOOL "/usr/bin/make")
> >
> > --
> > 中野満寿男
> > 九州大学大学院理学府地球惑星科学専攻
> > 流体圏・宇宙圏科学講座 地球流体力学分野
> > masuo@xxxxxxxxxxxxxxxxxx
> >
> >
>
>
> --
> Seiya Nishizawa
> Research Institute for Mathematical Sciences, Kyoto University
> Oiwake-cho Kitarakawa Sakyo-ku Kyoto, Japan, 606-8502
> Tel: +81-75-753-7252
> Fax: +81-75-753-7272
>


-- Seiya Nishizawa Research Institute for Mathematical Sciences, Kyoto University Oiwake-cho Kitarakawa Sakyo-ku Kyoto, Japan, 606-8502 Tel: +81-75-753-7252 Fax: +81-75-753-7272





--
Seiya Nishizawa
Research Institute for Mathematical Sciences, Kyoto University
Oiwake-cho Kitarakawa Sakyo-ku Kyoto, Japan, 606-8502
Tel: +81-75-753-7252
Fax: +81-75-753-7272
/*=========================================================================

  Program:   Visualization Toolkit
  Module:    $RCSfile: vtkRuby.h,v $

  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
  All rights reserved.
  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.

     This software is distributed WITHOUT ANY WARRANTY; without even
     the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
     PURPOSE.  See the above copyright notice for more information.

=========================================================================*/
#ifndef __vtkRuby_h
#define __vtkRuby_h

#undef _POSIX_THREADS

#include "vtkToolkits.h"

#include "ruby.h"

#ifndef NUM2ULL
#define NUM2ULL(val) ((unsigned LONG_LONG)NUM2LL(val))
#endif

#undef write
#undef read
#undef open
#undef close

#endif