GMLC-TDC / HELICS-Tutorial

Tutorial of running a HELICS Co-Simulation
http://gmlc-tdc.github.io/HELICS-Tutorial
BSD 3-Clause "New" or "Revised" License
3 stars 7 forks source link

Tutorial 1: error message (class 'helics_msg' is not known) #12

Open MidrarAdham opened 4 years ago

MidrarAdham commented 4 years ago

Hello All,

I'm trying to install HELICS with Gridlab-d on UBUNTU (18.04.5 LTS) but I keep getting this error message (class 'helics_msg' is not known) when I run the following command:

gridlabd DistributionSim_B2_G_1.glm

I followed these steps to install HELICS:

git clone https://github.com/GMLC-TDC/HELICS cd HELICS mkdir build cd build cmake ../ sudo make -D BUILD_SHARED_LIBS=ON sudo make install

I tested helics_player and got:

2.6.1-develop-gfc268778 (2020-11-07)

And the following steps to install Gridlab-D with HELICS:

gridlab-d version:

GridLAB-D 4.1.0-0 (Lugo [:]) 64-bit LINUX RELEASE

'autoreconf -if'

./configure --prefix=/path/to/gridlabd/install --with-helics=/path/to/helics/install --enable-silent-rules "CFLAGS=-g -O0 -w" "CXXFLAGS=-g -O0 -w -std=c++14" "LDFLAGS=-g -O0 -w"

I also checked /usr/local/lib directory, it contains the following:

  1. libhelicsSharedLib.so.2 2.libhelicsSharedLib.so 3.libhelicsSharedLib.so.2.6.1 4.libhelics-shared.so
  2. libhelics-shared.so.2 6.libhelics-shared.so.2.6.1

Something is worth noting is that I can't find config.log in HELICS directory. Maybe it's something wrong I did during HELICS setup

Any ideas? Thanks

MidrarAdham commented 4 years ago

Found the config.log file. Attached. config_log.txt

I looked for checking for HELICS as suggested by @ftuffner in this post https://github.com/gridlab-d/gridlab-d/issues/1234#issuecomment-617877874

and found the following:

configure:10979: result: no
configure:11010: g++ -o conftest -g -O0 -w -std=c++14  -g -O0 -w conftest.cpp  >&5
configure:11010: $? = 0
configure:11010: ./conftest
configure:11010: $? = 0
configure:11134: WARNING: /path/to/helics/install of with_helics not parsed
configure:11187: checking for HELICS
configure:11204: g++ -o conftest -g -O0 -w -std=c++14   -g -O0 -w  conftest.cpp   -lhelics-shared -lz
mq -lboost_chrono -lboost_date_time -lboost_filesystem -lboost_program_options -lboost_system -lboost
_timer -lboost_unit_test_framework >&5
/usr/bin/ld: cannot find -lboost_chrono
/usr/bin/ld: cannot find -lboost_date_time
/usr/bin/ld: cannot find -lboost_filesystem
/usr/bin/ld: cannot find -lboost_program_options
/usr/bin/ld: cannot find -lboost_system
/usr/bin/ld: cannot find -lboost_timer
/usr/bin/ld: cannot find -lboost_unit_test_framework
collect2: error: ld returned 1 exit status
configure:11204: $? = 1

It doesn't seem like I have Boost lib in system path. right? if so how can I fix it?

MidrarAdham commented 4 years ago

In this thread, https://github.com/gridlab-d/gridlab-d/issues/1234#issuecomment-617877874, ftuffner said that he is using gridlab-d revision 18366. I tried to get this version by I ended up with revision 18551 (c91d5848:develop)

Here's the config file after installing the latest version of gridlab-d config_log.txt

ftuffner commented 4 years ago

@MidrarAdham Make sure you are using the latest version of GridLAB-D in the develop branch (should show up as 4.3 when you do a gridlabd --version). There are some code updates in GridLAB-D to make it work properly with HELICS 2.6 and the develop branch is the easiest way to make sure you get them.

MidrarAdham commented 4 years ago

@ftuffner Thank you for your prompt response!

git clone https://github.com/gridlab-d/gridlab-d.git GLD_Source cd GLD_Source git checkout -b develop sudo autoreconf -if sudo ./configure --prefix=/path/to/gridlabd/install --with-helics=/path/to/helics/install --enable-silent-rules "CFLAGS=-g -O0 -w" "CXXFLAGS=-g -O0 -w -std=c++14" "LDF sudo make sudo make install

When I used gridlabd --version, I got GridLAB-D 4.1.0-0 (Lugo [:]) 64-bit LINUX RELEASE

Am I using the wrong repository?

Thanks

MidrarAdham commented 4 years ago

I installed gridlab-d from sourceforge a while ago. I had to delete that version and install this one. Now it works! Thank you @ftuffner