webots icon indicating copy to clipboard operation
webots copied to clipboard

Cannot install webots on arm64 architecture platforms

Open mojcris opened this issue 1 year ago • 28 comments

Describe the Bug

Cannot install webots on arm64 architectures.

Steps to Reproduce Try the installation methods described in the documentation.

Expected behavior To be able to install and use webots.

Screenshots Not applicable.

System

  • Operating System: NVIDIA Jetson Orin 64GB of memory

Additional context Add any other context about the problem here.

mojcris avatar Jan 15 '25 14:01 mojcris

What happens when you install it ? Do you have any error message ?

ShuffleWire avatar Jan 16 '25 09:01 ShuffleWire

Yes sorry for not adding it. Here it is:

make -j8
#
# * dependencies *
#
# PROTO files unchanged, no need to rebuild proto-list.xml
#
# * ode *
#
#
# * glad *
#
#
# * wren *
#
#
# * webots (core) *
#
# moc-generating build/release/WbZoom.moc.cpp
# moc-generating build/release/WbW3dStreamingServer.moc.cpp
# moc-generating build/release/WbWrenWindow.moc.cpp
# moc-generating build/release/WbWrenTextureOverlay.moc.cpp
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
# moc-generating build/release/WbWrenRenderingContext.moc.cpp
# moc-generating build/release/WbWrenFullScreenOverlay.moc.cpp
# moc-generating build/release/WbWrenOpenGlContext.moc.cpp
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
# moc-generating build/release/WbWrenCamera.moc.cpp
# moc-generating build/release/WbWrenAbstractResizeManipulator.moc.cpp
# moc-generating build/release/WbWrenAbstractManipulator.moc.cpp
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
# moc-generating build/release/WbWorld.moc.cpp
# moc-generating build/release/WbWebotsUpdateManager.moc.cpp
# moc-generating build/release/WbWorldInfo.moc.cpp
# moc-generating build/release/WbWebotsUpdateDialog.moc.cpp
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
# moc-generating build/release/WbVisualBoundingSphere.moc.cpp
# moc-generating build/release/WbView3D.moc.cpp
# moc-generating build/release/WbViewpoint.moc.cpp
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
# moc-generating build/release/WbMultimediaStreamingServer.moc.cpp
# moc-generating build/release/WbVacuumGripper.moc.cpp
# moc-generating build/release/WbVideoRecorderDialog.moc.cpp
# moc-generating build/release/WbVideoRecorder.moc.cpp
# moc-generating build/release/WbVelocityViewer.moc.cpp
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
# moc-generating build/release/WbVector3Editor.moc.cpp
# moc-generating build/release/WbVector2Editor.moc.cpp
# moc-generating build/release/WbVariant.moc.cpp
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
# moc-generating build/release/WbValueEditor.moc.cpp
# moc-generating build/release/WbValue.moc.cpp
# moc-generating build/release/WbUpdatedDialog.moc.cpp
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
# moc-generating build/release/WbUndoStack.moc.cpp
# moc-generating build/release/WbTriangleMeshGeometry.moc.cpp
# moc-generating build/release/WbTreeView.moc.cpp
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
# moc-generating build/release/WbTreeItem.moc.cpp
# moc-generating build/release/WbTranslateRotateManipulator.moc.cpp
# moc-generating build/release/WbTransform.moc.cpp
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
# moc-generating build/release/WbTrackWheel.moc.cpp
# moc-generating build/release/WbTrack.moc.cpp
# moc-generating build/release/WbTouchSensor.moc.cpp
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
# moc-generating build/release/WbTextureTransform.moc.cpp
# moc-generating build/release/WbTextureCoordinate.moc.cpp
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
# moc-generating build/release/WbTextFind.moc.cpp
# moc-generating build/release/WbTextEditor.moc.cpp
# moc-generating build/release/WbTextBuffer.moc.cpp
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
# moc-generating build/release/WbTemplateManager.moc.cpp
# moc-generating build/release/WbTemplateEngine.moc.cpp
# moc-generating build/release/WbTelemetry.moc.cpp
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
# moc-generating build/release/WbSyntaxHighlighter.moc.cpp
# moc-generating build/release/WbSupervisorUtilities.moc.cpp
# moc-generating build/release/WbTcpServer.moc.cpp
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
# moc-generating build/release/WbStringEditor.moc.cpp
# moc-generating build/release/WbSpotLight.moc.cpp
# moc-generating build/release/WbSphere.moc.cpp
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
# moc-generating build/release/WbSplashScreen.moc.cpp
# moc-generating build/release/WbSpeaker.moc.cpp
# moc-generating build/release/WbSolidReference.moc.cpp
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
# moc-generating build/release/WbSolidMerger.moc.cpp
# moc-generating build/release/WbSolid.moc.cpp
../../bin/qt/moc: 1: Syntax error: "(" unexpected
# moc-generating build/release/WbSlot.moc.cpp
# moc-generating build/release/WbSliderJoint.moc.cpp
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
# moc-generating build/release/WbSkin.moc.cpp
# moc-generating build/release/WbSingleTaskApplication.moc.cpp
# moc-generating build/release/WbSingleValue.moc.cpp
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
# moc-generating build/release/WbSimulationWorld.moc.cpp
# moc-generating build/release/WbSimulationView.moc.cpp
# moc-generating build/release/WbSimulationStateIndicator.moc.cpp
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
# moc-generating build/release/WbSimulationState.moc.cpp
# moc-generating build/release/WbShareWindow.moc.cpp
# moc-generating build/release/WbShape.moc.cpp
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
# moc-generating build/release/WbSFVector3.moc.cpp
# moc-generating build/release/WbSFVector2.moc.cpp
# moc-generating build/release/WbSFString.moc.cpp
# moc-generating build/release/WbSFRotation.moc.cpp
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
# moc-generating build/release/WbSFNode.moc.cpp
# moc-generating build/release/WbSFInt.moc.cpp
# moc-generating build/release/WbSFDouble.moc.cpp
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
# moc-generating build/release/WbSFColor.moc.cpp
# moc-generating build/release/WbSFBool.moc.cpp
# moc-generating build/release/WbSensor.moc.cpp
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
# moc-generating build/release/WbSelection.moc.cpp
# moc-generating build/release/WbSceneTreeModel.moc.cpp
# moc-generating build/release/WbSceneTree.moc.cpp
# moc-generating build/release/WbSaveWarningDialog.moc.cpp
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
# moc-generating build/release/WbRotationalMotor.moc.cpp
# moc-generating build/release/WbRobotWindow.moc.cpp
# moc-generating build/release/WbRobot.moc.cpp
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
# moc-generating build/release/WbRotationEditor.moc.cpp
# moc-generating build/release/WbResizeManipulator.moc.cpp
# moc-generating build/release/WbRenderingDeviceWindowFactory.moc.cpp
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
# moc-generating build/release/WbRenderingDeviceWindow.moc.cpp
# moc-generating build/release/WbRecognition.moc.cpp
# moc-generating build/release/WbRenderingDevice.moc.cpp
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
# moc-generating build/release/WbRecentFilesList.moc.cpp
# moc-generating build/release/WbReceiver.moc.cpp
# moc-generating build/release/WbRangeFinder.moc.cpp
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
# moc-generating build/release/WbRadioPlugin.moc.cpp
# moc-generating build/release/WbRadio.moc.cpp
# moc-generating build/release/WbRadar.moc.cpp
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
# moc-generating build/release/WbQjsFile.moc.cpp
# moc-generating build/release/WbProtoTreeItem.moc.cpp
# moc-generating build/release/WbProtoTemplateEngine.moc.cpp
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
# moc-generating build/release/WbProtoManager.moc.cpp
../../bin/qt/moc: 1: Syntax error: "(" unexpected
# moc-generating build/release/WbProtoIcon.moc.cpp
# moc-generating build/release/WbProtoModel.moc.cpp
# moc-generating build/release/WbProjectRelocationDialog.moc.cpp
# moc-generating build/release/WbProject.moc.cpp
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
# moc-generating build/release/WbPropeller.moc.cpp
# moc-generating build/release/WbPreferencesDialog.moc.cpp
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
# moc-generating build/release/WbPreferences.moc.cpp
# moc-generating build/release/WbPose.moc.cpp
# moc-generating build/release/WbPositionViewer.moc.cpp
# moc-generating build/release/WbPositionSensor.moc.cpp
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
# moc-generating build/release/WbPointSet.moc.cpp
# moc-generating build/release/WbPointLight.moc.cpp
# moc-generating build/release/WbPlugin.moc.cpp
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
# moc-generating build/release/WbPlane.moc.cpp
# moc-generating build/release/WbPhysicsViewer.moc.cpp
# moc-generating build/release/WbPhysicsVectorRepresentation.moc.cpp
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
# moc-generating build/release/WbPhysicsPlugin.moc.cpp
# moc-generating build/release/WbPhysics.moc.cpp
# moc-generating build/release/WbPen.moc.cpp
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
# moc-generating build/release/WbPbrAppearance.moc.cpp
../../bin/qt/moc: 1: Syntax error: "(" unexpected
# moc-generating build/release/WbPaintTexture.moc.cpp
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: # moc-generating build/release/WbOpenSampleWorldDialog.moc.cpp
Syntax error: "(" unexpected
# moc-generating build/release/WbOdeContext.moc.cpp
# moc-generating build/release/WbNormal.moc.cpp
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
# moc-generating build/release/WbNodeReader.moc.cpp
# moc-generating build/release/WbNodePane.moc.cpp
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
# moc-generating build/release/WbNodeOperations.moc.cpp
# moc-generating build/release/WbNodeEditor.moc.cpp
# moc-generating build/release/WbNode.moc.cpp
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
# moc-generating build/release/WbNewVersionDialog.moc.cpp
# moc-generating build/release/WbNewWorldWizard.moc.cpp
# moc-generating build/release/WbNewProtoWizard.moc.cpp
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
# moc-generating build/release/WbNewProjectWizard.moc.cpp
# moc-generating build/release/WbNewPhysicsPluginWizard.moc.cpp
# moc-generating build/release/WbNewControllerWizard.moc.cpp
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
# moc-generating build/release/WbMuscle.moc.cpp
# moc-generating build/release/WbMouse.moc.cpp
# moc-generating build/release/WbMultipleValue.moc.cpp
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
# moc-generating build/release/WbMotor.moc.cpp
# moc-generating build/release/WbMicrophone.moc.cpp
# moc-generating build/release/WbMFVector3.moc.cpp
# moc-generating build/release/WbMFVector2.moc.cpp
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
# moc-generating build/release/WbMFString.moc.cpp
../../bin/qt/moc: 1: Syntax error: "(" unexpected
# moc-generating build/release/WbMFRotation.moc.cpp
# moc-generating build/release/WbMFNode.moc.cpp
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: # moc-generating build/release/WbMFInt.moc.cpp
Syntax error: "(" unexpected
# moc-generating build/release/WbMFDouble.moc.cpp
# moc-generating build/release/WbMFColor.moc.cpp
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: # moc-generating build/release/WbMFBool.moc.cpp
Syntax error: "(" unexpected
# moc-generating build/release/WbMesh.moc.cpp
# moc-generating build/release/WbMatter.moc.cpp
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
# moc-generating build/release/WbMaterial.moc.cpp
# moc-generating build/release/WbMassChecker.moc.cpp
# moc-generating build/release/WbMainWindow.moc.cpp
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
# moc-generating build/release/WbLog.moc.cpp
# moc-generating build/release/WbLineEdit.moc.cpp
# moc-generating build/release/WbLinearMotor.moc.cpp
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
# moc-generating build/release/WbLightSensor.moc.cpp
# moc-generating build/release/WbLight.moc.cpp
# moc-generating build/release/WbLidar.moc.cpp
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
# moc-generating build/release/WbLensFlare.moc.cpp
# moc-generating build/release/WbLens.moc.cpp
# moc-generating build/release/WbLed.moc.cpp
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
# moc-generating build/release/WbJoystickListener.moc.cpp
# moc-generating build/release/WbJoystickInterface.moc.cpp
# moc-generating build/release/WbJointParameters.moc.cpp
# moc-generating build/release/WbJointDevice.moc.cpp
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
# moc-generating build/release/WbJoint.moc.cpp
# moc-generating build/release/WbInertialUnit.moc.cpp
# moc-generating build/release/WbIndexedLineSet.moc.cpp
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
# moc-generating build/release/WbIndexedFaceSet.moc.cpp
# moc-generating build/release/WbIntSpinBox.moc.cpp
# moc-generating build/release/WbIntEditor.moc.cpp
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
# moc-generating build/release/WbImmersionProperties.moc.cpp
# moc-generating build/release/WbImageTexture.moc.cpp
# moc-generating build/release/WbHinge2Joint.moc.cpp
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
# moc-generating build/release/WbHingeJointParameters.moc.cpp
# moc-generating build/release/WbHingeJoint.moc.cpp
# moc-generating build/release/WbGyro.moc.cpp
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
# moc-generating build/release/WbGuiRefreshOracle.moc.cpp
../../bin/qt/moc: 1: Syntax error: "(" unexpected
# moc-generating build/release/WbGuidedTour.moc.cpp
# moc-generating build/release/WbGuiApplication.moc.cpp
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
# moc-generating build/release/WbGroup.moc.cpp
# moc-generating build/release/WbGps.moc.cpp
# moc-generating build/release/WbGeometry.moc.cpp
# moc-generating build/release/WbFog.moc.cpp
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
# moc-generating build/release/WbFocus.moc.cpp
# moc-generating build/release/WbFluid.moc.cpp
../../bin/qt/moc: 1: Syntax error: "(" unexpected
# moc-generating build/release/WbFindReplaceDialog.moc.cpp
../../bin/qt/moc: 1: Syntax error: "(" unexpected
# moc-generating build/release/WbFieldLineEdit.moc.cpp
# moc-generating build/release/WbFieldIntSpinBox.moc.cpp
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
# moc-generating build/release/WbFieldEditor.moc.cpp
# moc-generating build/release/WbFieldDoubleSpinBox.moc.cpp
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
# moc-generating build/release/WbFieldChecker.moc.cpp
# moc-generating build/release/WbField.moc.cpp
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
# moc-generating build/release/WbInsertExternProtoDialog.moc.cpp
# moc-generating build/release/WbExternProtoEditor.moc.cpp
# moc-generating build/release/WbExtendedStringEditor.moc.cpp
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
# moc-generating build/release/WbEmitter.moc.cpp
# moc-generating build/release/WbElevationGrid.moc.cpp
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
# moc-generating build/release/WbDragSolidEvent.moc.cpp
# moc-generating build/release/WbDragResizeEvent.moc.cpp
# moc-generating build/release/WbDragPoseEvent.moc.cpp
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
# moc-generating build/release/WbDownloader.moc.cpp
# moc-generating build/release/WbDownloadManager.moc.cpp
# moc-generating build/release/WbDoubleSpinBox.moc.cpp
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
# moc-generating build/release/WbDoubleEditor.moc.cpp
# moc-generating build/release/WbDockWidget.moc.cpp
# moc-generating build/release/WbDockTitleBar.moc.cpp
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
# moc-generating build/release/WbDisplay.moc.cpp
# moc-generating build/release/WbDistanceSensor.moc.cpp
# moc-generating build/release/WbDirectionalLight.moc.cpp
# moc-generating build/release/WbDamping.moc.cpp
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
# moc-generating build/release/WbCylinder.moc.cpp
# moc-generating build/release/WbCoordinateSystem.moc.cpp
# moc-generating build/release/WbCoordinate.moc.cpp
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
# moc-generating build/release/WbController.moc.cpp
# moc-generating build/release/WbControlledWorld.moc.cpp
# moc-generating build/release/WbContactProperties.moc.cpp
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
# moc-generating build/release/WbContactPointsRepresentation.moc.cpp
# moc-generating build/release/WbConnector.moc.cpp
# moc-generating build/release/WbConsole.moc.cpp
# moc-generating build/release/WbCone.moc.cpp
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
# moc-generating build/release/WbCompass.moc.cpp
# moc-generating build/release/WbColorEditor.moc.cpp
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
# moc-generating build/release/WbColor.moc.cpp
# moc-generating build/release/WbCharger.moc.cpp
# moc-generating build/release/WbCapsule.moc.cpp
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
# moc-generating build/release/WbCamera.moc.cpp
# moc-generating build/release/WbCadShape.moc.cpp
# moc-generating build/release/WbBuildEditor.moc.cpp
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
# moc-generating build/release/WbBrake.moc.cpp
# moc-generating build/release/WbBox.moc.cpp
# moc-generating build/release/WbBoolEditor.moc.cpp
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
# moc-generating build/release/WbBasicJoint.moc.cpp
# moc-generating build/release/WbBillboard.moc.cpp
# moc-generating build/release/WbBaseNode.moc.cpp
# moc-generating build/release/WbBallJointParameters.moc.cpp
# moc-generating build/release/WbBallJoint.moc.cpp
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
# moc-generating build/release/WbBackground.moc.cpp
# moc-generating build/release/WbApplication.moc.cpp
# moc-generating build/release/WbAppearance.moc.cpp
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
# moc-generating build/release/WbAnimationRecorder.moc.cpp
# moc-generating build/release/WbAltimeter.moc.cpp
# moc-generating build/release/WbAddNodeDialog.moc.cpp
# moc-generating build/release/WbAddInertiaMatrixDialog.moc.cpp
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
# moc-generating build/release/WbAccelerometer.moc.cpp
# moc-generating build/release/WbActionManager.moc.cpp
# moc-generating build/release/WbAbstractCamera.moc.cpp
# moc-generating build/release/WbAbstractDragEvent.moc.cpp
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
# moc-generating build/release/WbAbstractAppearance.moc.cpp
# moc-generating build/release/WbAboutBox.moc.cpp
../../bin/qt/moc: 1: Syntax error: "(" unexpected
../../bin/qt/moc: 1: Syntax error: "(" unexpected
make[1]: *** No rule to make target 'build/release/WbAboutBox.moc.cpp', needed by 'WbAboutBox.moc.o'.  Stop.
make: *** [Makefile:112: webots_target] Error 2

