-
Notifications
You must be signed in to change notification settings - Fork 364
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
[question] Integrate conan into development tool chain, e.g. standard make files and IDEs #587
Comments
Hi @langeseb ! Lets start step by step. You mention that:
I am not sure if you know about the how-to regarding Makefiles, I think it can be very useful for your use case. It also contains links to a github repo with some code: http://docs.conan.io/en/latest/howtos/makefiles.html So, no you shouldn't need using and parsing the txt generator :) I think you might also find relevant this section of the reference: http://docs.conan.io/en/latest/reference/build_helpers/autotools.html Please have a look at those and tell me if they help. Thanks! |
Hi @memsharded! Maybe I also don't get the idea of conan straight and this is not the way it should be used? Have a nice weekend! |
Oh, so you are trying to achieve the equivalent to cmake-conan in Makefiles? I am no expert in Makefiles, don't know the hackery required to do something equivalent, but we could try to help you if you want to give it a try. I think the best could be to create a github repo with a very simple proof of concept that we could use to sync. Lets talk about it. Have a nice weekend too! |
Correct - The cmake-conan project is what I'm looking for, only for Makefiles. As far as I've understood there is no recent approach for Make. I will test a little bit, what I can do with the combination of calling conan from Make and integrate this to Netbeans and come back to you, when I'll find something. |
I am not sure what you mean, if you are driving the process from Make, then you will have access to all include-dirs, etc. why would you like to provide some includedirs to Regarding IDE, I use some combinations:
But otherwise, yes, I like the terminal much, e.g. I always use git on the terminal, I don't use any IDE plugin or addon. I like very much the explicit flow under my control: |
I agree - terminal would be great. Unfortunately I'm integrated into a project where we have to use the given toolchain. It's not easy to introduce new tools, when other colleagues prefer the IDE way. To the problem with the include dirs; Netbeans also just calls Make and don't parse its content. It uses an xml-config file, to create the Makefile structure, where the top level Makefile can be edited (where I can put |
Ah! Now I get it. It is not pure Makefile based, but Makefile-generated based. Can that The docs to check would be: http://docs.conan.io/en/latest/howtos/custom_generators.html#dyn-generators Please tell me if this could make sense, thanks! |
That could be a solution - I'll ask the Netbeans-pros around here. |
Hey @memsharded!
Some ideas:
|
Dear conan-developers,
I'm currently using conan 1.1.1. with RHEL and try to evaluate how to integrate conan in our tool chain. Thus, I want to create packages, use packages, CI them, and adapt my tools to work with conan.
The documentation is really good, but I'm missing a whole picture/tutorial how to integrate conan, see also:
#32
To be more specific: I'm using Netbeans IDE which generates makefiles for my c/c++ projects.
What is the suggested way to integrate conan into the following example:
MPI-Helloworld:
I've successfully created a conan package for openmpi and a new C-Application project, which basically uses MPI to say helloworld from multiple processes. Netbeans generates the makefiles for the building process (as well as tests, which I'll ignore here).
Now, I want to use the conan-openmpi package I've build. The examples mostly shows how to integrate it into cmake, only mentioning, that make is also supported. What's the recommended way to use the include-/libdirs in my standard makefile? Shall I use the conan txt-generator and put the paths into my makefile? If so: a manual process would not be feasible for more complex projects. Thus, should I script this process or is it better to use conan to build my mpi-helloworld?
The next step is to create also a package for my mpi-helloworld. Then I'll have to adapt my IDE, i.e. adding the includes and libs into my IDE-properties (for sake of tracing code and navigate also into my openmpi library). At this point, I could of course work with symlinks or is there better way, like replacing the make command with a conan create and using the Autotools with conan to resolve my include/lib-path?
Finally, after the local integration, I want upload the code to a remote git-repo which triggers Jenkins and publish the artefact into artifactory (e.g. Jenkinsfile).
A lot of the pieces are described in the docs, but it is - at least for me - hard to get a full picture. A How-To article would be great!
I understand, that you can't cover all the topics, like specific IDEs, but maybe you can give an idea how conan would be used in such a environment?
Thank you & kind regards!
The text was updated successfully, but these errors were encountered: