biggrin Port SweetHome3DJS on docker

This topic has been viewed 5925 times and has 8 replies
Thread status: Active
Questions about extending features and developing plug-ins [img]http://www.sweethome3d.com/images/flags/en_small.gif[/img]
Post Reply New Topic
zuo
Posts: 7
Joined: Sun Sep 12, 2021 9:03 am
Country: Italy

Port SweetHome3DJS on docker

Post by zuo »

I'm trying to build SweetHome3D JS with docker:
I use jdk 11 and node 14, i try to install with ant but viewerLibraries give the following errors:

BUILD FAILED
/code/build.xml:87: Warning: Could not find file /code/tools/JSweet/build/js/bundle.js to copy.

Also if transpiledLibraries compile correctly.

In this repo the code https://gitlab.com/nicolalandro/study-sweethome3djs to simply replicate after the clone:
* docker compose build
* docker compose run sweethome3djs bash
* $ and viewerLibraries
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: Port SweetHome3DJS on docker

Post by Puybaret »

Gosh, this becomes complicated. As some users had problems to generate Sweet Home 3D JS with build instructions given in the project, I added 2 builds in SourceForge.net repository at last release.
But don’t hope I’ll add support for less common platforms in a close future.
Emmanuel Puybaret, Sweet Home 3D creator
zuo
Posts: 7
Joined: Sun Sep 12, 2021 9:03 am
Country: Italy

Re: Port SweetHome3DJS on docker

Post by zuo »

So for now do not compile on linux?

So If i want to run it in my local environmet what can I do?

It is possible to contibute to developments?
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: Port SweetHome3DJS on docker

Post by Puybaret »

So for now do not compile on linux?
Just install subversion, ant and nodejs packages, set JAVA_HOME environment var and follow instructions in README.TXT (if you get a "tsc command not found" error, follow also this tip). I just tried again and it worked.
It is possible to contibute to developments?
What do you have in mind?
Emmanuel Puybaret, Sweet Home 3D creator
zuo
Posts: 7
Joined: Sun Sep 12, 2021 9:03 am
Country: Italy

Re: Port SweetHome3DJS on docker

Post by zuo »

Thanks now I can use a working version https://gitlab.com/nicolalandro/study-sweethome3djs (I put the build test into de build folder).
The php seams work correctly but the tommac what can do?
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: Port SweetHome3DJS on docker

Post by Puybaret »

What do you mean by "tommac"?
Emmanuel Puybaret, Sweet Home 3D creator
zuo
Posts: 7
Joined: Sun Sep 12, 2021 9:03 am
Country: Italy

Re: Port SweetHome3DJS on docker

Post by zuo »

Scuseme, I speak about Tomcat (to refer to .war), because the php version seems to have more features. Both versions will be maintained?
I will study that parts of codes and I will ask more questions.
Thank you!
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: Port SweetHome3DJS on docker

Post by Puybaret »

To run the .war version, download and run Tomcat, then copy .war file to its webapps folder and it will be automatically deployed and made available in the web server.
Both versions have the same features, it’s just the way files are saved which differs. About whether both will be maintained, only future can tell…
Emmanuel Puybaret, Sweet Home 3D creator
boblewis
Posts: 1
Joined: Tue Jan 23, 2024 11:15 am
Country: US

Re: Port SweetHome3DJS on docker

Post by boblewis »

It seems there's an issue with the SweetHome3D JS build using Docker. The error suggests a problem with the file path for bundle.js. Check the paths in build.xml, ensure proper task order, and verify JSweet configuration. Use ant -v viewerLibraries for more details. Confirm Docker permissions, check dependency resolution, and consult project documentation or community for assistance.
Post Reply New Topic

Who is online

Users browsing this forum: No registered users and 1 guest