Git Product home page Git Product logo

Comments (20)

socram8888 avatar socram8888 commented on June 21, 2024 2

Try git submodule update --init --recursive inside the folder.

amiitool uses a static version of mbedtls which is included as a submodule.

from amiitool.

Bangaio64 avatar Bangaio64 commented on June 21, 2024

EDIT: nevermind, I'm a total linux noob and I didnt realize the make install command isn't necessary.

Thanks for the quick reply, but I still get the same error.

git clone https://github.com/socram8888/amiitool.git
cd amiitool
git submodule update --init --recursive
make && sudo make install

make: *** No rule to make target '/configs/mbedtls.h', needed by 'mbedtls'. Stop.

from amiitool.

socram8888 avatar socram8888 commented on June 21, 2024

Hm, it seems that your version of Make is not defining the $(PWD) variable which is used to pass mbedTLS the absolute path to the configuration header.

Can you tell me which OS are you using, and also the Make version (makefile --version)?

from amiitool.

socram8888 avatar socram8888 commented on June 21, 2024

As workaround, you should be able to compile it with:

git clone https://github.com/socram8888/amiitool.git
cd amiitool
git submodule update --init --recursive
make PWD=$(pwd) && sudo make install PWD=$(pwd)

from amiitool.

Bangaio64 avatar Bangaio64 commented on June 21, 2024

lubuntu 15.10 / GNU Make 4.2

And it worked now with that workaround. Thanks!

from amiitool.

0milkyway0 avatar 0milkyway0 commented on June 21, 2024

Hello,
I take this thread to avoid creating a similar one ...
I would like to know how to compile under Windows? I tried to compile (cmder) with gcc under windows 10 and I get errors:

λ gcc -o amiitool.exe amiitool.c

gcc -o amiitool.exe amiitool.c amiitool.c: 8: 26: fatal error: nfc3d / amiibo.h: No such file or directory #include <nfc3d / amiibo.h> ^ compilation terminated.
Yet the class amiibo.h is present in the file nfc3d / amiibo.h

I also tried this without success:
λ mingw32-make

echo "#define GIT_COMMIT_ID 0xgit rev-parse HEAD | head -c8" > /gitversion.h fatal: Not a git repository (or any of the parent directories): .git echo "#define GIT_COMMIT_COUNT git rev-list --count --all" >> /gitversion.h fatal: Not a git repository (or any of the parent directories): .git mingw32-make: *** No rule to make target '/configs/mbedtls.h', needed by 'mbedtls'. Stop.

Thanks a lot for your help !

from amiitool.

socram8888 avatar socram8888 commented on June 21, 2024

Mmm right now this isn't really useable as a library, since it's missing all the library compilation (ie compiling the library independently of the main executable)

If you're willing to change to Python, there's already a proper library written by a third party on PyPI (https://pypi.python.org/pypi/pyamiibo/)

For make to work, you'll need to clone the repository not download the zip, because it'll use the git command to automagically generate the version header.

from amiitool.

0milkyway0 avatar 0milkyway0 commented on June 21, 2024

I have already started coding a GUI in c.
So, would it really arrange me to be able to compile with your sources?
Could you tell me what to do and what is missing? I am only looking to create an interface capable of modifying the UID with that of the blank tag before writing.
Example:
https://games.kel.mn/en/companion-script-to-simplify-amiibo-cloning-with-arduino/

But under windows, and integrating it to a GUI

Thank you for listening!

from amiitool.

socram8888 avatar socram8888 commented on June 21, 2024
git clone https://github.com/socram8888/amiitool/
cd amiitool
mingw32-make gitversion.h

That should do the job.

from amiitool.

0milkyway0 avatar 0milkyway0 commented on June 21, 2024

not working:
λ mingw32-make gitversion.h echo "#define GIT_COMMIT_ID 0xgit rev-parse HEAD | head -c8" > /gitversion.h echo "#define GIT_COMMIT_COUNT git rev-list --count --all" >> /gitversion.h

compilation:
λ gcc -o amiitool.exe amiitool.c

amiitool.c:8:26: fatal error: nfc3d/amiibo.h: No such file or directory #include <nfc3d/amiibo.h> ^ compilation terminated.

from amiitool.

socram8888 avatar socram8888 commented on June 21, 2024

Seems to be missing yet again the "pwd" bit which is available somehow in my system.

Try PWD=$(pwd) mingw32-make gitversion.h

from amiitool.

socram8888 avatar socram8888 commented on June 21, 2024

As last resource, try creating a gitversion.h manually with:

#define GIT_COMMIT_ID 0xadda0295
#define GIT_COMMIT_COUNT 57

from amiitool.

socram8888 avatar socram8888 commented on June 21, 2024

Hmmm have you included nfc3d folder in the compilation path?

I am not sure which IDE are you using, if any, but usually you'd give a directive such as:
gcc -Iamiitool/nfc3d yourfile.c -o yourexec so it knows where the headers are.

Note that's a dash followed by capital i.

At any rate, as is this can't be really used as a shared or static library, due to missing all the library compilation.

from amiitool.

0milkyway0 avatar 0milkyway0 commented on June 21, 2024

Hi, thanks for your help, the changes you made in the MakeFile allowed me to go ahead;)
Thank you again for your work!

