Comments (5)
just press:
cmake
make
make install
from apvlv.
I tried the following and I am having trouble. Can you help me?
What I have so far:
git clone https://github.com/naihe2010/apvlv
cd apvlv
cd src
sudo apt install libwebkit2gtk-4.0-dev
sudo apt install libpoppler-glib-dev
sudo apt install libepub-dev
cmake .
gvim CMakeLists.txt
--- add project(apvlv) on line 1 ---
cmake .
make
Output of the make command:
[ 5%] Building CXX object CMakeFiles/apvlv.dir/ApvlvMenu.o
/home/iuri/apvlv/src/ApvlvMenu.cc: In function ‘void apvlv::apvlv_menu_on_help_about()’:
/home/iuri/apvlv/src/ApvlvMenu.cc:136:62: error: ‘PACKAGE_NAME’ was not declared in this scope
136 | gtk_about_dialog_set_program_name (GTK_ABOUT_DIALOG (dia), PACKAGE_NAME);
| ^~~~~~~~~~~~
/home/iuri/apvlv/src/ApvlvMenu.cc:137:57: error: ‘PACKAGE_VERSION’ was not declared in this scope; did you mean ‘PANGO_VERSION’?
137 | gtk_about_dialog_set_version (GTK_ABOUT_DIALOG (dia), PACKAGE_VERSION);
| ^~~~~~~~~~~~~~~
| PANGO_VERSION
make[2]: *** [CMakeFiles/apvlv.dir/build.make:141: CMakeFiles/apvlv.dir/ApvlvMenu.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:76: CMakeFiles/apvlv.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
Thanks in advance!
from apvlv.
@naihe2010
I had to sudo apt install ghostscript
and instead of cd ~/apvlv/src
, run cmake .
from cd ~/apvlv
Then, the following occurs:
12:01 $ make
[ 0%] Built target Startup.pdf
[ 5%] Building CXX object src/CMakeFiles/apvlv.dir/ApvlvCmds.cc.o
[ 11%] Building CXX object src/CMakeFiles/apvlv.dir/ApvlvCore.cc.o
[ 17%] Building CXX object src/CMakeFiles/apvlv.dir/ApvlvDoc.cc.o
[ 23%] Building CXX object src/CMakeFiles/apvlv.dir/ApvlvFile.cc.o
[ 29%] Building CXX object src/CMakeFiles/apvlv.dir/ApvlvPdf.cc.o
[ 35%] Building CXX object src/CMakeFiles/apvlv.dir/ApvlvInfo.cc.o
[ 41%] Building CXX object src/CMakeFiles/apvlv.dir/ApvlvMenu.cc.o
[ 47%] Building CXX object src/CMakeFiles/apvlv.dir/ApvlvParams.cc.o
[ 52%] Building CXX object src/CMakeFiles/apvlv.dir/ApvlvUtil.cc.o
/home/iuri/apvlv/src/ApvlvUtil.cc: In function ‘void apvlv::apvlv_widget_set_background(GtkWidget*)’:
/home/iuri/apvlv/src/ApvlvUtil.cc:248:78: warning: ‘void gtk_widget_override_background_color(GtkWidget*, GtkStateFlags, const GdkRGBA*)’ is deprecated [-Wdeprecated-declarations]
248 | gtk_widget_override_background_color (wid, GTK_STATE_FLAG_NORMAL, &rgba);
| ^
In file included from /usr/include/gtk-3.0/gtk/gtkapplication.h:27,
from /usr/include/gtk-3.0/gtk/gtkwindow.h:33,
from /usr/include/gtk-3.0/gtk/gtkdialog.h:32,
from /usr/include/gtk-3.0/gtk/gtkaboutdialog.h:30,
from /usr/include/gtk-3.0/gtk/gtk.h:31,
from /home/iuri/apvlv/src/ApvlvUtil.h:32,
from /home/iuri/apvlv/src/ApvlvUtil.cc:29:
/usr/include/gtk-3.0/gtk/gtkwidget.h:1148:14: note: declared here
1148 | void gtk_widget_override_background_color (GtkWidget *widget,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/iuri/apvlv/src/ApvlvUtil.cc:248:78: warning: ‘void gtk_widget_override_background_color(GtkWidget*, GtkStateFlags, const GdkRGBA*)’ is deprecated [-Wdeprecated-declarations]
248 | gtk_widget_override_background_color (wid, GTK_STATE_FLAG_NORMAL, &rgba);
| ^
In file included from /usr/include/gtk-3.0/gtk/gtkapplication.h:27,
from /usr/include/gtk-3.0/gtk/gtkwindow.h:33,
from /usr/include/gtk-3.0/gtk/gtkdialog.h:32,
from /usr/include/gtk-3.0/gtk/gtkaboutdialog.h:30,
from /usr/include/gtk-3.0/gtk/gtk.h:31,
from /home/iuri/apvlv/src/ApvlvUtil.h:32,
from /home/iuri/apvlv/src/ApvlvUtil.cc:29:
/usr/include/gtk-3.0/gtk/gtkwidget.h:1148:14: note: declared here
1148 | void gtk_widget_override_background_color (GtkWidget *widget,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ 58%] Building CXX object src/CMakeFiles/apvlv.dir/ApvlvView.cc.o
[ 64%] Building CXX object src/CMakeFiles/apvlv.dir/ApvlvWindow.cc.o
[ 70%] Building CXX object src/CMakeFiles/apvlv.dir/ApvlvCompletion.cc.o
[ 76%] Building CXX object src/CMakeFiles/apvlv.dir/ApvlvHtm.cc.o
[ 82%] Building CXX object src/CMakeFiles/apvlv.dir/ApvlvEpub.cc.o
[ 88%] Building CXX object src/CMakeFiles/apvlv.dir/ApvlvContent.cc.o
[ 94%] Building CXX object src/CMakeFiles/apvlv.dir/main.cc.o
[100%] Linking CXX executable apvlv
[100%] Built target apvlv
12:01 $ sudo make install
[ 0%] Built target Startup.pdf
[100%] Built target apvlv
Install the project...
-- Install configuration: ""
-- Up-to-date: /etc/apvlvrc
-- Up-to-date: /usr/local/share/doc/apvlv/apvlvrc.example
-- Installing: /usr/local/share/doc/apvlv/Startup.pdf
-- Up-to-date: /usr/local/share/doc/apvlv/main_menubar.glade
-- Up-to-date: /usr/local/share/doc/apvlv/icons
-- Up-to-date: /usr/local/share/doc/apvlv/icons/dir.png
-- Up-to-date: /usr/local/share/doc/apvlv/icons/pdf.png
-- Up-to-date: /usr/local/share/doc/apvlv/icons/reg.png
-- Up-to-date: /usr/local/share/man/man1/apvlv.1
-- Up-to-date: /usr/local/share/applications/apvlv.desktop
-- Installing: /usr/local/bin/apvlv
12:03 $ apvlv
-bash: /usr/bin/apvlv: No such file or directory
12:04 $ ./src/apvlv
(apvlv:14837): Gtk-WARNING **: 12:04:19.539: Could not find signal handler 'apvlv_menu_on_help_about'. Did you compile with -rdynamic?
(apvlv:14837): Gtk-WARNING **: 12:04:19.539: Could not find signal handler 'apvlv_menu_on_tools_jumpback'. Did you compile with -rdynamic?
(apvlv:14837): Gtk-WARNING **: 12:04:19.539: Could not find signal handler 'apvlv_menu_on_tools_jumpto'. Did you compile with -rdynamic?
(apvlv:14837): Gtk-WARNING **: 12:04:19.539: Could not find signal handler 'apvlv_menu_on_page_scrolldown'. Did you compile with -rdynamic?
(apvlv:14837): Gtk-WARNING **: 12:04:19.540: Could not find signal handler 'apvlv_menu_on_page_scrollup'. Did you compile with -rdynamic?
(apvlv:14837): Gtk-WARNING **: 12:04:19.540: Could not find signal handler 'apvlv_menu_on_page_next'. Did you compile with -rdynamic?
(apvlv:14837): Gtk-WARNING **: 12:04:19.540: Could not find signal handler 'apvlv_menu_on_page_previous'. Did you compile with -rdynamic?
(apvlv:14837): Gtk-WARNING **: 12:04:19.540: Could not find signal handler 'apvlv_menu_on_file_quit'. Did you compile with -rdynamic?
(apvlv:14837): Gtk-WARNING **: 12:04:19.540: Could not find signal handler 'apvlv_menu_on_file_print'. Did you compile with -rdynamic?
(apvlv:14837): Gtk-WARNING **: 12:04:19.540: Could not find signal handler 'apvlv_menu_on_file_saveas'. Did you compile with -rdynamic?
(apvlv:14837): Gtk-WARNING **: 12:04:19.540: Could not find signal handler 'apvlv_menu_on_file_opentab'. Did you compile with -rdynamic?
(apvlv:14837): Gtk-WARNING **: 12:04:19.540: Could not find signal handler 'apvlv_menu_on_file_open'. Did you compile with -rdynamic?
12:05 $
from apvlv.
@naihe2010
I undid the changes to src/CMakeLists.txt and started again.
Apparently, it now installed to the right place and opened the PDF file.
However, when I click on any bookmarks, I got the following errors:
(apvlv:15329): GLib-CRITICAL **: 12:23:57.183: Source ID 69 was not found when attempting to remove it
(apvlv:15329): GLib-CRITICAL **: 12:24:23.839: Source ID 678 was not found when attempting to remove it
(apvlv:15329): Gtk-WARNING **: 12:24:54.435: Theme parsing error: <data>:1:19: Not using units is deprecated. Assuming 'px'.
(apvlv:15329): Gtk-WARNING **: 12:25:12.386: Theme parsing error: <data>:1:19: Not using units is deprecated. Assuming 'px'.
** (apvlv:15329): CRITICAL **: 12:25:20.482: bool apvlv::ApvlvDocCache::getAvailableSpace(apvlv::ApvlvPos, apvlv::ApvlvPos*): assertion '!mLines.empty ()' failed
(apvlv:15329): GLib-CRITICAL **: 12:25:23.425: Source ID 1239 was not found when attempting to remove it
Please advise!
from apvlv.
Still not able to comment or highlight any pdf file. Please advise.
$ apvlv -v
apvlv 0.4.38198fd-rel
Please send bug report to Alf <[email protected]>
from apvlv.
Related Issues (20)
- Source ID xxxx was not found when attemting to remove it HOT 1
- src/ApvlvInfo.h:28: bad header guard HOT 1
- Some ~/.apvlvrc settings not applying HOT 1
- Feature request: improve documentation HOT 2
- Support XDG Base Directory Specification HOT 2
- Visual mode does not working properly and got GTK errors HOT 4
- Setting local settings doesn't seem to work and minimal view config
- epub.h not found HOT 4
- How to uninstall? HOT 2
- Does not respond to ZZ HOT 1
- Please let me use PageUp/PageDown HOT 1
- Please move ~/.apvlvinfo to $XDG_CACHE_HOME (default ~/.cache)
- Tab completion can only list .pdf files in Zsh HOT 1
- Question about the project's hosting HOT 2
- please upgrade apvlv to use webkit2gtk-4.1 OR webkitgtk-6.0 (GTK 4 and libsoup 3) HOT 2
- Provide a higher resolution icon HOT 1
- Would you add new tag version now? HOT 1
- Sina Weibo: naihe2010 is not exist in README.md HOT 1
- $HOME/.apvlvrc is not being read HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apvlv.