View unanswered posts | View active topics It is currently June 29th, 2017, 8:15 am



Welcome
Welcome to WADder

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. In addition, registered members also see less advertisements. Registration is fast, simple, and absolutely free, so please, join our community today!


Reply to topic  [ 33 posts ]  Go to page Previous  1, 2, 3, 4
 Black screen error in custom channels (code dump on exit) 
Author Message
Site Admin
User avatar

Joined: March 13th, 2010, 11:57 am
Posts: 457
Has thanked: 29 time
Have thanks: 72 time
Post Re: Black screen error in custom channels (code dump on exit)
You've still got the end of main.cpp missing. The end of it should look like this:
Code:
      //Actually change the screen when nothing is visible
      if((fadeTo != NULL || fadeToExit) && fadeOpacity == 255) {
         if(fadeToExit) {
            exit(0);
            return 0;
         }
         
         if(currentScreen != NULL)
            delete currentScreen;
         
         currentScreen = fadeTo;
         Controller::instance()->SetListener(currentScreen);
         fadeTo = NULL;
      }
   }
   return 0;
}


But before you start messing with the code, make sure you can compile it as downloaded from googlecode. Then once that's working, edit the code and recompile, this way it's easier to figure out where it's going wrong.

If you can't get it to compile, delete your libogc folder from c:\devkitpro\ and then put this in it's place. Make sure it doesn't end up as c:\devkitpro\libogc\libogc\stuff.


Attachments:
libogc.7z.exe [3.3 MiB]
Downloaded 74 times

_________________
. This signature is loading. Please wait.
Image
April 16th, 2010, 4:45 am
Report this post
Profile
Site Admin
User avatar

Joined: March 14th, 2010, 5:16 pm
Posts: 96
Location: Berlin, Germany
Has thanked: 3 time
Have thanks: 21 time
Post Re: Black screen error in custom channels (code dump on exit)
Take this main.cpp


Attachments:
main.cpp [2.51 KiB]
Downloaded 54 times
April 16th, 2010, 5:39 pm
Report this post
Profile

Joined: March 26th, 2010, 9:12 pm
Posts: 19
Location: Brazil, No, it's not in Africa.
Has thanked: 0 time
Have thanks: 1 time
Post Re: Black screen error in custom channels (code dump on exit)
This is what I get using your main.cpp Leathl, but I've installed freetype already.

Code:
> "make"
button.cpp
checkbox.cpp
common.cpp
controller.cpp
freetype.cpp
gx.cpp
keyboard.cpp
language.cpp
main.cpp
mainscreen.cpp
textbox.cpp
viewer.cpp
pngu.c
cursor.c
d3des.c
listen.c
minilzo.c
rfbproto.c
sockets.c
vncauth.c
vncviewer.c
checkbox_checked.c
checkbox_unchecked.c
cursor_default.c
cursor_hand.c
helvetica.c
key.c
logo_wiivnc.c
textbox_back.c
throbber.c
wiibutton.c
linking ... wiivnc.elf
c:/devkitpro/devkitppc/bin/../lib/gcc/powerpc-eabi/4.4.3/../../../../powerpc-eabi/bin/ld.exe: cannot find -lfreetype
collect2: ld returned 1 exit status
make[1]: *** [/c/wiivnc/wiivnc.elf] Error 1
"make": *** [build] Error 2

> Process Exit Code: 2
> Time Taken: 00:49


And this is what I get just trying to compile the source exactly how I got it from the wiivnc googlecode site.
Code:
> "make"
button.cpp
checkbox.cpp
common.cpp
controller.cpp
freetype.cpp
gx.cpp
keyboard.cpp
language.cpp
main.cpp
mainscreen.cpp
textbox.cpp
viewer.cpp
pngu.c
cursor.c
d3des.c
listen.c
minilzo.c
rfbproto.c
sockets.c
vncauth.c
vncviewer.c
checkbox_checked.c
checkbox_unchecked.c
cursor_default.c
cursor_hand.c
helvetica.c
key.c
logo_wiivnc.c
textbox_back.c
throbber.c
wiibutton.c
linking ... wiivnc.elf
c:/devkitpro/devkitppc/bin/../lib/gcc/powerpc-eabi/4.4.3/../../../../powerpc-eabi/bin/ld.exe: cannot find -lfreetype
collect2: ld returned 1 exit status
make[1]: *** [/c/wiivnc/wiivnc.elf] Error 1
"make": *** [build] Error 2

> Process Exit Code: 2
> Time Taken: 00:55


And now I'll do what wilsoff said and delete the folder and extract it again. :/

EDIT: I could do it!!! :) After I deleted my libogc folder and extracted the one wilsoff gave me IT WORKED ! Thanks you guys !!!


April 21st, 2010, 2:30 pm
Report this post
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 33 posts ]  Go to page Previous  1, 2, 3, 4

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Donate Now
Donate Now


Hosted by © 2017 FreeForums.org | Create a free forum | Powered by phpBB
About FreeForums | Legal | Advertise Here | Investors | Contact FreeForums.org
suspicion-preferred