Code::Blocks Forums

User forums => Help => Topic started by: nowhere on April 12, 2005, 11:49:04 pm

Title: Importing autotools projects
Post by: nowhere on April 12, 2005, 11:49:04 pm
Hi folks,

I'm currently trying to get some programs based on ogre built on win32, and thanks to code::blocks ogre finally builds on a Free compiler there.

I decided to use code::blocks to build the other libs, too, but of course those don't have project files yet. Is there a quick way to import an autotools based project into code::blocks?

If not, what are the speedbumps I have to watch out for when including all needed files myself, including e.g. subdirs?

Thanks in advance,
Kai
Title: Importing autotools projects
Post by: mandrav on April 13, 2005, 12:07:01 am
Quote
I decided to use code::blocks to build the other libs, too, but of course those don't have project files yet

Can you name those libs?
Note that if they have MS project files, you can import them.

Quote
Is there a quick way to import an autotools based project into code::blocks?

Not at this time...

Quote
If not, what are the speedbumps I have to watch out for when including all needed files myself, including e.g. subdirs?

This is very project-specific. If you mention what project you 're interested on, I might be able to help you.

Welcome :)
Yiannis.
Title: Importing autotools projects
Post by: nowhere on April 13, 2005, 12:28:18 am
Quote
Can you name those libs?


Well, it's sigc++-2.0, Atlas-C++, wfmath-0.3, and eris-1.3.3, the latter three being project-internal libs.

But if you could, say, walk me through on doing it for sigc++, I'm sure I'll be able to transfer the knowledge to my own libs.
We won't have any ms project files, this is a pretty linux based project.

Cheers,
Kai
Title: Importing autotools projects
Post by: mandrav on April 13, 2005, 12:59:39 am
Quote
We won't have any ms project files, this is a pretty linux based project.

I 'm not saying that you should create MS project files. I 'm saying that if the libs you 're after provide MS project files, you can import them easily.
As is the case with libsigc++:

I downloaded it and it has a .vcproj file.
Imported it.
I just had to add two directories in the compiler's search path. ("." and "..")
Built it in Debug and Release configurations without problems :)

Feel free to ask anything.

HTH,
Yiannis.
Title: Importing autotools projects
Post by: nowhere on April 13, 2005, 10:40:16 am
Quote
I 'm not saying that you should create MS project files. I 'm saying that if the libs you 're after provide MS project files, you can import them easily.


No, that's actually not what I meant. What I wanted to say is that it's unlikely there are any MS project files for our own libs. :)
Anyhow, let's ignore sigc++ then.

Let's take Atlas-C++. (You can find it at http://sourceforge.net/project/showfiles.php?group_id=11799&package_id=132539 if you want to have a look at it yourself.)

I have the basic dir, let's call it / for now. It has a subdir called Atlas that contains all the source files. Different parts of this library are  in subdirectories under Atlas. What the autotools based build does it to compile all the code in the subdirs, link it it static libs and link those libs together to form a shared lib in /Atlas. My plan for win32 would be to build a static lib, as there's no dll export code in the atlas sources.

How would I get a project for this?

Cheers,
Kai
Title: Importing autotools projects
Post by: mandrav on April 13, 2005, 12:40:43 pm
Here's what I did, in less than 5 minutes:
(Path / will mean the atlas base dir)