target-level dependencies to non-existent target

binkinator

Garfield’s Fitness Coach
OP
Member
GBAtemp Patron
Joined
Mar 29, 2021
Messages
6,511
Trophies
2
XP
6,155
Country
United States
I was getting something like this while trying to use the VitaSDK to compile homebrew:

CMake Error at CMakeLists.txt:93 (add_dependencies):
Cannot add target-level dependencies to non-existent target "reVita.skprx".

The add_dependencies works for top-level logical targets created by the
add_executable, add_library, or add_custom_target commands. If you want to
add file-level dependencies see the DEPENDS option of the add_custom_target
and add_custom_command commands.

I found a discussion about it on the HENkaku discord where someone suggested simply removing the offending add_dependencies line mentioned in the error.

I did just that and...it worked!

Not sure if this is the right way to do it but I'm finally able to compile things cleanly so there's that.

If anyone has a better suggestion please let me know!
 

godreborn

Welcome to the Machine
Member
Joined
Oct 10, 2009
Messages
38,471
Trophies
3
XP
29,180
Country
United States
I just tried to build this (had success with taihen.skprx), but this is what happens:

godreborn@GODREBORN-LAPTOP:~/ds34vita/build$ cd ../..
godreborn@GODREBORN-LAPTOP:~$ cd reVita/build
godreborn@GODREBORN-LAPTOP:~/reVita/build$ make install
[ 80%] Built target reVita
[ 82%] Building stubs stubs
[ 84%] Built target stubs
[ 84%] Built target libreVita_stub_weak.a
[ 84%] Built target libreVita_stub.a
[ 88%] Built target reVita.skprx
[ 91%] Linking C executable reVitaMotion
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.3.0/../../../../arm-vita-eabi/bin/ld: cannot find -lreVita_stub
collect2: error: ld returned 1 exit status
make[2]: *** [reVitaMotion/CMakeFiles/reVitaMotion.dir/build.make:118: reVitaMotion/reVitaMotion] Error 1
make[1]: *** [CMakeFiles/Makefile2:306: reVitaMotion/CMakeFiles/reVitaMotion.dir/all] Error 2
make: *** [Makefile:149: all] Error 2
 

godreborn

Welcome to the Machine
Member
Joined
Oct 10, 2009
Messages
38,471
Trophies
3
XP
29,180
Country
United States
nm, I was doing it wrong. the error you mentioned didn't happen to me:

1657514943171.png
 
  • Love
Reactions: binkinator

binkinator

Garfield’s Fitness Coach
OP
Member
GBAtemp Patron
Joined
Mar 29, 2021
Messages
6,511
Trophies
2
XP
6,155
Country
United States
it would not compile until I updated vitasdk. maybe that will work for you?
I have what I believe to be the latest (I’m new to the Vita stack.) I followed these instructions: https://vitasdk.org/

On discord they say that you have to remove the add_dependencies or add the -self suffix if you’re on cmake 3.20+.
I’m on 3.22.

What version of cmake are you on?
 
Last edited by binkinator,

godreborn

Welcome to the Machine
Member
Joined
Oct 10, 2009
Messages
38,471
Trophies
3
XP
29,180
Country
United States
Indeed:

wwiii@wwiii-VAIO MSYS ~/projects/sixaxis
$ cmake --version
cmake version 3.22.1

CMake suite maintained and supported by Kitware (kitware.com/cmake).
off topic, but since you compiled atmosphere, I assume you have devkitpro installed. I'm having this issue with devkitpro, and it's the only computer problem left that I can't figure out what the hell is wrong:

https://gbatemp.net/threads/problem-with-apt-update-in-debian.615217/#post-9878166

I've tried manually adding in the key, but the key doesn't seem to exist whatsoever.
 

binkinator

Garfield’s Fitness Coach
OP
Member
GBAtemp Patron
Joined
Mar 29, 2021
Messages
6,511
Trophies
2
XP
6,155
Country
United States
okay, it's 3.18.4.
That's it! Thank you for confirming.

You are below 3.20 so you don't get the weirdness that is: add_dependencies

I was able to work around it with the -self suffix (or removing the line altogether.)
 
  • Like
Reactions: godreborn

binkinator

Garfield’s Fitness Coach
OP
Member
GBAtemp Patron
Joined
Mar 29, 2021
Messages
6,511
Trophies
2
XP
6,155
Country
United States
off topic, but since you compiled atmosphere, I assume you have devkitpro installed. I'm having this issue with devkitpro, and it's the only computer problem left that I can't figure out what the hell is wrong:

https://gbatemp.net/threads/problem-with-apt-update-in-debian.615217/#post-9878166

I've tried manually adding in the key, but the key doesn't seem to exist whatsoever.
will certainly take a look.

The key should be bundled. See if this matches your situation:

https://devkitpro.org/viewtopic.php?f=15&t=9234
 
Last edited by binkinator,
  • Like
Reactions: godreborn

godreborn

Welcome to the Machine
Member
Joined
Oct 10, 2009
Messages
38,471
Trophies
3
XP
29,180
Country
United States
I installed devkitpro on msys2, and I installed cmake. it's the same version as yours. you might try Debian if you don't want to commit out that line:

1657643282312.png
 
  • Love
Reactions: binkinator

binkinator

Garfield’s Fitness Coach
OP
Member
GBAtemp Patron
Joined
Mar 29, 2021
Messages
6,511
Trophies
2
XP
6,155
Country
United States
I installed devkitpro on msys2, and I installed cmake. it's the same version as yours. you might try Debian if you don't want to commit out that line:

View attachment 317708

Thanks for taking the journey with me! I think we both understand a little more than when we started. I’m actually at peace with removing/modifying the code now that I know it‘s just a feature of cmake moving on and our PSVITA code base being a little stagnant in many cases. It was the unknown that was buggin me! Thanks again!
 
  • Like
Reactions: godreborn

godreborn

Welcome to the Machine
Member
Joined
Oct 10, 2009
Messages
38,471
Trophies
3
XP
29,180
Country
United States
there was a line in ds4vita iirc that will not compile, gives a coding error, which I think is related to the vitasdk being too new. removing the line compiles it. it's in main.c. in almost all cases, when you get a coding error, it's either missing dependencies or something is the wrong version. dependencies usually give you a file or directory not found error, but not always.
 
  • Like
Reactions: binkinator

godreborn

Welcome to the Machine
Member
Joined
Oct 10, 2009
Messages
38,471
Trophies
3
XP
29,180
Country
United States
will certainly take a look.

The key should be bundled. See if this matches your situation:

https://devkitpro.org/viewtopic.php?f=15&t=9234
I fixed the problem several days ago. I just took the gpg key for devkitpro on Ubuntu and injected it into Debian, then removed the nonexistent servers, since some didn't seem to exist at all, beyond bullseye release.

Also, what I was going to ask you is if you knew if you could downgrade vita sdk?
 

binkinator

Garfield’s Fitness Coach
OP
Member
GBAtemp Patron
Joined
Mar 29, 2021
Messages
6,511
Trophies
2
XP
6,155
Country
United States
I fixed the problem several days ago. I just took the gpg key for devkitpro on Ubuntu and injected it into Debian, then removed the nonexistent servers, since some didn't seem to exist at all, beyond bullseye release.

Also, what I was going to ask you is if you knew if you could downgrade vita sdk?
Glad you’re sorted. :-)

The easiest was I can think of would be to run rm -rf $VITASDK and then git pull an earlier revision of https://github.com/vitasdk/vdpm and reinstall.
 
  • Like
Reactions: godreborn

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • K3Nv2 @ K3Nv2:
    I renewed your wife
    +1
  • BigOnYa @ BigOnYa:
    Renewed is like following Psi around on his dates, then when he done doing the deed, he taps me in without her cleaning up first, no thanks
    +1
  • K3Nv2 @ K3Nv2:
    That's not being renewed that's unlocking more medical bills from stds
    +1
  • BigOnYa @ BigOnYa:
    Somethings maybe, but drives are rated in hours, so most likely many hours already on them. I just don't trust em for data. Maybe a used(renewed) car or something be ok tho.
  • K3Nv2 @ K3Nv2:
    I like my girls like my car made in 2000
    +1
  • BigOnYa @ BigOnYa:
    I like my products new, not buying a box of condoms (renewed)
  • K3Nv2 @ K3Nv2:
    You already learned from buying used condoms from the first kid
  • K3Nv2 @ K3Nv2:
    Tyrone said it was barley used
    +1
  • K3Nv2 @ K3Nv2:
    Wonder whatever happened to that ownage pranks guy
  • BigOnYa @ BigOnYa:
    I dont know why people hate on Starfield, I think its dope. I didn't play it day one, only started it couple weeks ago so maybe they fixed issues with updates already.
  • K3Nv2 @ K3Nv2:
    Microsoft could release a poop simulator and people will say it's shit
  • Quincy @ Quincy:
    Hold up hooolddd uuupppp, we're less than a week from PM:TTYD releasing and it has not leaked yet? :o Miracles do still exist in this dystopia 🤣
  • BigOnYa @ BigOnYa:
    True. People hated on Fallout 76 at first also, but they still have huge numbers playing online.
  • BigOnYa @ BigOnYa:
    What is PM:TTYD
  • Quincy @ Quincy:
    Paper Mario: The Thousand-Year Door
  • Psionic Roshambo @ Psionic Roshambo:
    I think I played that one
  • Quincy @ Quincy:
    (i.e. Nintendos' next first party switch title/remake)
  • BigOnYa @ BigOnYa:
    Meh, I want metroid 4
  • Psionic Roshambo @ Psionic Roshambo:
    I have a refurbished hard drive like 8TBs just use it for movies and music so if it blows up nothing I can't replace lol
    +1
  • Quincy @ Quincy:
    I mean almost every first party switch title of the past year or two leaked at least a week in advance for a while now haven't they?
  • BigOnYa @ BigOnYa:
    Not all of them, but yea many.
  • Quincy @ Quincy:
    Metroid prime 4 I wouldn't be surprised if that title will be a SwitchU title (here's hoping Nintendo won't go with such a ridiculous name again)
    +1
  • Quincy @ Quincy:
    Hence me saying almost 🤣
  • Psionic Roshambo @ Psionic Roshambo:
    But for photos and OS and my ROMs not risking it on a refurbished drive lol
  • BigOnYa @ BigOnYa:
    Have you checked both the brew and 2u sites?
    BigOnYa @ BigOnYa: Have you checked both the brew and 2u sites?