Giter Site home page Giter Site logo

hakchi's People

Contributors

clusterm avatar dantheman827 avatar ghoost82 avatar madmonkey1907 avatar mattieb avatar mistydemeo avatar potyl avatar thomas-alrek avatar thomascrha avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hakchi's Issues

'error.h' file not found on macOS

Project won't build on my Mac (High Sierra 10.13.4)

hakchi/sntool on  master [!] took 5s
⇣7% ➜ make clean all
clean
crc32.o
clang: warning: -Wl,--gc-sections: 'linker' input unused [-Wunused-command-line-argument]
clang: warning: -Wl,--as-needed: 'linker' input unused [-Wunused-command-line-argument]
clang: warning: optimization flag '-fwhole-program' is not supported [-Wignored-optimization-argument]
clang: warning: optimization flag '-fuse-linker-plugin' is not supported [-Wignored-optimization-argument]
clang: warning: optimization flag '-falign-functions=1' is not supported [-Wignored-optimization-argument]
clang: warning: optimization flag '-falign-jumps=1' is not supported [-Wignored-optimization-argument]
clang: warning: optimization flag '-falign-loops=1' is not supported [-Wignored-optimization-argument]
sntool.o
clang: warning: -Wl,--gc-sections: 'linker' input unused [-Wunused-command-line-argument]
clang: warning: -Wl,--as-needed: 'linker' input unused [-Wunused-command-line-argument]
clang: warning: optimization flag '-fwhole-program' is not supported [-Wignored-optimization-argument]
clang: warning: optimization flag '-fuse-linker-plugin' is not supported [-Wignored-optimization-argument]
clang: warning: optimization flag '-falign-functions=1' is not supported [-Wignored-optimization-argument]
clang: warning: optimization flag '-falign-jumps=1' is not supported [-Wignored-optimization-argument]
clang: warning: optimization flag '-falign-loops=1' is not supported [-Wignored-optimization-argument]
sntool.cpp:11:10: fatal error: 'error.h' file not found
#include <error.h>
         ^~~~~~~~~
1 error generated.
make: *** [sntool.o] Error 1

hakchi/sntool on  master [!?] took 20s
⇣7% ➜

I've removed the flto flag as it was preventing compilation. Any idea ?

fel_lib.c:26:10: fatal error: 'libusb.h' file not found

I'm running this on Big Sur and after trying to use the "Make" command, I got this error:
cc -std=c99 -Wall -Wextra -Wno-unused-result -D_POSIX_C_SOURCE=200112L -D_BSD_SOURCE -D_DEFAULT_SOURCE -Iinclude/ `pkg-config --cflags libusb-1.0` `pkg-config --cflags zlib` -o sunxi-fel \ fel.c progress.c soc_info.c fel_lib.c `pkg-config --libs libusb-1.0` `pkg-config --libs zlib` /bin/sh: pkg-config: command not found /bin/sh: pkg-config: command not found /bin/sh: pkg-config: command not found /bin/sh: pkg-config: command not found fel_lib.c:26:10: fatal error: 'libusb.h' file not found #include <libusb.h> ^~~~~~~~~~ 1 error generated. make[1]: *** [sunxi-fel] Error 1 make: *** [3rdparty/sunxi-tools/sunxi-fel] Error 2
Does anyone know a fix?
Thanks in advance!

Cannot compile fel_lib.c

On macOS 10.12.2, running make halts after an error while trying to compile fel_lib.c after it was patched:

