Comments (5)
Decided to try recompiling from source on an Ubuntu 15.10 VM (libusb
and pkg-config
both installed). Looks like the check-menu
step fails, and using the precompiled menu.gb doesn't appear to work.
Got it to work eventually by setting up rgbds
so I could compile the menu from source with make menu
.
Below is the output I get when trying to run make menu-orig
, and the failing check-menu
log.
colby@colby-VirtualBox:~/Desktop/ems-flasher$ make menu-orig
cp menu.gb.orig menu.gb
make check-menu
make[1]: Entering directory '/home/colby/Desktop/ems-flasher'
./updateheader.sh -c -s < menu.gb > menucs.gb
./updateheader.sh: 19: ./updateheader.sh: [[: not found
./updateheader.sh: 25: ./updateheader.sh: [[: not found
./updateheader.sh -c < menu.gb > menuc.gb
./updateheader.sh: 19: ./updateheader.sh: [[: not found
./updateheader.sh: 25: ./updateheader.sh: [[: not found
./updateheader.sh -s < menu.gb > menus.gb
./updateheader.sh: 19: ./updateheader.sh: [[: not found
./updateheader.sh: 25: ./updateheader.sh: [[: not found
make[1]: Leaving directory '/home/colby/Desktop/ems-flasher'
from ems-flasher.
Also having similar issue, but mine says invalid header for menu.c
ems-flasher: invalid header for /usr/local/share/ems-flasher/menuc.gb
Did you ever get this to work on OSX @cdl?
Edit:
Actually I was able to get this to work on OSX if I use ems-flasher 0.02
from ems-flasher.
Hi,
I've fixed the issue you have experimented under Ubuntu. See PR #10 .
Please apply the commit in PR #10 and try this to test ems-flasher without installing it :
make clean-all # this will also remove the menu ROMs in the build dir
make menu-orig # reconstitute the menu ROMs from a precompiled one.
make ems-flasher-dev # the executable will expect the menu ROMs to be in the current dir.
And to install it under /usr/local if you want:
rm cmd.o # as the menu directory is hardcoded
make ems-flasher
make install # as root
I have yet to improve the Makefile and probably write a configuration script and documentation.
You shouldn't need to unplug and replug the cart after every action. I will investigate that.
Could you check if libusb_release_interface() is well called in ems_deinit() when the process exits?
ems_deinit() is registered with atexit().
Christophe.
from ems-flasher.
The OS X issue is caused by gawk running in the wrong locale, emitting mojibake.
diff --git a/updateheader.sh b/updateheader.sh
index 05f2535..aa96867 100755
--- a/updateheader.sh
+++ b/updateheader.sh
@@ -26,7 +26,7 @@ if [[ $? == 0 ]]; then
OD="god"
fi
-$OD -v -Ad -tu1 -w1 | $AWK -vcolor=$color -vsuper=$super '
+$OD -v -Ad -tu1 -w1 | LC_ALL=C $AWK -vcolor=$color -vsuper=$super '
BEGIN {
split( \
" 206 237 102 102 204 13 0 11 3 115 0 131 0 12 0 13" \
I'll file a PR tonight.
from ems-flasher.
For anyone else coming across this be sure to install the GNU coreutils for OSX as the flags are different.
brew install coreutils
After that worked a treat!
from ems-flasher.
Related Issues (15)
- _BSD_SOURCE deprecated in glibc >= 2.20 HOT 3
- Menu/game not loaded after transferring HOT 10
- Writing is always stuck on 0% HOT 5
- GBC ROM flashing leads to logo lockup(Nintend-) HOT 4
- Trailing whitespace causing installation issues
- GC version? HOT 1
- Multi-save manager HOT 1
- Outdated information in website
- Extract ROM bundled in MENU.GB HOT 2
- Unable to Compile, Linker Error?: collect2: error: ld returned 1 exit status HOT 5
- Cannot compile on Ubuntu 22.04 HOT 2
- Unable to compile on Ubuntu 15.04 HOT 3
- add udev rule to build system HOT 2
- Menu functionality appears to be undocumented for the user HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ems-flasher.