Forum: PS3 Technical Development - Topics relating to Playstation 3 Technical development ONLY! Read and discuss the latest Cobra USB updates, tutorials and explanations or find out about bluray drive bypass firmwares plus much more.


The above video goes away if you are a member and logged in, so log in now!




 
Would you like to get all the new info from
PSX-Scene in your email each day?




Want to learn more about the team keeping you up to date with the latest scene news?

Read about them now!

Check out our Developer bios, too!

 


User Tag List

Thread: Unable to build psl1ght samples
  

Results 1 to 3 of 3
  1. #1 Unable to build psl1ght samples 
    apechimp is offline Registered User
    Join Date
    Jan 2011
    Posts
    3
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    0
    I've installed psl1ght by following the guide on the psl1ght wiki. However, the samples do not build. A typical error is given below.


    Code:
    [R2H] psl1ght_png.bin
    [CC]  main.c
    [LD]  pngtest.elf
    main.o: In function `waitFlip':
    /usr/src/ps3toolchain/build/psl1ght/samples/video/pngtest/source/main.c:35: undefined reference to `.usleep'
    /usr/local/ps3dev/host/ppu/ppu/lib/lv2-psl1ght.o:(.toc+0x8): undefined reference to `psl1ght_sbrk_r'
    /usr/local/ps3dev/host/ppu/ppu/lib/lv2-psl1ght.o:(.toc+0x10): undefined reference to `psl1ght_close_r'
    /usr/local/ps3dev/host/ppu/ppu/lib/lv2-psl1ght.o:(.toc+0x18): undefined reference to `psl1ght_open_r'
    /usr/local/ps3dev/host/ppu/ppu/lib/lv2-psl1ght.o:(.toc+0x20): undefined reference to `psl1ght_read_r'
    /usr/local/ps3dev/host/ppu/ppu/lib/lv2-psl1ght.o:(.toc+0x28): undefined reference to `psl1ght_write_r'
    /usr/local/ps3dev/host/ppu/ppu/lib/lv2-psl1ght.o:(.toc+0x30): undefined reference to `psl1ght_lseek_r'
    /usr/local/ps3dev/host/ppu/ppu/lib/lv2-psl1ght.o:(.toc+0x38): undefined reference to `psl1ght_lseek64_r'
    /usr/local/ps3dev/host/ppu/ppu/lib/lv2-psl1ght.o:(.toc+0x40): undefined reference to `psl1ght_fstat_r'
    /usr/local/ps3dev/host/ppu/ppu/lib/lv2-psl1ght.o:(.toc+0x48): undefined reference to `psl1ght_fstat64_r'
    /usr/local/ps3dev/host/ppu/ppu/lib/lv2-psl1ght.o:(.toc+0x50): undefined reference to `psl1ght_stat_r'
    /usr/local/ps3dev/host/ppu/ppu/lib/lv2-psl1ght.o:(.toc+0x58): undefined reference to `psl1ght_stat64_r'
    /usr/local/ps3dev/host/ppu/ppu/lib/lv2-psl1ght.o:(.toc+0x60): undefined reference to `psl1ght_ftruncate_r'
    /usr/local/ps3dev/host/ppu/ppu/lib/lv2-psl1ght.o:(.toc+0x68): undefined reference to `psl1ght_truncate_r'
    /usr/local/ps3dev/host/ppu/ppu/lib/lv2-psl1ght.o:(.toc+0x70): undefined reference to `psl1ght_fsync_r'
    /usr/local/ps3dev/host/ppu/ppu/lib/lv2-psl1ght.o:(.toc+0x78): undefined reference to `psl1ght_link_r'
    /usr/local/ps3dev/host/ppu/ppu/lib/lv2-psl1ght.o:(.toc+0x80): undefined reference to `psl1ght_unlink_r'
    /usr/local/ps3dev/host/ppu/ppu/lib/lv2-psl1ght.o:(.toc+0x88): undefined reference to `psl1ght_chmod_r'
    /usr/local/ps3dev/host/ppu/ppu/lib/lv2-psl1ght.o:(.toc+0x90): undefined reference to `psl1ght_rename_r'
    /usr/local/ps3dev/host/ppu/ppu/lib/lv2-psl1ght.o:(.toc+0x98): undefined reference to `psl1ght_utime_r'
    /usr/local/ps3dev/host/ppu/ppu/lib/lv2-psl1ght.o:(.toc+0xa0): undefined reference to `psl1ght_umask_r'
    /usr/local/ps3dev/host/ppu/ppu/lib/lv2-psl1ght.o:(.toc+0xa8): undefined reference to `psl1ght_mkdir_r'
    /usr/local/ps3dev/host/ppu/ppu/lib/lv2-psl1ght.o:(.toc+0xb0): undefined reference to `psl1ght_rmdir_r'
    /usr/local/ps3dev/host/ppu/ppu/lib/lv2-psl1ght.o:(.toc+0xb8): undefined reference to `psl1ght_closedir_r'
    /usr/local/ps3dev/host/ppu/ppu/lib/lv2-psl1ght.o:(.toc+0xc0): undefined reference to `psl1ght_opendir_r'
    /usr/local/ps3dev/host/ppu/ppu/lib/lv2-psl1ght.o:(.toc+0xc8): undefined reference to `psl1ght_readdir_r'
    /usr/local/ps3dev/host/ppu/ppu/lib/lv2-psl1ght.o:(.toc+0xd0): undefined reference to `psl1ght_readdir_r_r'
    /usr/local/ps3dev/host/ppu/ppu/lib/lv2-psl1ght.o:(.toc+0xd8): undefined reference to `psl1ght_rewinddir_r'
    /usr/local/ps3dev/host/ppu/ppu/lib/lv2-psl1ght.o:(.toc+0xe0): undefined reference to `psl1ght_seekdir_r'
    /usr/local/ps3dev/host/ppu/ppu/lib/lv2-psl1ght.o:(.toc+0xe8): undefined reference to `psl1ght_telldir_r'
    /usr/local/ps3dev/host/ppu/ppu/lib/lv2-psl1ght.o:(.toc+0xf0): undefined reference to `psl1ght_isatty_r'
    /usr/local/ps3dev/host/ppu/ppu/lib/lv2-psl1ght.o:(.toc+0xf8): undefined reference to `psl1ght_gettimeofday_r'
    /usr/local/ps3dev/host/ppu/ppu/lib/lv2-psl1ght.o:(.toc+0x100): undefined reference to `psl1ght_settimeofday_r'
    /usr/local/ps3dev/host/ppu/ppu/lib/lv2-psl1ght.o:(.toc+0x108): undefined reference to `psl1ght_lwmutex_create_r'
    /usr/local/ps3dev/host/ppu/ppu/lib/lv2-psl1ght.o:(.toc+0x110): undefined reference to `psl1ght_lwmutex_destroy_r'
    /usr/local/ps3dev/host/ppu/ppu/lib/lv2-psl1ght.o:(.toc+0x118): undefined reference to `psl1ght_lwmutex_lock_r'
    /usr/local/ps3dev/host/ppu/ppu/lib/lv2-psl1ght.o:(.toc+0x120): undefined reference to `psl1ght_lwmutex_trylock_r'
    /usr/local/ps3dev/host/ppu/ppu/lib/lv2-psl1ght.o:(.toc+0x128): undefined reference to `psl1ght_lwmutex_unlock_r'
    /usr/local/ps3dev/host/ppu/ppu/lib/lv2-psl1ght.o:(.toc+0x130): undefined reference to `psl1ght_exit'
    collect2: ld returned 1 exit status
    make[1]: *** [/usr/src/ps3toolchain/build/psl1ght/samples/video/pngtest/pngtest.elf] Error 1
    make: *** [build] Error 2
    Any ideas as to what I've screwed up?
    Reply With Quote  

  2. #2  
    Slynk is offline Member
    Join Date
    Sep 2010
    Posts
    754
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    4
    Likes Received
    361
    Have you tried compiling other samples? Is that the only library not linking? Did you edit the sample at all? Even the makefile?
    Reply With Quote  

  3. #3  
    apechimp is offline Registered User
    Join Date
    Jan 2011
    Posts
    3
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    0
    Yes; they all have the same error with not finding references in /usr/local/ps3dev/host/ppu/ppu/lib/lv2-psl1ght.o.

    Some of the examples give me an unreferenced error (like this one does) for the main.o object file, but It seems like it just be looking for something in lv2-psl1ght.o.

    Did not edit the sample. Tried mucking around with some Makefiles to fix this, but soon realized that probably isn't the issue, so I erased the entire SDK fetched an updated version and reinstalled. Unfortunately, this errors didn't go away.
    Reply With Quote  

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •