Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: ubuntu 9.04 compile error

                  
   
  1. #1
    DCEmu Newbie
    Join Date
    Jun 2009
    Posts
    9
    Rep Power
    0

    Default ubuntu 9.04 compile error

    I have spent many hours trying to figure this out, but I have no idea what to do.

    Error= make: psp-config: Command not found
    Makefile:24: /lib/build.mak: No such file or directory
    make: *** No rule to make target `/lib/build.mak'. Stop.
    (I used the standard makefile for 3xx)

    When I type make into the terminal it works fine, and when I type in echo $PSPSDK I get the correct path, but the IDE won't work at all. I tried it on both Anjuta and KDE. I also added the three lines that you need to bashrc. Can someone please help?

  2. #2
    DCEmu Coder
    Join Date
    Aug 2006
    Posts
    571
    Rep Power
    67

    Default

    $PSPSDK is overridden in the makefile like so

    PSPSDK=$(shell psp-config --pspsdk-path)
    include $(PSPSDK)/lib/build.mak
    Notice your error "Error= make: psp-config: Command not found" which means the psp-config couldn't be found, and therefore PSPSDK won't be set by the command, which means build.mak won't be found.

    If you're sure everything is installed, maybe it's just the exports. You need more than just PSPSDK. Here's what I use for exports (I run Xubuntu 9.04)

    export PSPDEV="/home/jlfenton/Tools/pspdev"
    export PSPSDK="$PSPDEV/psp/sdk"
    export PSPPATH="$PSPDEV/bin:$PSPDEV/psp/bin:$PSPSDK/bin"
    export PATH="$PATH:$PSPPATH"
    export PKG_CONFIG_PATH="$PSPDEV/psp/lib/pkgconfig"
    Notice that my toolchain and sdk are in my home directory. That makes it easier to install libs and such - no using sudo required.

    Note: I used quotes instead of code tags because the god-damned code tags STILL aren't working right! Are they ever going to fix those??? I reported them as buggy more than a year ago!!!

  3. #3
    DCEmu Newbie
    Join Date
    Jun 2009
    Posts
    9
    Rep Power
    0

    Default

    haha, I read your other replies before I posted here, so I know how much you want those code tags to work . But yeah, when I type in make in the terminal it works, so it is installed correctly. I did the standard 3 that they tell you in different tutorials( I looked at about 100 by now), which would coincide with the top three exports you posted. I have been working on this straight for the past 4 days, so I know what the error means, but not how to fix it.

    I used the gedit ~./bashrc and put those three exports at the very bottom. So I have no idea what else to do. Any other ideas before I try installing it into my home directory?

  4. #4
    DCEmu Coder
    Join Date
    Aug 2006
    Posts
    571
    Rep Power
    67

    Default

    Actually, I answered here first, then noticed the same question at ps2dev.

    Have you tried just typing "psp-config" into your terminal? If it can't find it, the terminal hasn't got the environment variables set. Given the number of toolchains I run that have mutually exclusive paths, I've take to NOT setting the bash.rc and just pasting those lines above into the terminal when I open one to compile a PSP project.

  5. #5
    DCEmu Newbie
    Join Date
    Jun 2009
    Posts
    9
    Rep Power
    0

    Default

    Yeah, it works if I type psp-config into the terminal.

  6. #6
    DCEmu Coder
    Join Date
    Aug 2006
    Posts
    571
    Rep Power
    67

    Default

    And what does "psp-config --pspsdk-path" return? Do you still get the psp-config not found error when you try to make?

  7. #7
    DCEmu Newbie
    Join Date
    Jun 2009
    Posts
    9
    Rep Power
    0

    Default

    It returns /home/tom/Desktop/pspdev/psp/sdk, so it works. And yes I still get the same error.

  8. #8
    DCEmu Coder
    Join Date
    Aug 2006
    Posts
    571
    Rep Power
    67

    Default

    How about quoting the makefile? At this point, what's wrong must be there. Like I said, most makefiles for the psp have the lines

    PSPSDK=$(shell psp-config --pspsdk-path)
    include $(PSPSDK)/lib/build.mak
    Notice that first line - that is where the "cannot find psp-config" error is generated... but it shouldn't be from what you've said about being able to run psp-config from the terminal. So something in the makefile must be causing some trouble. Well, it's someplace to start, at least.

  9. #9
    DCEmu Newbie
    Join Date
    Jun 2009
    Posts
    9
    Rep Power
    0

    Default

    This is the makefile I used on my other pc that compiled fine, but I will post it anyways.

    Code:
    TARGET = MyNameIsFW3x
    
    OBJS = main.o
    
    
    
    INCDIR = 
    
    #                       vvvvvvvv
    
    CFLAGS = -O2 -G0 -Wall -DPSPFW3X
    
    #                       ^^^^^^^^
    
    
    
    CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti 
    
    ASFLAGS = $(CFLAGS)
    
    
    
    # vvvvvvvv
    
    BUILD_PRX=1
    
    PSP_FW_VERSION=303
    
    # ^^^^^^^^
    
    
    
    LIBDIR =
    
    LDFLAGS =
    
    
    
    EXTRA_TARGETS = EBOOT.PBP
    
    PSP_EBOOT_TITLE = MyNameIsFW3x
    
    
    
    PSPSDK=$(shell psp-config --pspsdk-path)
    
    include $(PSPSDK)/lib/build.mak

  10. #10
    DCEmu Newbie
    Join Date
    Jun 2009
    Posts
    9
    Rep Power
    0

    Default

    WOAH, I put code tags on by habit......

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. SDL 1.2.9 for the DS
    By GPF in forum Retro Homebrew, Hosted Releases & Console News Forum
    Replies: 15
    Last Post: April 23rd, 2010, 22:21
  2. How-To: Install Ubuntu On Your PS3 For Vintage Gaming Emulation
    By wraggster in forum Retro Homebrew, Hosted Releases & Console News Forum
    Replies: 0
    Last Post: January 31st, 2009, 19:46
  3. Replies: 0
    Last Post: September 10th, 2008, 19:17
  4. Mame4ALLPSP New Version 0.0.3
    By kech in forum Sony Consoles News Forum
    Replies: 290
    Last Post: July 3rd, 2008, 17:47
  5. Ubuntu 8.04 released
    By JKKDARK in forum PC News Forum
    Replies: 1
    Last Post: April 24th, 2008, 21:31

Tags for this Thread

Bookmarks

Posting Permissions

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