abdullahmaswadeh / galaga

Galaga MSX
GNU General Public License v3.0
20 stars 5 forks source link

build error #2

Open coreybruce opened 3 years ago

coreybruce commented 3 years ago

Hi tried to build this on Manjaro and I ran into this build issue.

[corey@manjaro-pi projects]$ git clone https://github.com/abdullahmaswadeh/galaga
Cloning into 'galaga'...
remote: Enumerating objects: 159, done.
remote: Total 159 (delta 0), reused 0 (delta 0), pack-reused 159
Receiving objects: 100% (159/159), 7.32 MiB | 427.00 KiB/s, done.
Resolving deltas: 100% (33/33), done.
[corey@manjaro-pi projects]$ cd galaga
[corey@manjaro-pi galaga]$ mkdir build
[corey@manjaro-pi galaga]$ cd build
[corey@manjaro-pi build]$ cmake ..
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.

-- The C compiler identification is GNU 10.2.0
-- The CXX compiler identification is GNU 10.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Warning (dev) at /usr/share/cmake-3.20/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (SDL2_mixer)
  does not match the name of the calling package (SDL2_Mixer).  This can lead
  to problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  cmake/FindSDL2_Mixer.cmake:75 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMakeLists.txt:9 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found SDL2_mixer: /usr/lib/libSDL2_mixer.so (found version "2.0.4") 
CMake Warning (dev) at /usr/share/cmake-3.20/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (SDL2_image)
  does not match the name of the calling package (SDL2_Image).  This can lead
  to problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  cmake/FindSDL2_Image.cmake:75 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMakeLists.txt:10 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found SDL2_image: /usr/lib/libSDL2_image.so (found version "2.0.5") 
CMake Warning (dev) at /usr/share/cmake-3.20/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (SDL2_ttf)
  does not match the name of the calling package (SDL2_TTF).  This can lead
  to problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  cmake/FindSDL2_TTF.cmake:75 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMakeLists.txt:11 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found SDL2_ttf: /usr/lib/libSDL2_ttf.so (found version "2.0.15") 
CMake Warning (dev) at /usr/share/cmake-3.20/Modules/FindOpenGL.cmake:315 (message):
  Policy CMP0072 is not set: FindOpenGL prefers GLVND by default when
  available.  Run "cmake --help-policy CMP0072" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.

  FindOpenGL found both a legacy GL library:

    OPENGL_gl_LIBRARY: /usr/lib/libGL.so

  and GLVND libraries for OpenGL and GLX:

    OPENGL_opengl_LIBRARY: /usr/lib/libOpenGL.so
    OPENGL_glx_LIBRARY: /usr/lib/libGLX.so

  OpenGL_GL_PREFERENCE has not been set to "GLVND" or "LEGACY", so for
  compatibility with CMake 3.10 and below the legacy GL library will be used.
Call Stack (most recent call first):
  CMakeLists.txt:12 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found OpenGL: /usr/lib/libOpenGL.so   
-- Found GLEW: /usr/include (found version "2.2.0") 
-- Configuring done
-- Generating done
-- Build files have been written to: /home/corey/Stuff/projects/galaga/build
[corey@manjaro-pi build]$ make j4
make: *** No rule to make target 'j4'.  Stop.
[corey@manjaro-pi build]$ make -j4
[  8%] Building CXX object CMakeFiles/galaga.dir/Bullet.cpp.o
[  8%] Building CXX object CMakeFiles/galaga.dir/CFG.cpp.o
[ 13%] Building CXX object CMakeFiles/galaga.dir/Core.cpp.o
[ 17%] Building CXX object CMakeFiles/galaga.dir/Elements.cpp.o
[ 21%] Building CXX object CMakeFiles/galaga.dir/Formations.cpp.o
[ 26%] Building CXX object CMakeFiles/galaga.dir/Game.cpp.o
[ 30%] Building CXX object CMakeFiles/galaga.dir/LevelsElement.cpp.o
[ 34%] Building CXX object CMakeFiles/galaga.dir/Music.cpp.o
[ 39%] Building CXX object CMakeFiles/galaga.dir/Objects.cpp.o
[ 43%] Building CXX object CMakeFiles/galaga.dir/Patterns.cpp.o
[ 47%] Building CXX object CMakeFiles/galaga.dir/Resources.cpp.o
[ 52%] Building CXX object CMakeFiles/galaga.dir/Rocket.cpp.o
[ 56%] Building CXX object CMakeFiles/galaga.dir/Ship.cpp.o
[ 60%] Building CXX object CMakeFiles/galaga.dir/StageM.cpp.o
[ 65%] Building CXX object CMakeFiles/galaga.dir/Text.cpp.o
[ 69%] Building CXX object CMakeFiles/galaga.dir/main.cpp.o
[ 73%] Building CXX object CMakeFiles/galaga.dir/physix.cpp.o
[ 78%] Building CXX object CMakeFiles/galaga.dir/shapes.cpp.o
[ 82%] Building CXX object CMakeFiles/galaga.dir/stages.cpp.o
[ 86%] Building CXX object CMakeFiles/galaga.dir/starsField.cpp.o
[ 91%] Building CXX object CMakeFiles/galaga.dir/texture.cpp.o
[ 95%] Building CXX object CMakeFiles/galaga.dir/timer.cpp.o
[100%] Linking CXX executable galaga
/usr/bin/ld: CMakeFiles/galaga.dir/Text.cpp.o: undefined reference to symbol 'SDL_FreeSurface'
/usr/bin/ld: /usr/lib/libSDL2-2.0.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/galaga.dir/build.make:439: galaga] Error 1
make[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/galaga.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
abdullahmaswadeh commented 2 years ago

@thomasgauthier