Project

General

Profile

Bug #806

ReduceCpp... doesn't build

Added by Rogers, Chris about 12 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Build System
Target version:
Start date:
28 November 2011
Due date:
% Done:

100%

Estimated time:
Workflow:
Closed

Description

Sconstruct line 631:

    if (parts[2][0:6] == 'MapCpp') or (parts[2][0:8] == 'InputCpp'):

Can't possibly build any ReduceCpp, or indeed OutputCpp. This should be enabled please.


Files

ReduceCppDoNothing.tgz (732 Bytes) ReduceCppDoNothing.tgz Rogers, Chris, 28 November 2011 17:02
#1

Updated by Rogers, Chris about 12 years ago

  • Assignee changed from Tunnell, Christopher to Rogers, Chris
#2

Updated by Karadzhov, Yordan about 12 years ago

This is not the only problem. After editing this line in Sconstruct I have my ReduceCpp compiled but after this when I try to use my ReduceCppTofCalib I get:

File "bin/my_test.py", line 39, in run
MAUS.Go(my_input, my_map, MAUS.ReduceCppTofCalib(), MAUS.OutputPyJSON())
AttributeError: 'module' object has no attribute 'ReduceCppTofCalib'

also after typing in python:

import ReduceCppTofCalib

I get:

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/yordan/Workspace/maus/build/ReduceCppTofCalib.py", line 26, in <module>
_ReduceCppTofCalib = swig_import_helper()
File "/home/yordan/Workspace/maus/build/ReduceCppTofCalib.py", line 22, in swig_import_helper
_mod = imp.load_module('_ReduceCppTofCalib', fp, pathname, description)
ImportError: /home/yordan/Workspace/maus/build/_ReduceCppTofCalib.so: undefined symbol: _ZN11JsonWrapper12StringToJsonESs

My interpretation of this obscured error message is that I can't link with the things in src/common_cpp/Utils/

#3

Updated by Rogers, Chris about 12 years ago

Karadzhov, Yordan wrote:

My interpretation of this obscured error message is that I can't link with the things in src/common_cpp/Utils/

That is correct...

#4

Updated by Karadzhov, Yordan about 12 years ago

How to fix this?

#5

Updated by Rogers, Chris about 12 years ago

I'm investigating

#6

Updated by Rogers, Chris about 12 years ago

Try the attached ReducedCpp thingy... it works for me...

#7

Updated by Karadzhov, Yordan about 12 years ago

Now is works for me too.
The thing that makes the difference was the line

require_g4 = True (False in my case)

in src/reduce/ReduceCppTofCalib/sconscript
Do I really need g4?

#8

Updated by Rogers, Chris about 12 years ago

Probably this parameter should never have existed. Must be a lurking thing in SConstruct somewhere... are you ever going to try to compile MAUS without GEANT4? Just say "yes" I think...

#9

Updated by Rogers, Chris over 11 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100
  • Workflow set to Closed

Fixed ages ago.

#10

Updated by Rogers, Chris over 11 years ago

  • Target version changed from Future MAUS release to MAUS-v0.2.0

Also available in: Atom PDF