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

Building with Visual Studio 2015 #1023

Closed
MartinDavidWaller opened this issue Sep 21, 2017 · 2 comments
Closed

Building with Visual Studio 2015 #1023

MartinDavidWaller opened this issue Sep 21, 2017 · 2 comments

Comments

@MartinDavidWaller
Copy link

Hi,

I was wondering if anyone could point me in the right direction with a sample cmake command line to build projects for Visual Studio 2015. I seem to be struggling to get anything to work?

Many thanks

Martin

@szukw000
Copy link
Contributor

MartinDavidWaller,
this question must be asked in the openjpeg list, not here.

I use for Visual Studio 2017 and WIN7 and directly using the cl compiler:

cmake -G "NMake Makefiles" -DCMAKE_BUILD_TYPE:string="Release" -DBUILD_SHARED_LIBS:bool=on -DCMAKE_INSTALL_PREFIX:path="C:/Users/Public" -DCMAKE_LIBRARY_PATH:path="C:/Users/Public" -DCMAKE_INCLUDE_PATH:path="C:/Users/Public/include" .. 

If you do not want directly use the cl compiler, you could use:

cmake  -DCMAKE_BUILD_TYPE:string="Release" -DBUILD_SHARED_LIBS:bool=on -DCMAKE_INSTALL_PREFIX:path="C:/Users/Public" -DCMAKE_LIBRARY_PATH:path="C:/Users/Public" -DCMAKE_INCLUDE_PATH:path="C:/Users/Public/include" .. 

winfried

@MartinDavidWaller
Copy link
Author

Many thanks for the reply. I now have it building.

rouault added a commit that referenced this issue Sep 22, 2017
@rouault rouault closed this as completed Sep 22, 2017
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

3 participants