# Building error

**URL:** https://discourse.kitware.com/t/building-error/128
**Category:** Pulse Physiology Engine
**Created:** [July 10, 2018, 8:06am UTC](https://discourse.kitware.com/t/building-error/128 "2018-07-10T08:06:57Z")
**Posts on this page:** 13
**Page:** 2

<div class="post-metadata">

### Author: ![abray](https://discourse.kitware.com/user_avatar/discourse.kitware.com/abray/32/12_2.png) [@abray](https://discourse.kitware.com/u/abray)
#### Post date: [July 10, 2018, 11:46pm UTC](https://discourse.kitware.com/t/building-error/128/21 "2018-07-10T23:46:25Z")

</div>

Note PulseCLR project will be created but will NOT be built unless you enable it via a CMake flag, so it should not cause any issues. (if C# developers want it built as part of the solution, they just need to enable that flag)

ReadMe was updated

---

<div class="post-metadata">

### Author: ![bingyu11](https://discourse.kitware.com/letter_avatar_proxy/v4/letter/b/8edcca/32.png) [@bingyu11](https://discourse.kitware.com/u/bingyu11)
#### Post date: [July 11, 2018, 8:13am UTC](https://discourse.kitware.com/t/building-error/128/22 "2018-07-11T08:13:59Z")

</div>

For the Qt building, the build setting was Debug. I changed it to Release, but the error ‘libprotobuf.lib cannot be found’ still exists.

 ![Qt%20building%20release](https://discourse.kitware.com/uploads/default/original/1X/7794276d0598443ba27a5abd9b844b87a33b680f.jpg)

The following picture is the folder where the file libprotobuf.lib is located. I didn’t see the release subfolder mentioned in the error message.

 ![libprotobuf%20folder](https://discourse.kitware.com/uploads/default/original/1X/a8bbe6a4ed1c0eb5151b192ddd8159ab3f8c7625.jpg)

---

<div class="post-metadata">

### Author: ![bingyu11](https://discourse.kitware.com/letter_avatar_proxy/v4/letter/b/8edcca/32.png) [@bingyu11](https://discourse.kitware.com/u/bingyu11)
#### Post date: [July 11, 2018, 8:53am UTC](https://discourse.kitware.com/t/building-error/128/23 "2018-07-11T08:53:43Z")

</div>

I created the Release folder myself and copied that file to this folder, then the problem was solved temporarily. The bad news is that another problem related to java appeared (as shown below):

 ![java%20error](https://discourse.kitware.com/uploads/default/original/1X/cf3586773fe6b8bbecc657ba59bfec15437275a8.jpg)

In addition, I found this project is not compatible with the java higher than 1.8.0\_121. Maybe you can check it later.

---

<div class="post-metadata">

### Author: ![abray](https://discourse.kitware.com/user_avatar/discourse.kitware.com/abray/32/12_2.png) [@abray](https://discourse.kitware.com/u/abray)
#### Post date: [July 11, 2018, 12:06pm UTC](https://discourse.kitware.com/t/building-error/128/24 "2018-07-11T12:06:23Z")

</div>

I have run the build through qtCreator and received the same error you did  
I know what the problem is and am working on a fix

This Java error is post-build (which is good!) and trying to generate data via a Java executable jar, and that jar is not finding its dependent jars for some reason…

You should have a run.cmake file in your install/bin directory  
It should be setting the path to the jars in this section

```
set(JAVA_CLASSPATH Pulse.jar
    C:/Programming/physiology/engine/jar/javassist-3.16.1-GA.jar

```

In your file, are your paths to these jar files correct?

---

<div class="post-metadata">

### Author: ![bingyu11](https://discourse.kitware.com/letter_avatar_proxy/v4/letter/b/8edcca/32.png) [@bingyu11](https://discourse.kitware.com/u/bingyu11)
#### Post date: [July 11, 2018, 12:07pm UTC](https://discourse.kitware.com/t/building-error/128/25 "2018-07-11T12:07:24Z")

</div>

I think the above java JNI error is caused by the space in the directory. After moving the source file to another directory that doesn’t contain spaces, the problem was solved. Now it’s generating data and states, and has lasted for a while. But the folder that accommodates libprotobuf.lib still cannot be generated automatically. I have to create it myself.

---

<div class="post-metadata">

### Author: ![abray](https://discourse.kitware.com/user_avatar/discourse.kitware.com/abray/32/12_2.png) [@abray](https://discourse.kitware.com/u/abray)
#### Post date: [July 11, 2018, 12:08pm UTC](https://discourse.kitware.com/t/building-error/128/26 "2018-07-11T12:08:52Z")

</div>

Great!

Yes, I am fixing the folder issue

I need to add quotes to the paths in that run.cmake file, that should fix the issue of having spaces in the name

---

<div class="post-metadata">

### Author: ![bingyu11](https://discourse.kitware.com/letter_avatar_proxy/v4/letter/b/8edcca/32.png) [@bingyu11](https://discourse.kitware.com/u/bingyu11)
#### Post date: [July 11, 2018, 12:36pm UTC](https://discourse.kitware.com/t/building-error/128/27 "2018-07-11T12:36:22Z")

</div>

The data and states have been generated successfully. And I have executed ‘run updateBaselines’ in the cmd. But the release folder under install/bin is empty, which means I cannot execute the PulseScenarioDriver. Any more steps needed?

By the way, do you have an UI to play with for this project?

---

<div class="post-metadata">

### Author: ![abray](https://discourse.kitware.com/user_avatar/discourse.kitware.com/abray/32/12_2.png) [@abray](https://discourse.kitware.com/u/abray)
#### Post date: [July 11, 2018, 1:01pm UTC](https://discourse.kitware.com/t/building-error/128/28 "2018-07-11T13:01:55Z")

</div>

If it generated state data, the driver is there…

(look for files in install/bin/states)

This may help

[https://gitlab.kitware.com/physiology/engine/wikis/Test%20Suite](https://gitlab.kitware.com/physiology/engine/wikis/Test%20Suite)

Gui is here

[https://gitlab.kitware.com/physiology/explorer](https://gitlab.kitware.com/physiology/explorer)

---

<div class="post-metadata">

### Author: ![bingyu11](https://discourse.kitware.com/letter_avatar_proxy/v4/letter/b/8edcca/32.png) [@bingyu11](https://discourse.kitware.com/u/bingyu11)
#### Post date: [July 11, 2018, 2:52pm UTC](https://discourse.kitware.com/t/building-error/128/29 "2018-07-11T14:52:07Z")

</div>

There is an error when I built the explorer:

 ![install_not_exist](https://discourse.kitware.com/uploads/default/original/1X/09c61d66be3d9641c12d1bfb72cdd1fdefec9dfa.jpg)

Every time when I rebuild the source file, it takes too much time to finish, about 16 minutes.

---

<div class="post-metadata">

### Author: ![abray](https://discourse.kitware.com/user_avatar/discourse.kitware.com/abray/32/12_2.png) [@abray](https://discourse.kitware.com/u/abray)
#### Post date: [July 11, 2018, 2:54pm UTC](https://discourse.kitware.com/t/building-error/128/30 "2018-07-11T14:54:34Z")

</div>

You can download a prebuild windows version here:

[https://gitlab.kitware.com/physiology/explorer/wikis/home](https://gitlab.kitware.com/physiology/explorer/wikis/home)

I will be adding a newer version with some more capability very soon

I’ll see if I can’t get a new windows copy up ASAP

I will probably need to build it and fix bugs with creator as well

---

<div class="post-metadata">

### Author: ![bingyu11](https://discourse.kitware.com/letter_avatar_proxy/v4/letter/b/8edcca/32.png) [@bingyu11](https://discourse.kitware.com/u/bingyu11)
#### Post date: [July 11, 2018, 2:58pm UTC](https://discourse.kitware.com/t/building-error/128/31 "2018-07-11T14:58:00Z")

</div>

Great, thanks.

---

<div class="post-metadata">

### Author: ![abray](https://discourse.kitware.com/user_avatar/discourse.kitware.com/abray/32/12_2.png) [@abray](https://discourse.kitware.com/u/abray)
#### Post date: [July 12, 2018, 12:25am UTC](https://discourse.kitware.com/t/building-error/128/32 "2018-07-12T00:25:34Z")

</div>

I pushed up fixes to Pulse Master to fix the build folder issue.  
It builds with no issues in Creator, I _think_ it will also build in your ninja/MSVC environment too… but I have not integrated ninja into MSVC yet to really test it  
(How did you do that?)

I am currently building a fresh pull of the Explorer that uses this new Pulse through Creator and will fix any of those issues I find.

---

<div class="post-metadata">

### Author: ![abray](https://discourse.kitware.com/user_avatar/discourse.kitware.com/abray/32/12_2.png) [@abray](https://discourse.kitware.com/u/abray)
#### Post date: [July 12, 2018, 2:37pm UTC](https://discourse.kitware.com/t/building-error/128/33 "2018-07-12T14:37:52Z")

</div>

I uploaded the latest build of the Explorer here :  
[https://data.kitware.com/api/v1/file/5b46d19f8d777f2e6225a597/download](https://data.kitware.com/api/v1/file/5b46d19f8d777f2e6225a597/download)

Let me know how it works or if you have questions.

I am still working out some Explorer kinks.  
I did notice that when Qt Creator builds Pulse, the DLLs are twice the size and the engine runs very slow… I am not sure what is going on there…

[Previous page](https://discourse.kitware.com/t/building-error/128.md?page=1)
