brodykenrick / text_on_OpenSCAD

A library for putting customised "text on" 3D shapes in OpenSCAD with changeable fonts, languages/scripts, text direction.
GNU Lesser General Public License v2.1
141 stars 31 forks source link

Warnings while testing example text_on_cube.scad #1

Closed da9l closed 10 years ago

da9l commented 10 years ago

Hi!

I've got the latest OpenSCAD http://files.openscad.org/OpenSCAD-2014.03-x86-64-Installer.exe I've put the latest version of text_on_cube.scad and text_on.scad in the same directory and changed the reference like this:

use <text_on.scad>

When I open it in OpenSCAD I get:

Loaded design 'C:/Users/daniel/Dropbox/3DModels/Toys/MinecraftChest/text_on_cube.scad'.
  compiled module: 0xb426c30
Module cache size: 1 modules
Compiling design (CSG Tree generation)...
WARNING: Ignoring unknown module 'text'.
WARNING: Ignoring unknown module 'text'.
WARNING: Ignoring unknown module 'text'.
WARNING: Ignoring unknown module 'text'.
WARNING: Ignoring unknown module 'text'.
WARNING: Ignoring unknown module 'text'.
WARNING: Ignoring unknown module 'text'.
WARNING: Ignoring unknown module 'text'.
WARNING: Ignoring unknown module 'text'.
WARNING: Ignoring unknown module 'text'.
WARNING: Ignoring unknown module 'text'.
WARNING: Ignoring unknown module 'text'.
WARNING: Ignoring unknown module 'text'.
WARNING: Ignoring unknown module 'text'.
WARNING: Ignoring unknown module 'text'.
Compiling design (CSG Products generation)...
ERROR: CSG generation failed! (no top level object found)
PolySets in cache: 4
PolySet cache size in bytes: 2000
CGAL Polyhedrons in cache: 0
CGAL cache size in bytes: 0

What am I doing wrong here?

I'm running OpenSCAD on a 64 bit Windows 7.

brodykenrick commented 10 years ago

Hi @da9l,

This was built against a development version of OpenSCAD that includes the text module. That code is still working its way into a release.

See https://github.com/openscad/openscad/issues/512 and https://github.com/openscad/openscad/pull/633 for the progress on the addition of that code.

Until the text module is added into a release version build a development version from the code at https://github.com/t-paul/openscad/tree/text-module to use this feature.

Building the development versions is not too difficult - but it depends on how much your system is setup for development. If you don't want to set up a development environment for OpenSCAD then I suggest using the oroginal write.scad module (it has most of the functionality of this module - unicode and a few additional surfaces are supported here but no in write.scad).

Cheers, Brody

da9l commented 10 years ago

Thanks Brody! Den 15 mar 2014 22:53 skrev "Brody" notifications@github.com:

Hi @da9l https://github.com/da9l,

This was built against a development version of OpenSCAD that includes the text module. That code is still working its way into a release.

See openscad/openscad#512https://github.com/openscad/openscad/issues/512and openscad/openscad#633 https://github.com/openscad/openscad/pull/633 for the progress on the addition of that code.

Until the text module is added into a release version build a development version from the code at https://github.com/t-paul/openscad/tree/text-module to use this feature.

Building the development versions is not too difficult - but it depends on how much your system is setup for development. If you don't want to set up a development environment for OpenSCAD then I suggest using the oroginal write.scad module (it has most of the functionality of this module - unicode and a few additional surfaces are supported here but no in write.scad).

Cheers, Brody

Reply to this email directly or view it on GitHubhttps://github.com/brodykenrick/text_on_OpenSCAD/issues/1#issuecomment-37739148 .

brodykenrick commented 10 years ago

The text() module code is now in the main branch of OpenSCAD. It will make it into the next release.

yannlossouarn commented 10 years ago

@brodykenrick I followed http://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Building_on_Linux/UNIX on my Ubuntu setup, and I get the infamous "WARNING: Ignoring unknown module 'text'" error message. The OpenSCAD version is 2014.08.20. Any idea ? :/

brodykenrick commented 10 years ago

Hi yann,

I haven't built OpenSCAD (and tested/updated this module) since the text module was added into master.

If you don't have text() in your build then it seems that it must not have been built probably because something is missing in your environment - it has a few dependencies that may not be met (and may not be mandatory) and so the overall build succeeds but text is not included.

Try having a look at your build logs or pre-requisite check script outputs to see if you can determine if that is the case.

Cheers, Brody

On Wednesday, August 20, 2014, Yann Lossouarn notifications@github.com wrote:

@brodykenrick https://github.com/brodykenrick I followed http://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Building_on_Linux/UNIX on my Ubuntu setup, and I get the infamous "WARNING: Ignoring unknown module 'text'" error message. The OpenSCAD version is 2014.08.20. Any idea ? :/

— Reply to this email directly or view it on GitHub https://github.com/brodykenrick/text_on_OpenSCAD/issues/1#issuecomment-52855580 .

yannlossouarn commented 10 years ago

In fact the solution was to enable use "CONFIG+=experimental" as a parameter for the qmake step : I thought the text module had been integrated in the mainstream version for a few months, but it had not, at least on the Linux version (stock Windows executables come with it activated). Thanks a lot ! :)