ahrm / sioyek

Sioyek is a PDF viewer with a focus on textbooks and research papers
https://sioyek.info/
GNU General Public License v3.0
7.17k stars 236 forks source link

$ ./build_linux.sh -- fails according to instructions #370

Open gnusupport opened 2 years ago

gnusupport commented 2 years ago
$ ./build_linux.sh 
make: *** No targets specified and no makefile found.  Stop.
Info: creating stash file /home/data1/protected/Programming/git/sioyek/.qmake.stash
g++ -c -pipe -std=c++17 -O2 -std=gnu++1z -flto -fno-fat-lto-objects -Wall -Wextra -D_REENTRANT -fPIC -DQT_3DINPUT_LIB -DQT_OPENGL_LIB -DQT_OPENGLEXTENSIONS_LIB -DQT_WIDGETS_LIB -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_3DINPUT_LIB -DQT_3DCORE_LIB -DQT_OPENGLEXTENSIONS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -Ipdf_viewer -Imupdf/include -Izlib -I/usr/include/qt -I/usr/include/qt/QtOpenGL -I/usr/include/qt/QtWidgets -I/usr/include/qt/Qt3DInput -I/usr/include/qt/Qt3DCore -I/usr/include/qt/QtOpenGLExtensions -I/usr/include/qt/QtGui -I/usr/include/qt/QtNetwork -I/usr/include/qt/QtCore -I. -I/usr/lib/qt/mkspecs/linux-g++ -o book.o pdf_viewer/book.cpp
In file included from pdf_viewer/book.cpp:1:
pdf_viewer/book.h:5:10: fatal error: mupdf/fitz.h: No such file or directory
    5 | #include <mupdf/fitz.h>
      |          ^~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:978: book.o] Error 1
cp: cannot stat 'sioyek': No such file or directory
ahrm commented 2 years ago

Did you clone the repository recursively? Also experimental builds are available in this repository if you just want to check the new version: https://github.com/hexomancer/sioyek/releases/tag/v0.31.376

gnusupport commented 2 years ago

Hello, I cannot know how to run AppImage, this is what I see, but program is not opening:

Setting $XDG_CONFIG_HOME to /home/data1/protected/Downloads/sioyek-release-linux-portable/Sioyek-x86_64.AppImage.config
default_config_path: /home/data1/protected/tmp/.mount_SioyekXWApA0/usr/bin/prefs.config
default_keys_path: /home/data1/protected/tmp/.mount_SioyekXWApA0/usr/bin/keys.config
user_config_path: [ 0 ] /etc/xdg/Sioyek-x86_64.AppImage/prefs_user.config
user_config_path: [ 1 ] /home/data1/protected/Downloads/sioyek-release-linux-portable/Sioyek-x86_64.AppImage.config/Sioyek-x86_64.AppImage/prefs_user.config
user_config_path: [ 2 ] /home/data1/protected/Downloads/sioyek-release-linux-portable/Sioyek-x86_64.AppImage.config/.local/share/Sioyek/prefs_user.config
user_config_path: [ 3 ] /home/data1/protected/.config/sioyek/prefs_user.config
user_keys_path: [ 0 ] /etc/xdg/Sioyek-x86_64.AppImage/keys_user.config
user_keys_path: [ 1 ] /home/data1/protected/Downloads/sioyek-release-linux-portable/Sioyek-x86_64.AppImage.config/Sioyek-x86_64.AppImage/keys_user.config
user_keys_path: [ 2 ] /home/data1/protected/Downloads/sioyek-release-linux-portable/Sioyek-x86_64.AppImage.config/.local/share/Sioyek/keys_user.config
user_keys_path: [ 3 ] /home/data1/protected/.config/sioyek/keys_user.config
database_file_path: /home/data1/protected/Downloads/sioyek-release-linux-portable/Sioyek-x86_64.AppImage.config/.local/share/Sioyek/test.db
local_database_file_path: /home/data1/protected/Downloads/sioyek-release-linux-portable/Sioyek-x86_64.AppImage.config/.local/share/Sioyek/local.db
global_database_file_path: /home/data1/protected/Downloads/sioyek-release-linux-portable/Sioyek-x86_64.AppImage.config/.local/share/Sioyek/shared.db
tutorial_path: /home/data1/protected/Downloads/sioyek-release-linux-portable/Sioyek-x86_64.AppImage.config/.local/share/Sioyek/tutorial.pdf
last_opened_file_address_path: /home/data1/protected/Downloads/sioyek-release-linux-portable/Sioyek-x86_64.AppImage.config/.local/share/Sioyek/last_document_path.txt
shader_path: /home/data1/protected/tmp/.mount_SioyekXWApA0/usr/bin/shaders
Creating shared memory block...
Shared memory already exists: this is a secondary application.
Secondary application attaching to shared memory block...
Secondary application successfully attached to shared memory block.
Secondary application sent message to IPC server.
ahrm commented 2 years ago

Looks like there is an instance of sioyek already running. Make sure to close all the instances (maybe restart the system) and try again. If you want to launch a new window, you can pass the --new-window option.

gnusupport commented 2 years ago

There was some flash like that window shall open, but did not open. Then process remains hanging.

Attempt with another package:

$ ./Sioyek-x86_64.AppImage 
default_config_path: /home/data1/protected/tmp/.mount_SioyeknLd3TU/usr/bin/prefs.config
default_keys_path: /home/data1/protected/tmp/.mount_SioyeknLd3TU/usr/bin/keys.config
user_config_path: [ 0 ] /etc/xdg/Sioyek-x86_64.AppImage/prefs_user.config
user_config_path: [ 1 ] /home/data1/protected/.config/Sioyek-x86_64.AppImage/prefs_user.config
user_config_path: [ 2 ] /home/data1/protected/.local/share/Sioyek/prefs_user.config
user_config_path: [ 3 ] /home/data1/protected/.config/sioyek/prefs_user.config
user_keys_path: [ 0 ] /etc/xdg/Sioyek-x86_64.AppImage/keys_user.config
user_keys_path: [ 1 ] /home/data1/protected/.config/Sioyek-x86_64.AppImage/keys_user.config
user_keys_path: [ 2 ] /home/data1/protected/.local/share/Sioyek/keys_user.config
user_keys_path: [ 3 ] /home/data1/protected/.config/sioyek/keys_user.config
database_file_path: /home/data1/protected/.local/share/Sioyek/test.db
local_database_file_path: /home/data1/protected/.local/share/Sioyek/local.db
global_database_file_path: /home/data1/protected/.local/share/Sioyek/shared.db
tutorial_path: /home/data1/protected/.local/share/Sioyek/tutorial.pdf
last_opened_file_address_path: /home/data1/protected/.local/share/Sioyek/last_document_path.txt
shader_path: /home/data1/protected/tmp/.mount_SioyeknLd3TU/usr/bin/shaders
Creating shared memory block...
Shared memory created: this is the primary application.
Starting IPC server...
IPC server started.

Is AppImage supposed to be self contained?

ahrm commented 2 years ago

Is AppImage supposed to be self contained?

Yes. Which distro are you using?

gnusupport commented 2 years ago

Using Parabola GNU/LInux-Libre based on Arch

gnusupport commented 2 years ago

Parabola GNU/LInux-libre