Code Monkey home page Code Monkey logo

gbxqt's Introduction

GBxQT

Custom software for InsideGadget's GBx devices

Compiling

Windows

  1. Install QT
  2. Install mingw-w64
  3. Run qmake.exe GBxQT.pro -spec win32-g++ "CONFIG+=qtquickcompiler"
  4. Run mingw32-make

Linux

  1. Install qt using your distro's package manager (apt install qt5-default if your distro uses apt)
  2. Run qmake GBxQT.pro "CONFIG+=qtquickcompiler"
  3. Run make

MacOS

  1. Install qt using brew install qt and brew link qt --force
  2. Run qmake GBxQT.pro "CONFIG+=qtquickcompiler"
  3. Run make

Images

Windows Light Mode

Windows Dark Mode

Linux

MacOS Light Mode

MacOS Dark Mode

gbxqt's People

Contributors

hdr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

gbxqt's Issues

Fatal Error When Compiling

I was compiling on Mac, following your instructions. When I ran make I got this error:

src/GBxQT.cpp:5:10: fatal error: 'QTextCodec' file not found

trying to install but running make throws errors on debian 9

First I made sure to install qt5 with
sudo apt install qt5-default

I run the commands shown in the README

qmake GBxQT.pro "CONFIG+=qtquickcompiler"
Info: creating stash file /media/facelessloser/A6E4-ED97/gameboy_stuff/GBxQT-master/.qmake.stash

But when I run make it throws up this error

make
g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -I. -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtWidgets -isystem /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem /usr/include/x86_64-linux-gnu/qt5/QtNetwork -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -I. -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64 -o GBxQT.o src/GBxQT.cpp
src/GBxQT.cpp:14:35: fatal error: QOperatingSystemVersion: No such file or directory
 #include <QOperatingSystemVersion>
                                   ^
compilation terminated.
Makefile:603: recipe for target 'GBxQT.o' failed
make: *** [GBxQT.o] Error 1

Double free crash on ROM read

Just tried this out on Linux Mint x64 with a brand new cart. After reading the ROM to a file, the program crashes due to a double free error, seemingly. Recompiled with -g and tried to trace it in GDB - here's the resulting log

» gdb --args ./GBxQT                                                                                                                                                                                   2004ms  Tue 19 Jan 2021 08:13:17 PM CST
GNU gdb (Ubuntu 9.2-0ubuntu1~20.04) 9.2
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./GBxQT...
(gdb) run
Starting program: /media/grayson/4ea9c2fa-455c-480d-adbd-b533afd47647/home/grayson/Packages/GBxQT/GBxQT 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7ffff2f59700 (LWP 5010)]
qt5ct: using qt5ct plugin
[New Thread 0x7ffff15e6700 (LWP 5011)]
QObject::connect: No such signal QGroupBox::refresh_ram_buttons (void)
[New Thread 0x7fffe9c6b700 (LWP 5012)]
[New Thread 0x7fffe946a700 (LWP 5013)]
[New Thread 0x7fffe8c69700 (LWP 5014)]
[Thread 0x7fffe9c6b700 (LWP 5012) exited]
[New Thread 0x7fffe9c6b700 (LWP 5015)]
free(): double free detected in tcache 2

Thread 7 "ReadFlashThread" received signal SIGABRT, Aborted.
[Switching to Thread 0x7fffe9c6b700 (LWP 5015)]
__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
50	../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#1  0x00007ffff69e9859 in __GI_abort () at abort.c:79
#2  0x00007ffff6a543ee in __libc_message (action=action@entry=do_abort, fmt=fmt@entry=0x7ffff6b7e285 "%s\n") at ../sysdeps/posix/libc_fatal.c:155
#3  0x00007ffff6a5c47c in malloc_printerr (str=str@entry=0x7ffff6b805d0 "free(): double free detected in tcache 2") at malloc.c:5347
#4  0x00007ffff6a5e0ed in _int_free (av=0x7fffe0000020, p=0x7fffe0003df0, have_lock=0) at malloc.c:4201
#5  0x00007ffff6a49043 in _IO_deallocate_file (fp=0x7fffe0003e00) at libioP.h:863
#6  _IO_new_fclose (fp=0x7fffe0003e00) at iofclose.c:74
#7  0x00005555555678b6 in ReadFlashThread::run() (this=0x555555967750) at src/ReadFlashThread.cpp:98
#8  0x00007ffff6e959d2 in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#9  0x00007ffff6dbd609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#10 0x00007ffff6ae6293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.