cmake-examples icon indicating copy to clipboard operation
cmake-examples copied to clipboard

some examples not support cross platform like windows

Open CodingdAwn opened this issue 5 years ago • 4 comments
trafficstars

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!

CodingdAwn avatar May 28 '20 10:05 CodingdAwn

Thank you for this. I have the same issue.

icegull avatar Sep 18 '20 06:09 icegull

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

heroboy avatar Sep 21 '20 08:09 heroboy

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.

ttroy50 avatar Jan 10 '21 09:01 ttroy50

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

JsBlueCat avatar Mar 22 '21 07:03 JsBlueCat