from amiitool.

papptallriik avatar papptallriik commented on June 21, 2024

Hello! I'm a total noob to compiling so therefore I have been searching the web for several days, but always comes to dead ends. Everything that should work just doesn't, so this is my last option, to write here.

I'm just trying to compile and make an executable file, so I can start decrypting/encrypting etc, but nothing works.

In Windows 7 I've tried Cygwin and Mingw. The best result is an executable file that won't run (gets an error 0x00000013-ish). I think it has something to do with 32/64-bit?

In Ubuntu 18.04, gcc 7.3.0 was already installed, but it quits with an error that it can't find the include-file <nfc3d/amiibo.h>... I doesn't matter where I put that file, gcc just can't find it...

When I go with all the tricks you have written in this thread, it also fails. Writing that "make && sudo make install", it ends with that "no rule..."-error and the "git submodule --init --recursive" doesn't help...

I have no experience with compiling c-scripts, so I really don't know how to solve this. Can you try to help me?

from amiitool.

socram8888 avatar socram8888 commented on June 21, 2024

I have just tried again under Ubuntu Bionic (18.04.2) and it's working fine for me.

All I did was:

git clone https://github.com/socram8888/amiitool/
cd amiitool
git submodule update --init --recursive
make

Could you paste the exact output for the failed compilation?

from amiitool.

papptallriik avatar papptallriik commented on June 21, 2024

I actually got it working on Ubuntu. Why it didn't work there was because of a 'space' in the folder name, so the compiler didn't find the files. Quite embarrassing...

But... I would really like to get it to compile on Windows, since I'm only emulating Ubuntu on VirtualBox, so it would help to get everything more smooth.

Right now I don't have any compiler installed under Windows 7, because they were all failing so I uninstalled them. Any recommendations of which to use? Cygwin? mingw? Something else...?

from amiitool.

socram8888 avatar socram8888 commented on June 21, 2024

I have successfully used MinGW64 under Ubuntu and Windows 10 WSL as explained above.

from amiitool.

Sam-Man16 avatar Sam-Man16 commented on June 21, 2024

I have successfully used MinGW64 under Ubuntu and Windows 10 WSL as explained above.

I have followed all your steps above and the only error I am receiving is this: make[1]: Entering directory 'C:/Users/REDACTED/amiitool/mbedtls'
make[1]: *** No rule to make target 'lib'. Stop.
make[1]: Leaving directory 'C:/Users/REDACTED/amiitool/mbedtls'
make: *** [Makefile:57: mbedtls] Error 2
I am running Windows 10 x86.

EDIT: I am now getting:
"C:/Program Files/Git/mingw64/bin/make.exe" lib -C C:/Users/REDACTED/amiitool/mbedtls CFLAGS="-DMBEDTLS_CONFIG_FILE='"C:/Users/REDACTED/amiitool/configs/mbedtls.h"' -Wall -pedantic -O2 -fsigned-char"
make[1]: Entering directory 'C:/Users/REDACTED/amiitool/mbedtls'
make[2]: Entering directory 'C:/Users/REDACTED/amiitool/mbedtls/library'
CC aes.c
process_begin: CreateProcess(NULL, cc -Wall -W -Wdeclaration-after-statement -I../include -D_FILE_OFFSET_BITS=64 -DMBEDTLS_CONFIG_FILE="C:/Users/REDACTED/amiitool/configs/mbedtls.h" -Wall -pedantic -O2 -fsigned-char -c aes.c, ...) failed.
make (e=2): The system cannot find the file specified.
make[2]: *** [Makefile:162: aes.o] Error 2
make[2]: Leaving directory 'C:/Users/REDACTED/amiitool/mbedtls/library'
make[1]: *** [Makefile:18: lib] Error 2
make[1]: Leaving directory 'C:/Users/REDACTED/amiitool/mbedtls'
make: *** [Makefile:57: mbedtls] Error 2

from amiitool.

socram8888 avatar socram8888 commented on June 21, 2024

According to the "CreateProcess" line, it looks like problem is that your system is missing the cc.exe compiler.

from amiitool.

Related Issues (9)

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.