Skip to content

Commit

Permalink
[cmake,qt4,ad_mad] Fix build on Raspberry Pi 4
Browse files Browse the repository at this point in the history
  • Loading branch information
eumagga0x2a committed Feb 6, 2020
1 parent 5843ad3 commit aac9d5f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions avidemux/qt4/ADM_userInterfaces/ADM_gui/Q_dummyWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
#include "config.h"
#ifdef USE_OPENGL
#include <QOpenGLWidget>
#ifdef ADM_CPU_ARM64
#include "GL/gl.h" // not included via QOpenGLWidget on ES2 platforms
#endif
#include "Q_dummyWidget.h"
#include "ADM_default.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ENDIF(MSVC)

IF (ADM_CPU_X86_32)
ADD_DEFINITIONS("-DFPM_INTEL")
ELSEIF (ADM_CPU_X86_64)
ELSEIF (ADM_CPU_X86_64 OR ADM_CPU_ARM64)
ADD_DEFINITIONS("-DFPM_DEFAULT")
ELSEIF (ADM_CPU_PPC)
ADD_DEFINITIONS("-DFPM_PPC")
Expand Down
1 change: 1 addition & 0 deletions cmake/ADM_coreConfig.h.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#cmakedefine ADM_BIG_ENDIAN
#cmakedefine ADM_CPU_64BIT
#cmakedefine ADM_CPU_ARMEL
#cmakedefine ADM_CPU_ARM64
#cmakedefine ADM_CPU_X86
#cmakedefine ADM_CPU_X86_32
#cmakedefine ADM_CPU_X86_64
Expand Down
2 changes: 1 addition & 1 deletion cmake/admDetermineSystem.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ IF(NOT MSVC)
PERFORM_SYSTEM_TEST(cpu_arm64_check.cpp "ARM64" ARM64_SUPPORTED)

IF(ARM64_SUPPORTED)
set(adm_cpu_arm64 1)
set(ADM_CPU_ARM64 1)
endif(ARM64_SUPPORTED)
ENDIF(ARMEL_SUPPORTED)
ENDIF (X86_32_SUPPORTED)
Expand Down

0 comments on commit aac9d5f

Please sign in to comment.