Build Notes: openscad-2011.12 on OpenSuse12.1

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Build Notes: openscad-2011.12 on OpenSuse12.1

rwas
Hello,

I had to jump through some hoops to get openscad to build. My first
build was on OpenSuse 11.3.
I've upgraded to OpenSuse12.1 and had to revisit the build issues.

It seems to work ok. It worked ok under OpenSuse11.3.


Here are my notes:

070712;
<mkdir openscad-2011.12-build.070712.00>
<cd openscad-2011.12-build.070712.00>

"#include <Eigen/Dense>" commented out in "linalg.h" from previous build

<qmake ../openscad-2011.12/>
<make>


"../openscad-2011.12/src/linalg.h:4:22: fatal error: Eigen/Core:
No such file or directory"


<export EIGEN2DIR=/usr/local/include/eigen2>
<qmake ../openscad-2011.12/>
<make>

"../../../../include/eigen2/Eigen/src/Core/util/Memory.h:314:13: error:
‘ptrdiff_t’ does not name a type"


added: "#include <stddef.h>" to linalg.h before "#include <Eigen/Core>"



"/usr/lib/gcc/i586-suse-linux/4.6/../../../../i586-suse-linux/bin/ld:
warning:
libgmp.so.3, needed by /usr/local/lib/libmpfr.so, may conflict with
libgmp.so.10"

"/usr/lib/gcc/i586-suse-linux/4.6/../../../../i586-suse-linux/bin/ld:
warning:
libboost_thread.so.1.39.0, needed by /usr/local/lib/libCGAL.so,
not found (try using -rpath or -rpath-link)"


./openscad


"./openscad: error while loading shared libraries:
libboost_thread.so.1.39.0:
cannot open shared object file: No such file or directory"

rebuild CGAL lib

./openscad

-seems to run ok


<sudo make install>

Robert W.



Reply | Threaded
Open this post in threaded view
|

Re: Build Notes: openscad-2011.12 on OpenSuse12.1

donbright
Does OpenSUSE install programs into '/usr/local' by default?


On Sun, Jul 8, 2012 at 1:53 AM, rwas <[hidden email]> wrote:

> Hello,
>
> I had to jump through some hoops to get openscad to build. My first
> build was on OpenSuse 11.3.
> I've upgraded to OpenSuse12.1 and had to revisit the build issues.
>
> It seems to work ok. It worked ok under OpenSuse11.3.
>
>
> Here are my notes:
>
> 070712;
> <mkdir openscad-2011.12-build.070712.00>
> <cd openscad-2011.12-build.070712.00>
>
> "#include <Eigen/Dense>" commented out in "linalg.h" from previous build
>
> <qmake ../openscad-2011.12/>
> <make>
>
>
> "../openscad-2011.12/src/linalg.h:4:22: fatal error: Eigen/Core:
> No such file or directory"
>
>
> <export EIGEN2DIR=/usr/local/include/eigen2>
> <qmake ../openscad-2011.12/>
> <make>
>
> "../../../../include/eigen2/Eigen/src/Core/util/Memory.h:314:13: error:
> ‘ptrdiff_t’ does not name a type"
>
>
> added: "#include <stddef.h>" to linalg.h before "#include <Eigen/Core>"
>
>
>
> "/usr/lib/gcc/i586-suse-linux/4.6/../../../../i586-suse-linux/bin/ld:
> warning:
> libgmp.so.3, needed by /usr/local/lib/libmpfr.so, may conflict with
> libgmp.so.10"
>
> "/usr/lib/gcc/i586-suse-linux/4.6/../../../../i586-suse-linux/bin/ld:
> warning:
> libboost_thread.so.1.39.0, needed by /usr/local/lib/libCGAL.so,
> not found (try using -rpath or -rpath-link)"
>
>
> ./openscad
>
>
> "./openscad: error while loading shared libraries:
> libboost_thread.so.1.39.0:
> cannot open shared object file: No such file or directory"
>
> rebuild CGAL lib
>
> ./openscad
>
> -seems to run ok
>
>
> <sudo make install>
>
> Robert W.
>
>
> _______________________________________________
> OpenSCAD mailing list
> [hidden email]
> http://rocklinux.net/mailman/listinfo/openscad
> http://openscad.org - https://flattr.com/thing/121566

Reply | Threaded
Open this post in threaded view
|

Re: Build Notes: openscad-2011.12 on OpenSuse12.1

rwas
I don't think you'd call this an "OpenSuse" policy. Most code built from
source
will install into "/usr/local" by default (on a Linux system).

Robert W.

Don Bright wrote:

>  Does OpenSUSE install programs into '/usr/local' by default?
>
>
>  On Sun, Jul 8, 2012 at 1:53 AM, rwas <[hidden email]> wrote:
> > Hello,
> >
> > I had to jump through some hoops to get openscad to build. My
> > first build was on OpenSuse 11.3. I've upgraded to OpenSuse12.1 and
> > had to revisit the build issues.
> >
> > It seems to work ok. It worked ok under OpenSuse11.3.
> >
> >
> > Here are my notes:
> >
> > 070712; <mkdir openscad-2011.12-build.070712.00> <cd
> > openscad-2011.12-build.070712.00>
> >
> > "#include <Eigen/Dense>" commented out in "linalg.h" from previous
> > build
> >
> > <qmake ../openscad-2011.12/> <make>
> >
> >
> > "../openscad-2011.12/src/linalg.h:4:22: fatal error: Eigen/Core: No
> > such file or directory"
> >
> >
> > <export EIGEN2DIR=/usr/local/include/eigen2> <qmake
> > ../openscad-2011.12/> <make>
> >
> > "../../../../include/eigen2/Eigen/src/Core/util/Memory.h:314:13:
> > error: ‘ptrdiff_t’ does not name a type"
> >
> >
> > added: "#include <stddef.h>" to linalg.h before "#include
> > <Eigen/Core>"
> >
> >
> >
> > "/usr/lib/gcc/i586-suse-linux/4.6/../../../../i586-suse-linux/bin/ld:
> >
> >
warning:
> > libgmp.so.3, needed by /usr/local/lib/libmpfr.so, may conflict
> > with libgmp.so.10"
> >
> > "/usr/lib/gcc/i586-suse-linux/4.6/../../../../i586-suse-linux/bin/ld:
> >
> >
warning:

> > libboost_thread.so.1.39.0, needed by /usr/local/lib/libCGAL.so, not
> > found (try using -rpath or -rpath-link)"
> >
> >
> > ./openscad
> >
> >
> > "./openscad: error while loading shared libraries:
> > libboost_thread.so.1.39.0: cannot open shared object file: No such
> > file or directory"
> >
> > rebuild CGAL lib
> >
> > ./openscad
> >
> > -seems to run ok
> >
> >
> > <sudo make install>
> >
> > Robert W.
> >
> >
> > _______________________________________________ OpenSCAD mailing
> > list [hidden email]
> > http://rocklinux.net/mailman/listinfo/openscad http://openscad.org
> > - https://flattr.com/thing/121566
>  _______________________________________________ OpenSCAD mailing
>  list [hidden email]
>  http://rocklinux.net/mailman/listinfo/openscad http://openscad.org -
>  https://flattr.com/thing/121566




Reply | Threaded
Open this post in threaded view
|

Re: Build Notes: openscad-2011.12 on OpenSuse12.1

donbright
Thanks for the rept, i will try to create a patch to solve these issues.
-DB

On Mon, Jul 9, 2012 at 8:03 AM, rwas <[hidden email]> wrote:

