[Halld-offline] sim-recon compillation problems
Mark Ito
marki at jlab.org
Tue Feb 6 10:55:37 EST 2018
Matt,
Short answer: define SQLITECPP_HOME to point to the directory where you
built it. The sim-recon SCons will use that to find the appropriate lib
directory.
Longer answer: If you update your version.xml file to include <package
name="sqlitecpp" version="2.2.0"> and then do a top-level build, then
the package will built in
$GLUEX_TOP/sqlitecpp/sqlitecpp-2.2.0
on a equal footing with other non-GlueX developed packages, e. g.,
Xerces-C. Using this version.xml to set-up your environment will do the
right thing with the SQLITECPP_HOME environment variable mentioned above
and sim-recon's SCons will find the library.
-- Mark
On 02/06/2018 06:21 AM, Shepherd, Matthew wrote:
> Mark,
>
> As usual, we don't pay attention to these informative messages until we have a problem... only to find out we were already told we were going to have a problem!
>
> My turn now:
>
> So I've compiled the new version of SQLiteCpp and have the static library: libSQLiteCpp.a that is needed to resolve linking problems in sim-recon.
>
> ...but where is the right place to put it?
>
> I was able to kludge a solution, by putting a symlink to libSQLiteCpp.a in:
>
> $HALLD_HOME/Linux_CentOS6-x86_64-gcc4.9.3/libraries
>
> This got my compilation to work, but it isn't really a permanent solution.
>
> Matt
>
>
>> On Feb 4, 2018, at 4:26 PM, Mark Ito <marki at jlab.org> wrote:
>>
>> Alex,
>>
>> Please see
>>
>> https://mailman.jlab.org/pipermail/halld-offline/2018-February/003090.html
>>
>> and let me know if I can offer further help.
>>
>> -- Mark
>>
>>
>> On 02/04/2018 04:19 PM, Alexander Somov wrote:
>>> Hi,
>>>
>>> I cannot compile the latest version of sim-recon (taken from the github), there are some rcdb errors
>>> related to the sqlite support.
>>>
>>> Any ideas what can be wrong ?
>>>
>>> Thanks,
>>> Alex
>>>
>>>
>>> (vars are taken from
>>> nightly/2018-02-01/Linux_CentOS6-x86_64-gcc4.9.2/sim-recon/Linux_CentOS6-x86_64-gcc4.9.2/setenv.csh)
>>>
>>> setenv BMS_OSNAME Linux_CentOS6-x86_64-gcc4.9.2
>>> setenv RCDB_HOME /group/halld/Software/builds/Linux_CentOS6-x86_64-gcc4.9.2/rcdb/rcdb_0.02.01
>>>
>>>
>>>
>>> /group/halld/Software/builds/Linux_CentOS6-x86_64-gcc4.9.2/rcdb/rcdb_0.02.01/cpp/include/RCDB/SqLiteProvider.h: In member function 'virtual std::unique_ptr<rcdb::Condition> rcdb::SqLiteProvider::GetCondition(uint64_t, const rcdb::ConditionType&)':
>>> /group/halld/Software/builds/Linux_CentOS6-x86_64-gcc4.9.2/rcdb/rcdb_0.02.01/cpp/include/RCDB/SqLiteProvider.h:87:41: error: 'sqlite3_int64' was not declared in this scope
>>> _getConditionQuery.bind(1, (sqlite3_int64)run);
>>> ^
>>> /group/halld/Software/builds/Linux_CentOS6-x86_64-gcc4.9.2/rcdb/rcdb_0.02.01/cpp/include/RCDB/SqLiteProvider.h:88:55: error: expected ')' before 'typeId'
>>> _getConditionQuery.bind(2, (sqlite3_int64)typeId);
>>>
>>>
>>> _______________________________________________
>>> Halld-offline mailing list
>>> Halld-offline at jlab.org
>>> https://mailman.jlab.org/mailman/listinfo/halld-offline
>> _______________________________________________
>> Halld-offline mailing list
>> Halld-offline at jlab.org
>> https://mailman.jlab.org/mailman/listinfo/halld-offline
--
Mark Ito, marki at jlab.org, (757)269-5295
More information about the Halld-offline
mailing list