Skip to content
Extraits de code Groupes Projets
Vérifiée Valider ad7a8da8 rédigé par Kubat's avatar Kubat
Parcourir les fichiers

[build] assdraw compiles but SIGSEV at runtime...

parent f2539329
Aucune branche associée trouvée
Aucune étiquette associée trouvée
1 requête de fusion!7WIP: Assdraw
...@@ -68,6 +68,7 @@ packages/desktop/aegisub.desktop ...@@ -68,6 +68,7 @@ packages/desktop/aegisub.desktop
packages/desktop/aegisub.desktop.template packages/desktop/aegisub.desktop.template
packages/win_installer/vendor packages/win_installer/vendor
src/aegisub src/aegisub
assdraw/assdraw
Aegisub/ Aegisub/
src/libresrc/bitmap.cpp src/libresrc/bitmap.cpp
src/libresrc/bitmap.h src/libresrc/bitmap.h
......
...@@ -15,7 +15,7 @@ SYSTEM_LUAJIT = @with_system_luajit@ ...@@ -15,7 +15,7 @@ SYSTEM_LUAJIT = @with_system_luajit@
# BUILD OUTPUT # BUILD OUTPUT
############## ##############
PROGRAM := $(PROGRAM) PROGRAM := $(PROGRAM)
LIB := $(LIB) LIB := $(LIB)
################### ###################
# PLATFORM SETTINGS # PLATFORM SETTINGS
......
...@@ -38,7 +38,7 @@ assdraw_SOURCES := \ ...@@ -38,7 +38,7 @@ assdraw_SOURCES := \
$(d)library.cpp \ $(d)library.cpp \
$(d)settings.cpp $(d)settings.cpp
assdraw_CPPFLAGS := -I$(d) assdraw_CPPFLAGS := -I$(d) $(WX_CPPFLAGS)
assdraw_CXXFLAGS := $(CXXFLAGS_WX) assdraw_CXXFLAGS := $(CXXFLAGS_WX)
assdraw_OBJ := $(assdraw_SOURCES:.cpp=.o) assdraw_OBJ := $(assdraw_SOURCES:.cpp=.o)
assdraw_LIBS := $(LIBS_WX) $(LIBS_AGG) assdraw_LIBS := $(LIBS_WX) $(LIBS_AGG)
...@@ -346,6 +346,7 @@ AS_IF([test x$agi_cv_with_iconv_const = xyes], ...@@ -346,6 +346,7 @@ AS_IF([test x$agi_cv_with_iconv_const = xyes],
###### ######
## agg ## agg
###### ######
build_assdraw="no"
if test "x$build_linux" = "xyes" if test "x$build_linux" = "xyes"
then then
AC_CHECK_HEADERS([agg2/agg_config.h], [], [not_found_agg="yes"], [ AC_CHECK_HEADERS([agg2/agg_config.h], [], [not_found_agg="yes"], [
...@@ -357,6 +358,7 @@ then ...@@ -357,6 +358,7 @@ then
AC_MSG_ERROR([con't find agg2, it's needed to compile assdraw]) AC_MSG_ERROR([con't find agg2, it's needed to compile assdraw])
], [ ], [
AC_MSG_NOTICE([agg2 was found, will compile assdraw]) AC_MSG_NOTICE([agg2 was found, will compile assdraw])
build_assdraw="yes"
]) ])
AGG_LIBS=${AGG_LIBS:--lagg} AGG_LIBS=${AGG_LIBS:--lagg}
AC_SUBST(AGG_LIBS) AC_SUBST(AGG_LIBS)
...@@ -538,29 +540,34 @@ AS_IF([test x$enable_debug_exceptions = xyes], ...@@ -538,29 +540,34 @@ AS_IF([test x$enable_debug_exceptions = xyes],
################ ################
# Widget support # Widget support
################ ################
WX_REQUIRED_CHECKS="std,gl,stc"
if test x$build_assdraw = xyes
then
WX_REQUIRED_CHECKS="${WX_REQUIRED_CHECKS},aui,propgrid"
fi
WX_CONFIG_OPTIONS WX_CONFIG_OPTIONS
WX_STANDARD_OPTIONS([debug]) WX_STANDARD_OPTIONS([debug])
WX_DEBUG=$DEBUG WX_DEBUG=$DEBUG
WX_UNICODE=$UNICODE WX_UNICODE=$UNICODE
WX_CONFIG_CHECK([wx_required_version],,,[std,gl,stc],[$WXCONFIG_FLAGS]) WX_CONFIG_CHECK([wx_required_version],,,[$WX_REQUIRED_CHECKS],[$WXCONFIG_FLAGS])
AC_SUBST(WX_CONFIG_PATH) AC_SUBST(WX_CONFIG_PATH)
AS_IF([test x$WX_VERSION = x], AS_IF([test x$WX_VERSION = x],
[AC_MSG_FAILURE([wxWidgets detection failed, please set --with-wx* or add the libraries to your LIBS, CXX/CFLAGS.])]) [AC_MSG_FAILURE([wxWidgets detection failed, please set --with-wx* or add the libraries to your LIBS, CXX/CFLAGS.])])
AS_IF([test x$enable_sanity_checks != xno], [ AS_IF([test x$enable_sanity_checks != xno], [
AC_AGI_LINK([wxWidgets OpenGL support], [wxopengl], [wx/glcanvas.h], [$GL_CFLAGS $WX_CFLAGS], [$GL_LIBS $WX_LIBS],[ AC_AGI_LINK([wxWidgets OpenGL support], [wxopengl], [wx/glcanvas.h], [$GL_CFLAGS $WX_CFLAGS], [$GL_LIBS $WX_LIBS],[
#include <wx/glcanvas.h> #include <wx/glcanvas.h>
int main(void) { int main(void) {
wxGLCanvas *canvas; wxGLCanvas *canvas;
wxGLContext *context; wxGLContext *context;
return 0; return 0;
} ]) } ])
AC_AGI_LINK([wxWidgets StyledTextCtrl support], [wxstc], [wx/stc/stc.h], [$WX_CFLAGS], [$WX_LIBS],[ AC_AGI_LINK([wxWidgets StyledTextCtrl support], [wxstc], [wx/stc/stc.h], [$WX_CFLAGS], [$WX_LIBS],[
#include <wx/stc/stc.h> #include <wx/stc/stc.h>
int main(void) { int main(void) {
wxStyledTextCtrl *canvas; wxStyledTextCtrl *canvas;
return 0; return 0;
} ]) } ])
]) ])
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter