Mon 20 May 2013 01:02:51 PM UTC, original submission:
I dont know how to install gts with the instruction given in pyformex. Isolved the problem installing it from the gts website, but I noticed that is
a recurrent problem experienced by other people so maybe it will be useful to fix it. Hereby I report all the errors and the problems i got
that will maybe helpo to find a solution
I had installed gts on ubuntu 11. It was prevuosly working but lately I am not able to run it anymore, but i cannot say from which
pyformex version . As I thougth it was depending on a bad gts installation, I followed the instruction
in the Makefile in the gts folder of pyformex.
I have installed libgts-dev, libglib2.0-dev, pkg-config
then I made 'sudo make' in the gts folder but I get this error
gcc coarsen.c `pkg-config --cflags --libs glib-2.0 gts` -o gtscoarsen
/usr/local/lib/libgts.so: error: undefined reference to 'sincos'
/usr/local/lib/libgts.so: error: undefined reference to 'sqrt'
/usr/local/lib/libgts.so: error: undefined reference to 'ceil'
/usr/local/lib/libgts.so: error: undefined reference to 'log'
/usr/local/lib/libgts.so: error: undefined reference to 'exp'
/usr/local/lib/libgts.so: error: undefined reference to 'atan2'
/usr/local/lib/libgts.so: error: undefined reference to 'cos'
/tmp/cc4PNhTS.o:coarsen.c:function stop_number_verbose: error: undefined reference to 'floor'
/tmp/cc4PNhTS.o:coarsen.c:function stop_number_verbose: error: undefined reference to 'floor'
/tmp/cc4PNhTS.o:coarsen.c:function stop_number_verbose: error: undefined reference to 'floor'
/tmp/cc4PNhTS.o:coarsen.c:function stop_number_verbose: error: undefined reference to 'floor'
collect2: ld returned 1 exit status
make: *** [gtscoarsen] Error 1
I have also tried to change the FLAG as suggested in the Makefile. it does not give any error as you can see in the report file
gcc coarsen.c -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -pthread -Wl,--export-dynamic -lgts -lm -lgthread-2.0 -lgmodule-2.0 -lrt -lglib-2.0 -o gtscoarsen
gcc inside.c -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -pthread -Wl,--export-dynamic -lgts -lm -lgthread-2.0 -lgmodule-2.0 -lrt -lglib-2.0 -o gtsinside
gcc refine.c -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -pthread -Wl,--export-dynamic -lgts -lm -lgthread-2.0 -lgmodule-2.0 -lrt -lglib-2.0 -o gtsrefine
gcc set.c -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -pthread -Wl,--export-dynamic -lgts -lm -lgthread-2.0 -lgmodule-2.0 -lrt -lglib-2.0 -o gtsset
gcc smooth.c -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -pthread -Wl,--export-dynamic -lgts -lm -lgthread-2.0 -lgmodule-2.0 -lrt -lglib-2.0 -o gtssmooth
rst2man gtscoarsen.1.rst > gtscoarsen.1
rst2man gtsinside.1.rst > gtsinside.1
rst2man gtsrefine.1.rst > gtsrefine.1
rst2man gtsset.1.rst > gtsset.1
rst2man gtssmooth.1.rst > gtssmooth.1
install -d /usr/local/bin /usr/local/share/man/man1
install -m 0755 gtscoarsen gtsinside gtsrefine gtsset gtssmooth /usr/local/bin
install -m 0644 gtscoarsen.1 gtsinside.1 gtsrefine.1 gtsset.1 gtssmooth.1 /usr/local/share/man/man1
rm -f gtscoarsen gtsinside gtsrefine gtsset gtssmooth gtscoarsen.1 gtsinside.1 gtsrefine.1 gtsset.1 gtssmooth.1
But when I try to run the example Boolean in pyformex raise this error
Error while executing command:
gtsset -v union /tmp/tmpYGNy4M.gts /tmp/tmpVXMcQF.gts > /tmp/tmp8g6FSZ.gts
Running the same command in the terminal says
gtsset: symbol lookup error: /usr/local/lib/libgts-0.7.so.5: undefined symbol: atan2
|