-
Notifications
You must be signed in to change notification settings - Fork 29
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
Verify build works on Mac OS and update installation instructions #53
Comments
no, I cannot. But I will check this out this weekend. In brew you can create your own formulas to compile stuff. I will try to create one for dspdfviewer 😄 |
If they have any "generic cmake project" plugin, it should work since the cmake process is 100% standard now (even when compiling on non-debian from non-git). Be sure to add crypto checksums if you use the tar.gz archive : ) If "Compile with standard cmake method" does not work, please file a bug. |
How did the testing turn out for a current OS X? |
I have to test again, the last time I tried I could not install qt4 via brew because I am using the beta of 10.10. |
If Qt4 is the problem, and you're ready for some experiments, I have now added compatibility for Qt5 into the master branch. Activate via If you're willing to give this a shot I'd appreciate some real-world feedback (but please compile with debug symbols and provide sample-data and backtrace when it crashes : ) |
I have added basic osx building to Travis-CI's integration tests, using their default compiler (clang). @shaaati, please try building the current brew install poppler --with-qt4
git clone git://github.com/dannyedel/dspdfviewer
cd dspdfviewer
mkdir build
cd build
cmake -DUseQtFive=OFF ..
make Since you said you're using 10.9, we might be in luck: Quote http://docs.travis-ci.com/user/osx-ci-environment/
|
hm, I tested it now and it seems the qt build is still broken because of my el capitain beta ...
I don't have a mac with the previous OS right now. But if travis can use brew maybe it can also be abused with a custom brew recipe 😄 |
@wwwdata it seems this is a known bug in brew, Apple seems to have dropped a function from the Mac OS API, and therefore the compile breaks... see Homebrew/legacy-homebrew#42370. Homebrew/legacy-homebrew#40585 contains a comment with a possible fix, you might want to try out the patch from this comment: Disclaimer: I have absolutely no idea about Qt's inner workings, and cannot judge if the patch is sane. But hey, we probably already have hundreds of thousands of lines of code on our system that aren't sane... |
quote @wwwdata
If you hack a formula together blindly in a git repo of yours, I suppose you can add some kind of Since brew looks like a source-based distribution to me (with binaries of some popular libs thrown in), you could add the following switches:
Since the |
Im sorry that it took me so long to answer. I have no idea why my compilation attempt did not work earlier, because I did it exactly as you said before I posted here. |
That was most likely my fault, since I used functions from headers without I have created a new issue to track the timers not showing on OSX; as soon as I get my hands on a mac I'll try to debug this. |
Ok I got it working on El Capitain. The only problem now is the test-block of the brew formula. I have to run the program with something. So I just tried So the problem is, that dspdfviewer exits with status code 1 after displaying the help, which fails the test. |
Considering that this page itself says that Note that since dspdfviewer is a Qt Gui application, anything it does will require a working GUI subsystem; Quoting the Formula Cookbook:
In If that's not a showstopper, then a halfway-reasonable test would be "start Simple cooked-together-in-one-minute-example (Assuming macos has something similar to xdotool, you can probably adapt this): #!/bin/bash
(
sleep 1;
xdotool key Down; sleep 1;
xdotool key b; sleep 1;
xdotool key Down; sleep 1;
xdotool key Up; sleep 1;
xdotool key q
) & # send keystrokes from subshell
dspdfviewer ~/Downloads/test.pdf
RETCODE=$?
wait # wait for subshell
return $RETCODE If you're wondering why this specific sequence of keystrokes: It would have detected #65. So you better use something else, because the chance rest assured I'm testing that sequence before every release myself :) In theory, you can send pseudo-random keystrokes; it should not crash the program. But if you send any of the keystrokes that launch a popup (F1, ?, G for example) be aware that a simple "Q" won't quit the program, so you may need two "Esc" (one for dialog, one for program window) |
hm, I din't know if these tests can be performed by the homebrew tester. But my current formula looks like this: https://gist.github.com/wwwdata/666d57a9f074ca79f48d |
One more comment from me:
|
Yes good idea. In will update my pr this evening. |
it got merged in homebrew. They suggested that we compile dspdfviewer with qt5 in the future because qt4 support is very bad and will not be there in the future. |
Nice, thanks 👍 Now all that's left is update the macos install instructions and this issue can be closed. Regarding qt5 support: Please start testing HEAD builds with qt5 under MacOS and report any strange things. While I still consider the support experimental (mostly because poppler-qt5 does not declare a stable version yet) it should™ work and bug reports are more than welcome. Once the next stable version is released, I'd recommend leaving the default compile mode at qt4 and activating qt5 only on user request (at least until poppler-qt5 is stable), but in the end you're the MacOS/brew expert so you should decide this. |
fixed by #83. Thanks! |
@wwwdata created the initial Mac OS installation instructions using the
macports
system. However, in the meantime thebrew
system emerged.@wwwdata, please verify that building on current MacOS with the brew system, and - if possible - include this project in their database for easy installation.
btw, I can only assign tickets to myself or nobody. Can you click assign to yourself on this ticket?
The text was updated successfully, but these errors were encountered: