zivid / zivid-cpp-samples

Code samples for the usage of a Zivid 3D camera in C++
BSD 3-Clause "New" or "Revised" License
21 stars 16 forks source link

build issues #1

Closed pbermell closed 4 years ago

pbermell commented 5 years ago

Hello, I am trying to build the samples but I get an error. Any hints? Thanks. this is what I get on the console when following instructions on github page:

xtcdev@xtcdev01:~/repos/cpp-extra-samples/Zivid/build$ cmake .. -- The C compiler identification is GNU 7.4.0 -- The CXX compiler identification is GNU 7.4.0 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done CMake Error at CMakeLists.txt:28 (file): file COPY cannot find "/bin_debug/plugins".

CMake Error at CMakeLists.txt:29 (file): file COPY cannot find "/bin/plugins".

-- Configuring incomplete, errors occurred! See also "/home/xtcdev/repos/cpp-extra-samples/Zivid/build/CMakeFiles/CMakeOutput.log".

SatjaSivcev commented 5 years ago

Can you confirm that you have rebooted your pc after installing Zivid Software? A problem with ENV variables is that they are not set before you start a new login session. That may be the source of error here. It seems that $ENV{ZIVID_INSTALL_FOLDER}/bin/plugins/ expands to /bin/plugins/ meaning $ENV{ZIVID_INSTALL_FOLDER} is empty, can you please check the value of this system variable and also the existance of C:\Program Files\Zivid\bin\plugins or similar location where you have installed Zivid?

nedrebo commented 5 years ago

It seem you are trying to compile this on Linux, unfortunately the latest changes to the CMake files have not been tested on Linux and they have introduced Windows paths. This should be easy to fix and you can expect an update soon.

For now you can comment out the following lines, they are not needed on Linux anyway. The code should then build and run on Linux.

https://github.com/zivid/cpp-extra-samples/blob/2abbfdec0fc726841c10bb0cf8a96d687508ec2f/Zivid/CMakeLists.txt#L28-L29

Comment https://github.com/zivid/cpp-extra-samples/issues/1#issuecomment-511749141 was assuming that you used Windows you can disregard it.

pbermell commented 5 years ago

Thanks, Yes, I am trying this in Linux. Will give it a go commenting the lines and wait patiently for the updates!

knatten commented 5 years ago

@pbermell this issue is now fixed. Can you please try again?

Be aware however that the Linux experience is still not very smooth. In particular, the examples which use visualization need Qt 5.11 specifically. We're hoping to fix this in not too long. Feel free to ping me in this thread if you run into further issues.

knatten commented 4 years ago

Closing due to no response.