gabrieloc / GIOVANNI

A Gameboy Emulator for the Apple Watch
MIT License
946 stars 76 forks source link

Compilation Error #5

Open JamesCookies opened 7 years ago

JamesCookies commented 7 years ago

I just tried to compile to project and here's the issues I'm getting :

clang: error: no such file or directory: '/Users/Manil/Downloads/GIOVANNI-master/gambatte/libgambatte/src/statesaver.cpp' clang: error: no input files

clang: error: no such file or directory: '/Users/Manil/Downloads/GIOVANNI-master/gambatte/common/videolink/vfilters/maxsthq3x.cpp' clang: error: no input files

clang: error: no such file or directory: '/Users/Manil/Downloads/GIOVANNI-master/gambatte/libgambatte/src/sound/channel3.cpp' clang: error: no input files

clang: error: no such file or directory: '/Users/Manil/Downloads/GIOVANNI-master/gambatte/libgambatte/src/interrupter.cpp' clang: error: no input files

Is there any way to fix it ? I'd like to help the developing btw ;)

gabrieloc commented 7 years ago

It sounds like those files don't exist on disk. Did you clone submodules?

AndreasJJ commented 7 years ago

I got the same error when I tried to download it the first time. You probably downloaded it as a zip, or forgot the "--recursive" in "git clone --recursive git@github.com:gabrieloc/GIOVANNI.git" thus didn't download the submodules :)

AceXintense commented 7 years ago

Cloning into 'GIOVANNI'... Permission denied (publickey). fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists.

AceXintense commented 7 years ago

This does not allow me to clone it in this way :( I cannot fetch the submodules is there a ssh key I need to get this data?

61Halim commented 7 years ago

i become error with signing

Change your bundle identifier to unique string to try again. Can somebody help me?

Jose2595 commented 7 years ago

I have the same errors as "61Halim". Please help us. Thanks

JamesCookies commented 7 years ago

capture d ecran 2017-03-22 a 13 40 06 capture d ecran 2017-03-22 a 13 40 16 capture d ecran 2017-03-22 a 13 40 13

See ? Even if I add Gambatte manually, it just won't compile even if every thing is set up to. That's just too weird :'(

gabrieloc commented 7 years ago

@JamesCookies Are all the files red in Xcode? How are you adding Gambatte manually?

AceXintense commented 7 years ago

@gabrieloc How come I do not have permission to git clone --recursively with the use of my public key?

gabrieloc commented 7 years ago

Have you added your ssh key to github? If that doesn't answer your question, please create a separate issue as to not clutter this one.

Jose2595 commented 7 years ago

Please @gabrieloc help me with my problem. It's the same that @61Halim. Thanks

gabrieloc commented 7 years ago

@Jose2595 @61Halim Are you able to build after following this tutorial? If not, what issues are you having specifically?

Jose2595 commented 7 years ago

@gabrieloc When I do the whole process and I clone the file and connect the iPhone, I get these three errors:

gabrieloc commented 7 years ago

Try changing the bundle ID for all three targets (iOS, watchOS, watchOS extension) to something unique.

Jose2595 commented 7 years ago

@gabrieloc Okey! And the problem with:

jdleo commented 7 years ago

@Jose2595 you need to codesign all the extensions and the main project in xcode. xcode handles this automatically for you. click on the parent project folders, go to "general" and scroll down to "Signing" (should be the second thing), you'll see "team", "provisioning profile", and "signing certificate". from "team" menu, select your personal or agent team or whatever you have, and xcode will automatically codesign it for ya

Jose2595 commented 7 years ago

@jdleo Okey! Thank you.

jdleo commented 7 years ago

@Jose2595 no problem :+1: see, the trick here is to keep building, and keep working through the errors. with provisioning errors, it generally tells you the exact folder that you have to codesign. So just go find that parent folder, and rinse and repeat the solution I told you :) Just keep selecting YOUR profile as the team and they will codesign it

gabrieloc commented 7 years ago

Is this issue resolved?

JamesCookies commented 7 years ago

@gabrieloc because Gambatte isn't in the project (that's maybe a huge part of the issue) I've downloaded it separately and added it manually in the XcodeProj, so basically everything appears to be there, all the files are present but whenever I compile the project, it shows the errors I showed you up :/

gabrieloc commented 7 years ago

@jamescookies can you confirm you cloned submodules

KnightArtorias commented 7 years ago

@JamesCookies You need to generate a ssh key and link it to your github account in order to properly clone into this project. Github provides documentation on this process: https://help.github.com/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent/

After adding the key try cloning again. If done correctly, it should ask you for the passphrase you used during the generation of the key.

Once it has cloned, launch the new .xcodeproj file and sign all of the targets (including the watchkit extension), plug in a device that's paired with your watch, and have fun! Hope this helps.

Tonybest11 commented 7 years ago

I have this issues schermata 2017-03-26 alle 20 16 51 schermata 2017-03-26 alle 20 16 32 how can i fix it?

KnightArtorias commented 7 years ago

@Tonybest11 This project contains several different targets that require signing. You've only signed the iOS application, but the watch app and the WatchKit extension need signed as well.

To do so, select the project file and go to the general tab. In the top left of that window is giovanni_iOS followed by an up and down arrow. Select that to switch between the targets in the project and sign them the same way you signed the iOS target (which it appears you've done correctly).

If you have any further issues let me know. Cheers!

Tonybest11 commented 7 years ago

Thank you!!

CCF100 commented 6 years ago

I had to change the bundle identifier on several things, as well as a "WKCompanionAppBundleIdentifier" before it would compile (tl;dr you have to sign it yourself)

PascalPixel commented 5 years ago

Aside from what @CCF100 said, I also had to update NSExtension > NSExtensionAttributes > WKAppBundleIdentifier in the WatchKit Extension's Info.plist