Open Joris-dehoog opened 1 year ago
Hi Joris,
Thank you for your question. Could you try activating pthread
option in your src/CMakeLists.txt
?
In this file you should see
target_link_libraries(src
PRIVATE
cells
modules
cooling
power_conversion
system
procedures
factories
settings
# pthread -> For WSL.
)
Here you can remove the #
in front of pthread
and please also delete -> For WSL.
part. This should solve the problem but let me know if it persists.
PS: In these days we are working on the SLIDE v3 release, probably you will see some improvements very soon after the release. Also we are going to update our documentation.
Yours sincerely, Volkan
Hello,
Thank you, it does solve the issue! Thanks!
Hello,
I'd like to reopen this issue, as I have not been able to run the V2 version. I'm trying to compile this one as the documentation does not seem to cover the version under the Main branch (or I don't know how to run it).
The V2 version also has a CmakeList.txt in the root folder, but I don't know how to enable pthread in this one, any tips?
Thanks!
Hi I think it is better to use the verson in the main branch. Otherwise, the examples you made will have massive changes at version 3. I would be happy to help with creating any example you need for v3.
Meanwhile you may have a look at this issue for adding pthread in v2:
https://github.com/Battery-Intelligence-Lab/SLIDE/pull/7#issuecomment-913258926
Or alternatively check the full relevant discussion on Twitter:
https://twitter.com/VolkanKumtepeli/status/1439872932747042818
Yours sincerely, Volkan
Hello,
I'm trying to compile the current master branch on my Ubuntu 20.04 machine. Some important package information:
I'm following the installation instructions found here, but the last steps fails when I run
cmake --build .
:I'm not familiar with cmake, so I'm not sure how to fix the
pthread_create
problem.Can you help me?
Kind regards,
Joris