clang -c -pipe -mmacosx-version-min=10.7 -I/usr/local/Cellar/libusb/1.0.20/include/libusb-1.0 -std=gnu99 -DNDEBUG -Wall -Wextra -Wno-error -O2 -arch x86_64 -Wall -W -DQT_NO_DEBUG -DQT_PLUGIN -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Cellar/qt/4.8.7_2/mkspecs/unsupported/macx-clang-libc++ -I../hakchi-gui -I/usr/local/Cellar/qt/4.8.7_2/lib/QtCore.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.7_2/lib/QtCore.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.7_2/lib/QtGui.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.7_2/lib/QtGui.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.7_2/include -I../3rdparty/sunxi-tools -I../3rdparty/sunxi-tools/include -I../3rdparty/mkbootimg -I. -I. -I../hakchi-gui -I. -F/usr/local/Cellar/qt/4.8.7_2/lib -o fel_lib.o ../3rdparty/sunxi-tools/fel_lib.c
../3rdparty/sunxi-tools/fel_lib.c:65:3: error: void function 'no_usb_error' should not return a value [-Wreturn-type]
                exit(exitcode);
                ^~~~~~~~~~~~~~
../3rdparty/sunxi-tools/fel_lib.c:49:29: note: expanded from macro 'exit'
#define exit(x) {no_exit(x);return 0;}
                            ^      ~
../3rdparty/sunxi-tools/fel_lib.c:98:4: error: void function 'usb_bulk_send' should not return a value [-Wreturn-type]
                        usb_error(rc, "usb_bulk_send()", 2);
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../3rdparty/sunxi-tools/fel_lib.c:67:55: note: expanded from macro 'usb_error'
#define usb_error(x,y,z) {no_usb_error(x,y,z);if(z!=0)return 0;}
                                                      ^      ~
../3rdparty/sunxi-tools/fel_lib.c:114:4: error: void function 'usb_bulk_recv' should not return a value [-Wreturn-type]
                        usb_error(rc, "usb_bulk_recv()", 2);
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../3rdparty/sunxi-tools/fel_lib.c:67:55: note: expanded from macro 'usb_error'
#define usb_error(x,y,z) {no_usb_error(x,y,z);if(z!=0)return 0;}
                                                      ^      ~
../3rdparty/sunxi-tools/fel_lib.c:499:3: error: void function 'feldev_claim' should not return a value [-Wreturn-type]
                usb_error(rc, "libusb_claim_interface()", 1);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../3rdparty/sunxi-tools/fel_lib.c:67:55: note: expanded from macro 'usb_error'
#define usb_error(x,y,z) {no_usb_error(x,y,z);if(z!=0)return 0;}
                                                      ^      ~
../3rdparty/sunxi-tools/fel_lib.c:503:3: error: void function 'feldev_claim' should not return a value [-Wreturn-type]
                usb_error(rc, "FAILED to get FEL mode endpoint addresses!", 1);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../3rdparty/sunxi-tools/fel_lib.c:67:55: note: expanded from macro 'usb_error'
#define usb_error(x,y,z) {no_usb_error(x,y,z);if(z!=0)return 0;}
                                                      ^      ~
../3rdparty/sunxi-tools/fel_lib.c:615:3: error: void function 'feldev_init' should not return a value [-Wreturn-type]
                usb_error(rc, "libusb_init()", 1);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../3rdparty/sunxi-tools/fel_lib.c:67:55: note: expanded from macro 'usb_error'
#define usb_error(x,y,z) {no_usb_error(x,y,z);if(z!=0)return 0;}
                                                      ^      ~
6 errors generated.
make[1]: *** [fel_lib.o] Error 1
make: *** [build/hakchi-gui] Error 2

Discord Link that works

I have went onto the all of the mini nes and snes reddits asking for help with mixed responses from people. Some helped and some did not.

Every single discord I went to the invite does not work and the only one that does is a NES modding discord that has 2 people online.

Id like on your main website to just have a link for invites at anytime as a discord link that NEVER expires.

This process is really annoying for someone who does not know what they are doing.

I have tried to install this 30 times and I am still having errors.
My new error I have is I reinstall uninstall everything and my old configuration is coming up which glitches with the new games I have added. I do not understand what is wrong or what i need to do to fix it.

compile errors in ubuntu 19.04

make[1]: Entering directory '/home/user/hakchi/sntool'
crc32.o
gcc: error: unrecognized command line option ‘-mthumb’; did you mean ‘-mtbm’?
gcc: error: unrecognized command line option ‘-mfpu=neon-vfpv4’
gcc: error: unrecognized command line option ‘-mfloat-abi=hard’
make[1]: *** [Makefile:46: crc32.o] Error 1
make[1]: Leaving directory '/home/user/hakchi/sntool'
make: *** [Makefile:90: bin/sntool] Error 2

What resources is required?

Which of the resources does the application expect to have available when running?

Like the bin folder, 3rdparty folder etc?

clovershell-client for linux

Hi,

I'd like to ask if anyone, maybe you @madmonkey1907 :), is willing to port the clovershell-client. I actually don't completely understand the situation, so I don't really get how generally people using "hakchi" put files on the NES/SNES, since in FEL mode you don't have access to the filesystems. What I do understand is, that hakchi2 is using a daemon "clovershell-daemon" on the NES/SNES side and the client on the windows (.NET 3.5) side. The problem is, that not only hakchi2 itself is using in mono unimplemented functions, so that mono+hachi2 is not working (Does not work in wine), but also the simple clovershell-client does not work on linux mono.

I have tried to debug this today. There is one issue for mono unfixed: Fixed object disposed exception in mono. But updating this, does not fix the problem. The first USB-write is working (I see the request in usbmon in a tcpdump), but then everything hangs, also read does not go through.

I am a bit stuck now. It would be nice to have shell/filetransfer to NES/SNES from a linux system.

Best

Tim

nesromtool

To prepare the roms you have to use the nesromtool but I could not find the original sources for them.
Do you know where this program originally came from?

Compile errors in pop!_OS 20.04

I was trying to run make to build in Pop!_OS 20.04, and I received the following error message:

make[1]: Entering directory '/home/luisrivera/Downloads/hakchi/3rdparty/mkbootimg'
gcc -o mkbootimg.o -ffunction-sections -O3 -c mkbootimg.c -I. -Werror
mkbootimg.c: In function ‘main’:
mkbootimg.c:381:40: error: taking address of packed member of ‘struct boot_img_hdr’ may result in an unaligned pointer value [-Werror=address-of-packed-member]
381 | kernel_data = load_file(kernel_fn, &hdr.kernel_size);
| ^~~~~~~~~~~~~~~~
mkbootimg.c:391:46: error: taking address of packed member of ‘struct boot_img_hdr’ may result in an unaligned pointer value [-Werror=address-of-packed-member]
391 | ramdisk_data = load_file(ramdisk_fn, &hdr.ramdisk_size);
| ^~~~~~~~~~~~~~~~~
mkbootimg.c:399:44: error: taking address of packed member of ‘struct boot_img_hdr’ may result in an unaligned pointer value [-Werror=address-of-packed-member]
399 | second_data = load_file(second_fn, &hdr.second_size);
| ^~~~~~~~~~~~~~~~
mkbootimg.c:407:36: error: taking address of packed member of ‘struct boot_img_hdr’ may result in an unaligned pointer value [-Werror=address-of-packed-member]
407 | dt_data = load_file(dt_fn, &hdr.dt_size);
| ^~~~~~~~~~~~
cc1: all warnings being treated as errors
make[1]: *** [Makefile:35: mkbootimg.o] Error 1
make[1]: Leaving directory '/home/luisrivera/Downloads/hakchi/3rdparty/mkbootimg'
make: *** [Makefile:43: 3rdparty/mkbootimg/mkbootimg] Error 2

fake_git application?

Hope this is not too dump question but what is a fake_git tool? It is used in uboot diff sources replacing a real git command.

Build error on macOS - error: taking address of packed member of class or structure may result in an unaligned pointer

When I try to build on macOS I get the following errors:

gcc -o mkbootimg.o -ffunction-sections -O3 -c mkbootimg.c -I. -Werror
mkbootimg.c:284:41: error: taking address of packed member 'kernel_size' of class or structure 'boot_img_hdr' may result in an unaligned pointer
      value [-Werror,-Waddress-of-packed-member]
    kernel_data = load_file(kernel_fn, &hdr.kernel_size);
                                        ^~~~~~~~~~~~~~~
