Page 1 of 1

Creating deb and rpm packages

Posted: Wed Jan 22, 2014 10:53 am
by moozoo
I have been developing a program using CodeLite under windows.
https://sourceforge.net/projects/openclsolarsyst/
The code uses wxWidgets and while I was writing it I made it as cross platform as I could.
Now I am creating a linux version (well Debian and maybe red hat).
It compiles can runs fine under ubuntu using Codelite.
I now need to package it.

What is the best way of creating deb and rpm packages under Codelite?
The simplest I can think of is to have a post build command copy files into a fake root and then use a binary package maker to make the package file.
Or should I switch to cmake and set up codelite to call it as an external make file?

I also have a .net/mono command line utility that goes with the program. That needs to be packaged as well.
It likewise runs fine on windows and ubuntu.

Re: Creating deb and rpm packages

Posted: Wed Jan 22, 2014 11:10 am
by eranif
moozoo wrote:Or should I switch to cmake and set up codelite to call it as an external make file?
This is how I do it under Linux to package. I use CMake for this purpose, so the makefile could be used also to create packages
by simply running:

Code: Select all

make package
For reference have a look at codelite's main CMakeLists.txt file
https://github.com/eranif/codelite/blob ... eLists.txt
(search for CPack)

Eran