Skip to content

libpng-dev and data dir missing for successfull build  #1

@asys3

Description

@asys3

Great to have Doodle3d Open Source and offline enabled! Thanks for that.

Just 2 findings when compiling on my Linux Mint 20.1 machine:

  • libpng-dev must be installed (could be mentioned in requirements to build)
  • the directory "data" should exist, other wise the build fails:
> [email protected] dist:licenses
> node licenses-to-json.js . > data/licenses.json

sh: 1: cannot create data/licenses.json: Directory nonexistent
npm ERR! code 2
npm ERR! path /home/uwe/Doodle3D-Transform
npm ERR! command failed
npm ERR! command sh -c npm run dist:prepare

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/uwe/.npm/_logs/2021-06-01T04_35_35_614Z-debug.log
uwe@aspi:~/Doodle3D-Transform$ vi licenses-to-json.js 
uwe@aspi:~/Doodle3D-Transform$ ls data
ls: Zugriff auf 'data' nicht möglich: Datei oder Verzeichnis nicht gefunden

So I manually created it and it works:

uwe@aspi:~/Doodle3D-Transform$ mkdir data
uwe@aspi:~/Doodle3D-Transform$ npm install

> [email protected] postinstall
> npm run dist:prepare


> [email protected] dist:prepare
> npm run dist:licenses && mkdir -p dist && rimraf dist/*


> [email protected] dist:licenses
> node licenses-to-json.js . > data/licenses.json


up to date, audited 1811 packages in 16s

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions