LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-27-2014, 01:49 PM   #1
moisespedro
Senior Member
 
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223

Rep: Reputation: 195Reputation: 195
I can't compile cwm under slackware64-current


After a few months without using Linux I decided to go back to it and I am using slackware64-current fully patched. I am trying to compile cwm using sbopkg (I already configured it to current) and I am getting this:

Code:
Building package for cwm-openbsd...
cwm-openbsd-5.4.0/
cwm-openbsd-5.4.0/Makefile
cwm-openbsd-5.4.0/README.md
cwm-openbsd-5.4.0/calmwm.c
cwm-openbsd-5.4.0/calmwm.h
cwm-openbsd-5.4.0/client.c
cwm-openbsd-5.4.0/conf.c
cwm-openbsd-5.4.0/cwm.1
cwm-openbsd-5.4.0/cwmrc.5
cwm-openbsd-5.4.0/group.c
cwm-openbsd-5.4.0/kbfunc.c
cwm-openbsd-5.4.0/linux.c
cwm-openbsd-5.4.0/linux.h
cwm-openbsd-5.4.0/menu.c
cwm-openbsd-5.4.0/mousefunc.c
cwm-openbsd-5.4.0/parse.y
cwm-openbsd-5.4.0/screen.c
cwm-openbsd-5.4.0/search.c
cwm-openbsd-5.4.0/util.c
cwm-openbsd-5.4.0/xevents.c
cwm-openbsd-5.4.0/xmalloc.c
cwm-openbsd-5.4.0/xutil.c
Generating y.tab.c
yacc parse.y
Generating calmwm.o.depend
In file included from calmwm.h:26:0,
                 from calmwm.c:36:
/usr/include/X11/Xft/Xft.h:40:10: error: #include expects "FILENAME" or <FILENAME>
 #include FT_FREETYPE_H
          ^
cc  -fPIC -O2 -Wall -D_GNU_SOURCE -o calmwm.o -c calmwm.c
In file included from calmwm.h:26:0,
                 from calmwm.c:36:
/usr/include/X11/Xft/Xft.h:39:22: fatal error: ft2build.h: No such file or directory
 #include <ft2build.h>
                      ^
compilation terminated.
make: *** [calmwm.o] Error 1
I searched a bit and from what I've found it has something to do with freetype2 but I am not sure on what to do.
 
Old 08-27-2014, 02:01 PM   #2
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Check the header call in the file and match it to the actual header path. See where in /usr/include ft2build.h is located.
 
Old 08-27-2014, 02:19 PM   #3
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
In package freetype-2.5.0.1 shipped on Slackware64-14.1 ft2build.h was in /usr/include, but in package freetype-2.5.3 now shipped in Slackware64-current, it is in /usr/include/freetype2.

As a workaround you could copy or link it in /usr/include

Be aware that SlackBuilds @ http://slackbuilds.org are not intended to be used on -current, so in my opinion if you run -current you should be prepared to deal with this kind of change in packaging.

More generally, if you want to use many third party SlackBuilds and unless you want to help iron out incoming Slackware release, my advice is to stick with the current -stable version.

PS It seems that there be an incompatibility between freetype-2.5.3 and libXft-2.3.2 but that's another topic.

Last edited by Didier Spaier; 08-27-2014 at 02:33 PM.
 
Old 08-27-2014, 02:19 PM   #4
moisespedro
Senior Member
 
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223

Original Poster
Rep: Reputation: 195Reputation: 195
I found the file at "/usr/include/freetype2/ft2build.h". I went then to calmwm.c, saw that it calls/includes calmwm.h went to it and I couldn't find where I should edit it. From what I understood the calmwm.h file includes <X11/Xft/Xft.h> anda that is the file I should edit. But I don't think that would be the best approach, it is a system file and it would be replaced on upgrades, etc.

EDIT: I didn't think about a symlink, I will do that
EDIT2: After creating a bunch of symlinks for the freetype2 headers the compilation went fine.

Last edited by moisespedro; 08-27-2014 at 02:26 PM.
 
Old 08-27-2014, 03:16 PM   #5
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Edit the path for ft2build.h in the source as such:

#include <freetype2/ft2build.h>
 
Old 08-27-2014, 03:22 PM   #6
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
...or just add a CPPFLAGS line before the make block, like
Code:
CPPFLAGS="-I/usr/include/freetype2" \
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
PREFIX=/usr \
MANDIR=/usr/man \
DESTDIR="$PKG" \
make install
 
Old 08-27-2014, 03:38 PM   #7
moisespedro
Senior Member
 
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223

Original Poster
Rep: Reputation: 195Reputation: 195
Oh, definitely two solutions way better than mine. Thanks folks.
 
Old 08-28-2014, 04:27 AM   #8
lems
Member
 
Registered: May 2004
Distribution: BSD
Posts: 269

Rep: Reputation: 119Reputation: 119
In case anyone's interested, there is another port of cwm by Christian Neukirchen that I've always been using (did not even know there was another port besides his …). It compiles cleanly on -current and uses pkg-config:
https://github.com/chneukirchen/cwm

edit: I've just submitted a SlackBuild for Christian's cwm version/port. I hope it will get accepted.

edit2: It will be available with the next update.

Last edited by lems; 08-29-2014 at 02:58 AM. Reason: Submitted cwm SlackBuild
 
  


Reply



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
Failed to compile Virtualbox on Slackware64-current torimus Slackware 18 05-04-2013 04:49 PM
cannot compile qjackctl from slackbuild on slackware64-current trumpet_tom Slackware 10 06-13-2011 12:57 PM
[SOLVED] Can't compile umtsmon (0.9) on Slackware64-Current Jack128 Slackware 1 11-22-2010 04:20 PM
[SOLVED] Can't compile tolua++ in slackware64-current Daedra Slackware 1 03-23-2010 08:04 AM
How can I make PyQt4 slackbuild compile in Slackware64 <current>...? Alexvader Slackware 9 12-30-2009 07:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:07 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