Closed sus-unn closed 6 years ago
You might be missing "libglu1-mesa-dev" and, while you're at it, check that you have "mesa-common-dev", "libgl1-mesa-dev" and "libx11-dev" installed.
Thanks! I will check that later.
Error with libraries solved, but it makes another error:
/bin/bash ./libtool --tag=CXX --mode=link g++ -g -O2 -o gts sources/main/gts-main.o libgts.la -ltiff -Wl,-Bsymbolic-functions -lfltk_gl -lfltk -lX11 -lsane
libtool: link: g++ -g -O2 -o gts sources/main/gts-main.o -Wl,-Bsymbolic-functions ./.libs/libgts.a -ltiff -lfltk_gl -lfltk -lX11 /usr/lib/x86_64-linux-gnu/libsane.so
/usr/bin/ld: ./.libs/libgts.a(libgts_la-iip_opengl_l1edit_draw.o): undefined reference to symbol 'glRasterPos2d'
//usr/lib/x86_64-linux-gnu/mesa/libGL.so.1: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
Makefile:1833: recipe for target 'gts' failed
make[1]: *** [gts] Error 1
make[1]: Leaving directory '/home/(my-user-name)/git-repos/GTS'
Makefile:1018: recipe for target 'all' failed
make: *** [all] Error 2
I followed everything in README and it fails again.
I followed everything in README
You're not actually supposed to delete "m4/ax_check_glu.m4" - I put it there for a reason, but some macOS user encountered an error and just deleted it instead of fixing it and somehow this voodoo software building reached the Linux instructions.
So I preserved "m4/ax_check_glu.m4", and yet it makes error in "configure":
checking for TIFF... yes
./configure: line 16340: _WITH_XQUARTZ_GL: command not found
./configure: line 16341: _WITH_XQUARTZ_GL: command not found
./configure: line 16368: syntax error near unexpected token `GLU,[CFLAGS],[LIBS]'
./configure: line 16368: ` AX_SAVE_FLAGS_WITH_PREFIX(GLU,[CFLAGS],[LIBS])'
I think it has something to do with "m4/ax_check_glu.m4" because only "configure" and "m4/ax_check_glu.m4" has "_WITH_XQUARTZ_GL".
Do you have "libglu1-mesa-dev" installed?
For the next error you'll encounter, see this pull request: https://github.com/opentoonz/GTS/pull/131
Yes I have it installed. + Thanks for pull request
I'll retry with your commit and see if it works
Let me know what versions are your automake, autoconf-archive, libtool and autoconf.
automake - 1:1.15-4ubun
autoconf-archive- 20150925-1
libtool - 2.4.6-0.1
autoconf - 2.69-9
I have automake-1.16.1, but 1.15 shouldn't be a problem either.
./configure: line 16340: _WITH_XQUARTZ_GL: command not found
./configure: line 16341: _WITH_XQUARTZ_GL: command not found
./configure: line 16368: syntax error near unexpected token `GLU,[CFLAGS],[LIBS]'
./configure: line 16368: ` AX_SAVE_FLAGS_WITH_PREFIX(GLU,[CFLAGS],[LIBS])'
Sorry but same errors are raised with your commit. (pull/131/head)
Maybe you don't have "ax_save_flags_with_prefix.m4" in your autoconf archive. I added it to my pull request.
./configure: line 16340: _WITH_XQUARTZ_GL: command not found
./configure: line 16341: _WITH_XQUARTZ_GL: command not found
./configure: line 16437: syntax error near unexpected token `GLU,[CFLAGS],[LIBS]'
./configure: line 16437: ` AX_RESTORE_FLAGS_WITH_PREFIX(GLU,[CFLAGS],[LIBS]) ac_ext=c'
It is still the same. Yours is fine, right?
Did you run "./autogen.sh" again after pulling my latest commit? I'm not getting any errors and the first "configure" section that gives you problems should look like this:
# Check whether --with-xquartz-gl was given.
if test "${with_xquartz_gl+set}" = set; then :
withval=$with_xquartz_gl; if test "X$with_xquartz_gl"="Xyes"; then :
with_xquartz_gl="/opt/X11"
fi
else
with_xquartz_gl=no
fi
After adding "m4/ax_restore_flags_with_prefix.m4", it compiles on Ubuntu-16.04.
Now I need some macOS user to test this and I can remove the ugly workaround from the macOS instructions.
later edit: I tested it myself on macOS Sierra and fixed another problem in the process. I also updated the specific instructions.
Yes it works now. Thanks.
I've downloaded opentoonz/GTS source using git. I followed instruction in README.md file, but
$ ./autogen.sh && ./configure && make
This command causes error while building. It seems to be error with OpenGL but I cannot figure out how to solve this problem, I am currently using Linux mint 18.3 Sylvia 64bit.Error message: