ppwwyyxx / OpenPano

Automatic Panorama Stitching From Scratch
MIT License
1.86k stars 553 forks source link

Compilation problems about cimg #44

Closed Springlee-P closed 6 years ago

Springlee-P commented 6 years ago

Hello, thank you very much for your code I had the following error during compilation image The compilation environment is VS2015. Do you have any good solutions?Is it still needed?

ppwwyyxx commented 6 years ago

During configuration it should've printed message such as libjpeg not found. Basically you need to have libjpeg in your system and let cmake find it. Although I don't know how this is done in VS.

Springlee-P commented 6 years ago

Libjpeg already sets the environment variable and cmake is ok . The exe times error was generated in vs2015

Springlee-P commented 6 years ago

Does this have anything to do with the 32-bit 64-bit system?

ppwwyyxx commented 6 years ago

You need a libjpeg built with the same architecture of your target executable.

Springlee-P commented 6 years ago

Ok, let me check, Also, can this be compiled into a dynamic link library?

ppwwyyxx commented 6 years ago

It will be compiled to a dynamic link library and an executable.

Springlee-P commented 6 years ago

Can this project bring in opencv?

ppwwyyxx commented 6 years ago

You can add opencv if you need.

Springlee-P commented 6 years ago

I referenced it in the image-stitching project, but in openpano, compilation doesn't go through how to refer to opencv in the static library project (openpano)

ppwwyyxx commented 6 years ago

Could you follow the documentation: https://docs.opencv.org/3.3.0/db/df5/tutorial_linux_gcc_cmake.html