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

Issue resolved #117 #119

Merged
merged 4 commits into from
Feb 23, 2024
Merged

Issue resolved #117 #119

merged 4 commits into from
Feb 23, 2024

Conversation

Ritika128
Copy link
Contributor

Updated 4_cv_basics/1_image_representation/Makefile
Updated 4_cv_basics/2_playing_with_images/Makefile

Fixes Issue #117

Updated 4_cv_basics/3_interpolation/README.md

Update build configuration to include SDL2

Changed CFLAGS to include SDL2 directories using `pkg-config --cflags sdl2`.
Changed LIBS to include SDL2 libraries using `pkg-config --libs sdl2`.

Fixes SRA-VJTI#117
Update build configuration to include SDL2

Changed CFLAGS to include SDL2 directories using `pkg-config --cflags sdl2`.
Changed LIBS to include SDL2 libraries using `pkg-config --libs sdl2`.

Fixes SRA-VJTI#117
Update directory name and source file linking in build instructions
Copy link
Member

@aPR0T0 aPR0T0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just let me know, whether it works without the cflags of sdl2?
Because I have tested it in codespace and it works just fine

@@ -5,9 +5,9 @@ CC = g++
PROJECT = image_representation

# Here Include specifies which directories can be added in the include path of the main.cpp
CFLAGS = -std=c++11 $(shell pkg-config --cflags opencv4) -Iinclude/
CFLAGS = -std=c++11 $(shell pkg-config --cflags opencv4) $(shell pkg-config --cflags sdl2)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

were cflags necessary for sdl2?
didn't it work without them?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no it's not working without --cflags sdl2

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then why did it work before in linux? As there was no cflag before

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It does not work because the directory structure is slightly different in macOS, therefore giving an error for SDL2/SDL.h

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It does not work because the directory structure is slightly different in macOS, therefore giving an error for SDL2/SDL.h

Sure, got it!

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think then this change is good to go

# What libraries to be imported here it is opencv and SDL
LIBS = $(shell pkg-config --libs opencv4) -lSDL2
LIBS = $(shell pkg-config --libs opencv4) $(shell pkg-config --libs sdl2)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@@ -5,9 +5,9 @@ CC = g++
PROJECT = playing_with_images

# Here Include specifies which directories can be added in the include path of the main.cpp
CFLAGS = -std=c++11 $(shell pkg-config --cflags opencv4) -Iinclude/
CFLAGS = -std=c++11 $(shell pkg-config --cflags opencv4) $(shell pkg-config --cflags sdl2)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here, were cflags necessary here?

Copy link
Contributor

@AryanNanda17 AryanNanda17 Feb 18, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here, the cflags is not necessary since we are not using the sdl2 library in this folder's code.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here, the cflags is not necessary since we are not using the sdl2 library in this folder's code.

@Ritika128 make the necessary changes in the next commit

Removed sdl2 dependency
@aPR0T0
Copy link
Member

aPR0T0 commented Feb 23, 2024

This request looks reasonable, so merging it to the main branch

@aPR0T0 aPR0T0 merged commit ba28bd2 into SRA-VJTI:main Feb 23, 2024
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

Successfully merging this pull request may close these issues.

4 participants