Any help is appreciated.

mojcris avatar Jan 16 '25 12:01 mojcris

do you have qt installed on your jetson ? did you read https://github.com/cyberbotics/webots/wiki/Linux-installation/#install-prerequisites-packages ?

also, reading https://forum.qt.io/topic/123045/bin-sh-1-syntax-error-unexpected/3 do you have proper environment variables ? what does you WEBOTS_HOME look like ?

ShuffleWire avatar Jan 16 '25 14:01 ShuffleWire

Yes I installed qt 6.5.3 successfully using the script provided in Webots repository.

mojcris avatar Jan 16 '25 14:01 mojcris

did you alter the scripts in any way ?

ShuffleWire avatar Jan 16 '25 14:01 ShuffleWire

My WEBOTS_HOME is the directory I cloned webot. So it's pointing at /home/******/webots

And no I didn't change the scripts at all. Cloned the repo and followed the instructions.

mojcris avatar Jan 16 '25 14:01 mojcris

Could you please check the content of build/release/WbZoom.moc.cpp to see if there is anything weird in it ?

ShuffleWire avatar Jan 16 '25 14:01 ShuffleWire

I can't find that file. I can only find these file:

webots/src/webots/build/release/WbZoom.d
webots/src/webots/build/release/WbZoom.o

mojcris avatar Jan 16 '25 14:01 mojcris

yes, in fact the file in not generate, the error come from the moc generation...

in webots/src/webots/Makefile line 666, is the command line that fail I do think that some of the variable of command are failing to expand correctly, thus giving a bad command, which is not executable du to syntaxe error

ShuffleWire avatar Jan 16 '25 14:01 ShuffleWire

Thanks for looking into it. Any idea how we could change it to make it run correctly?

mojcris avatar Jan 16 '25 14:01 mojcris

i'm tring to display the line executed on my end, to check for error potential

ShuffleWire avatar Jan 16 '25 15:01 ShuffleWire

in webots/src/webots/Makefile line 666 after @echo "# moc-generating" $@ add @echo @$(MOC) $(MOC_FLAGS) $(INCLUDE:-isystem:-I) $< -o $@

make clean && make does your line looks like @../../bin/qt/moc nodes/WbZoom.hpp -o build/release/WbZoom.moc.cpp

but I'm not sure at all I'm printing the correct thing...

ShuffleWire avatar Jan 16 '25 15:01 ShuffleWire

FYI, moc file for the core should be in webots/src/webots/build/release build you need to interrupt make juste after moc generation to see them, i expect them the be deleted as they should be temporary file

ShuffleWire avatar Jan 16 '25 15:01 ShuffleWire

I've read on multiple forum that you should be checking what your sh interpreter is. It should be bash, but it look like dash could be used and causse trouble https://unix.stackexchange.com/questions/45781/shell-script-fails-syntax-error-unexpected

