-
Notifications
You must be signed in to change notification settings - Fork 36
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
CoolProp compilation fails on Xubuntu, not finding CoolPropTools.h / not linking to target library #14
Comments
Hello, Then, I forced to checkout the v6.1.0 tag from CoolProp: In BuiildLib-CMake.bat I change some lines:
I'm still confused on why master branch of coolprop doesnot work straight. I will make a pull when I get it right. Regards |
Hello Thomas, firs of all thank you for your quick reply :) How do I checkout the dev-branch? I did the following: $ git clone --recursive https://github.com/modelica/ExternalMedia/tree/v.3.3.0-dev which causes the following error message: What am I doing wrong? Maybe I should add that this is my first time that I am using git. Best regards, |
If you didn't clone the repository, the command should be: So something like:
else (to change branch) Some git tutorial: |
Ok, I think that slowly I get an idea of how the git-stuff works... I have done what you suggested and I think I managed to checkout the v.3.3.0-dev. Unfortunately the script hangs at git submodule update as I am asked to enter a username and password. Unfortunately my GitHub-credentials do not seem to be recognized. Is there a special user/password available? |
Hi, So go to CoolProp/externals/Eigen to see where it points to:
if so you can by hand:
I think this is not done automatically because we point to v6.1.0 There is some issue changing Eigen repo in CoolProp. Hope this help, |
Hi Thomas, I have cloned the repo https://github.com/eigenteam/eigen-git-mirror/ and have then copied the entire directory ../eigen-git-mirror/Eigen to my ExternalMedia repo ../ExternalMedia/externals/CoolProp.git/externals/Eigen et voilà, git submodule update does not ask for a username any more. Merci beaucoup ! However, compilation still fails, now with the following error: Apparently there are still files missing, like ../externals/CoolProp.git/externals/Catch/single_include/catch.hpp Regards |
Hallo,
Username and password are requested because github can have private repo (I guess). Because it raise 404 error it tries to connect to a private repo. The wrong path of Eigen in CoolProp have been corrected in master branch (CoolProp/CoolProp#1697). The good things to do, in my own opinion is to point to last release of CoolProp. Regards |
Hi Thomas, actually the problem with the wrong Eigen repo had been solved by following your earlier suggestions regarding the eigen-git-mirror (as least this is my impression). I still do not manage to get the missing ../externals/CoolProp.git/externals/Catch/single_include/catch.hpp. Is there a way to update the BuildLib script so that the missing files will be loaded? Regards |
I'm not expert of git and submodule. Please look at git documentation on this.
or
If you plan to change BuildLib, I would say that make your own. My opinion on this is to write one proper CMakeLists.txt to handle all architectures once and for all. It is easier to maintain and cross-platform. But it requires some time to be bullet proof. Regards, |
Hi Thomas, thank you for your reply. Unfortunately things are still not working as new errors occur. Here is what I did: I navigated to my local directory
which results in the following immediate message:
but nothing else happens (or is this just my impression?). Then i did
which among others reports the following:
As you can see the file
So this time the compilation cannot find the header file
Any idea? Best regards |
Install fmt lib:
|
Hi Thomas, However, now I get the next error:
I assume that I have to install rapidjson in the same manner as I did for the fmt library but I am not sure which is the right repository. Would
be correct? |
Hi, I would look if all submodule are properly pulled. Regards, |
Hi, Nonetheless I very much appreciate your efforts so far! Regards |
This is obsolete, v3.3.0 should fix this |
Hello.
I am currently trying to compile the CoolProp library on a fresh Xubuntu intall (18.04) for use with OpenModelica.
My first approach was to clone ExternalMedia from "https://github.com/modelica/ExternalMedia" (using the --recursive parameter) and then to follow the ComileHowTwo-instructions, but the compilation terminates not finding CoolPropTools.h. Apparently the makefiles do not provide cloning of the missing files and I have no idea how to do so.
Then I realized that there is another repository at https://github.com/coolprop/ExternalMedia which seemed to be more up-to-date. So my second approach was to recursively clone from there and after struggling with the BuildLib-CMake.sh (had to re-link the shell from /bin/dash to /bin/bash since the pushd/popd commands were not found) the compilation got further but finally terminated with the following error
CMake Error at /home/christian/Dokumente/Git/ExternalMedia/externals/CoolProp.git CMakeLists.txt:422 (target_link_libraries):
Object library target "CoolProp" may not link to anything.
I have also tried using "make -f makefile library" according to the "CompilationHowTwo.txt" instructions, but the result is the same.
I have no idea how to fix this and would be very happy if you could give me a hint what else to try and which repository is the right one.
Best regards
Christian
The text was updated successfully, but these errors were encountered: