[SailfishDevel] emulator crashes

Iosif Hamlatzis i.hamlatzis at gmail.com
Tue Jul 8 14:30:31 UTC 2014


I'm sorry for not returning earlier with my home's PC specification:

supported H/W technologies as reported by Intel's utility
virtualization technology:           yes
hyper-threading technology:       no
64 Architecture:                        yes
Enchanced speedstep technology:        yes
SSE/2/3/4                                            yes/yes/yes/no  (no
support for SSE4)
advanced vector extensions                  no
AES new instructions                          no
Intel VT-x with extended page tables     no

With or without the virtualization enabled at home everything works
perfectly. There is no emulator crash.

Anyway, for now I can live with only working at home, but has anybody
managed to debug from Windows on the emulator or the actual device? Because
when I try to debug my game (not using Qt, just plain makefile) I am asked
for an executable and I don't know what to select. The QtCreator IDE
doesn't produce any recognised by Windows executable.

My makefile:

# Name of the application
TARGET := harbour-inversekinematics

# DST_DEVICE := Emulator
DST_DEVICE := Device

# Source code files
SOURCES := $(wildcard ./src/*.cpp)
SOURCES += $(wildcard ./src/*.c)

# pkg-config requirements
PKGS := sdl2 glesv1_cm SDL2_image SDL2_ttf SDL2_mixer
ifeq ($(DST_DEVICE),Device)
PKGS += audioresource glib-2.0
endif

DESKTOP_FILE := $(patsubst %,%.desktop,$(TARGET))
ICON_FILE := $(patsubst %,%.png,$(TARGET))
DESKTOPS := $(patsubst %,%.desktop,$(TARGET))
DATA_FILES := Home

DESTDIR ?=
PREFIX ?= /usr

DATADIR := $(PREFIX)/share/$(TARGET)/

CXXFLAGS ?= -g
CXXFLAGS += -DDATADIR=\"$(DATADIR)\"
CXXFLAGS += -Os
CXXFLAGS += -ffunction-sections
CXXFLAGS += -fdata-sections

CXXFLAGS += -pipe -O2 -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security
-fmessage-length=0 -Wno-psabi -fPIC -fvisibility=hidden
-fvisibility-inlines-hidden -W -D_REENTRANT -fPIE
ifeq ($(DST_DEVICE),Device)
CXXFLAGS += -march=armv7-a -mfloat-abi=hard -mfpu=vfpv3-d16 -mno-thumb
endif

CXXFLAGS += -Wno-comment -Wno-unused-variable -Wno-unused-parameter
-Wno-unused-but-set-variable -Wno-unused-but-set-variable
CXXFLAGS += -pie -rdynamic -L/usr/lib/ -lpthread
CXXFLAGS += -lSDL2 -lEGL -lGLESv1_CM -lGLESv2 -lSDL2_image -lSDL2_ttf
-lSDL2_mixer
ifeq ($(DST_DEVICE),Device)
CXXFLAGS += -laudioresource -lglib-2.0
endif

CXXFLAGS += -I./inc

LDFLAGS := -s

PKGCONFIG_FLAGS := $(shell pkg-config --libs --cflags $(PKGS))

all: $(TARGET)

$(TARGET): $(SOURCES)
 $(CXX) $(CXXFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ $^ $(PKGCONFIG_FLAGS)

INSTALLMSG := @echo
INSTALLCMD := @install

install: $(TARGET) $(DESKTOP_FILE) $(ICON_FILE)
$(INSTALLMSG) Installing binary
 $(INSTALLCMD) -d $(DESTDIR)$(PREFIX)/bin/
$(INSTALLCMD) -m755 $(TARGET) $(DESTDIR)$(PREFIX)/bin/
 $(INSTALLMSG) Installing .desktop file
$(INSTALLCMD) -d $(DESTDIR)$(PREFIX)/share/applications/
 $(INSTALLCMD) -m644 $(DESKTOP_FILE) $(DESTDIR)$(PREFIX)/share/applications/
$(INSTALLMSG) Installing icon file
 $(INSTALLCMD) -d $(DESTDIR)$(PREFIX)/share/icons/hicolor/86x86/apps/
$(INSTALLCMD) -m644 $(ICON_FILE)
$(DESTDIR)$(PREFIX)/share/icons/hicolor/86x86/apps/
 $(INSTALLMSG) Installing data files
mkdir -m 0777 $(DESTDIR)$(DATADIR)
 chmod 777 $(DESTDIR)$(DATADIR)
cp -r $(DATA_FILES) $(DESTDIR)$(DATADIR)
 chmod -R 0777 $(DESTDIR)$(DATADIR)

clean:
 rm -f $(TARGET)

.PHONY: all install clean
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.sailfishos.org/pipermail/devel/attachments/20140708/394dd6cb/attachment.html>


More information about the Devel mailing list