Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation problem #1

Open
flefevre opened this issue Feb 23, 2016 · 2 comments
Open

Compilation problem #1

flefevre opened this issue Feb 23, 2016 · 2 comments

Comments

@flefevre
Copy link

Dear PrismTech/Agentv-edison-microsvcs

when trying to build the project, on a CentOS platform, by making "./build-all" at the root, I got several error in import.
See below.
Do you have any idea, how to solve it?
Thanks
Francois

[error] /export/home/flefevre/gitPeps/agentv-edison-microsvcs/edison-grove-airquality/src/main/scala/com/prismtech/edison/grove/sensor/AirQuality.scala:16: not found: object upm_gas
[error] import upm_gas.TP401
[error]        ^
[error] /export/home/flefevre/gitPeps/agentv-edison-microsvcs/edison-grove-airquality/src/main/scala/com/prismtech/edison/grove/sensor/AirQuality.scala:19: not found: object upm_grove
[error] import upm_grove.GroveLight
[error]        ^
[error] /export/home/flefevre/gitPeps/agentv-edison-microsvcs/edison-grove-airquality/src/main/scala/com/prismtech/edison/grove/sensor/AirQuality.scala:26: not found: type TP401
[error]   var airQualitySensor: Option[TP401] = None
[error]                                ^
[error] /export/home/flefevre/gitPeps/agentv-edison-microsvcs/edison-grove-airquality/src/main/scala/com/prismtech/edison/grove/sensor/AirQuality.scala:43: not found: type TP401
[error]     airQualitySensor = sid.map(new TP401(_))
[error]                                    ^
[error] four errors found
[error] (compile:compile) Compilation failed
[error] Total time: 5 s, completed 23 févr. 2016 15:24:43
[info] Loading project definition from /export/home/flefevre/gitPeps/agentv-edison-microsvcs/edison-grove-luminosity/project
[info] Set current project to edison-grove-luminosity (in build file:/export/home/flefevre/gitPeps/agentv-edison-microsvcs/edison-grove-luminosity/)
[info] Compiling 1 Scala source to /export/home/flefevre/gitPeps/agentv-edison-microsvcs/edison-grove-luminosity/target/scala-2.11/classes...
[error] /export/home/flefevre/gitPeps/agentv-edison-microsvcs/edison-grove-luminosity/src/main/scala/com/prismtech/edison/grove/sensor/Luminosity.scala:18: not found: object upm_grove
[error] import upm_grove.GroveLight
[error]        ^
[error] /export/home/flefevre/gitPeps/agentv-edison-microsvcs/edison-grove-luminosity/src/main/scala/com/prismtech/edison/grove/sensor/Luminosity.scala:26: not found: type GroveLight
[error]   var lumSensor: Option[GroveLight] = None
[error]                         ^
[error] /export/home/flefevre/gitPeps/agentv-edison-microsvcs/edison-grove-luminosity/src/main/scala/com/prismtech/edison/grove/sensor/Luminosity.scala:42: not found: type GroveLight
[error]     lumSensor = sid.map(new GroveLight(_))
[error]                             ^
[error] three errors found
[error] (compile:compile) Compilation failed
[error] Total time: 6 s, completed 23 févr. 2016 15:24:55
[info] Loading project definition from /export/home/flefevre/gitPeps/agentv-edison-microsvcs/edison-grove-temperature/project
[info] Set current project to edison-grove-temperature (in build file:/export/home/flefevre/gitPeps/agentv-edison-microsvcs/edison-grove-temperature/)
[info] Compiling 1 Scala source to /export/home/flefevre/gitPeps/agentv-edison-microsvcs/edison-grove-temperature/target/scala-2.11/classes...
[error] /export/home/flefevre/gitPeps/agentv-edison-microsvcs/edison-grove-temperature/src/main/scala/com/prismtech/edison/grove/sensor/Temperature.scala:18: not found: object upm_grove
[error] import upm_grove.GroveTemp
[error]        ^
[error] /export/home/flefevre/gitPeps/agentv-edison-microsvcs/edison-grove-temperature/src/main/scala/com/prismtech/edison/grove/sensor/Temperature.scala:25: not found: type GroveTemp
[error]   var tempSensor: Option[GroveTemp] = None
[error]                          ^
[error] /export/home/flefevre/gitPeps/agentv-edison-microsvcs/edison-grove-temperature/src/main/scala/com/prismtech/edison/grove/sensor/Temperature.scala:41: not found: type GroveTemp
[error]     tempSensor = sid.map(new GroveTemp(_))
[error]                              ^
[error] three errors found
[error] (compile:compile) Compilation failed
[error] Total time: 6 s, completed 23 févr. 2016 15:25:12

@bmaggi
Copy link
Contributor

bmaggi commented Feb 23, 2016

It seems to me that a dependency is missing for upm_gas.TP401.

I found it in http://iotdk.intel.com/sdk/upm-update/
Use the last one: win-upm-0.4.1.21.zip
Inside there are many jars and upm_gas.TP401 is inside upm_gas.jar

@bmaggi
Copy link
Contributor

bmaggi commented Feb 23, 2016

I managed to make the code compile by adding
unmanagedBase := baseDirectory.value / "custom_lib" in the sbt file
and the missing libraries in custom_lib

Probably, the correct way to solve it should be to know where the libs are deployed and add a dependency with libraryDependencies

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants