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

build issues #1

Closed
pbermell opened this issue Jul 15, 2019 · 5 comments
Closed

build issues #1

pbermell opened this issue Jul 15, 2019 · 5 comments

Comments

@pbermell
Copy link

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
Copy link
Contributor

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
Copy link

nedrebo commented Jul 16, 2019

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 #1 (comment) was assuming that you used Windows you can disregard it.

@pbermell
Copy link
Author

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

@knatten
Copy link
Contributor

knatten commented Aug 21, 2019

@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
Copy link
Contributor

knatten commented Sep 17, 2019

Closing due to no response.

@knatten knatten closed this as completed Sep 17, 2019
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

4 participants