Skip to content

Instantly share code, notes, and snippets.

@ASRagab
Last active November 20, 2016 06:17
Show Gist options
  • Save ASRagab/2e84ae661c1ee835ffbd891d3670f224 to your computer and use it in GitHub Desktop.
Save ASRagab/2e84ae661c1ee835ffbd891d3670f224 to your computer and use it in GitHub Desktop.
Correct Dependencies for Scala + Processing 3 including Native Libs (allows OpenGL device to be found for P2D and P3D rendering modes)
name := "GeneticAlgorithm"
version := "1.0"
scalaVersion := "2.11.8"
val processingVersion = "3.2.3"
val joglVersion = "2.3.2"
val processingVideoVersion = "3.0.2"
libraryDependencies ++= Seq(
//Failure to exclude brings in additional libraries which "confuse" search for default GL device, causes openGL exception "no default device"
"org.processing" % "core" % processingVersion excludeAll(
ExclusionRule(organization = "org.jogamp.jogl"),
ExclusionRule(organization = "org.jogamp.gluegen")),
"org.processing" % "net" % processingVersion,
"org.processing" % "serial" % processingVersion,
"org.processing" % "pdf" % processingVersion,
"org.processing" % "video" % processingVideoVersion,
"org.jogamp.gluegen" % "gluegen-rt-main" % joglVersion,
"org.jogamp.jogl" % "jogl-all" % joglVersion,
"org.jogamp.jogl" % "jogl-all-main" % joglVersion
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment