wuhongyi / PKU_CAENDesktopDigitizer

Hongyi Wu(吴鸿毅) CAEN Desktop Digitizer
3 stars 0 forks source link

请问编译环境是什么? #1

Open ghost opened 6 years ago

ghost commented 6 years ago

你好, 我在纯净的centos 7 下编译安装root 6.14后,再运行CAEN中的脚本,然后想打开界面,但是提示如下错误。请问你的编译环境是什么?或者这个错误是其他原因?

[root@vultr build]# ./pkuDigitizer
Warning in <UnknownClass::SetDisplay>: DISPLAY not set, setting it to 142.157.13.114:S.0

RooFit v3.60 -- Developed by Wouter Verkerke and David Kirkby
                Copyright (C) 2000-2013 NIKHEF, University of California & Stanford University
                All rights reserved, please read http://roofit.sourceforge.net/license.txt

   ------------------------------------------------------------
  | Welcome to ROOT 6.14/02                http://root.cern.ch |
  |                               (c) 1995-2018, The ROOT Team |
  | Built for linuxx8664gcc                                    |
  | From tags/v6-14-02@v6-14-02, Jul 27 2018, 10:56:25         |
  | Try '.help', '.demo', '.license', '.credits', '.quit'/'.q' |
   ------------------------------------------------------------

Welcome to the ROOT

 *** Break *** segmentation violation
 Generating stack trace...
 0x00007fe50a85bbc8 in <unknown> from /root/root/lib/libASImage.so
 0x00007fe50a85bd7d in xpm2ASImage + 0x2d from /root/root/lib/libASImage.so
 0x00007fe50a85d15b in file2ASImage_extra + 0x8b from /root/root/lib/libASImage.so
 0x00007fe50a82452e in TASImage::ReadImage(char const*, TImage::EImageFileTypes) at /root/root-6.14.02/graf2d/asimage/src/TASImage.cxx:535 from /root/root/lib/libASImage.so
 0x00007fe50c515562 in TImage::Open(char const*, TImage::EImageFileTypes) at /root/root-6.14.02/graf2d/graf/src/TImage.cxx:118 from /root/root/lib/libGraf.so
 0x00007fe5096513c1 in TGPicturePool::GetPicture(char const*) at /root/root-6.14.02/gui/gui/src/TGPicture.cxx:115 from /root/root/lib/libGui.so
 0x00007fe5095c7a01 in TGComboBox::Init() at /root/root-6.14.02/gui/gui/src/TGComboBox.cxx:282 from /root/root/lib/libGui.so
 0x00007fe5095c8ad3 in TGComboBox::TGComboBox(TGWindow const*, int, unsigned int, unsigned long) at /root/root-6.14.02/gui/gui/src/TGComboBox.cxx:230 from /root/root/lib/libGui.so
 0x000000000041280f in MainFrame::MakeFoldPanelInit(TGCompositeFrame*) + 0x195 from ./pkuDigitizer
 0x0000000000411a4a in MainFrame::MainFrame(TGWindow const*) + 0x222 from ./pkuDigitizer
 0x000000000040cdc1 in main + 0x84 from ./pkuDigitizer
 0x00007fe500e4b445 in __libc_start_main + 0xf5 from /lib64/libc.so.6
 0x000000000040cc79 in <unknown> from ./pkuDigitizer
wuhongyi commented 6 years ago

ROOT6.14版本我没测试过,一会儿我安装该版本测试下再告诉你结果。 运行程序的时候建议不要使用root权限

你的输出出现了以下行 Warning in : DISPLAY not set, setting it to 142.157.13.114:S.0 能否告诉我你的ROOT的安装方法呢?

ghost commented 6 years ago

你好,谢谢你的那行错误的提示,错误排查出来了!因为我是在服务器上编译的,ssh登陆后没开xorg转发,开了之后就正常了!

安装流程我还是贴出来了,可以留给之后的人参考。

  1. 安装了一个纯净的centos 7, 然后安装官网要求的prerequisites
  2. 然后自己编译安装了一个cmake 3.6, 因为yum里面的cmake版本太老了。
  3. 然后下载了官网6.14的源码编译安装
  4. 然后就安装你的CAEN文件夹里的setup.sh
  5. 然后就再编译项目的源码
  6. 如果时在服务器上编译,记得开启xorg转发,才能在ssh上打开。如果时桌面环境的linux,应该就可以直接用了! image
wuhongyi commented 6 years ago

我写的这个程序我也很少用了,不知道你用哪个型号的 digitizer,用来测什么

ghost commented 6 years ago

DT5730,用来测光电倍增管的信号。其实也不是我在用,是我看到实验室有人在从头造轮子,感觉他们还挺头痛的,就上github搜了下。下周我去实验室试一下,期待好用!

wuhongyi commented 6 years ago

使用时确保采用的固件是最新的。如果有问题,欢迎comment。 用空时候我再升级下这个程序。这个程序没有添加完所有的功能。一般我都是采集波形然后离线自己分析。

ghost commented 6 years ago

好嘞 😀