mkbootimg.c:294:47: error: taking address of packed member 'ramdisk_size' of class or structure 'boot_img_hdr' may result in an unaligned pointer
      value [-Werror,-Waddress-of-packed-member]
        ramdisk_data = load_file(ramdisk_fn, &hdr.ramdisk_size);
                                              ^~~~~~~~~~~~~~~~
mkbootimg.c:302:45: error: taking address of packed member 'second_size' of class or structure 'boot_img_hdr' may result in an unaligned pointer
      value [-Werror,-Waddress-of-packed-member]
        second_data = load_file(second_fn, &hdr.second_size);
                                            ^~~~~~~~~~~~~~~
mkbootimg.c:310:37: error: taking address of packed member 'dt_size' of class or structure 'boot_img_hdr' may result in an unaligned pointer value
      [-Werror,-Waddress-of-packed-member]
        dt_data = load_file(dt_fn, &hdr.dt_size);
                                    ^~~~~~~~~~~
4 errors generated.
make[1]: *** [mkbootimg.o] Error 1
make: *** [3rdparty/mkbootimg/mkbootimg] Error 2

Any tips? Thanks.

Mod without flashing

Можно все модификации производить в data разделе, тогда при сбросе на заводские настройки консоль придет в начальное состояние.
Запуск кода с data раздела без модификации roots:
Основано на том что скрипт /usr/sbin/clover-ui запускает приложение из /var/lib/clover/ui если оно там есть.

  1. монтируем rootfs и data раздел
  2. копируем ui в /var/lib/clover/ui
uiroot=/newroot/var/lib/clover/ui 
config="/newroot/etc/clover/ui"
GUI=$(cat "$config")
cp -R "/newroot/usr/share/ui/$GUI" "$uiroot" 
  1. копируем полезную нагрузку в дата раздел, к примеру будет скрипт /newroot/var/lib/sbin/start
  2. модифицируем main.lua в ui
cp "$uiroot/resources/scripts/main.lua" "$uiroot/resources/scripts/main.orig.lua"
echo "os.execute('/var/lib/sbin/start')" > "$uiroot/resources/scripts/main.lua"
echo "dofile('/var/lib/clover/ui/resources/scripts/main.orig.lua')" >> "$uiroot/resources/scripts/main.lua"

Основано на изучении SNES mini 2017 года.

Linux version?

Hello, I would like to use this program on my computer but I do not own a copy of microsoft windows. Compiling the program under linux seems to not work like supposed. Is there a fork/branch that runs well under linux?

Edit:
I am aware that it has support for ubuntu 16 but im on debian buster and it does not compile.

Documentation on how to use hakshi?

Hello,
I'd like to use hakshi on a linux PC (debian), using hakshi2 in a VM, like usually recommended is out of option since I don't have windows at all.

Is there some documentation / step by step guide on how to use hakshi?
I managed to compile it, copied the fes1.bin and uboot.bin files from a win 32 release in data and now I'm dumping uboot, the kernel and the nand.
Seem to work well even if I have some usb_bulk_recv() ERROR -7: Operation timed out messages (is it normal?).

But after that, what should I do?
Thank you.

Transifex language translation crowdsourcing services

Suggest that you setup a new project for Hakchi (and NES/Famicom Mini) on Transifex translation services to get crowdsourced translations from your community.

https://en.wikipedia.org/wiki/Transifex

Many popular open source software projects use Transifex workflows to get free string language translations from their communities.

Example of an open source project using Transifex for many years is Kodi as you can read here:
https://kodi.tv/new-translation-service/
and here:
http://kodi.wiki/view/Translation_System

For end-users wanting to help out with the project using Transifex to translate strings is as easy as using a wiki.

Users just need to register an account for free on Transifex then join the project for the languages they know and begin to translate strings they understand.

All you need to do is point to files on GitHub you want translating and then copy/pull them from Transifex on a regular bases (usually before each release).

Compiling under GNU/Linux

How did you handle compiling 3rd party dependencies? I get a "No rule to make target '3rdparty/sunxi-tools/fel.c'" from make under Arch.

Or is it for naught-- what did you write the UI in?

Awesome work on this btw :)

Build error on Fedora 27

Hi, I'd like to offer help and request help for building on this popular linux distro.
Packages I have installed so far: cpio lzop wget qt-devel upx qt3-devel redhat-rpm-config libusbx-devel

I have a libusb.h error, which may be just an include path problem

gcc -c -pipe -std=gnu99 -DNDEBUG -Wall -Wextra -Wno-return-type -Wall -W -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -fno-strict-aliasing -DQT_NO_DEBUG -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_THREAD_SUPPORT -I/usr/lib64/qt-3.3/mkspecs/default -I../hakchi-gui -I../3rdparty/sunxi-tools -I../3rdparty/sunxi-tools/include -I../3rdparty/mkbootimg -I/usr/lib64/qt-3.3/include -Isrc -I../hakchi-gui/src/ -I. -o fel_lib.o ../3rdparty/sunxi-tools/fel_lib.c
../3rdparty/sunxi-tools/fel_lib.c:26:10: fatal error: libusb.h: No such file or directory
#include <libusb.h>
^~~~~~~~~~
compilation terminated.
make[1]: *** [Makefile:159: fel_lib.o] Error 1
make[1]: Leaving directory '/home/jarrod/git/hakchi/build'
make: *** [Makefile:48: build/hakchi-gui] Error 2

libusbx provides /usr/include/libusb-1.0/libusb.h
I symlinked that into one of the include directories and got a little further, now I'm stuck with

gcc -c -pipe -std=gnu99 -DNDEBUG -Wall -Wextra -Wno-return-type -Wall -W -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -fno-strict-aliasing -DQT_NO_DEBUG -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_THREAD_SUPPORT -I/usr/lib64/qt-3.3/mkspecs/default -I../hakchi-gui -I../3rdparty/sunxi-tools -I../3rdparty/sunxi-tools/include -I../3rdparty/mkbootimg -I/usr/lib64/qt-3.3/include -Isrc -I../hakchi-gui/src/ -I. -o soc_info.o ../3rdparty/sunxi-tools/soc_info.c
gcc -c -pipe -std=gnu99 -DNDEBUG -Wall -Wextra -Wno-return-type -Wall -W -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -fno-strict-aliasing -DQT_NO_DEBUG -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_THREAD_SUPPORT -I/usr/lib64/qt-3.3/mkspecs/default -I../hakchi-gui -I../3rdparty/sunxi-tools -I../3rdparty/sunxi-tools/include -I../3rdparty/mkbootimg -I/usr/lib64/qt-3.3/include -Isrc -I../hakchi-gui/src/ -I. -o progress.o ../3rdparty/sunxi-tools/progress.c
g++ -c -pipe -std=gnu++11 -Wall -Wextra -Wall -W -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -fno-strict-aliasing -DQT_NO_DEBUG -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_THREAD_SUPPORT -I/usr/lib64/qt-3.3/mkspecs/default -I../hakchi-gui -I../3rdparty/sunxi-tools -I../3rdparty/sunxi-tools/include -I../3rdparty/mkbootimg -I/usr/lib64/qt-3.3/include -Isrc -I../hakchi-gui/src/ -I. -o fel.o ../hakchi-gui/src/fel.cpp
In file included from ../hakchi-gui/src/fel.cpp:1:0:
../hakchi-gui/src/fel.h:6:10: fatal error: QObject: No such file or directory
#include
^~~~~~~~~
compilation terminated.
make[1]: *** [Makefile:172: fel.o] Error 1
make[1]: Leaving directory '/home/jarrod/git/hakchi/build'
make: *** [Makefile:48: build/hakchi-gui] Error 2

This has something to do with qtmake commands, amongst other packages I could have installed were
mingw32-qt.noarch : Qt for Windows
mingw64-qt.noarch : Qt for Windows
but I really don't know what to do from here.

Can't compile on macOS: make: *** No rule to make target `3rdparty/macdylibbundler/*', needed by `build/macdylibbundler'. Stop.

The macOS build is now broken. The instructions in the README are not valid and make returns:

Setting version information: v1.4.2-30-g1e219c0

clang -std=c99 -Wall -Wextra -Wno-unused-result -D_POSIX_C_SOURCE=200112L -D_BSD_SOURCE -D_DEFAULT_SOURCE -Iinclude/  `pkg-config --cflags libusb-1.0`  -o sunxi-fel fel.c progress.c soc_info.c fel_lib.c  `pkg-config --libs libusb-1.0`
make -C libmincrypt
gcc -o dsa_sig.o -ffunction-sections -O3 -c dsa_sig.c -I..
gcc -o p256.o -ffunction-sections -O3 -c p256.c -I..
gcc -o p256_ec.o -ffunction-sections -O3 -c p256_ec.c -I..
gcc -o p256_ecdsa.o -ffunction-sections -O3 -c p256_ecdsa.c -I..
gcc -o rsa.o -ffunction-sections -O3 -c rsa.c -I..
gcc -o sha.o -ffunction-sections -O3 -c sha.c -I..
gcc -o sha256.o -ffunction-sections -O3 -c sha256.c -I..
ar rc libmincrypt.a dsa_sig.o p256.o p256_ec.o p256_ecdsa.o rsa.o sha.o sha256.o
cp libmincrypt.a ..
gcc -o mkbootimg.o -ffunction-sections -O3 -c mkbootimg.c -I. -Werror
gcc -o mkbootimg mkbootimg.o -L. -lmincrypt -Wl,-dead_strip -s
ld: warning: option -s is obsolete and being ignored
gcc -o unpackbootimg.o -ffunction-sections -O3 -c unpackbootimg.c -Werror
gcc -o unpackbootimg unpackbootimg.o -Wl,-dead_strip -s
ld: warning: option -s is obsolete and being ignored
Info: creating stash file /Users/erodriguez/Projects/hakchi/build/.qmake.stash
make: *** No rule to make target `3rdparty/macdylibbundler/*', needed by `build/macdylibbundler'.  Stop.

crc32 missing when compiling on Ubuntu 16.04

~/svn/hakchi {master}$ make
...
make[1]: Entering directory '/home/giampaolo/svn/hakchi/build'
make[1]: Nothing to be done for 'first'.
make[1]: Leaving directory '/home/giampaolo/svn/hakchi/build'
sntool/sntool.cpp: In function ‘int checksum(const char*, int)’:
sntool/sntool.cpp:21:67: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 4 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
 #define info_printf(...) (disableInfo?0:fprintf(stdout,__VA_ARGS__))
                                                                   ^
sntool/sntool.cpp:134:9: note: in expansion of macro ‘info_printf’
         info_printf("input: %s, fs: %.8x\n",in,fs);
         ^
sntool/sntool.cpp: In function ‘int hsqs(const char*)’:
sntool/sntool.cpp:21:67: warning: format ‘%zu’ expects argument of type ‘size_t’, but argument 3 has type ‘uint32_t {aka unsigned int}’ [-Wformat=]
 #define info_printf(...) (disableInfo?0:fprintf(stdout,__VA_ARGS__))
                                                                   ^
sntool/sntool.cpp:267:17: note: in expansion of macro ‘info_printf’
                 info_printf("output fs: %zu\n",fs1);
                 ^
/tmp/ccvs0a6o.o: In function `sunxi_flash_ioctl(unsigned int, unsigned int, unsigned int, _IO_FILE*)':
sntool.cpp:(.text+0x10cf): undefined reference to `crc32'
sntool.cpp:(.text+0x1164): undefined reference to `crc32'
collect2: error: ld returned 1 exit status
Makefile:62: recipe for target 'bin/sntool' failed
make: *** [bin/sntool] Error 1

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.