which OS are you using when building ? Alternatively, I do expect that you build using the nvidia sdk, which setup does it contains ? I not very familiar with that, but it seems something to look for.

ShuffleWire avatar Jan 16 '25 15:01 ShuffleWire

I'm using Ubuntu 20.04

mojcris avatar Jan 16 '25 15:01 mojcris

have you been able to look my others message ? They could give insight on the issues :)

ShuffleWire avatar Jan 16 '25 15:01 ShuffleWire

Sorry, I wasn't at my desk. I'm trying to test them now and see what more information I can get. Thanks so much for looking into it.

mojcris avatar Jan 16 '25 15:01 mojcris

in webots/src/webots/Makefile line 666 after @echo "# moc-generating" $@ add @echo @$(MOC) $(MOC_FLAGS) $(INCLUDE:-isystem:-I) $< -o $@

make clean && make does your line looks like @../../bin/qt/moc nodes/WbZoom.hpp -o build/release/WbZoom.moc.cpp

but I'm not sure at all I'm printing the correct thing...

I get the same output:

@../../bin/qt/moc nodes/WbZoom.hpp -o build/release/WbZoom.moc.cpp

mojcris avatar Jan 16 '25 19:01 mojcris

I've read on multiple forum that you should be checking what your sh interpreter is. It should be bash, but it look like dash could be used and causse trouble https://unix.stackexchange.com/questions/45781/shell-script-fails-syntax-error-unexpected

