LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 12-22-2017, 06:52 AM   #16
plasmonics
Member
 
Registered: Jan 2009
Distribution: Fedora, Gentoo, LFS
Posts: 224

Rep: Reputation: 69

Glad you got it to work. I did apply some of those patches, but maybe not in that sequence. If it is also accepting laTeX input, you must have gotten it to integrate with Texlive.

I will try this procedure.

The only potential problem is I am using gcc-7.2, not 6.x.
 
Old 12-22-2017, 08:48 AM   #17
anak_bawang
Member
 
Registered: Jun 2015
Location: Bandung Indonesia
Distribution: Debian, LFS/BLFS
Posts: 138

Original Poster
Rep: Reputation: 23
Quote:
Originally Posted by plasmonics View Post
The only potential problem is I am using gcc-7.2, not 6.x.
I compiled it using gcc-7.2.0 (LFS-8.1 & BLFS-8.1 using gcc-7.2.0).
The patch for gcc-6, but it also works for gcc-7.2.0 (at least for me).

Quote:
Originally Posted by plasmonics View Post
If it is also accepting laTeX input, you must have gotten it to integrate with Texlive.
I do not have Texlive.

Quote:
Originally Posted by anak_bawang View Post
I can write equation using LaTex (Menu -> Insert -> Equation -> From LaTex).
Using LaTex means using "LaTeX-style input".

Please visit this site:
https://www.abisource.com/release-notes/2.4.0.phtml

You will find this:
Code:
Equations can be inserted using MathML or LaTeX-style syntax. 
Inserting a nice-looking equation is as simple as typing E=mc^2. 
Figure 3 shows an example of a complex equation rendered by AbiWord.

The LaTeX-style input used to produce this figure was:

f(x) = \frac{1}{\sqrt{2\pi\sigma^2}}e^{\frac{-{(x-\mu)}^2}{2\sigma^2}}
So when you click Menu -> Insert -> Equation -> From LaTex, it will open a Text Area.
Copy and paste this text (LaTeX-style)

f(x) = \frac{1}{\sqrt{2\pi\sigma^2}}e^{\frac{-{(x-\mu)}^2}{2\sigma^2}}

input into that Text Area.

It will render the equation on document. It is not visually write a formula like LibreOffice or Microsoft Office.

You can write your own formula to render on document, if you know how to write LaTex style input.

Last edited by anak_bawang; 12-22-2017 at 08:53 AM.
 
Old 12-23-2017, 10:07 AM   #18
plasmonics
Member
 
Registered: Jan 2009
Distribution: Fedora, Gentoo, LFS
Posts: 224

Rep: Reputation: 69
The above is a good tutorial by anak_bawang for setting up equations in Abiword.

When I compiled Abiword earlier, I used different patches than the ones above for gdome2, gmetadom, and gtkmathview. That is probably why the screen rendering was malfunctioning. Now it is working much better.

I added a few more configure options, including latex.
Code:
./configure --prefix=/usr --enable-plugins="collab openxml goffice grammar mathview command loadbindings presentation aiksaurus babelfish freetranslation google kword latex opendocument mswrite paint pdf wikipedia urldict xslfo" --enable-clipart --enable-templates
In addition, to get math font rendering to work better using latex syntax, it is a good idea to install Mozilla's latin modern math and stix fonts from the Abiword home page. Also, install latex-xft-fonts package from the arch linux wiki page. You can place them in separate subdirectories under /usr/share/fonts. Then update the font cache.
Code:
fc-cache -fv
 
Old 12-23-2017, 10:41 AM   #19
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,597
Blog Entries: 19

Rep: Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455
Thanks, that's a brilliant user manual. Only one thing you haven't told us: why use clang in the first place? What are the advantages over gcc? Is it faster? Or is this just to prove that it can be done?
 
Old 12-24-2017, 08:17 AM   #20
anak_bawang
Member
 
Registered: Jun 2015
Location: Bandung Indonesia
Distribution: Debian, LFS/BLFS
Posts: 138

Original Poster
Rep: Reputation: 23
Quote:
Originally Posted by hazel View Post
why use clang in the first place? What are the advantages over gcc? Is it faster? Or is this just to prove that it can be done?
Lost of debate about the advantages of gcc vs clang.
Try googling it with keywords "gcc vs clang".

FreeBSD using clang:
https://mikegerwitz.com/2013/08/Free...ommunity#ref-0

Apple Xcode, starting from Xcode 3.2 using clang
https://developer.apple.com/library/...iew/index.html

Many Debian packages compiled using clang
https://wiki.debian.org/llvm-clang
http://clang.debian.net/

