FBReader icon indicating copy to clipboard operation
FBReader copied to clipboard

Document the build steps

Open berezovskyi opened this issue 11 years ago • 8 comments

There is no README file or Wiki, so I think there should be a place where there are introductory guidelines to compiling the project (after deciding to attempt to fix the issue #168).

I am doing it on Ubuntu 14.04, so I will describe my steps for this platforms.

I hope that when I manage to build the project successfully, the outline of my steps will make it to Wiki/README to make the lives of other people easier.

berezovskyi avatar Sep 20 '14 20:09 berezovskyi

First, I had to create a makefiles/target.mk file:

TARGET_ARCH = desktop
UI_TYPE = gtk

berezovskyi avatar Sep 20 '14 20:09 berezovskyi

Next, ccache was required: sudo apt-get install ccache

berezovskyi avatar Sep 20 '14 20:09 berezovskyi

The linebreak.h is part of the libunibreak package: sudo apt-get install libunibreak-dev Also, you need to replace the linked library -llinebreak with -lunibreak in:

  • makefiles/config.mk
  • zlibrary/text/Makefile

Old liblinebreak exists only in the repositories for Ubuntu 10.04.

berezovskyi avatar Sep 20 '14 21:09 berezovskyi

The library fribidi is required as well: sudo apt-get install libfribidi-bin libfribidi-dev

berezovskyi avatar Sep 20 '14 21:09 berezovskyi

Ooops, there is README.build, will work on getting the packaging to succeed and will try to make a Wiki page out of that.

berezovskyi avatar Sep 20 '14 21:09 berezovskyi

Well, I have made to the end before seeing README, so I only had to execute make install to be able to run the FBReader on my system.

berezovskyi avatar Sep 20 '14 21:09 berezovskyi

I've added the wiki page that combines the contents of the README.build as well as the Ubuntu-specific findings I did.

@geometer, could you take a look, please? And close the issue if everything is in place.

P.S. I would appreciate the instructions on how to build the packages for desktop-debian. Below is my output:

andrew@andrew-zenbook:~/src/FBReader$ ./build_packages.sh desktop-debian
cp: cannot stat ‘distributions-nonGPL’: No such file or directory
make: Entering directory `/home/andrew/src/FBReader/fbreader-0.14.0'
Building desktop debian package... OK
make: Leaving directory `/home/andrew/src/FBReader/fbreader-0.14.0'
mv: cannot stat ‘fbreader-0.14.0/*.deb’: No such file or directory
mv: cannot stat ‘fbreader-0.14.0/*.dsc’: No such file or directory
mv: cannot stat ‘fbreader-0.14.0/*.changes’: No such file or directory
mv: cannot stat ‘fbreader-0.14.0/*.tar.gz’: No such file or directory

berezovskyi avatar Sep 21 '14 07:09 berezovskyi

Looks nice. I will read carefully asap.

geometer avatar Sep 21 '14 09:09 geometer