darlinghq / darling-corecrypto

CoreCrypto reimplementation under GPL-3
http://www.darlinghq.org
GNU General Public License v3.0
23 stars 9 forks source link

I have an issue #11

Open hammyexe opened 2 years ago

hammyexe commented 2 years ago

I am having an issue when I make, I get this exact error "home/root/darling-corecrypto/tests/main.c:8:10: fatal error: ctest.h: No such file or directory 8 | #include | ^~~~~ compilation terminated. make[2]: [tests/CMakeFiles/test_corecrypto.dir/build.make:63: tests/CMakeFiles/test_corecrypto.dir/main.o] Error 1 make[1]: [CMakeFiles/Makefile2:125: tests/CMakeFiles/test_corecrypto.dir/all] Error 2 make: *** [Makefile:84: all] Error 2"

LubosD commented 2 years ago

What are you trying to accomplish? This package is part of Darling, we don't really intend for it to be used standalone.

hammyexe commented 2 years ago

What are you trying to accomplish? This package is part of Darling, we don't really intend for it to be used standalone.

Im trying to download the corecrypto library, but I cant find any other github or download for it, so I thought this was it.

fgj54jrt commented 2 years ago

*** No rule to make target 'install'. Stop.who can help me?

LubosD commented 2 years ago

*** No rule to make target 'install'. Stop.who can help me?

What are you trying to do?

ghost commented 2 years ago

1) I can reproduce this exact error:

/root/darling-corecrypto/tests/main.c:8:10: fatal error: ctest.h: No such file or directory
    8 | #include <ctest.h>
      |          ^~~~~~~~~
compilation terminated.
make[2]: *** [tests/CMakeFiles/test_corecrypto.dir/build.make:76: tests/CMakeFiles/test_corecrypto.dir/main.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:128: tests/CMakeFiles/test_corecrypto.dir/all] Error 2
make: *** [Makefile:91: all] Error 2

The makefile line numbers are different. 2) I am currently attempting to compile https://github.com/NyaMisty/AltServer-Linux, and Apple's license on corecrypto is extremely restrictive, so I'm trying to find a reimplementation somewhere. This was the first Google result.

facekapow commented 2 years ago

@notkirito How did you try to build the library? test_corecrypto should only be built if ENABLE_TESTS is defined when configuring with CMake. It shouldn't try to build it without that flag. If that's the case, I'll look into it.

Anyways, this repo contains a submodule (for ctest), so the proper way to clone it is with the --recursive flag for clone. If you want to fix an existing clone, use git submodule update --init --recursive.

ghost commented 2 years ago

Thanks for the fast reply! I should have rm -rf'd the build directory before reconfiguring. I will reclone the repo and see if that fixes it. Again, thanks a lot!

ghost commented 2 years ago

Now, it compiles, but I get a make: *** No rule to make target 'install'. Stop. when attempting to make install. Could I just cp -r /path/to/darling-corecrypto/include/corecrypto /usr/include/corecrypto?

ghost commented 2 years ago

Update: I gave up compiling it and decided to take the precompiled slightly older version, if anybody else finds this issue intending to use this for AltServer-Linux, go to https://github.com/NyaMisty/AltServer-Linux/releases and scroll down to the first x86_64 non-UPnP binary you can find, get your udid with libimobiledevice's idevice_id and run ./AltServer -u your_udid -a your_appleid_email -p your_appspecific_password /path/to/ipa. Good luck.

(sorry for offtopic)

facekapow commented 2 years ago

Now, it compiles, but I get a make: *** No rule to make target 'install'. Stop. when attempting to make install. Could I just cp -r /path/to/darling-corecrypto/include/corecrypto /usr/include/corecrypto?

@notkirito There's currently not any install commands in the CMakeLists.txt for the non-Apple/Darling build, so CMake doesn't know what files to install. Installing it manually should work; I (or someone else, even yourself) can add the install commands to the CMakeLists.txt later.

ghost commented 2 years ago

I tried, and I got some cryptic type errors from the compiler (already deleted my build docker, will make a new one once I have time). I already kind of gave up on compiling AltServer-Linux with darling-corecrypto, but I’m willing to help debugging this.

Thanks though!

Le 15 janv. 2022 à 19:21, Ariel Abreu @.***> a écrit :

 Now, it compiles, but I get a make: *** No rule to make target 'install'. Stop. when attempting to make install. Could I just cp -r /path/to/darling-corecrypto/include/corecrypto /usr/include/corecrypto?

@notkirito There's currently not any install commands in the CMakeLists.txt for the non-Apple/Darling build, so CMake doesn't know what files to install. Installing it manually should work; I (or someone else) can add the install commands to the CMakeLists.txt later.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.