SolveSpace Logo SOLVESPACE -- parametric 2d/3d CAD
Examples
Tutorials
Features
Download
Reference
Technology
Library
Forum
Contact
USER FORUM

(you are viewing a thread; or go back to list of threads)

Self-compiled version on Linux exits after starting (by Priit Laes)
I have built solvespace from source and after starting the program, it exits with following message:

failed to look up item 00010020, searched 12 itemsoops at line 280, file ../src/dsc.h


Gentoo Linux, compiled from git with GCC-4.8.2

Windows version seems to be working fine via Wine using the same computer.
Sun May 25 2014, 08:10:58
(no subject) (by Priit Laes)
Well, the issue managed to solve itself somehow, but I discovered following problem:

Running `make` from clean configured source tree builds a working executable. Now running `make` again after the first build results in following build error:
[snip]
make all-recursive
make[1]: Entering directory '/home/plaes/code/solvespace'
Making all in src
make[2]: Entering directory '/home/plaes/code/solvespace/src'
make all-am
make[3]: Entering directory '/home/plaes/code/solvespace/src'
/bin/sh ../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/lib64/fltk-1/libfltk_images.a -lpng -lz -ljpeg /usr/lib64/fltk-1/libfltk_gl.a -lGLU -lGL /usr/lib64/fltk-1/libfltk_forms.a /usr/lib64/fltk-1/libfltk.a -lXfixes -lXext -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/lib64/fltk-1/libfltk_images.a -lpng -lz -ljpeg /usr/lib64/fltk-1/libfltk_gl.a -lGL /usr/lib64/fltk-1/libfltk_forms.a /usr/lib64/fltk-1/libfltk.a -lXfixes -lXext -lXinerama -ldl -lm -lX11 -lGLU
graphicswin.o:(.rodata+0xbf8): undefined reference to `Constraint::MenuConstrain(int)'
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+0xc98): undefined reference to `Constraint::MenuConstrain(int)'
graphicswin.o:(.rodata+0xcb8): more undefined references to `Constraint::MenuConstrain(int)' follow
collect2: error: ld returned 1 exit status
Makefile:599: recipe for target 'solvespace' failed
[/snip]
Sun May 25 2014, 08:29:31
Gentoo build (by Johann)
As a fellow gentoo user, what did you do to compile it? When i run make after configuring, I receive errors like "/usr/lib64/fltk/libfltk_images.a: No such file or directory" - gentoo only has libfltk_images.so ... do you have any idea?

Best

Johann
Thu Feb 19 2015, 14:06:55
(no subject) (by Johann)
Oh,
USE=static-libs emerge fltk
did the trick. It now compiles and starts.
Thu Feb 19 2015, 14:37:11
Post a reply to this comment:
Your Name:
Your Email:
Subject:
(no HTML tags; use plain text, and hit Enter for a line break)
Attached file (if you want, 5 MB max):
© 2008-2022 SolveSpace contributors. Most recent update June 2 2022.