Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
MidrarAdham opened this issue Nov 8, 2020 · 5 comments
Open

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

MidrarAdham opened this issue Nov 8, 2020 · 5 comments

Comments

@MidrarAdham
Copy link

MidrarAdham commented Nov 8, 2020

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
Copy link
Author

MidrarAdham commented Nov 8, 2020

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
Copy link
Author

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
Copy link

ftuffner commented Nov 8, 2020

@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
Copy link
Author

MidrarAdham commented Nov 8, 2020

@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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants