Skip to content

Installation script not working on Linux #1585

@thomas-saigre

Description

@thomas-saigre

I tried to run the build script on my computer (Ubuntu 24.04), and I ad some errors :

  • the first one is that CMake returns errors as the minimal version 3.1 is no longer supported (3.5 is the minimal), but this is something I managed to fix locally by changing the minimal version. I had to do it in the sources of opensim-models as well.

  • the second one is that after the long process of running the script, I get this error (that I can reproduce by going into the directory opensim-gui-build and running make. I do not understand this one and hence do not see how to avoid it... It happens at the very end of compilation, see the full log below.

-do-compile:
 [nb-javac] Compiling 497 source files to /home/saigre/opensim-workspace/opensim-gui-source/Gui/opensim/jfreechart/build/classes
 [nb-javac] warning: [options] bootstrap class path not set in conjunction with -source 6
 [nb-javac] error: Source option 6 is no longer supported. Use 8 or later.
 [nb-javac] error: Target option 6 is no longer supported. Use 8 or later.

BUILD FAILED
/home/saigre/netbeans-12.3/netbeans/harness/suite.xml:163: The following error occurred while executing this line:
/home/saigre/netbeans-12.3/netbeans/harness/common.xml:206: Compile failed; see the compiler error output for details.

Total time: 1 second
make[2]: *** [Gui/opensim/CMakeFiles/PrepareInstaller.dir/build.make:71: Gui/opensim/CMakeFiles/PrepareInstaller] Error 1
make[1]: *** [CMakeFiles/Makefile2:246: Gui/opensim/CMakeFiles/PrepareInstaller.dir/all] Error 2
make: *** [Makefile:91: all] Error 2
  • another tiny remark : when I run the script again, it reinstall some stuff and rerun compilation from scratch, even if nothing has changed in sources, but could be avoided (NB : this remark also applied to the script in opensim-core)

Thank you for your help ! :)

Full log
→ make
[  8%] Copy opensim-core Java Bindings to GUI.
Buildfile: /home/saigre/opensim-workspace/opensim-gui-source/Gui/opensim/build.xml

copy-java-bindings:
     [copy] Copying 906 files to /home/saigre/opensim-workspace/opensim-gui-source/Gui/opensim/modeling/src/org/opensim/modeling

BUILD SUCCESSFUL
Total time: 0 seconds
[  8%] Built target CopyOpenSimCore
[ 16%] Copy Visualizer to installer folder.
Buildfile: /home/saigre/opensim-workspace/opensim-gui-source/Gui/opensim/build.xml

copy-visualizer:

BUILD SUCCESSFUL
Total time: 0 seconds
[ 16%] Built target CopyVisualizer
[ 83%] Built target opensim-models
[ 91%] Copy models and examples-to installer folder.
Buildfile: /home/saigre/opensim-workspace/opensim-gui-source/Gui/opensim/build.xml

copy-models:

BUILD SUCCESSFUL
Total time: 0 seconds
[ 91%] Built target CopyModels
[100%] Merge GUI build and opensim-core install into one folder.
Buildfile: /home/saigre/opensim-workspace/opensim-gui-source/Gui/opensim/build.xml

-taskdefs:

-init-build-dir:

-convert-old-project:

-init:

branding:

-release.dir:

-release.files:

files-init:

release:

-hide-excluded-modules:

build:

taskdefs:

-build-dir-init:

-convert-old-project:

common-init:

-jdk-pre-preinit:

-jdk-preinit:

-jdk-warn:

-jdk-presetdef-basic:

-jdk-default:

-jdk-init:

projectized-common.basic-init:

basic-init:

-release.dir:

-release.files:

files-init:

nbm-license-init:

build-init:
Scanning for modules in /home/saigre/netbeans-12.3/netbeans/ide
Scanning for modules in /home/saigre/netbeans-12.3/netbeans/platform
Scanning for modules in suite /home/saigre/opensim-workspace/opensim-gui-source/Gui/opensim

-javac-init-nbjdk:

-javac-init-bootclasspath-prepend:

-javac-init-no-bootclasspath-prepend:

-javac-init:

init:

up-to-date:

-pre-compile:

-do-compile:

-post-compile:

compile:

jar-prep:

-pre-jar:

-do-jar:

-post-jar:

jar:

netbeans-extra:

javahelp:

module-auto-deps:

-pre-release:

-do-release:
     [copy] Copying 1 file to /home/saigre/opensim-workspace/opensim-gui-source/Gui/opensim/build/cluster

-post-release:

release:

-init-startlevel:

module-xml-regular:

module-xml-autoload:

module-xml-eager:

-init-executables:

chmod-executables:

verify-class-linkage:

-validate-layers:
[xmlvalidate] 0 file(s) have been successfully validated.

-verify-apichanges:

-netbeans:

netbeans:
  [genlist] Generating Auto Update information for org.apache.xmlgraphics.ps

taskdefs:

-build-dir-init:

-convert-old-project:

common-init:

-jdk-pre-preinit:

-jdk-preinit:

-jdk-warn:

-jdk-presetdef-basic:

-jdk-default:

-jdk-init:

projectized-common.basic-init:

basic-init:

-release.dir:

-release.files:

files-init:

nbm-license-init:

build-init:

-javac-init-nbjdk:

-javac-init-bootclasspath-prepend:

-javac-init-no-bootclasspath-prepend:

-javac-init:

init:

up-to-date:

-pre-compile:

-do-compile:

-post-compile:

compile:

jar-prep:

-pre-jar:

-do-jar:

-post-jar:

jar:

netbeans-extra:

javahelp:

module-auto-deps:

-pre-release:

-do-release:
     [copy] Copying 1 file to /home/saigre/opensim-workspace/opensim-gui-source/Gui/opensim/build/cluster

-post-release:

release:

-init-startlevel:

module-xml-regular:

module-xml-autoload:

module-xml-eager:

-init-executables:

chmod-executables:

verify-class-linkage:

-validate-layers:
[xmlvalidate] 0 file(s) have been successfully validated.

-verify-apichanges:

-netbeans:

netbeans:
  [genlist] Generating Auto Update information for org.jdesktop.layout

taskdefs:

-build-dir-init:

-convert-old-project:

common-init:

-jdk-pre-preinit:

-jdk-preinit:

-jdk-warn:

-jdk-presetdef-basic:

-jdk-default:

-jdk-init:

projectized-common.basic-init:

basic-init:

-release.dir:

-release.files:

files-init:

nbm-license-init:

build-init:

-javac-init-nbjdk:

-javac-init-bootclasspath-prepend:

-javac-init-no-bootclasspath-prepend:

-javac-init:

init:

up-to-date:

-pre-compile:

-do-compile:

-post-compile:

compile:

jar-prep:

-pre-jar:

-do-jar:

-post-jar:

jar:

netbeans-extra:

javahelp:

module-auto-deps:

-pre-release:

-do-release:
     [copy] Copying 1 file to /home/saigre/opensim-workspace/opensim-gui-source/Gui/opensim/build/cluster

-post-release:

release:

-init-startlevel:

module-xml-regular:

module-xml-autoload:

module-xml-eager:

-init-executables:

chmod-executables:

verify-class-linkage:

-validate-layers:
[xmlvalidate] 0 file(s) have been successfully validated.

-verify-apichanges:

-netbeans:

netbeans:
  [genlist] Generating Auto Update information for org.jfree

taskdefs:

-build-dir-init:

-convert-old-project:

common-init:

-jdk-pre-preinit:

-jdk-preinit:

-jdk-warn:

-jdk-presetdef-basic:

-jdk-default:

-jdk-init:

projectized-common.basic-init:

basic-init:

-release.dir:

-release.files:

files-init:

nbm-license-init:

build-init:

-javac-init-nbjdk:

-javac-init-bootclasspath-prepend:

-javac-init-no-bootclasspath-prepend:

-javac-init:

init:

up-to-date:

-pre-compile:

-do-compile:
 [nb-javac] Compiling 497 source files to /home/saigre/opensim-workspace/opensim-gui-source/Gui/opensim/jfreechart/build/classes
 [nb-javac] warning: [options] bootstrap class path not set in conjunction with -source 6
 [nb-javac] error: Source option 6 is no longer supported. Use 8 or later.
 [nb-javac] error: Target option 6 is no longer supported. Use 8 or later.

BUILD FAILED
/home/saigre/netbeans-12.3/netbeans/harness/suite.xml:163: The following error occurred while executing this line:
/home/saigre/netbeans-12.3/netbeans/harness/common.xml:206: Compile failed; see the compiler error output for details.

Total time: 1 second
make[2]: *** [Gui/opensim/CMakeFiles/PrepareInstaller.dir/build.make:71: Gui/opensim/CMakeFiles/PrepareInstaller] Error 1
make[1]: *** [CMakeFiles/Makefile2:246: Gui/opensim/CMakeFiles/PrepareInstaller.dir/all] Error 2
make: *** [Makefile:91: all] Error 2

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