Opened 4 years ago

Closed 4 years ago

#6210 closed defect (fixed)

Linker error involving Buildings models

Reported by: Francesco Casella Owned by: Martin Sjölund
Priority: high Milestone: 1.17.0
Component: Testing Framework Version:
Keywords: Cc: Andreas Heuermann

Description

Please check Buildings.Utilities.IO.BCVTB.Examples.TwoRooms.
Linking fails with

/usr/bin/ld: cannot find -lbcvtb_modelica

not sure what the root cause of this is.

Change History (5)

comment:1 by Francesco Casella, 4 years ago

Milestone: 1.17.01.18.0

comment:2 by Andreas Heuermann, 4 years ago

Cc: Andreas Heuermann added

Well I searched for this kind of errors a lot in the last weeks, so I would go like this:

Could be:

  • bcvtb_modelica not copied to the right location
  • bcvtb_modelica is not available for this platform
  • bcvtb_modelica is static / dynamic and the linker is looking for a dynamic / static lib
  • rpath is wrong
  • Some gcc vs clang issue. They behave a bit different in some cases.

But should be fairly easy to fix this issue or at least to find the exact reason for the error.

comment:3 by Martin Sjölund, 4 years ago

You need to download the installer for it and then modify your linker path to find the library. https://github.com/lbl-srg/bcvtb/releases/tag/v1.6.0

That will build the model. But to start it, you need to run the GUI and make the GUI start the example.

I'm not sure these should run automatically, but they should probably have the experiment annotation to save default settings...

comment:4 by Martin Sjölund, 4 years ago

Owner: changed from Adrian Pop to Martin Sjölund
Status: newaccepted

comment:5 by Martin Sjölund, 4 years ago

Component: Code GenerationTesting Framework
Milestone: 1.18.01.17.0
Resolution: fixed
Status: acceptedclosed
Note: See TracTickets for help on using tickets.