Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
02-02-2015, 01:08 AM
|
#1
|
LQ Newbie
Registered: Feb 2015
Posts: 3
Rep:
|
Make install Error -- chmod: cannot access `gtk': No such file or directory
I am working on the FBReader open source.
make is done but there is an error in make install i.e.
Quote:
chmod: cannot access `gtk': No such file or directory
make[1]: *** [do_install] Error 1
|
GTK version installed .
Quote:
$ pkg-config --modversion gtk+-3.0
3.4.2
|
Here is the make file.
Quote:
ROOTDIR = $(CURDIR)/..
MAKEFILESDIR = $(ROOTDIR)/makefiles
include $(MAKEFILESDIR)/config.mk
include $(MAKEFILESDIR)/target.mk
TARGET = FBReader
target = fbreader
ALL_SUBDIRS = src src/database src/database/sqldb src/database/sqldb/implsqlite src/database/booksdb src/database/booksdb/runnables src/migration src/options src/library src/bookmodel src/formats src/formats/fb2 src/formats/docbook src/formats/css src/formats/html src/formats/pdb src/formats/txt src/formats/tcr src/formats/chm src/formats/xhtml src/formats/oeb src/formats/rtf src/formats/openreader src/formats/pdf src/formats/dummy src/formats/util src/external src/fbreader src/encodingOption src/network src/network/authentication src/network/authentication/basic src/network/atom src/network/opds src/network/authentication/litres src/blockTree src/libraryActions src/libraryTree src/networkActions src/networkTree src/optionsDialog src/optionsDialog/bookInfo src/optionsDialog/library src/optionsDialog/network src/optionsDialog/system src/optionsDialog/reading src/optionsDialog/lookAndFeel
ALL_ARCHSUBDIRS = desktop pdaxrom opie zaurus maemo openzaurus pma400 win32
SUBDIRS = src/database src/database/sqldb src/database/sqldb/implsqlite src/database/booksdb src/database/booksdb/runnables src/migration src/options src/library src/bookmodel \
src/formats src/formats/fb2 src/formats/css src/formats/html src/formats/pdb src/formats/txt src/formats/tcr src/formats/chm src/formats/xhtml src/formats/oeb src/formats/rtf src/formats/openreader src/formats/util \
src/external src/fbreader src/encodingOption src/network src/network/authentication src/network/authentication/basic src/network/atom src/network/opds src/network/authentication/litres \
src/blockTree src/libraryActions src/libraryTree src/networkActions src/networkTree src/optionsDialog src/optionsDialog/bookInfo src/optionsDialog/library src/optionsDialog/network src/optionsDialog/system src/optionsDialog/reading src/optionsDialog/lookAndFeel
all: .resources
@for subdir in $(SUBDIRS); do \
if ! $(MAKE) -C $$subdir -f $(MAKEFILESDIR)/subdir.mk; then \
exit 1; \
fi; \
done;
@echo -n 'Linking $(TARGET) ...'
@$(LD) $(LDFLAGS) -o $(TARGET) `find src -name *.o` -L$(ROOTDIR)/zlibrary/text $(TEXT_LIBS) $(CORE_LIBS) -lsqlite3
@echo ' OK'
FBSHAREDIR = $(DESTDIR)$(SHAREDIR)/FBReader
VARIANT = $(TARGET_ARCH)
ifneq "$(RESOLUTION)" ""
VARIANT = $(TARGET_ARCH)_$(RESOLUTION)
endif
APPIMAGEDIR_REAL = $(subst %application_name%,$(target),$(subst %APPLICATION_NAME%,$(TARGET),$(APPIMAGEDIR)))
do_install:
@install -d $(DESTDIR)$(BINDIR)
@install $(TARGET) $(DESTDIR)$(BINDIR)/FBReader
@install -d $(FBSHAREDIR)
@install -d $(FBSHAREDIR)/help
chmod +x . /home/harkirat/Downloads/FBReader-master/fbreader/scripts/install_help.sh $(VARIANT) $(FBSHAREDIR)/help
#@./scripts/install_help.sh $(VARIANT) $(FBSHAREDIR)/help
@install -d $(FBSHAREDIR)/network
@install -m 0644 $(wildcard data/network/*.xml) $(FBSHAREDIR)/network
@install -d $(FBSHAREDIR)/network/certificates
@install -m 0644 $(wildcard data/network/certificates/*.crt) $(FBSHAREDIR)/network/certificates
@install -d $(FBSHAREDIR)/formats/html
@install -m 0644 data/formats/html/html.ent $(FBSHAREDIR)/formats/html
@install -d $(FBSHAREDIR)/formats/xhtml
@install -m 0644 $(wildcard data/formats/xhtml/*.ent) $(FBSHAREDIR)/formats/xhtml
@install -d $(FBSHAREDIR)/formats/fb2
@sed "s/VERSION/$(VERSION)/" data/formats/fb2/FBReaderVersion.ent > $(FBSHAREDIR)/formats/fb2/FBReaderVersion.ent
@install -m 0644 data/formats/fb2/fb2genres.xml $(FBSHAREDIR)/formats/fb2
@install -d $(FBSHAREDIR)/default
chmod +x . /home/harkirat/Downloads/FBReader-master/fbreader/scripts/install_toolbar_and_menu.sh $(VARIANT) $(UI_TYPE) $(FBSHAREDIR)/help
#@./scripts/install_toolbar_and_menu.sh $(VARIANT) $(UI_TYPE) $(FBSHAREDIR)/default
chmod +x . /home/harkirat/Downloads/FBReader-master/fbreader/scripts/install_config.sh $(VARIANT) $(UI_TYPE) $(FBSHAREDIR)/help
#@/scripts/install_config.sh $(VARIANT) $(UI_TYPE) $(FBSHAREDIR)/default
chmod +x . /home/harkirat/Downloads/FBReader-master/fbreader/scripts/install_toolbar_and_menu.sh $(VARIANT) $(UI_TYPE) $(FBSHAREDIR)/help
#@./scripts/install_toolbar_and_menu.sh $(VARIANT) $(UI_TYPE) $(FBSHAREDIR)/default
chmod +x . /home/harkirat/Downloads/FBReader-master/fbreader/scripts/install_config.sh $(VARIANT) $(UI_TYPE) $(FBSHAREDIR)/help
#@./scripts/install_config.sh $(VARIANT) $(UI_TYPE) $(FBSHAREDIR)/default
@install -m 0644 data/default/external.$(TARGET_ARCH).xml $(FBSHAREDIR)/default/external.xml
@if [ -f data/default/messages.$(TARGET_ARCH).xml ]; then \
install -m 0644 data/default/messages.$(TARGET_ARCH).xml $(FBSHAREDIR)/default/messages.xml; \
fi
@install -d $(FBSHAREDIR)/resources
@install -m 0644 $(wildcard data/resources/*.xml) $(FBSHAREDIR)/resources
@install -d $(DESTDIR)$(APPIMAGEDIR_REAL)
@install -m 0644 $(wildcard data/icons/toolbar/$(VARIANT)/*.*) $(DESTDIR)$(APPIMAGEDIR_REAL)
@install -m 0644 $(wildcard data/icons/filetree/$(VARIANT)/*.*) $(DESTDIR)$(APPIMAGEDIR_REAL)
@install -m 0644 $(wildcard data/icons/booktree/new/*.*) $(DESTDIR)$(APPIMAGEDIR_REAL)
@make -C $(TARGET_ARCH) RESOLUTION=$(RESOLUTION) install
clean:
@for subdir in $(ALL_SUBDIRS); do \
$(MAKE) -C $$subdir -f $(MAKEFILESDIR)/subdir.mk clean; \
done;
@for subdir in $(ALL_ARCHSUBDIRS); do \
cd $$subdir; make clean; cd ..; \
done;
@$(RM) $(TARGET) err
|
please help me with my error.
|
|
|
02-03-2015, 08:08 AM
|
#2
|
Senior Member
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Rep:
|
The compiler said it couldn't find gtk, not that you don't have it.
Find the GTK installation in your machine and then look at the configuration file to make sure make is looking in the right place.
|
|
|
02-03-2015, 08:44 AM
|
#3
|
Member
Registered: May 2008
Location: France
Distribution: Ubuntu, Debian
Posts: 343
Rep:
|
I may be wrong but I think you need gtk2 dev packages, not gtk3, to build.
(See: fbreader-0.99.4/makefiles/arch/desktop.mk)
In that case, what's the output of
Code:
pkg-config --cflags gtk+-2.0
?
|
|
|
02-04-2015, 12:09 AM
|
#4
|
LQ Newbie
Registered: Feb 2015
Posts: 3
Original Poster
Rep:
|
Quote:
Originally Posted by manu-tm
I may be wrong but I think you need gtk2 dev packages, not gtk3, to build.
(See: fbreader-0.99.4/makefiles/arch/desktop.mk)
In that case, what's the output of
Code:
pkg-config --cflags gtk+-2.0
?
|
sir it need qt/qt4 dev package
|
|
|
02-04-2015, 05:48 AM
|
#5
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
Well, you could just install gtk2, and see what happens :
$ sudo apt-get install libgtk2.0-dev libgtk-directfb-2.0-dev
|
|
|
All times are GMT -5. The time now is 06:57 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|