So, for me:
This just to prove that it can be done.
Give me an alternative compiler.
 
Old 02-19-2018, 01:42 PM   #21
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Hi just gonna try this
1 Q openssl
Code:
./config --prefix=/tools             \
         --openssldir=/tools/etc/ssl \
         --libdir=lib
Is that correct or should it be /tools/lib ?

Sorry my bad it follows "prefix"

Last edited by spiky0011; 02-19-2018 at 03:18 PM.
 
Old 03-01-2018, 09:09 AM   #22
anak_bawang
Member
 
Registered: Jun 2015
Location: Bandung Indonesia
Distribution: Debian, LFS/BLFS
Posts: 138

Original Poster
Rep: Reputation: 23
@spiky0011
I used this --libdir=lib
and the library would be in /tools/lib folder.
 
Old 03-04-2018, 01:17 PM   #23
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Hi

I,ve not been able to build Pixman-0.34.0. I have looked through Makefiles and tried different things, do you have the configure you used?
 
Old 03-04-2018, 07:30 PM   #24
anak_bawang
Member
 
Registered: Jun 2015
Location: Bandung Indonesia
Distribution: Debian, LFS/BLFS
Posts: 138

Original Poster
Rep: Reputation: 23
Quote:
Originally Posted by spiky0011 View Post
I,ve not been able to build Pixman-0.34.0. I have looked through Makefiles and tried different things, do you have the configure you used?
Try this
Code:
./configure --prefix=/usr --disable-static --disable-libpng
Had some problems too, but this work for me.
Tried some patch for libpng, but none works.
 
Old 03-05-2018, 06:04 AM   #25
plasmonics
Member
 
Registered: Jan 2009
Distribution: Fedora, Gentoo, LFS
Posts: 224

Rep: Reputation: 69
Are you using Clang to compile pixman, or gcc?

Using gcc, I just cut and paste the instructions in the book. No errors. Same with libpng. No patch used other than the one in the book.
 
Old 03-05-2018, 08:54 AM   #26
anak_bawang
Member
 
Registered: Jun 2015
Location: Bandung Indonesia
Distribution: Debian, LFS/BLFS
Posts: 138

Original Poster
Rep: Reputation: 23
Quote:
Originally Posted by plasmonics View Post
Are you using Clang to compile pixman, or gcc?
As the thread title "Just Sharing: LFS + BLFS compiled mostly with clang",
so I tried to compile any source using clang.
Only when the source can not be compiled by clang, then I changed to gcc.
 
Old 03-05-2018, 09:12 AM   #27
plasmonics
Member
 
Registered: Jan 2009
Distribution: Fedora, Gentoo, LFS
Posts: 224

Rep: Reputation: 69
Quote:
Originally Posted by anak_bawang View Post
Only when the source can not be compiled by clang, then I changed to gcc.
I was referring to post#23. It was not clear if the poster had used clang.

Last edited by plasmonics; 03-05-2018 at 09:14 AM.
 
Old 03-05-2018, 10:30 AM   #28
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Yes plasmonics tried with clang, it builds fine with gcc.

Thanks anak_bawang.
 
Old 03-05-2018, 05:44 PM   #29
anak_bawang
Member
 
Registered: Jun 2015
Location: Bandung Indonesia
Distribution: Debian, LFS/BLFS
Posts: 138

Original Poster
Rep: Reputation: 23
Quote:
Originally Posted by plasmonics View Post
I was referring to post#23. It was not clear if the poster had used clang.
Oh Sorry, I was looking at the thread order. Forgive me.
 
Old 03-07-2018, 02:36 PM   #30
Krejzi
Member
 
Registered: Jan 2015
Posts: 215

Rep: Reputation: Disabled
I've also been building LFS with clang lately, but have also taken a step forward to use llvm's standard libraries instead of gcc supplied ones (compiler-rt instead of libgcc, libc++ instead of libstdc++ and openmp instead of libgomp), and have found out that pixman needs a following sed after configure to build with clang v5:

sed -i "/HAVE_GCC_VECTOR_EXTENSIONS/d" config.h
 
  


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
LFS built with Clang. ReaperX7 Linux From Scratch 10 05-18-2016 10:13 AM
[SOLVED] Which version of book to use for BLFS??? (LFS-6.7 used for building LFS) rkmv Linux From Scratch 3 02-21-2012 05:32 PM
[SOLVED] Lfs-->blfs devilboy09 Linux From Scratch 21 11-20-2011 03:41 AM
LFS or BLFS masand Linux From Scratch 16 12-02-2004 02:31 PM
Lfs --> Blfs KptnKrill Linux From Scratch 3 10-11-2003 11:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 01:50 AM.

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