which OS are you using when building ? Alternatively, I do expect that you build using the nvidia sdk, which setup does it contains ? I not very familiar with that, but it seems something to look for.

My default sheel is bash. I checked it using echo $SHELL.

mojcris avatar Jan 16 '25 19:01 mojcris

are you able to run the command alone ? from webots/src/webots

ShuffleWire avatar Jan 17 '25 08:01 ShuffleWire

sorry to ask again, are you sure that the path to the webots folder don't contains any parenthesis ?

ShuffleWire avatar Jan 17 '25 08:01 ShuffleWire

I tried running make release -j8 from webots/src/webots and it gives the same errors.

And also double checked the webots folder name and path and there's no parenthesis in there.

mojcris avatar Jan 17 '25 23:01 mojcris

I wonder if it could be the qt version you installed. Webots is not expected to be built on arm, so it doesn't install qt for arm. Could you try the following:

  1. Open $WEBOTS_HOME/scripts/install/qt_linux_installer.sh
  2. Change QT_VERSION to 6.8.1 (line 6)
  3. Change line 8 to aqt install-qt --outputdir ~/Qt linux_arm64 desktop ${QT_VERSION} linux_gcc_arm64 -m qtwebsockets
  4. Run make clean
  5. Rerun the qt installer $WEBOTS_HOME/scripts/install/qt_linux_installer.sh
  6. Try building again

