LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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


Reply
  Search this Thread
Old 02-02-2015, 01:08 AM   #1
harkiratsingh
LQ Newbie
 
Registered: Feb 2015
Posts: 3

Rep: Reputation: Disabled
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.
 
Old 02-03-2015, 08:08 AM   #2
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
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.
 
Old 02-03-2015, 08:44 AM   #3
manu-tm
Member
 
Registered: May 2008
Location: France
Distribution: Ubuntu, Debian
Posts: 343

Rep: Reputation: 43
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
?
 
Old 02-04-2015, 12:09 AM   #4
harkiratsingh
LQ Newbie
 
Registered: Feb 2015
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by manu-tm View Post
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
 
Old 02-04-2015, 05:48 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Well, you could just install gtk2, and see what happens :

$ sudo apt-get install libgtk2.0-dev libgtk-directfb-2.0-dev
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] error: gtk/gtk.h: No such file or directory Aquarius_Girl Programming 6 03-28-2011 05:17 AM
Make file error 127 ./config.status: No such file or directory przemekfilu Linux - Newbie 4 11-17-2010 03:06 AM
[SOLVED] installing .gz file..: "make: Error 127 chmod 755 " Ubunoob001 Linux - Newbie 16 10-11-2010 02:11 PM
gtk 2.8.9 make install error shishiom Linux - Newbie 2 03-06-2006 11:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration