Jump to content


Photo

Yactfeau


  • Please log in to reply
113 replies to this topic

#76 Emnasut

Emnasut

    GP32 User

  • Members
  • PipPipPip
  • 68 posts

Posted 24 March 2011 - 07:04 PM

Hm when I don't do setprj first I get a strange linker error (at least I think it's the linker). Am I missing a library or something? The same works if I do setprj first.

Spoiler


Any ideas?

#77 sebt3

sebt3

    homebrew player (P. & C.)

  • GP32 Hardcore
  • PipPipPipPipPipPip
  • 1897 posts
  • Gender:Male
  • Location:QC

Posted 24 March 2011 - 07:31 PM

Hm when I don't do setprj first I get a strange linker error (at least I think it's the linker). Am I missing a library or something? The same works if I do setprj first.

Any ideas?

Hum the gcc installation in the vmware seams bogus :(
I'ld like to route you to the ubuntu forum as your issues are far from the topic now.

(what bug me is the "cc 129_tiling" which shouldnt be there...)


#78 Emnasut

Emnasut

    GP32 User

  • Members
  • PipPipPip
  • 68 posts

Posted 24 March 2011 - 10:17 PM


Hm when I don't do setprj first I get a strange linker error (at least I think it's the linker). Am I missing a library or something? The same works if I do setprj first.

Any ideas?

Hum the gcc installation in the vmware seams bogus :(
I'ld like to route you to the ubuntu forum as your issues are far from the topic now.

(what bug me is the "cc 129_tiling" which shouldnt be there...)


That's L29_tiling, not 129_tiling, and it's just the name of my project (based on tutorial number 29, Tiling, of lazy foo) and thus the name of my binary. ^^

Edited by Emnasut, 24 March 2011 - 10:19 PM.


#79 sebt3

sebt3

    homebrew player (P. & C.)

  • GP32 Hardcore
  • PipPipPipPipPipPip
  • 1897 posts
  • Gender:Male
  • Location:QC

Posted 24 March 2011 - 10:25 PM

That's L29_tiling, not 129_tiling, and it's just the name of my project (based on tutorial number 29, Tiling, of lazy foo) and thus the name of my binary. ^^

I was refering this :
g++ dot.o foo.o functions.o globals.o tile.o tilemanager.o timer.o main.o -o l29_tiling -lSDL_image -lSDL_ttf -L/usr/lib -lSDL
cc l29_tiling
l29_tiling:(.rodata+0x4): multiple definition of `_IO_stdin_used'
The middle line shouldnt be here.

#80 Emnasut

Emnasut

    GP32 User

  • Members
  • PipPipPip
  • 68 posts

Posted 24 March 2011 - 11:46 PM


That's L29_tiling, not 129_tiling, and it's just the name of my project (based on tutorial number 29, Tiling, of lazy foo) and thus the name of my binary. ^^

I was refering this :
g++ dot.o foo.o functions.o globals.o tile.o tilemanager.o timer.o main.o -o l29_tiling -lSDL_image -lSDL_ttf -L/usr/lib -lSDL
cc l29_tiling
l29_tiling:(.rodata+0x4): multiple definition of `_IO_stdin_used'
The middle line shouldnt be here.


Oh okay, sorry. ^^
Maybe I'll ask in the Ubuntu forum, I just fear that I know too less of C++/Linux to even describe my problem...

#81 Emnasut

Emnasut

    GP32 User

  • Members
  • PipPipPip
  • 68 posts

Posted 25 March 2011 - 12:32 PM

I found the problem, yay! As I had no idea how Makefiles work I just used the one you posted on the second page of this thread. In there are two lines containing STRIP:

At the top:
STRIP ?= $(CC:%gcc=%strip)

And then later:
$(EXE) : $(OBJS)
        $(CXX) $(OBJS) -o $(EXE) $(LDFLAGS)
        $(STRIP) $(EXE)

Now when I just delete the call to $(STRIP) it works fine. (: I have no idea what that's supposed to do anyways...

Thanks sebt3, without your remark about that the middle line shouldn't be there I wouldn't have figured it out!

#82 sebt3

sebt3

    homebrew player (P. & C.)

  • GP32 Hardcore
  • PipPipPipPipPipPip
  • 1897 posts
  • Gender:Male
  • Location:QC

Posted 25 March 2011 - 02:54 PM

Now when I just delete the call to $(STRIP) it works fine. (: I have no idea what that's supposed to do anyways...

Strip is not mandatory. gcc left many things in the binaries that are not usefull when running (mostly debug information). strip remove that. But it's still cool as the binary size is more than halfed most of the time ;)

#83 Emnasut

Emnasut

    GP32 User

  • Members
  • PipPipPip
  • 68 posts

Posted 25 March 2011 - 06:20 PM


Now when I just delete the call to $(STRIP) it works fine. (: I have no idea what that's supposed to do anyways...

Strip is not mandatory. gcc left many things in the binaries that are not usefull when running (mostly debug information). strip remove that. But it's still cool as the binary size is more than halfed most of the time ;)


Interesting! Well it works for the PND and I don't care if my binarys for debugging on my desktop are a bit larger. ^^

Now back to coding! *g*

#84 Custom Processing Unlimite

Custom Processing Unlimite

    Mega GP Mania

  • GP32 Hardcore
  • PipPipPipPipPipPip
  • 718 posts
  • Gender:Male
  • Location:Milwaukee, WI, USA
  • Interests:Martial arts and computers

Posted 11 April 2011 - 04:53 AM

crazy question... (possibly answered in posts shortly before this one, but too tired to read through all the pages of posts here at the moment) but would anybody be willing to supply a Qemu image of what's in the VirtualBox image? Not sure if I'm asking too much, but I'd prefer to work with Qemu vs VirtualBox (moreso familiarity vs personal reasons)... If not, it is what it is... but I figured I'd at least ask.

#85 MonkeyChops

MonkeyChops

    NO! I don't play basketball

  • GP32 Hardcore
  • PipPipPipPipPipPip
  • 949 posts
  • Gender:Male
  • Location:OHIO
  • Interests:retro games, music, drums, beer brewing

Posted 12 April 2011 - 03:01 AM

Quick noob question: If I'm getting errors during make telling me it is skipping incompatible libSDL.so and can't find lSDL (and a few others), does that mean I'm out of luck with this program or do I just need to figure out what dependencies I'm missing or something?

#86 Custom Processing Unlimite

Custom Processing Unlimite

    Mega GP Mania

  • GP32 Hardcore
  • PipPipPipPipPipPip
  • 718 posts
  • Gender:Male
  • Location:Milwaukee, WI, USA
  • Interests:Martial arts and computers

Posted 12 April 2011 - 06:07 AM

is anyone else having problems downloading the virtualbox image? so far, the direct download errors out after about 50% and the torrent offers 0 of 0 seeders... will try the old wget method for direct downlaod and see if that makes a difference...


EDIT: ok, I'm good... something wrong on my end and I took care of it...

Edited by Custom Processing Unlimite, 12 April 2011 - 03:39 PM.


#87 MonkeyChops

MonkeyChops

    NO! I don't play basketball

  • GP32 Hardcore
  • PipPipPipPipPipPip
  • 949 posts
  • Gender:Male
  • Location:OHIO
  • Interests:retro games, music, drums, beer brewing

Posted 13 April 2011 - 01:53 AM

I made this before I noticed you figured out your problem but I'll post it anyways since I don't see a torrent for the virtual box image yet.

http://www.mediafire.com/file/182awt9qid474p9/pandora-toolchain-virtualbox-20110313.vdi.7z.torrent

I'm seeding it also. :)

#88 Custom Processing Unlimite

Custom Processing Unlimite

    Mega GP Mania

  • GP32 Hardcore
  • PipPipPipPipPipPip
  • 718 posts
  • Gender:Male
  • Location:Milwaukee, WI, USA
  • Interests:Martial arts and computers

Posted 13 April 2011 - 04:10 AM

thanks MonkeyChops... glad you went through all the trouble to help... I'm sure others will benefit from it even if I no longer need it (of course, I could lose what I have and may need it another time, so we will see how that plays out. On a side note, I may be offering up another option for people to test out once I make more space on my system(s) by using all these external drives I have sitting around my house (by external, I mean not actually inside a computer :P)...

#89 MonkeyChops

MonkeyChops

    NO! I don't play basketball

  • GP32 Hardcore
  • PipPipPipPipPipPip
  • 949 posts
  • Gender:Male
  • Location:OHIO
  • Interests:retro games, music, drums, beer brewing

Posted 13 April 2011 - 02:37 PM

It only took a second, no problem at all. I was searching for an open source magic the gathering program to practice compiling with and having no luck so I had some extra time.

Question for seb3 or anyone else in the know: When compiling source code for a program that requires java, do I need to do anything special or is the java part taken care of after the fact through wizardstan's java pnd?

btw, cpu, You can adjust the drive size after loading the image.

#90 Custom Processing Unlimite

Custom Processing Unlimite

    Mega GP Mania

  • GP32 Hardcore
  • PipPipPipPipPipPip
  • 718 posts
  • Gender:Male
  • Location:Milwaukee, WI, USA
  • Interests:Martial arts and computers

Posted 13 April 2011 - 03:02 PM

thanks for the info MC!