User forums > Help

Import project from Automake

(1/3) > >>

tomb_unaff:
I just download CLAMAV sources and I would like to use Code::Blocks IDE for debuging and development. (I am new to Code::Blocks).

But I cannot see: Import project from automake (or similar: cmake, qmake, ect...) Cannot find plugin...

Is there possiblity to somhow import this CLAMAV project into Code::Blocks?

Tom

MortenMacFly:

--- Quote from: tomb_unaff on December 01, 2008, 12:58:07 am ---But I cannot see: Import project from automake

--- End quote ---
If you ever see an IDE that allows to import automake (...) projects - tell me.
This is usually a by far too complex task to be done and is therefore nor supported by C::B.

Instead, analyse what's actually setup in the build (automake) process and setup your project accordingly. I did this many times with Makefile based projects - it's not too hard. As a bonus you can use the full palette of C::B functionality if you don't use a Makefile project. Which brings me to the other (less clever) option: Let automake generate the Makefiles and setup a C::B project which is based on Makefiles.

tomb_unaff:
Thanks for reply,

Although you can easily Import project from Makefile in Kdevelop, but I'd like to use CodeBlocks.


--- Quote ---Let automake generate the Makefiles and setup a C::B project which is based on Makefiles.
--- End quote ---

Ok, I run ./configure and I got Makefile,
In next step I create new project:

File -> New -> Project

And I choose Console Application.

What shall I do next to get CLAMAV in C::B?

Is there some guide or tutorial how to create project for C::B form Makefile?

Thanks you in advance.
Tom

MortenMacFly:

--- Quote from: tomb_unaff on December 02, 2008, 07:15:44 pm ---Although you can easily Import project from Makefile in Kdevelop, but I'd like to use CodeBlocks.

--- End quote ---
I wonder if that really works reliable. You can do a lot strange things with Makefiles. I am sure KDevelop does not support each and every possible Makefile magic... but hey - I should give it a try... ;-)


--- Quote from: tomb_unaff on December 02, 2008, 07:15:44 pm ---Is there some guide or tutorial how to create project for C::B form Makefile?

--- End quote ---
No, there is not and there can hardly be (due to the reason I said above).
But: Try to setup a simple project (only a new, empty C::B project - nothing else). Then go to the project properties, enter the name of your Makefile and select "This is a custom Makefile". Don't forget to setup the project's (top-level) path correctly - meaning to store the project file in the folder where the "root" Makefile is.

Still: I strongly suggest you go to the Makefile(s) step by step and transfer the settings to C::B's build system. It's far easier to maintain and to adopt for the future.

thomas:
Well, considering that KDevelop's build system is based on autoconf/make, the ability to import foreign makefiles is no big magic. It's pretty much copy-paste, and make will do the rest.

Navigation

[0] Message Index

[#] Next page

Go to full version