Comments (7)
Yes, I have done so using MinGW (64bit MSYS, gcc 10.2.0). What's the matter with that exactly?
from externalmedia.
I had some issues compiling it, but I finally made it work. I just wanted to make sure it is supposed to work fine. Thanks.
from externalmedia.
When I use the created library and try to compile a Test model with Dymola and GCC I get this:
modelica/ExternalMedia/Resources/Library/win64\libExternalMediaLib.a(coolpropsolver.cpp.obj):coolpropsolver.cpp:(.text+0x55c): undefined reference to `strsplit(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, char)'
modelica/ExternalMedia/Resources/Library/win64\libExternalMediaLib.a(coolpropsolver.cpp.obj):coolpropsolver.cpp:(.text+0x574): undefined reference to `strsplit(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, char)'
modelica/ExternalMedia/Resources/Library/win64\libExternalMediaLib.a(coolpropsolver.cpp.obj):coolpropsolver.cpp:(.text+0x62d): undefined reference to `CoolProp::extract_backend(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&)'
modelica/ExternalMedia/Resources/Library/win64\libExternalMediaLib.a(coolpropsolver.cpp.obj):coolpropsolver.cpp:(.text+0x6a6): undefined reference to `CoolProp::extract_fractions(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::vector<double, std::allocator<double> >&)'
modelica/ExternalMedia/Resources/Library/win64\libExternalMediaLib.a(coolpropsolver.cpp.obj):coolpropsolver.cpp:(.text+0x7cf): undefined reference to `strsplit(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, char)'
modelica/ExternalMedia/Resources/Library/win64\libExternalMediaLib.a(coolpropsolver.cpp.obj):coolpropsolver.cpp:(.text+0x186c): undefined reference to `CoolProp::AbstractState::p_critical()'
modelica/ExternalMedia/Resources/Library/win64\libExternalMediaLib.a(coolpropsolver.cpp.obj):coolpropsolver.cpp:(.text+0x1893): undefined reference to `CoolProp::AbstractState::T_critical()'
modelica/ExternalMedia/Resources/Library/win64\libExternalMediaLib.a(coolpropsolver.cpp.obj):coolpropsolver.cpp:(.text+0x18ba): undefined reference to `CoolProp::AbstractState::molar_mass()'
modelica/ExternalMedia/Resources/Library/win64\libExternalMediaLib.a(coolpropsolver.cpp.obj):coolpropsolver.cpp:(.text+0x18e1): undefined reference to `CoolProp::AbstractState::rhomass_critical()'
modelica/ExternalMedia/Resources/Library/win64\libExternalMediaLib.a(coolpropsolver.cpp.obj):coolpropsolver.cpp:(.text+0x24cc): undefined reference to `CoolProp::AbstractState::speed_sound()'
modelica/ExternalMedia/Resources/Library/win64\libExternalMediaLib.a(coolpropsolver.cpp.obj):coolpropsolver.cpp:(.text+0x2526): undefined reference to `CoolProp::AbstractState::isothermal_compressibility()'
modelica/ExternalMedia/Resources/Library/win64\libExternalMediaLib.a(coolpropsolver.cpp.obj):coolpropsolver.cpp:(.text+0x2553): undefined reference to `CoolProp::AbstractState::isobaric_expansion_coefficient()'
modelica/ExternalMedia/Resources/Library/win64\libExternalMediaLib.a(coolpropsolver.cpp.obj):coolpropsolver.cpp:(.text+0x2592): undefined reference to `CoolProp::AbstractState::viscosity()'
modelica/ExternalMedia/Resources/Library/win64\libExternalMediaLib.a(coolpropsolver.cpp.obj):coolpropsolver.cpp:(.text+0x25bf): undefined reference to `CoolProp::AbstractState::conductivity()'
modelica/ExternalMedia/Resources/Library/win64\libExternalMediaLib.a(coolpropsolver.cpp.obj):coolpropsolver.cpp:(.text+0x2830): undefined reference to `CoolProp::AbstractState::viscosity()'
modelica/ExternalMedia/Resources/Library/win64\libExternalMediaLib.a(coolpropsolver.cpp.obj):coolpropsolver.cpp:(.text+0x285d): undefined reference to `CoolProp::AbstractState::conductivity()'
modelica/ExternalMedia/Resources/Library/win64\libExternalMediaLib.a(coolpropsolver.cpp.obj):coolpropsolver.cpp:(.text+0x2eb2): undefined reference to `CoolProp::AbstractState::surface_tension()'
modelica/ExternalMedia/Resources/Library/win64\libExternalMediaLib.a(coolpropsolver.cpp.obj):coolpropsolver.cpp:(.text+0x340c): undefined reference to `CoolProp::AbstractState::surface_tension()'
modelica/ExternalMedia/Resources/Library/win64\libExternalMediaLib.a(coolpropsolver.cpp.obj):coolpropsolver.cpp:(.text+0x3fb3): undefined reference to `CoolProp::AbstractState::keyed_output(CoolProp::parameters)'
modelica/ExternalMedia/Resources/Library/win64\libExternalMediaLib.a(coolpropsolver.cpp.obj):coolpropsolver.cpp:(.text+0x4352): undefined reference to `CoolProp::get_parameter_index(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
modelica/ExternalMedia/Resources/Library/win64\libExternalMediaLib.a(coolpropsolver.cpp.obj):coolpropsolver.cpp:(.text$_ZN8CoolProp13AbstractState7factoryERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_[_ZN8CoolProp13AbstractState7factoryERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_]+0x28): undefined reference to `strsplit(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, char)'
modelica/ExternalMedia/Resources/Library/win64\libExternalMediaLib.a(coolpropsolver.cpp.obj):coolpropsolver.cpp:(.text$_ZN8CoolProp13AbstractState7factoryERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_[_ZN8CoolProp13AbstractState7factoryERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_]+0x38): undefined reference to `CoolProp::AbstractState::factory(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&)'
modelica/ExternalMedia/Resources/Library/win64\libExternalMediaLib.a(FluidProp_IF.cpp.obj):FluidProp_IF.cpp:(.text+0xd4): undefined reference to `__imp_CoInitialize'
modelica/ExternalMedia/Resources/Library/win64\libExternalMediaLib.a(FluidProp_IF.cpp.obj):FluidProp_IF.cpp:(.text+0xff): undefined reference to `__imp_CoGetClassObject'
modelica/ExternalMedia/Resources/Library/win64\libExternalMediaLib.a(FluidProp_IF.cpp.obj):FluidProp_IF.cpp:(.text+0x20c): undefined reference to `__imp_CoUninitialize'
modelica/ExternalMedia/Resources/Library/win64\libExternalMediaLib.a(FluidProp_IF.cpp.obj):FluidProp_IF.cpp:(.text+0x284): undefined reference to `__imp_SysFreeString'
modelica/ExternalMedia/Resources/Library/win64\libExternalMediaLib.a(FluidProp_IF.cpp.obj):FluidProp_IF.cpp:(.text+0x2c0): undefined reference to `__imp_SysFreeString'
modelica/ExternalMedia/Resources/Library/win64\libExternalMediaLib.a(FluidProp_IF.cpp.obj):FluidProp_IF.cpp:(.text+0x33b): undefined reference to `__imp_SafeArrayCreateVector'
modelica/ExternalMedia/Resources/Library/win64\libExternalMediaLib.a(FluidProp_IF.cpp.obj):FluidProp_IF.cpp:(.text+0x389): undefined reference to `__imp_SafeArrayPutElement'
modelica/ExternalMedia/Resources/Library/win64\libExternalMediaLib.a(FluidProp_IF.cpp.obj):FluidProp_IF.cpp:(.text+0x399): undefined reference to `__imp_SysFreeString'
modelica/ExternalMedia/Resources/Library/win64\libExternalMediaLib.a(FluidProp_IF.cpp.obj):FluidProp_IF.cpp:(.text+0x3bd): undefined reference to `__imp_SafeArrayCreateVector'
modelica/ExternalMedia/Resources/Library/win64\libExternalMediaLib.a(FluidProp_IF.cpp.obj):FluidProp_IF.cpp:(.text+0x3fb): undefined reference to `__imp_SafeArrayPutElement'
modelica/ExternalMedia/Resources/Library/win64\libExternalMediaLib.a(FluidProp_IF.cpp.obj):FluidProp_IF.cpp:(.text+0x457): undefined reference to `__imp_SysFreeString'
modelica/ExternalMedia/Resources/Library/win64\libExternalMediaLib.a(FluidProp_IF.cpp.obj):FluidProp_IF.cpp:(.text+0x467): undefined reference to `__imp_SafeArrayDestroy'
modelica/ExternalMedia/Resources/Library/win64\libExternalMediaLib.a(FluidProp_IF.cpp.obj):FluidProp_IF.cpp:(.text+0x477): undefined reference to `__imp_SafeArrayDestroy'
and some more ...
from externalmedia.
Would you check your commands and switches to build the library, mostly, for CMakeLists.txt?
Not 100% sure, because I don't use Dymola, but how about trying cmake .. -G "MSYS Makefiles" -DCOOLP=1 -DFLUIDP=1
after removing all the files in build
directory?
from externalmedia.
I use http://mingw-w64.org so in cmake I used -G "MinGW Makefiles"
I deleted the whole build
directory.
from externalmedia.
Something is wrong with your include directories - all your errors related to missing functions. I cannot debug it now, but maybe you can review your includes. A good way to simplify things is also to remove FluidProp.
from externalmedia.
Thank you. Finally, I was able to compile it - but I did it as a shared (DLL) library. For me, the compilation of the Modelica models was much faster. I'm using MWorks Compiler/Solver + GCC 9.1.0.
from externalmedia.
Related Issues (20)
- Incompressible package runs in OpenModelica but not Dymola
- Model fails to execute when using two different fluids
- Model fails to run when using Modelica.Fluid.Sensors.Temperature
- Call ExternalMedia from OMPython HOT 1
- External function could not be found in any of the given shared libraries HOT 1
- External functions in ExternalMedia should be explicitly declared as pure
- Adding new fluids to CoolProp and use it in Modelica HOT 3
- support for older gcc versions HOT 4
- Compilation errors in OpenModelica HOT 7
- Selection of different state variables (ph, pt, dT) for a CoolProp 2-phase medium HOT 1
- Cannot compute arbitrary partial derivatives with function `partialDeriv_state` HOT 2
- Wrong version of cmake required to compile the library HOT 1
- Restructuring of the repository HOT 4
- build error using cmake on windows HOT 1
- State functions do not seem to work properly HOT 6
- Compressible mixture support? HOT 2
- Custom fluid property support
- Incompressible CoolProp tests do not compile HOT 3
- Remove experiment annotation from partial models
- how to use fliudprop in external Media?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from externalmedia.