dellelce / mkit

build software from (latest available) source
1 stars 2 forks source link

add build: OpenSCAD #2

Open dellelce opened 5 years ago

dellelce commented 5 years ago

This is to track my work on building OpenSCAD with mkit,

The main dependency, mesa3D aka OpenGL is complete but the build since 19.1.0 it does not build at all because I was building with autotools which have been completely removed since this version, before 19.0.6 did not build on travis because it was exceeding 10 minutes in build time without output and travis was kiling it.

Work in openscad branch

dellelce commented 4 years ago

build of OpenGL/Mesa3D was completed in:

https://github.com/dellelce/mkit/commit/ecac90c205ecbb30de211319f0034524c02add5d

dellelce commented 4 years ago

resuming work on OpenSCAD.

Build of component GLU fails because the header gl.h cannot be found, this is from configure step:

configure: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: GL/gl.h: proceeding with the compiler's result
checking for GL/gl.h... yes
checking for glBegin in -lGL... yes

this is from the make step:

  CXX      src/libnurbs/interface/bezierPatch.lo
In file included from /root/projects/mkit/mkit/mkit_workdir/src_1442_171219/glu/glu-glu-9.0.1/src/libnurbs/interface/bezierPatch.cc:42:0:
/root/projects/mkit/mkit/mkit_workdir/src_1442_171219/glu/glu-glu-9.0.1/include/GL/glu.h:38:19: fatal error: GL/gl.h: No such file or directory
 #include <GL/gl.h>
                   ^
compilation terminated.
make: *** [src/libnurbs/interface/bezierPatch.lo] Error 1

file is present in the install directory:

[root@titan6 mkit]# find $i -name gl.h|xargs ls -lt
-rw-r--r-- 1 root root 31669 Dec 12 19:24 /root/projects/mkit/tmp/171219_openscad/i0/include/GLES/gl.h
-rw-r--r-- 1 root root 80393 Dec 12 19:24 /root/projects/mkit/tmp/171219_openscad/i0/include/GL/gl.h
dellelce commented 4 years ago

The previous issue is due to CPPFLAGS variable not being set correctly (c++ is used and the Makefile requires CPPFLAGS).

Other issues: