thejambi / psnotes

P.S. Notes.
GNU General Public License v3.0
7 stars 4 forks source link

Build instructions #12

Open peteruithoven opened 7 years ago

peteruithoven commented 7 years ago

I was hoping to do a pull requests with some style tweaks. Could you maybe add build instructions?

peteruithoven commented 7 years ago

A start:

Install dependencies (incomplete)

sudo apt install libgtksourceview-3.0-dev

Build

mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr ../
make
sudo make install
nick87720z commented 7 years ago

Trying to build release 0.18.2 under gentoo... (how the barell roll you do it?)

CMake Error at CMakeLists.txt:31 (find_package): By not providing "FindVala.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "Vala", but CMake did not find one.

Could not find a package configuration file provided by "Vala" with any of the following names:

ValaConfig.cmake
vala-config.cmake

Add the installation prefix of "Vala" to CMAKE_PREFIX_PATH or set "Vala_DIR" to a directory containing one of the above files. If "Vala" provides a separate development package or SDK, be sure it has been installed.

-- Configuring incomplete, errors occurred!

thejambi commented 7 years ago

I don't think I've seen that error. If I get time to look into it, I'll see what I can find.

thejambi commented 7 years ago

With a fresh download, the build instructions above work for me. Perhaps it's a cmake configuration somewhere, but I wouldn't know where to start. I'd recommend going through https://elementary.io/docs/code/getting-started#getting-started - that's what I followed to get the cmake build stuff set up on this project.

ckovsky commented 7 years ago

Finally got it building under Linux Mint 18.2, but maybe this can help:

Installed the valac ppa to get the latest version: sudo add-apt-repository ppa:vala-team sudo apt-get update sudo apt-get install valac

From https://github.com/rilian-la-te/cmake-vala get the following elementary cmake modules (I created a cmake folder in the project root for them): FindVala.cmake ParseArguments.cmake UseVala.cmake ValaPrecompile.cmake ValaVersion.cmake

In project root, follow instructions as above comment: mkdir build cd build cmake -DCMAKE_INSTALL_PREFIX=/usr ../ make sudo make install

p.s. At the time of writing this line 858 of ./src/psnotes.vala neesd to be changed to: double newFontSize = fontSize * Pango.SCALE; d.s.