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

some examples not support cross platform like windows #52

Open
CodingdAwn opened this issue May 28, 2020 · 4 comments
Open

some examples not support cross platform like windows #52

CodingdAwn opened this issue May 28, 2020 · 4 comments

Comments

@CodingdAwn
Copy link

when I learn 01-basic/e-installing part, the compiler cl.exe find for **.lib not **.dll
and I google some resolutions for it below
set(cmake_windows_export_all_symbols on)
after writing that line, I can compile correctly.

so do those examples consider cross platform issues?
and thank you for this wonderful repository to us to learn CMake!

@icegull
Copy link

icegull commented Sep 18, 2020

Thank you for this. I have the same issue.

@heroboy
Copy link

heroboy commented Sep 21, 2020

This link may help. https://gernotklingler.com/blog/creating-using-shared-libraries-different-compilers-different-operating-systems/

@ttroy50
Copy link
Owner

ttroy50 commented Jan 10, 2021

Thanks for the info. I haven't used cmake on windows and don't have a windows PC to be able to re-test things.

If someone wants to take the time to update the docs and / or code with tests on windows, then I can review and merge them.

@JsBlueCat
Copy link

JsBlueCat commented Mar 22, 2021

ndows, then I can review an

PS F:\stereo-camera-lib\build> ctest 
Test project F:/stereo-camera-lib/build
    Start 1: test_all
1/1 Test #1: test_all .........................Exit code 0xc0000135
***Exception:   0.01 sec

0% tests passed, 1 tests failed out of 1

Total Test time (real) =   0.03 sec

The following tests FAILED:
          1 - test_all (Exit code 0xc0000135
)
Errors while running CTest

CTest return false in windows, may be you can use workflow to test it in windows
(https://github.com/google/googletest/issues/2791)[https://github.com/google/googletest/issues/2791] here may be help

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

No branches or pull requests

5 participants