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

Second step - adding CMakeLists.txt linker issue #2

Open
iBog opened this issue Aug 1, 2023 · 0 comments
Open

Second step - adding CMakeLists.txt linker issue #2

iBog opened this issue Aug 1, 2023 · 0 comments

Comments

@iBog
Copy link

iBog commented Aug 1, 2023

Sorry, I'm novice...
I've added CMakeLists.txt after first Hello Word step,
added assets, include, build, src folders,
installed libs with brew:

  • sdl2 2.28.1,
  • sdl2_image 2.6.3_1,
  • gsl 2.7.1,
  • glm 0.9.9.8,
  • glew 2.2.0_1

cmake .. works fine,
make result:

build make
[  0%] Built target copy_assets
[ 50%] Building CXX object CMakeFiles/cppEngine.dir/src/main.cpp.o
[100%] Linking CXX executable cppEngine
ld: library not found for -lSDL2
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [cppEngine] Error 1
make[1]: *** [CMakeFiles/cppEngine.dir/all] Error 2
make: *** [all] Error 2
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

1 participant