> I don't think you'd call this an "OpenSuse" policy. Most code built from
> source
> will install into "/usr/local" by default (on a Linux system).
>
> Robert W.
>
> Don Bright wrote:
>>  Does OpenSUSE install programs into '/usr/local' by default?
>>
>>
>>  On Sun, Jul 8, 2012 at 1:53 AM, rwas <[hidden email]> wrote:
>> > Hello,
>> >
>> > I had to jump through some hoops to get openscad to build. My
>> > first build was on OpenSuse 11.3. I've upgraded to OpenSuse12.1 and
>> > had to revisit the build issues.
>> >
>> > It seems to work ok. It worked ok under OpenSuse11.3.
>> >
>> >
>> > Here are my notes:
>> >
>> > 070712; <mkdir openscad-2011.12-build.070712.00> <cd
>> > openscad-2011.12-build.070712.00>
>> >
>> > "#include <Eigen/Dense>" commented out in "linalg.h" from previous
>> > build
>> >
>> > <qmake ../openscad-2011.12/> <make>
>> >
>> >
>> > "../openscad-2011.12/src/linalg.h:4:22: fatal error: Eigen/Core: No
>> > such file or directory"
>> >
>> >
>> > <export EIGEN2DIR=/usr/local/include/eigen2> <qmake
>> > ../openscad-2011.12/> <make>
>> >
>> > "../../../../include/eigen2/Eigen/src/Core/util/Memory.h:314:13:
>> > error: ‘ptrdiff_t’ does not name a type"
>> >
>> >
>> > added: "#include <stddef.h>" to linalg.h before "#include
>> > <Eigen/Core>"
>> >
>> >
>> >
>> > "/usr/lib/gcc/i586-suse-linux/4.6/../../../../i586-suse-linux/bin/ld:
>> >
>> >
> warning:
>> > libgmp.so.3, needed by /usr/local/lib/libmpfr.so, may conflict
>> > with libgmp.so.10"
>> >
>> > "/usr/lib/gcc/i586-suse-linux/4.6/../../../../i586-suse-linux/bin/ld:
>> >
>> >
> warning:
>> > libboost_thread.so.1.39.0, needed by /usr/local/lib/libCGAL.so, not
>> > found (try using -rpath or -rpath-link)"
>> >
>> >
>> > ./openscad
>> >
>> >
>> > "./openscad: error while loading shared libraries:
>> > libboost_thread.so.1.39.0: cannot open shared object file: No such
>> > file or directory"
>> >
>> > rebuild CGAL lib
>> >
>> > ./openscad
>> >
>> > -seems to run ok
>> >
>> >
>> > <sudo make install>
>> >
>> > Robert W.
>> >
>> >
>> > _______________________________________________ OpenSCAD mailing
>> > list [hidden email]
>> > http://rocklinux.net/mailman/listinfo/openscad http://openscad.org
>> > - https://flattr.com/thing/121566
>>  _______________________________________________ OpenSCAD mailing
>>  list [hidden email]
>>  http://rocklinux.net/mailman/listinfo/openscad http://openscad.org -
>>  https://flattr.com/thing/121566
>
>
>
> _______________________________________________
> OpenSCAD mailing list
> [hidden email]
> http://rocklinux.net/mailman/listinfo/openscad
> http://openscad.org - https://flattr.com/thing/121566

Reply | Threaded
Open this post in threaded view
|

Re: Build Notes: openscad-2011.12 on OpenSuse12.1

donbright
Here is an experimental patch to maybe solve some build problems like Robert W's

It consists of a 'hybrid build script' - it downloads binary packages
for everything but CGAL and OpenCSG, then it auto-downloads, builds,
and installs those two into /usr/local . The point is that most 'new'
linux distros have binary packages for all dependencies but CGAL and
OpenCSG are usually non-existent or outdated.

So to compile openscad on ubuntu 12, for example, you would go

 git clone http://github.com/openscad/openscad.git
 cd openscad
 ./scripts/ubuntu-build-dependencies.sh
 qmake-qt4 && make

There's also a script for fedora and one for opensuse. Im not sure if
it's a good idea but it seemed worth an experiment.

https://github.com/openscad/openscad/tree/opensuse

(There is always the 'plain' script linux-build-dependencies.sh, based
on macosx version, but it downloads + compiles the source for all
dependencies which some may view as inelegant)

-DB