-
-
Notifications
You must be signed in to change notification settings - Fork 350
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
Bad pkg-config configuration when building system packages with prefix=/usr #1802
Comments
What is the output from the following two commands?
And can you attach a copy of the |
I ascrescented .txt in the end of the cantera/pc file so I can attach it here. |
Can you share the contents of your |
In general, I believe it to be preferable to post about installation question on Cantera's user group. |
This the cantera.conf I tried to build without locations, don't works Also remove -isystem /usr/include at all seems works too, running |
I'm not sure which Linux variant you're using, but I think it's generally recommended that installing software with a The issue here seems to be with re-specifying default system include directories with the @ischoegl - I'd like to leave this open and think about if there is anything we can do to avoid creating this sort of problem. |
I fixed manually changing the pkg-config, I use Arch, and plan to upload the stable version package to AUR, I think there's one for the git version, and maybe do some workaround to avoid the problem. |
In the |
Can you try specifying the |
I make a workaround, by change SConscript and cantera.pc.in, that's seen to works fine. SConscript ...
if localenv["package_build"]:
...
if localenv["prefix"] != "/usr":
localenv["pc_libs_default"] = "-L${libdir} -Wl,-rpath,${libdir}"
localenv["pc_cflags_default"] = "-isystem ${includedir}"
else:
localenv["pc_libs_default"] = "-Wl,-rpath"
localenv["pc_cflags_default"] = "-isystem"
else:
...
localenv["pc_libs_default"] = "-L${libdir} -Wl,-rpath,${libdir}"
localenv["pc_cflags_default"] = "-isystem ${includedir}"
... and cantera.pc.in,
Should I made a pull request with this or doesn't need? my build command: |
A patch to simplify this for the sake of building system packages would certainly be welcome. For the Ubuntu packages, we just patch the I'm not sure what you've shown above is what's needed, though. I assume the value of |
The if statement can be put outside of package_build, and this will work for every build but I don't know if this will break some system. But I think that for another dir like |
Cantera Version 3.0.0
When I tried to run the example of C++ program get error in math.h
g++ main/main.cpp -o myProgram -std=c++17 $(pkg-config --cflags --libs cantera)
I get the error:
The math.h is installed and seems works fine in another projects.
The text was updated successfully, but these errors were encountered: