Change:
Wanted to install and start sweethomed.application. the build worked without problems but when i started it, it didnt started. Steps to reproduce the behavior: sweethome3d.application via configuration file to start it Starting the Application stucks at the start screen ! Add any other context about the problem here. At the moment its installed in my user context. When i try to start it as my user over the terminal i get no errors. When i start it with "sudo sweethome3d" I get the following error, and it also dont start, also start at starting screen and vanishing from the task bar: I think these happens because its not installed as user, but propably it helps to find the issue.
Starting random applications as root seems like an unwise idea.
Apologies, I misread the error, this appears to be a separate issue
Just to confirm, which GPU do you use?
I've got the same issue, and none of the solutions given in appear to work. On my side says my GPU is . EDIT: I should mention SH3D 7.02 works fine on my setup Mmh, I just tried with , and things work just fine (even though I'm on NixOS + tells me OpenGL is happy)...
Same problem here, on NIXOS unstable. Stuck on the starting blue window. Had to install it with flatpak in the mean time... Any idea?
sorry for delay i dont get informations from messages in last time from github... really annoying... I have an Intel Corporation TigerLake-LP GT2 [Iris Xe Graphics]
Same here, also on Intel hardware.
Based on the NixGL idea, applying the following patch works to update to the latest version and fix the driver issue on Intel. But this does not seem like the best way to go about it; I can't find a single other package messing with , and it seems more like a debugging tool than something that should be in a package.
I forgot to mention, to avoid getting terrible performance (< 1 fps), I also had to set Not sure if it's needed for others. Maybe related to my using Wayland/Sway. I also have to use to get the window displayed properly, but that's a common issue for most Java apps and tiling windowing managers.
I also ran into this issue with a Nvidia card. For me, was needed (with patch). I also needed . and didn't seem needed (or give noticable changes).

Discussion:
, autoPatchelfHook , libXxf86vm , unzip <ins> , libGL </ins> }: let

}; postPatch = '' <del> addAutoPatchelfSearchPath ${jre8}/lib/openjdk/jre/lib/ </del> <ins> addAutoPatchelfSearchPath ${jdk}/lib/openjdk/lib/ </ins> autoPatchelf lib # Nix cannot see the runtime references to the paths we just patched in

''; nativeBuildInputs = [ makeWrapper unzip autoPatchelfHook ]; <del> buildInputs = [ ant jdk8 p7zip gtk3 gsettings-desktop-schemas libXxf86vm ]; </del> <ins> buildInputs = [ ant jdk p7zip gtk3 gsettings-desktop-schemas libXxf86vm ]; </ins> buildPhase = '' runHook preBuild

cp "${sweethome3dItem}/share/applications/"* $out/share/applications <del> # MESA_GL_VERSION_OVERRIDE is needed since the update from MESA 19.3.3 to 20.0.2: # without it a "Profiles [GL4bc, GL3bc, GL2, GLES1] not available on device null" # exception is thrown on startup. # https://discourse.nixos.org/t/glx-not-recognised-after-mesa-update/6753 makeWrapper ${jre8}/bin/java $out/bin/$exec  --set MESA_GL_VERSION_OVERRIDE 2.1  </del> <ins> makeWrapper ${jdk}/bin/java $out/bin/$exec  </ins> --prefix XDG_DATA_DIRS : "$XDG_ICON_DIRS:${gtk3.out}/share:${gsettings-desktop-schemas}/share:$out/share:$GSETTINGS_SCHEMAS_PATH"  <ins> --prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [ libGL ]}"  </ins> --add-flags "-Dsun.java2d.opengl=true -jar $out/share/java/${module}-${version}.jar -cp $out/share/java/Furniture.jar:$out/share/java/Textures.jar:$out/share/java/Help.jar -d${toString stdenv.hostPlatform.parsed.cpu.bits}"

, fetchurl , makeWrapper , makeDesktopItem <del> # sweethome3d 6.5.2 does not yet fully build&run with jdk 9 and later? , jdk8 , jre8 </del> <ins> , jdk </ins> , ant , gtk3 , gsettings-desktop-schemas

}; nativeBuildInputs = [ makeWrapper unzip ]; <del> buildInputs = [ ant jre8 jdk8 gtk3 gsettings-desktop-schemas ]; </del> <ins> buildInputs = [ ant jdk gtk3 gsettings-desktop-schemas ]; </ins> postPatch = '' sed -i -e 's,../SweetHome3D,${applicationSrc},g' build.xml

buildPhase = '' runHook preBuild <del> ant -lib ${applicationSrc}/libtest -lib ${applicationSrc}/lib -lib ${jdk8}/lib </del> <ins> ant -lib ${applicationSrc}/libtest -lib ${applicationSrc}/lib -lib ${jdk}/lib </ins> runHook postBuild '';

mkdir -p $out/share/{java,applications} cp ${module}-${version}.jar $out/share/java/. cp "${editorItem}/share/applications/"* $out/share/applications <del> makeWrapper ${jre8}/bin/java $out/bin/$exec  </del> <ins> makeWrapper ${jdk}/bin/java $out/bin/$exec  </ins> --prefix XDG_DATA_DIRS : "$XDG_ICON_DIRS:${gtk3.out}/share:${gsettings-desktop-schemas}/share:$out/share:$GSETTINGS_SCHEMAS_PATH"  --add-flags "-jar $out/share/java/${module}-${version}.jar -d${toString stdenv.hostPlatform.parsed.cpu.bits}" '';

inherit license; maintainers = [ lib.maintainers.edwtjo ]; platforms = lib.platforms.linux; <ins> mainProgram = exec; </ins> }; };