USER FORUM
(you are viewing a thread; or go back to list of threads)
FOSS or not, linux use, wine on amd64 fails (by John Griessen)
I was attempting to use BRL-CAD and wasted a day and found the SolveSpace site.
I read about how to use it and tried the suggestion to use wine on linux and ran into a dead end with my 64 bit computer not really wanting to use wine as is -- it's a debian linux installation. Wine on 32bit debian linux is a button press, but not for 64 bit systems.
So, the I looked at virtual machines for a few minutes and wanted to use the FLTK port instead. So, I tried git clone [email protected]:solvespace/fltk-port.git and that said permission denied. I thought -- Oh, maybe it's been merged into the main repository, and tried git clone [email protected]:solvespace/solvespace.git with same result.
Then I noticed a download button that gives a tar.gz file.
Is that the only way to get source to compile?
I see FLTK commit messages recently, so does that mean FLTK compile forom the main repo works? Are there any instructions for that in the source -- I'll read that soon...
Thanks,
John
electronics engineer/CNC machinist/kit manufacturer
I read about how to use it and tried the suggestion to use wine on linux and ran into a dead end with my 64 bit computer not really wanting to use wine as is -- it's a debian linux installation. Wine on 32bit debian linux is a button press, but not for 64 bit systems.
So, the I looked at virtual machines for a few minutes and wanted to use the FLTK port instead. So, I tried git clone [email protected]:solvespace/fltk-port.git and that said permission denied. I thought -- Oh, maybe it's been merged into the main repository, and tried git clone [email protected]:solvespace/solvespace.git with same result.
Then I noticed a download button that gives a tar.gz file.
Is that the only way to get source to compile?
I see FLTK commit messages recently, so does that mean FLTK compile forom the main repo works? Are there any instructions for that in the source -- I'll read that soon...
Thanks,
John
electronics engineer/CNC machinist/kit manufacturer
compile on debian problem (by John Griessen)
/usr/local/src/solvespace-solvespace$ sudo make install
Making install in src
make[1]: Entering directory '/usr/local/src/solvespace-solvespace/src'
make install-am
make[2]: Entering directory '/usr/local/src/solvespace-solvespace/src'
/bin/bash ../libtool --tag=CXX --mode=link g++ -g -O2 -o solvespace bsp.o clipboard.o confscreen.o constraint.o constrainteq.o describescreen.o draw.o drawconstraint.o drawentity.o entity.o export.o exportstep.o exportvector.o expr.o file.o generate.o glhelper.o graphicswin.o group.o groupmesh.o mesh.o modify.o mouse.o polygon.o request.o solvespace.o style.o system.o textscreens.o textwin.o toolbar.o ttf.o undoredo.o util.o view.o srf/boolean.o srf/curve.o srf/merge.o srf/ratpoly.o srf/raycast.o srf/surface.o srf/surfinter.o srf/triangulate.o fltk/xFl_Gl_Window_Group.o fltk/fltkmain.o fltk/fltkutil.o /usr/lib/x86_64-linux-gnu/libfltk_images.a -lpng -lz -ljpeg /usr/lib/x86_64-linux-gnu/libfltk_gl.a -lGL /usr/lib/x86_64-linux-gnu/libfltk_forms.a /usr/lib/x86_64-linux-gnu/libfltk.a -lXext -lXft -lfontconfig -lfontconfig -lXinerama -ldl -lm -lX11 -lGLU
libtool: link: g++ -g -O2 -o solvespace bsp.o clipboard.o confscreen.o constraint.o constrainteq.o describescreen.o draw.o drawconstraint.o drawentity.o entity.o export.o exportstep.o exportvector.o expr.o file.o generate.o glhelper.o graphicswin.o group.o groupmesh.o mesh.o modify.o mouse.o polygon.o request.o solvespace.o style.o system.o textscreens.o textwin.o toolbar.o ttf.o undoredo.o util.o view.o srf/boolean.o srf/curve.o srf/merge.o srf/ratpoly.o srf/raycast.o srf/surface.o srf/surfinter.o srf/triangulate.o fltk/xFl_Gl_Window_Group.o fltk/fltkmain.o fltk/fltkutil.o /usr/lib/x86_64-linux-gnu/libfltk_images.a -lpng -lz -ljpeg /usr/lib/x86_64-linux-gnu/libfltk_gl.a -lGL /usr/lib/x86_64-linux-gnu/libfltk_forms.a /usr/lib/x86_64-linux-gnu/libfltk.a -lXext -lXft -lfontconfig -lXinerama -ldl -lm -lX11 -lGLU
graphicswin.o:(.rodata+0xc18): undefined reference to `Constraint::MenuConstrain(int)'
graphicswin.o:(.rodata+0xc38): undefined reference to `Constraint::MenuConstrain(int)'
graphicswin.o:(.rodata+0xc58): undefined reference to `Constraint::MenuConstrain(int)'
graphicswin.o:(.rodata+0xc78): undefined reference to `Constraint::MenuConstrain(int)'
graphicswin.o:(.rodata+0xcb8): undefined reference to `Constraint::MenuConstrain(int)'
graphicswin.o:(.rodata+0xcd8): more undefined references to `Constraint::MenuConstrain(int)' follow
collect2: error: ld returned 1 exit status
Makefile:599: recipe for target 'solvespace' failed
make[2]: *** [solvespace] Error 1
make[2]: Leaving directory '/usr/local/src/solvespace-solvespace/src'
Makefile:806: recipe for target 'install' failed
make[1]: *** [install] Error 2
make[1]: Leaving directory '/usr/local/src/solvespace-solvespace/src'
Makefile:449: recipe for target 'install-recursive' failed
make: *** [install-recursive] Error 1
Making install in src
make[1]: Entering directory '/usr/local/src/solvespace-solvespace/src'
make install-am
make[2]: Entering directory '/usr/local/src/solvespace-solvespace/src'
/bin/bash ../libtool --tag=CXX --mode=link g++ -g -O2 -o solvespace bsp.o clipboard.o confscreen.o constraint.o constrainteq.o describescreen.o draw.o drawconstraint.o drawentity.o entity.o export.o exportstep.o exportvector.o expr.o file.o generate.o glhelper.o graphicswin.o group.o groupmesh.o mesh.o modify.o mouse.o polygon.o request.o solvespace.o style.o system.o textscreens.o textwin.o toolbar.o ttf.o undoredo.o util.o view.o srf/boolean.o srf/curve.o srf/merge.o srf/ratpoly.o srf/raycast.o srf/surface.o srf/surfinter.o srf/triangulate.o fltk/xFl_Gl_Window_Group.o fltk/fltkmain.o fltk/fltkutil.o /usr/lib/x86_64-linux-gnu/libfltk_images.a -lpng -lz -ljpeg /usr/lib/x86_64-linux-gnu/libfltk_gl.a -lGL /usr/lib/x86_64-linux-gnu/libfltk_forms.a /usr/lib/x86_64-linux-gnu/libfltk.a -lXext -lXft -lfontconfig -lfontconfig -lXinerama -ldl -lm -lX11 -lGLU
libtool: link: g++ -g -O2 -o solvespace bsp.o clipboard.o confscreen.o constraint.o constrainteq.o describescreen.o draw.o drawconstraint.o drawentity.o entity.o export.o exportstep.o exportvector.o expr.o file.o generate.o glhelper.o graphicswin.o group.o groupmesh.o mesh.o modify.o mouse.o polygon.o request.o solvespace.o style.o system.o textscreens.o textwin.o toolbar.o ttf.o undoredo.o util.o view.o srf/boolean.o srf/curve.o srf/merge.o srf/ratpoly.o srf/raycast.o srf/surface.o srf/surfinter.o srf/triangulate.o fltk/xFl_Gl_Window_Group.o fltk/fltkmain.o fltk/fltkutil.o /usr/lib/x86_64-linux-gnu/libfltk_images.a -lpng -lz -ljpeg /usr/lib/x86_64-linux-gnu/libfltk_gl.a -lGL /usr/lib/x86_64-linux-gnu/libfltk_forms.a /usr/lib/x86_64-linux-gnu/libfltk.a -lXext -lXft -lfontconfig -lXinerama -ldl -lm -lX11 -lGLU
graphicswin.o:(.rodata+0xc18): undefined reference to `Constraint::MenuConstrain(int)'
graphicswin.o:(.rodata+0xc38): undefined reference to `Constraint::MenuConstrain(int)'
graphicswin.o:(.rodata+0xc58): undefined reference to `Constraint::MenuConstrain(int)'
graphicswin.o:(.rodata+0xc78): undefined reference to `Constraint::MenuConstrain(int)'
graphicswin.o:(.rodata+0xcb8): undefined reference to `Constraint::MenuConstrain(int)'
graphicswin.o:(.rodata+0xcd8): more undefined references to `Constraint::MenuConstrain(int)' follow
collect2: error: ld returned 1 exit status
Makefile:599: recipe for target 'solvespace' failed
make[2]: *** [solvespace] Error 1
make[2]: Leaving directory '/usr/local/src/solvespace-solvespace/src'
Makefile:806: recipe for target 'install' failed
make[1]: *** [install] Error 2
make[1]: Leaving directory '/usr/local/src/solvespace-solvespace/src'
Makefile:449: recipe for target 'install-recursive' failed
make: *** [install-recursive] Error 1
make runs OK, instll fails wanting win32 (by John Griessen)
Does this need some files copied from a winxp installation?
Thanks,
John Griessen
Thanks,
John Griessen
(no subject) (by Gr�goire)
I think, it's a linking problem with dynamic and static libraries.
Maybe this page can help you:
http://www.circuitousroot.com/...ing/useful/packages/index.html
(See at the end)
Maybe this page can help you:
http://www.circuitousroot.com/...ing/useful/packages/index.html
(See at the end)
GCC make with FLTK library runs OK, install fails (by John Griessen)
I did your above directions, deleting .so files:
sudo rm -f /usr/lib/x86_64-linux-gnu/libfltk.so.1.1 /usr/lib/x86_64-linux-gnu/libfltk_forms.so.1.1 /usr/lib/x86_64-linux-gnu/libfltk_gl.so.1.1 /usr/lib/x86_64-linux-gnu/libfltk_images.so.1.1
sudo rm -f /usr/lib/x86_64-linux-gnu/libfltk_cairo.so.1.3 libfltk_forms.so.1.3
libfltk_gl.so.1.3 libfltk_images.so.1.3 libfltk.so.1.3
and kept .a files:
$ ll /usr/lib/x86_64-linux-gnu/libfltk*.a
-rw-r--r-- 1 root root 2505186 Oct 16 17:46 /usr/lib/x86_64-linux-gnu/libfltk.a
-rw-r--r-- 1 root root 4434 Oct 16 17:46 /usr/lib/x86_64-linux-gnu/libfltk_cairo.a
-rw-r--r-- 1 root root 52060 Oct 16 17:46 /usr/lib/x86_64-linux-gnu/libfltk_forms.a
-rw-r--r-- 1 root root 215522 Oct 16 17:46 /usr/lib/x86_64-linux-gnu/libfltk_gl.a
-rw-r--r-- 1 root root 105110 Oct 16 17:46 /usr/lib/x86_64-linux-gnu/libfltk_images.a
==========Makefile=============
FLTK_CC = cc
FLTK_CFLAGS = -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -DCP936 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_THREAD_SAFE -D_REENTRANT
FLTK_CONFIG = /usr/bin/fltk-config
FLTK_CXX = g++
FLTK_CXXFLAGS = -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_THREAD_SAFE -D_REENTRANT
FLTK_INCLUDEDIR = /usr/include
FLTK_LDFLAGS = -lfltk_images -lfltk_gl -lfltk_forms -lfltk -lX11
FLTK_LDSTATICFLAGS = /usr/lib/x86_64-linux-gnu/libfltk_images.a -lpng -lz -ljpeg /usr/lib/x86_64-linux-gnu/libfltk_gl.a -lGL /usr/lib/x86_64-linux-gnu/libfltk_forms.a /usr/lib/x86_64-linux-gnu/libfltk.a -lXext -lXft -lfontconfig -lfontconfig -lXinerama -ldl -lm -lX11
FLTK_LIBS = /usr/lib/x86_64-linux-gnu/libfltk_images.a /usr/lib/x86_64-linux-gnu/libfltk_gl.a /usr/lib/x86_64-linux-gnu/libfltk_forms.a /usr/lib/x86_64-linux-gnu/libfltk.a
FLTK_OPTIM = -Os -Wall -Wunused -Wno-format-y2k -fPIC -fno-exceptions -fno-strict-aliasing
FLTK_PREFIX = /usr
FLTK_VERSION = 1.3.1
GREP = /bin/grep
INSTALL = /usr/bin/install -c
INSTALL_DATA = ${INSTALL} -m 644
INSTALL_PROGRAM = ${INSTALL}
INSTALL_SCRIPT = ${INSTALL}
INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
LD = /usr/bin/ld -m elf_x86_64
LDFLAGS =
LIBOBJS =
LIBS =
LIBSPNAV_CPPFLAGS =
LIBSPNAV_LIBS =
LIBTOOL = $(SHELL) $(top_builddir)/libtool
LIPO =
LN_S = ln -s
LTLIBOBJS =
MAINT = #
==========Makefile=============
==========edited src/Makefile.am==============
srf/triangulate.cpp
if HAVE_FLTK
solvespace_SOURCES += \
fltk/xFl_Gl_Window_Group.H \
fltk/xFl_Gl_Window_Group.cxx \
fltk/fltkmain.cpp \
fltk/fltkutil.cpp
solvespace_LDADD = $(FLTK_LDFLAGS) -lGLU $(LIBSPNAV_LIBS)
endif
if WIN32
==========edited src/Makefile.am=============
Ran configure after editing.
Ran make.
=========make output==============
g++ -DHAVE_CONFIG_H -I. -I../../solvespace/src -I.. -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_THREAD_SAFE -D_REENTRANT -g -O2 -MT fltk/fltkmain.o -MD -MP -MF $depbase.Tpo -c -o fltk/fltkmain.o ../../solvespace/src/fltk/fltkmain.cpp &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo fltk/fltkutil.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
g++ -DHAVE_CONFIG_H -I. -I../../solvespace/src -I.. -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_THREAD_SAFE -D_REENTRANT -g -O2 -MT fltk/fltkutil.o -MD -MP -MF $depbase.Tpo -c -o fltk/fltkutil.o ../../solvespace/src/fltk/fltkutil.cpp &&\
mv -f $depbase.Tpo $depbase.Po
/bin/bash ../libtool --tag=CXX --mode=link g++ -g -O2 -o solvespace bsp.o clipboard.o confscreen.o constraint.o constrainteq.o describescreen.o draw.o drawconstraint.o drawentity.o entity.o export.o exportstep.o exportvector.o expr.o file.o generate.o glhelper.o graphicswin.o group.o groupmesh.o mesh.o modify.o mouse.o polygon.o request.o solvespace.o style.o system.o textscreens.o textwin.o toolbar.o ttf.o undoredo.o util.o view.o srf/boolean.o srf/curve.o srf/merge.o srf/ratpoly.o srf/raycast.o srf/surface.o srf/surfinter.o srf/triangulate.o fltk/xFl_Gl_Window_Group.o fltk/fltkmain.o fltk/fltkutil.o -lfltk_images -lfltk_gl -lfltk_forms -lfltk -lX11 -lGLU
libtool: link: g++ -g -O2 -o solvespace bsp.o clipboard.o confscreen.o constraint.o constrainteq.o describescreen.o draw.o drawconstraint.o drawentity.o entity.o export.o exportstep.o exportvector.o expr.o file.o generate.o glhelper.o graphicswin.o group.o groupmesh.o mesh.o modify.o mouse.o polygon.o request.o solvespace.o style.o system.o textscreens.o textwin.o toolbar.o ttf.o undoredo.o util.o view.o srf/boolean.o srf/curve.o srf/merge.o srf/ratpoly.o srf/raycast.o srf/surface.o srf/surfinter.o srf/triangulate.o fltk/xFl_Gl_Window_Group.o fltk/fltkmain.o fltk/fltkutil.o -lfltk_images -lfltk_gl -lfltk_forms -lfltk -lX11 -lGLU
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/libfltk.a(Fl_x.o): undefined reference to symbol 'dlsym@@GLIBC_2.2.5'
//lib/x86_64-linux-gnu/libdl.so.2: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
Makefile:599: recipe for target 'solvespace' failed
make[3]: *** [solvespace] Error 1
make[3]: Leaving directory '/usr/local/src/solv-build/src'
Makefile:470: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/usr/local/src/solv-build/src'
Makefile:448: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/usr/local/src/solv-build'
Makefile:379: recipe for target 'all' failed
make: *** [all] Error 2
sudo rm -f /usr/lib/x86_64-linux-gnu/libfltk.so.1.1 /usr/lib/x86_64-linux-gnu/libfltk_forms.so.1.1 /usr/lib/x86_64-linux-gnu/libfltk_gl.so.1.1 /usr/lib/x86_64-linux-gnu/libfltk_images.so.1.1
sudo rm -f /usr/lib/x86_64-linux-gnu/libfltk_cairo.so.1.3 libfltk_forms.so.1.3
libfltk_gl.so.1.3 libfltk_images.so.1.3 libfltk.so.1.3
and kept .a files:
$ ll /usr/lib/x86_64-linux-gnu/libfltk*.a
-rw-r--r-- 1 root root 2505186 Oct 16 17:46 /usr/lib/x86_64-linux-gnu/libfltk.a
-rw-r--r-- 1 root root 4434 Oct 16 17:46 /usr/lib/x86_64-linux-gnu/libfltk_cairo.a
-rw-r--r-- 1 root root 52060 Oct 16 17:46 /usr/lib/x86_64-linux-gnu/libfltk_forms.a
-rw-r--r-- 1 root root 215522 Oct 16 17:46 /usr/lib/x86_64-linux-gnu/libfltk_gl.a
-rw-r--r-- 1 root root 105110 Oct 16 17:46 /usr/lib/x86_64-linux-gnu/libfltk_images.a
==========Makefile=============
FLTK_CC = cc
FLTK_CFLAGS = -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -DCP936 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_THREAD_SAFE -D_REENTRANT
FLTK_CONFIG = /usr/bin/fltk-config
FLTK_CXX = g++
FLTK_CXXFLAGS = -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_THREAD_SAFE -D_REENTRANT
FLTK_INCLUDEDIR = /usr/include
FLTK_LDFLAGS = -lfltk_images -lfltk_gl -lfltk_forms -lfltk -lX11
FLTK_LDSTATICFLAGS = /usr/lib/x86_64-linux-gnu/libfltk_images.a -lpng -lz -ljpeg /usr/lib/x86_64-linux-gnu/libfltk_gl.a -lGL /usr/lib/x86_64-linux-gnu/libfltk_forms.a /usr/lib/x86_64-linux-gnu/libfltk.a -lXext -lXft -lfontconfig -lfontconfig -lXinerama -ldl -lm -lX11
FLTK_LIBS = /usr/lib/x86_64-linux-gnu/libfltk_images.a /usr/lib/x86_64-linux-gnu/libfltk_gl.a /usr/lib/x86_64-linux-gnu/libfltk_forms.a /usr/lib/x86_64-linux-gnu/libfltk.a
FLTK_OPTIM = -Os -Wall -Wunused -Wno-format-y2k -fPIC -fno-exceptions -fno-strict-aliasing
FLTK_PREFIX = /usr
FLTK_VERSION = 1.3.1
GREP = /bin/grep
INSTALL = /usr/bin/install -c
INSTALL_DATA = ${INSTALL} -m 644
INSTALL_PROGRAM = ${INSTALL}
INSTALL_SCRIPT = ${INSTALL}
INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
LD = /usr/bin/ld -m elf_x86_64
LDFLAGS =
LIBOBJS =
LIBS =
LIBSPNAV_CPPFLAGS =
LIBSPNAV_LIBS =
LIBTOOL = $(SHELL) $(top_builddir)/libtool
LIPO =
LN_S = ln -s
LTLIBOBJS =
MAINT = #
==========Makefile=============
==========edited src/Makefile.am==============
srf/triangulate.cpp
if HAVE_FLTK
solvespace_SOURCES += \
fltk/xFl_Gl_Window_Group.H \
fltk/xFl_Gl_Window_Group.cxx \
fltk/fltkmain.cpp \
fltk/fltkutil.cpp
solvespace_LDADD = $(FLTK_LDFLAGS) -lGLU $(LIBSPNAV_LIBS)
endif
if WIN32
==========edited src/Makefile.am=============
Ran configure after editing.
Ran make.
=========make output==============
g++ -DHAVE_CONFIG_H -I. -I../../solvespace/src -I.. -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_THREAD_SAFE -D_REENTRANT -g -O2 -MT fltk/fltkmain.o -MD -MP -MF $depbase.Tpo -c -o fltk/fltkmain.o ../../solvespace/src/fltk/fltkmain.cpp &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo fltk/fltkutil.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
g++ -DHAVE_CONFIG_H -I. -I../../solvespace/src -I.. -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_THREAD_SAFE -D_REENTRANT -g -O2 -MT fltk/fltkutil.o -MD -MP -MF $depbase.Tpo -c -o fltk/fltkutil.o ../../solvespace/src/fltk/fltkutil.cpp &&\
mv -f $depbase.Tpo $depbase.Po
/bin/bash ../libtool --tag=CXX --mode=link g++ -g -O2 -o solvespace bsp.o clipboard.o confscreen.o constraint.o constrainteq.o describescreen.o draw.o drawconstraint.o drawentity.o entity.o export.o exportstep.o exportvector.o expr.o file.o generate.o glhelper.o graphicswin.o group.o groupmesh.o mesh.o modify.o mouse.o polygon.o request.o solvespace.o style.o system.o textscreens.o textwin.o toolbar.o ttf.o undoredo.o util.o view.o srf/boolean.o srf/curve.o srf/merge.o srf/ratpoly.o srf/raycast.o srf/surface.o srf/surfinter.o srf/triangulate.o fltk/xFl_Gl_Window_Group.o fltk/fltkmain.o fltk/fltkutil.o -lfltk_images -lfltk_gl -lfltk_forms -lfltk -lX11 -lGLU
libtool: link: g++ -g -O2 -o solvespace bsp.o clipboard.o confscreen.o constraint.o constrainteq.o describescreen.o draw.o drawconstraint.o drawentity.o entity.o export.o exportstep.o exportvector.o expr.o file.o generate.o glhelper.o graphicswin.o group.o groupmesh.o mesh.o modify.o mouse.o polygon.o request.o solvespace.o style.o system.o textscreens.o textwin.o toolbar.o ttf.o undoredo.o util.o view.o srf/boolean.o srf/curve.o srf/merge.o srf/ratpoly.o srf/raycast.o srf/surface.o srf/surfinter.o srf/triangulate.o fltk/xFl_Gl_Window_Group.o fltk/fltkmain.o fltk/fltkutil.o -lfltk_images -lfltk_gl -lfltk_forms -lfltk -lX11 -lGLU
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/libfltk.a(Fl_x.o): undefined reference to symbol 'dlsym@@GLIBC_2.2.5'
//lib/x86_64-linux-gnu/libdl.so.2: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
Makefile:599: recipe for target 'solvespace' failed
make[3]: *** [solvespace] Error 1
make[3]: Leaving directory '/usr/local/src/solv-build/src'
Makefile:470: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/usr/local/src/solv-build/src'
Makefile:448: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/usr/local/src/solv-build'
Makefile:379: recipe for target 'all' failed
make: *** [all] Error 2
(no subject) (by yugami)
try this command prior to compiling
export LDFLAGS="$LDFLAGS -ldl"
or possibly export LIBS += -ldl
I don't have a linux box to test on right now.
export LDFLAGS="$LDFLAGS -ldl"
or possibly export LIBS += -ldl
I don't have a linux box to test on right now.
GCC compiling (by John Griessen)
solvespace-2.1 configuration summary:
Install prefix ......... : /usr/local
C++ preprocessor ....... : g++ -E
C++ compiler ........... : g++
Linker ................. : /usr/bin/ld -m elf_x86_64
C preprocessor flags ... :
C++ compiler flags ..... : -g -O2
Linker flags ........... : -ldl
Extra libraries ........ : -ldl
then run make:
g++ -DHAVE_CONFIG_H -I. -I../../solvespace/src -I.. -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_THREAD_SAFE -D_REENTRANT -g -O2 -MT fltk/fltkutil.o -MD -MP -MF $depbase.Tpo -c -o fltk/fltkutil.o ../../solvespace/src/fltk/fltkutil.cpp &&\
mv -f $depbase.Tpo $depbase.Po
/bin/bash ../libtool --tag=CXX --mode=link g++ -g -O2 -ldl -o solvespace bsp.o clipboard.o confscreen.o constraint.o constrainteq.o describescreen.o draw.o drawconstraint.o drawentity.o entity.o export.o exportstep.o exportvector.o expr.o file.o generate.o glhelper.o graphicswin.o group.o groupmesh.o mesh.o modify.o mouse.o polygon.o request.o solvespace.o style.o system.o textscreens.o textwin.o toolbar.o ttf.o undoredo.o util.o view.o srf/boolean.o srf/curve.o srf/merge.o srf/ratpoly.o srf/raycast.o srf/surface.o srf/surfinter.o srf/triangulate.o fltk/xFl_Gl_Window_Group.o fltk/fltkmain.o fltk/fltkutil.o -lfltk_images -lfltk_gl -lfltk_forms -lfltk -lX11 -lGLU -ldl
libtool: link: g++ -g -O2 -o solvespace bsp.o clipboard.o confscreen.o constraint.o constrainteq.o describescreen.o draw.o drawconstraint.o drawentity.o entity.o export.o exportstep.o exportvector.o expr.o file.o generate.o glhelper.o graphicswin.o group.o groupmesh.o mesh.o modify.o mouse.o polygon.o request.o solvespace.o style.o system.o textscreens.o textwin.o toolbar.o ttf.o undoredo.o util.o view.o srf/boolean.o srf/curve.o srf/merge.o srf/ratpoly.o srf/raycast.o srf/surface.o srf/surfinter.o srf/triangulate.o fltk/xFl_Gl_Window_Group.o fltk/fltkmain.o fltk/fltkutil.o -lfltk_images -lfltk_gl -lfltk_forms -lfltk -lX11 -lGLU -ldl
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/libfltk_gl.a(gl_draw.o): undefined reference to symbol 'glXUseXFont'
//usr/lib/x86_64-linux-gnu/libGL.so.1: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
Makefile:599: recipe for target 'solvespace' failed
make[3]: *** [solvespace] Error 1
make[3]: Leaving directory '/usr/local/src/solv-build/src'
Makefile:470: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/usr/local/src/solv-build/src'
Makefile:448: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/usr/local/src/solv-build'
Makefile:379: recipe for target 'all' failed
make: *** [all] Error 2
Install prefix ......... : /usr/local
C++ preprocessor ....... : g++ -E
C++ compiler ........... : g++
Linker ................. : /usr/bin/ld -m elf_x86_64
C preprocessor flags ... :
C++ compiler flags ..... : -g -O2
Linker flags ........... : -ldl
Extra libraries ........ : -ldl
then run make:
g++ -DHAVE_CONFIG_H -I. -I../../solvespace/src -I.. -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_THREAD_SAFE -D_REENTRANT -g -O2 -MT fltk/fltkutil.o -MD -MP -MF $depbase.Tpo -c -o fltk/fltkutil.o ../../solvespace/src/fltk/fltkutil.cpp &&\
mv -f $depbase.Tpo $depbase.Po
/bin/bash ../libtool --tag=CXX --mode=link g++ -g -O2 -ldl -o solvespace bsp.o clipboard.o confscreen.o constraint.o constrainteq.o describescreen.o draw.o drawconstraint.o drawentity.o entity.o export.o exportstep.o exportvector.o expr.o file.o generate.o glhelper.o graphicswin.o group.o groupmesh.o mesh.o modify.o mouse.o polygon.o request.o solvespace.o style.o system.o textscreens.o textwin.o toolbar.o ttf.o undoredo.o util.o view.o srf/boolean.o srf/curve.o srf/merge.o srf/ratpoly.o srf/raycast.o srf/surface.o srf/surfinter.o srf/triangulate.o fltk/xFl_Gl_Window_Group.o fltk/fltkmain.o fltk/fltkutil.o -lfltk_images -lfltk_gl -lfltk_forms -lfltk -lX11 -lGLU -ldl
libtool: link: g++ -g -O2 -o solvespace bsp.o clipboard.o confscreen.o constraint.o constrainteq.o describescreen.o draw.o drawconstraint.o drawentity.o entity.o export.o exportstep.o exportvector.o expr.o file.o generate.o glhelper.o graphicswin.o group.o groupmesh.o mesh.o modify.o mouse.o polygon.o request.o solvespace.o style.o system.o textscreens.o textwin.o toolbar.o ttf.o undoredo.o util.o view.o srf/boolean.o srf/curve.o srf/merge.o srf/ratpoly.o srf/raycast.o srf/surface.o srf/surfinter.o srf/triangulate.o fltk/xFl_Gl_Window_Group.o fltk/fltkmain.o fltk/fltkutil.o -lfltk_images -lfltk_gl -lfltk_forms -lfltk -lX11 -lGLU -ldl
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/libfltk_gl.a(gl_draw.o): undefined reference to symbol 'glXUseXFont'
//usr/lib/x86_64-linux-gnu/libGL.so.1: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
Makefile:599: recipe for target 'solvespace' failed
make[3]: *** [solvespace] Error 1
make[3]: Leaving directory '/usr/local/src/solv-build/src'
Makefile:470: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/usr/local/src/solv-build/src'
Makefile:448: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/usr/local/src/solv-build'
Makefile:379: recipe for target 'all' failed
make: *** [all] Error 2
(no subject) (by yugami)
sorry change the -ldl to -lGL
Post a reply to this comment: