News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

How to distribute a final product

Started by zarnick, July 07, 2009, 09:01:36 PM

Previous topic - Next topic

zarnick

Hello, I would like to know how you guys set up Code::Blocks for distributing a finished product. What I'm interested is giving people a binary with all libs it depends in it (or maybe even just select a few libs), how you guys make this?
The project itself is an Ogre project, and I really don't think the user would like to have to install Ogre just to see this project...

Thank you.

ollydbg

what does "an Ogre project" means?
Do you want to distribute Code::Blocks? or the build project from C::B?
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

dje

I think the purpose of this thread is "how to make a setup".
If I'm right, Just look on generic download sites but this is completely out of C::B forums scope.

Dje

zarnick

Actually is not the setup for Ogre I wanna now, is the lib linking, for instance, if I build a project that relies on libX, and want to distribute that project, I would have to distribute libX as well, I want however to put this in the binary file, so I have only one file to distribute, and not a file and all its libs ;)

ollydbg

Actually this is not a C::B relate question. :(
One way, use a static linkage.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

zarnick

Ok, but how do I use static linkage on C:B?

Sunsawe

I guess you just have to use static librairies.
So you link your project to lib*.a files and not to lib*.so

zarnick

Hum, I'll try this as soon as possible, and what about on Windows?