Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document how to build PosteRazor #3

Open
ockham opened this issue Jun 23, 2014 · 5 comments
Open

Document how to build PosteRazor #3

ockham opened this issue Jun 23, 2014 · 5 comments

Comments

@ockham
Copy link
Contributor

ockham commented Jun 23, 2014

I'd like to try out the Qt-based version of PosteRazor. Unfortunately, I don't have any experience with qmake and Qt libraries, so I'd be grateful for some documentation on how to build it (maybe an INSTALL file?), ideally listing depdendencies and commands to be executed (under Debian/Ubuntu, in my case).

@ockham
Copy link
Contributor Author

ockham commented Jun 23, 2014

Figured it out:

sudo apt-get install qtbase5-dev
/usr/lib/x86_64-linux-gnu/qt5/bin/qmake -r src/posterazor.pro
make
./src/PosteRazor

BTW, what about a preview release? Releasing source code is quite easy nowadays with GitHub, it just amounts to creating a git tag, say, 1.9.6, e.g. from the Releases section, and you can add notes and binaries to the release. Given how long you seem to have been working on the Qt port and how stable it looks, why not release it to the world? If there are some bugs left, people will certainly help fix them.

@aportale
Copy link
Owner

Hallo Bernhard,

entschuldige bitte, dass ich jetzt erste antworte. Schoen, dass das mit dem
Kompilieren (und dann noch mit Qt 5) doch geklappt hat :) Ein README dazu
waere in der Tat angebracht, das sollte ich noch nachliefern.

Einen Binary preview fuer Windows und OSX hatte ich schon vor einiger Zeit
gemacht:
http://sourceforge.net/projects/posterazor/files/PosteRazor%202%20Preview/1.9.5/
Bei Linux war ich mir damals nicht so sicher, ob das mit den Dependencies
gut auf verschiedenen Distributionen klappt.

Leider hat mir die Motivation gefehlt, PosteRazor 2 ueberhaupt zu promoten,
weil es im Grunde die gleiche Funktionalitaet wie PosteRazor 1 hat, aber
einen extra Qt-ballast mit sich bringt. Aber Nachfragen wie Deine
motivieren natuerlich :) Also, wenn ich mal wieder Zeit und Zugriff auf
einen Mac habe, werde ich einen 1.9.6er release machen.

Viele Gruesse,
Alessandro

On Mon, Jun 23, 2014 at 4:15 PM, Bernhard Reiter [email protected]
wrote:

Figured it out:

sudo apt-get install qtbase5-dev
/usr/lib/x86_64-linux-gnu/qt5/bin/qmake -r src/posterazor.pro
make
./src/PosteRazor

BTW, what about a preview release? Releasing source code is quite easy
nowadays with GitHub, it just amounts to creating a git tag, say, 1.9.6,
e.g. from the Releases section, and you can add notes and binaries to the
release. Given how long you seem to have been working on the Qt port and
how stable it looks, why not release it to the world? If there are some
bugs left, people will certainly help fix them.


Reply to this email directly or view it on GitHub
#3 (comment).

@ockham
Copy link
Contributor Author

ockham commented Jun 24, 2014

Super, freue mich auf 1.9.6!

Das 1.9.5er-Preview auf Sourceforge hatte ich gesehen, aber nicht ausprobiert, da es schon ca. 6 Jahre alt ist. Die Dependencies -- also hauptsächlich Qt5, oder? -- sollten mittlerweile eigentlich in so gut wie allen relevanten Linux-Distributionen vorhanden sein, denke ich.

Persönlich finde ich Qt doch erheblich ansprechender als FLTK, daher würde ich es nicht als Ballast sehen; außerdem kannst du noch dazu FreeImage als Dependency loswerden, da du ja Qts QImage bzw. QImageReader zum Laden der Bild-Dateien verwendest, oder?

@alterohm
Copy link

alterohm commented May 31, 2020

i just compiled v1.9.7 in macos 10.15.4 and i hope this howto is helpful to someone:

  1. xcode installed

  2. macports installed (needs xcode)

  3. in terminal: sudo port install qt5-qtbase

  4. in terminal: sudo port install poppler-qt5

  5. downloaded zip, unzipped, opened terminal, changed directory to /posterazor-master

  6. find installed qmake from qt5 with:
    find /opt/ -name qmake
    my result: /opt/local/libexec/qt5/bin/qmake

  7. find mac sdk with:
    xcrun -sdk macosx --show-sdk-path
    my result: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk

  8. editet src/posterazor.pro:

macx:CONFIG +=
x86

macx:QMAKE_MAC_SDK = \
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk

macx:QMAKE_MACOSX_DEPLOYMENT_TARGET =
10.7

  1. updated version numbers to 1.9.7 in posterazor.rc and Info.plist:

  2. compilation with:
    /opt/local/libexec/qt5/bin/qmake -r src/posterazor.pro
    make

  3. start application from terminal
    open -a PosteRazor ./src/PosteRazor.app

@albfan
Copy link

albfan commented Nov 7, 2021

There're dowstream packagers to check details to build on linux:

https://github.com/archlinux/svntogit-community/blob/packages/posterazor/trunk/PKGBUILD
https://copr-dist-git.fedorainfracloud.org/cgit/stethewwolf/posterazor/posterazor.git/tree/

from RPMBUILD or spec file you can understand how to build the package

#9 will help to build versions easily

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants