lucianjames / Vid2Photogrammetry

Software to process videos into an image sequence optimised for use with photogrammetry software. A-level computer science project
1 stars 1 forks source link

Compling QT+opencv on windows using CMAKE #27

Closed lucianjames closed 2 years ago

lucianjames commented 2 years ago

image A couple warnings and an error with the current CMakeLists.txt

lucianjames commented 2 years ago

image

lucianjames commented 2 years ago

image Got it to run by setting an environment variable and adding some DLL files into the folder.

Need to set up static linking

lucianjames commented 2 years ago

Static linking isnt going to happen lol (dont feel like jumping through 9322 hoops), also need to figure out which DLL files I need to copy from opencv. since it seems to be automatically finding them in my opencv installation. The env variable I set didnt actually need to be set, just had to copy another DLL.

lucianjames commented 2 years ago

Or actually I do need the environment variable set???? windows is so shit.

lucianjames commented 2 years ago

Ok I found out that an application called windeployqt.exe which can be found in the bin file of the QT installation can set up all the deps for me, which is nice. Now I just need to set up opencv properly too

lucianjames commented 2 years ago

image Used x64debug to find and verify that any DLL files which are not part of windows are included in the folder containing the executable. Ready to deploy this release now! (Then ill make a minor update by adding a nice theme to it)