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

Vc++ compilation errors #136

Closed
mediabuff opened this issue Feb 21, 2020 · 13 comments
Closed

Vc++ compilation errors #136

mediabuff opened this issue Feb 21, 2020 · 13 comments

Comments

@mediabuff
Copy link

mediabuff commented Feb 21, 2020

janwilmans/copperspice-gettingstarted#11 (comment)

How did you build 1.6 ? I trying to build using cmake and VS2019, get ton of errors because of winsock2.h . As you know this conflicts with winsock.h in windows.h (and dshow.h which indirectly includes windows.h)- which is used profusely in copperspice code base.

@janwilmans
Copy link
Collaborator

I do not see the seem problem, I strongly suspect your environment is finding libraries that are by default not present on windows.h (that happens for example using vcpkg, but could also be caused by manually adding libraries). I can work this out with you, do you want to chat on slack? find my on cpplang slack #ug-nl-eindhoven, name: Jan (skyhawk)

@mediabuff
Copy link
Author

mediabuff commented Feb 22, 2020

You script works well. So, u were able to combine using IDE with errors ? Pls see details here janwilmans/copperspice-gettingstarted#11 (comment)
Will connect with slack. Also, do u happen have a script for the kitchensink app?

@janwilmans
Copy link
Collaborator

janwilmans commented Feb 22, 2020

The script works for kitchensink as well. Happy to talk on slack tomorrow if you feel like it.
I don't understand your question able to combine using IDE with errors, I'm not seeing any errors.

@mediabuff
Copy link
Author

Ok, will do. I meant to ask "were you able to compile using IDE without errors"

@janwilmans
Copy link
Collaborator

For me just opening the copperspice directory with 'open folder' functionality in VS2019 works. I can build without errors. Can you show me the output of the cmake 'configure' step (just do a fresh git clone and 'open folder' in vs2019, and copy the log windows? That may help me understand what you are seeing.

@mediabuff
Copy link
Author

mediabuff commented Feb 23, 2020

Was able to get going after I removed vcpkg. Let me try kitchensink

@mediabuff
Copy link
Author

copperspice location: D:\MyDevProjects\MyProjectsThirdPartyLibs\copperspice3\cmake
kitchensink location: D:\MyDevProjects\MyProjectsThirdPartySamples\copperspice\kitchensink

I set to Copperspice_DIR to D:\MyDevProjects\MyProjectsThirdPartyLibs\copperspice3\cmake (in kitchensink configuration)

Is this correct ?

I get these errors

CMake generation started for configuration: 'x86-Debug'. 1> Command line: "cmd.exe" /c ""C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO\2019\ENTERPRISE\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\CMAKE\CMake\bin\cmake.exe" -G "Ninja" -DCMAKE_INSTALL_PREFIX:PATH="D:\MyDevProjects\MyProjectsThirdPartySamples\copperspice\kitchensink\out\install\x86-Debug" -DCopperSpice_DIR:PATH="D:/MyDevProjects/MyProjectsThirdPartyLibs/copperspice3/cmake" -DCMAKE_CXX_COMPILER:FILEPATH="C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Tools/MSVC/14.24.28314/bin/HostX86/x86/cl.exe" -DCMAKE_C_COMPILER:FILEPATH="C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Tools/MSVC/14.24.28314/bin/HostX86/x86/cl.exe" -DCMAKE_BUILD_TYPE="Debug" -DCMAKE_MAKE_PROGRAM="C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO\2019\ENTERPRISE\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\CMAKE\Ninja\ninja.exe" "D:\MyDevProjects\MyProjectsThirdPartySamples\copperspice\kitchensink" 2>&1" 1> Working directory: D:\MyDevProjects\MyProjectsThirdPartySamples\copperspice\kitchensink\out\build\x86-Debug 1> [CMake] CMake Error at D:/MyDevProjects/MyProjectsThirdPartyLibs/copperspice3/cmake/CopperSpiceConfig.cmake:36 (include): 1> [CMake] include could not find load file: 1> [CMake] 1> [CMake] D:/MyDevProjects/MyProjectsThirdPartyLibs/copperspice3/cmake/CopperSpiceLibraryTargets.cmake 1> [CMake] Call Stack (most recent call first): 1> [CMake] CMakeLists.txt:22 (find_package) 1> [CMake] CMake Error at D:/MyDevProjects/MyProjectsThirdPartyLibs/copperspice3/cmake/CopperSpiceConfig.cmake:37 (include): 1> [CMake] include could not find load file: 1> [CMake] 1> [CMake] D:/MyDevProjects/MyProjectsThirdPartyLibs/copperspice3/cmake/CopperSpiceBinaryTargets.cmake 1> [CMake] Call Stack (most recent call first): 1> [CMake] CMakeLists.txt:22 (find_package) 1> [CMake] CMake Error at D:/MyDevProjects/MyProjectsThirdPartyLibs/copperspice3/cmake/CopperSpiceDeploy.cmake:19 (get_target_property): 1> [CMake] get_target_property() called with non-existent target 1> [CMake] "CopperSpice::CsCore". 1> [CMake] Call Stack (most recent call first): 1> [CMake] D:/MyDevProjects/MyProjectsThirdPartyLibs/copperspice3/cmake/CopperSpiceConfig.cmake:41 (include)3

@janwilmans
Copy link
Collaborator

janwilmans commented Feb 23, 2020

You have to set Copperspice_DIR or CMAKE_PREFIX_PATH to mypath/cmake/CopperSpice, the directory that contains CopperSpiceConfig.cmake

@mediabuff
Copy link
Author

That's exactly what it's set to D:\MyDevProjects\MyProjectsThirdPartyLibs\copperspice3\cmake

@janwilmans
Copy link
Collaborator

I can't see your directory structure, but here there is another level:
cmake\CopperSpice\CopperSpiceConfig.cmake
not
cmake\CopperSpiceConfig.cmake

is that different for you?

@mediabuff
Copy link
Author

mediabuff commented Feb 23, 2020

I don’t have the next level ‘CopperSpice’. This is set of files under 'cmake'

image

@mediabuff
Copy link
Author

Thank you for your online support. Was able to successfully build copperspice and kitchensink using VS2019 IDE based cmake !!

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

2 participants