triangle compiler error

1,770 views
Skip to first unread message

poyraz

unread,
Jun 21, 2012, 9:29:20 AM6/21/12
to mai...@googlegroups.com
Dear All,

I have been trying to compiler triangle at MAC OS X (10.7.2) systems but I can not cope with this subject. I will be too pleased if  could you  help me for my problems. I have encountered the follow error, 

Fatihs-MacBook-Pro:triangle fatihpoyraz$ make

cc -O -DLINUX -I/usr/X11R6/include -L/usr/X11R6/lib -o ./triangle ./triangle.c -lm

./triangle.c:354:25: error: fpu_control.h: No such file or directory

make: *** [triangle] Error 1

fatih

Jie Chen

unread,
Sep 9, 2012, 9:03:24 PM9/9/12
to mai...@googlegroups.com

在 2012年6月21日星期四UTC+8下午9时29分20秒,poyraz写道:
hi, poyraz
 
Did you solve the problem? I have  encountered the same error.

Fatih Poyraz

unread,
Sep 10, 2012, 6:28:14 AM9/10/12
to mai...@googlegroups.com
Dear Chen,
I have not still solved the problem. Although I sent the creator of triangle programs by e-mail I could not get any respond on the subject. I would be glad  if you share your opinions in case of obtaining any solutions for this subject.

Best regards,

Fatih

2012/9/10 Jie Chen <jerome...@live.com>

--
You received this message because you are subscribed to the Google Groups "MAINSAR" group.
To post to this group, send email to mai...@googlegroups.com.
 
 



--
Yrd. Doç. Dr. Fatih Poyraz
Cumhuriyet Üniversitesi
Mühendislik Fak. Geomatik Müh. Bölümü
Ölçme Tekniği A.B.D Sivas
e-posta: fpo...@gmail.com

Jie Chen

unread,
Sep 10, 2012, 10:17:56 AM9/10/12
to mai...@googlegroups.com
Hi, Fatih
I have installed Triangle successfully, with the edit the Makefile as follows:
CSWITCHES = -O -DLINUX -I/usr/X11R6/include -L/usr/X11R6/lib

Change the below sentence to the following one.
CSWITCHES = -O -I/usr/X11R6/include -L/usr/X11R6/lib

Then make it. 

But I have contoured some other problems when I call the triangle with MATLAB as follows:
/bin/bash: triangle: command not found.

I have no idea why I can not call triangle with matlab.

Best wishes,
Jie

Gandalf

unread,
Sep 24, 2012, 3:08:26 AM9/24/12
to mai...@googlegroups.com
I suppose that everyone who use StaMPS has already install GMT(hawaii), if you choose  Shewchuk's algorithm instead of Watson's algorithm as triangulation methon when you fill the install form, you will find triangle.c in src fold, then you in this fold cc -O -o triangle triangle.c –lm .  

在 2012年6月21日星期四UTC+8下午9时29分20秒,poyraz写道:

June Cheung

unread,
Apr 4, 2014, 2:52:16 PM4/4/14
to mai...@googlegroups.com
Hi Jie and Fatih,

I came cross the same problem when I install triangle in Cygwin today and have solved it in another way. I did make the triangle successfully in the past both in Ubuntu and Cygwin. And now I used this maked execute program and it works. Both of them are attached below and hope it works to you too.
triangle.cygwin.maked.rar
triangle.ubuntu.maked.rar
Reply all
Reply to author
Forward
0 new messages