CoolSpy3 avatar Jan 18 '25 01:01 CoolSpy3

Thanks for the reply @CoolSpy3

After these changes now I get the following:

# * webots (core) *
#
# moc-generating build/release/WbZoom.moc.cpp @echo build/release/WbZoom.moc.cpp
# moc-generating build/release/WbW3dStreamingServer.moc.cpp @echo build/release/WbW3dStreamingServer.moc.cpp
# moc-generating build/release/WbWrenWindow.moc.cpp @echo build/release/WbWrenWindow.moc.cpp
# moc-generating build/release/WbWrenTextureOverlay.moc.cpp @echo build/release/WbWrenTextureOverlay.moc.cpp
../../bin/qt/moc: /lib/aarch64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by ../../bin/qt/moc)
../../bin/qt/moc: /lib/aarch64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by ../../bin/qt/moc)
../../bin/qt/moc: /lib/aarch64-linux-gnu/libc.so.6: version `GLIBC_2.38' not found (required by ../../bin/qt/moc)
../../bin/qt/moc: /lib/aarch64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by ../../bin/qt/moc)
../../bin/qt/moc: /lib/aarch64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by ../../bin/qt/moc)
../../bin/qt/moc: /lib/aarch64-linux-gnu/libc.so.6: version `GLIBC_2.38' not found (required by ../../bin/qt/moc)
# moc-generating build/release/WbWrenRenderingContext.moc.cpp @echo build/release/WbWrenRenderingContext.moc.cpp
../../bin/qt/moc: /lib/aarch64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by ../../bin/qt/moc)
../../bin/qt/moc: /lib/aarch64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by ../../bin/qt/moc)
../../bin/qt/moc: /lib/aarch64-linux-gnu/libc.so.6: version `GLIBC_2.38' not found (required by ../../bin/qt/moc)
../../bin/qt/moc: /lib/aarch64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by ../../bin/qt/moc)
../../bin/qt/moc: /lib/aarch64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by ../../bin/qt/moc)
../../bin/qt/moc: /lib/aarch64-linux-gnu/libc.so.6: version `GLIBC_2.38' not found (required by ../../bin/qt/moc)
# moc-generating build/release/WbWrenFullScreenOverlay.moc.cpp @echo build/release/WbWrenFullScreenOverlay.moc.cpp
# moc-generating build/release/WbWrenOpenGlContext.moc.cpp @echo build/release/WbWrenOpenGlContext.moc.cpp
../../bin/qt/moc: /lib/aarch64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by ../../bin/qt/moc)
../../bin/qt/moc: /lib/aarch64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by ../../bin/qt/moc)
../../bin/qt/moc: /lib/aarch64-linux-gnu/libc.so.6: version `GLIBC_2.38' not found (required by ../../bin/qt/moc)

And then the make command fails saying this:

# compiling wren/WbWrenSmaa.cpp
# compiling nodes/utils/WbWrenVertexArrayFrameListener.cpp
# compiling vrml/WbWriter.cpp
make[1]: *** No rule to make target 'build/release/WbAboutBox.moc.cpp', needed by 'WbAboutBox.moc.o'.  Stop.
make[1]: *** Waiting for unfinished jobs....
# compiling core/WbPosixMemoryMappedFile.cpp
make: *** [Makefile:112: webots_target] Error 2

mojcris avatar Jan 18 '25 03:01 mojcris

Hmmm, that's probably something to do with the fact that Qt 6 on Ubuntu 20 is not officially supported, so Qt is searching for an updated version of glibc, which is only distributed with Ubuntu 22+. The first thing I would try is downgrading Qt (try the above with QT_VERSION=6.7.3 and QT_VERSION=6.7.0). Unfortunately, I wasn't able to find an arm install of 6.5.3 (the default for Webots linux builds).

If that doesn't work, your best bet is probably to install Qt manually [either through the installer or an archived build or build it from source] and then figure out how to properly build Webots against it (probably some digging to find the relevant files and copy them to where Webots expects them to be).

CoolSpy3 avatar Jan 18 '25 07:01 CoolSpy3

Sorry for the delayed reply. Unfortunately I gave up. I might pick this up sometime later.

mojcris avatar Mar 15 '25 21:03 mojcris

@mojcris You can give my response in #6079 a try, it's working for me (though on Fedora).

I don't know why those gcc errors occured, but even if your QT managed to "install" (it's just a download and a copy paste of parts of it into webots build directory) you'd still be missing some libraries (also placed under webots build dir) which the Makefile downloads from cyberbotics but are only provided for linux as x64.

See my answer and the fork's readme for more details.

up200707458 avatar Mar 15 '25 21:03 up200707458

Thanks @up200707458 , I will give that a shot sometime next week. Appreciate it.

mojcris avatar Mar 16 '25 02:03 mojcris