Advertising (This ad goes away for registered users. You can Login or Register)

uOFW compile error

Forum rules
Forum rule Nº 15 is strictly enforced in this subforum.
Post Reply
User avatar
reprep
Posts: 1074
Joined: Tue Dec 17, 2013 4:38 pm

uOFW compile error

Post by reprep » Mon Apr 27, 2015 7:13 am

I always get this trying to compile ctrl.c. In my build-exports folder, i only have makefile and psp-build-exports.c files. no subdirectory or anything else.

[spoiler]psp-gcc -c ctrl.c -o ctrl.o -I../../include -O1 -fno-toplevel-reorder -G0 -Wall
-Wextra -Werror -fno-builtin-bcmp -fno-builtin-bcopy -fno-builtin-bzero -fno-bui
ltin-index -fno-builtin-memchr -fno-builtin-memcmp -fno-builtin-memcpy -fno-buil
tin-memmove -fno-builtin-memset -fno-builtin-printf -fno-builtin-putchar -fno-bu
iltin-puts -fno-builtin-rindex -fno-builtin-snprintf -fno-builtin-sprintf -fno-b
uiltin-strcat -fno-builtin-strchr -fno-builtin-strcmp -fno-builtin-strcpy -fno-b
uiltin-strlen -fno-builtin-strncmp -fno-builtin-strncpy -fno-builtin-strpbrk -fn
o-builtin-strrchr -fno-builtin-strstr -fno-builtin-tolower -fno-builtin-toupper
-nostdlib
../../utils/build-exports/psp-build-exports -b exports.exp > exports.c
/bin/sh: ../../utils/build-exports/psp-build-exports: No such file or directory
make: *** [exports.c] Error 127[/spoiler]
Advertising

User avatar
qwikrazor87
Guru
Posts: 2868
Joined: Sat Apr 21, 2012 1:23 pm
Location: The North Pole

Re: uOFW compile error

Post by qwikrazor87 » Mon Apr 27, 2015 7:29 am

inside the uOFW source you should be able to find the "utils" folder,
run "make" in that folder then most of the modules should be able compile (you can run "make clean" after that to remove the .o files).
The uOFW github reports it as being able to successfully build but it won't be able to compile libatrac3 (at least for me under Ubuntu 12.04 LTS) and several other modules which I can't recall.
No worries about some of them not being able to compile since you can separately compile the modules.
(long rant over D:)
Advertising
PSP 2001 - TA-085 - 6.61 PRO-C2
PS Vita 3G - PCH-1101 - 3.65 HENkaku Ensō
Maxwest Nitro 4 phone - Android 5.1
Laptop - Toshiba Satellite L305D-S5974 - Ubuntu 16.04 LTS

User avatar
reprep
Posts: 1074
Joined: Tue Dec 17, 2013 4:38 pm

Re: uOFW compile error

Post by reprep » Mon Apr 27, 2015 7:39 am

thanks. i get this while trying to compile in the "utils" folder. Using windows 7 and MINPSPW btw.

[spoiler]C:\pspdev\uofw-master\utils>make
make[1]: Entering directory `/c/pspdev/uofw-master/utils/kprxgen'
cc -I../common -c -o psp-kprxgen.o psp-kprxgen.c
make[1]: cc: Command not found
make[1]: *** [psp-kprxgen.o] Error 127
make[1]: Leaving directory `/c/pspdev/uofw-master/utils/kprxgen'
make: *** [kprxgen] Error 2[/spoiler]

EDIT: or alternatively can anyone send me a compiled ctrl.prx with these lines on ctrl.c commented out like

/* if (arg3 != 0 && (mode & READ_BUFFER_POSITIVE))
return SCE_ERROR_NOT_SUPPORTED; */

that is line 1950 in ctrl.c.
Last edited by reprep on Mon Apr 27, 2015 8:20 am, edited 1 time in total.

User avatar
qwikrazor87
Guru
Posts: 2868
Joined: Sat Apr 21, 2012 1:23 pm
Location: The North Pole

Re: uOFW compile error

Post by qwikrazor87 » Mon Apr 27, 2015 8:19 am

hmm, try compiling those folders separately then inside the "utils" folder.
PSP 2001 - TA-085 - 6.61 PRO-C2
PS Vita 3G - PCH-1101 - 3.65 HENkaku Ensō
Maxwest Nitro 4 phone - Android 5.1
Laptop - Toshiba Satellite L305D-S5974 - Ubuntu 16.04 LTS

User avatar
reprep
Posts: 1074
Joined: Tue Dec 17, 2013 4:38 pm

Re: uOFW compile error

Post by reprep » Mon Apr 27, 2015 8:27 am

still no go, a problem of windows or MINPSPW i guess. That is what i use. http://sourceforge.net/projects/minpspw/ I can compile other homebrew/plugins just fine.

[spoiler]C:\pspdev\uofw-master\utils>dir
Volume in drive C has no label.
Volume Serial Number is 249B-86DD

Directory of C:\pspdev\uofw-master\utils

11.02.2015 16:24 <DIR> .
11.02.2015 16:24 <DIR> ..
11.02.2015 16:24 <DIR> basic-decompiler
27.04.2015 10:04 <DIR> build-exports
11.02.2015 16:24 <DIR> common
11.02.2015 16:22 5.672 diff.sh
27.04.2015 10:04 <DIR> fixup-imports
27.04.2015 10:04 <DIR> kprxgen
11.02.2015 16:22 218 Makefile
2 File(s) 5.890 bytes
7 Dir(s) 7.862.222.848 bytes free

C:\pspdev\uofw-master\utils>
C:\pspdev\uofw-master\utils>cd basic-decompiler

C:\pspdev\uofw-master\utils\basic-decompiler>make
Compiling main.cpp
g++ -Wall -Wextra -std=c++0x -c main.cpp -o main.o
make: g++: Command not found
make: *** [main.o] Error 127

C:\pspdev\uofw-master\utils\basic-decompiler>cd ..

C:\pspdev\uofw-master\utils>cd build-exports

C:\pspdev\uofw-master\utils\build-exports>make
cc -Wall -Wextra -Werror -c -o ../common/sha1.o ../common/sha1.c
make: cc: Command not found
make: *** [../common/sha1.o] Error 127

C:\pspdev\uofw-master\utils\build-exports>cd ..

C:\pspdev\uofw-master\utils>cd fixup-imports

C:\pspdev\uofw-master\utils\fixup-imports>make
cc -Wall -Wextra -Werror -c -o ../common/sha1.o ../common/sha1.c
make: cc: Command not found
make: *** [../common/sha1.o] Error 127

C:\pspdev\uofw-master\utils\fixup-imports>cd kprxgen
The system cannot find the path specified.

C:\pspdev\uofw-master\utils\fixup-imports>make
cc -Wall -Wextra -Werror -c -o ../common/sha1.o ../common/sha1.c
make: cc: Command not found
make: *** [../common/sha1.o] Error 127

C:\pspdev\uofw-master\utils\fixup-imports>cd ..

C:\pspdev\uofw-master\utils>cd kprxgen

C:\pspdev\uofw-master\utils\kprxgen>make
cc -I../common -c -o psp-kprxgen.o psp-kprxgen.c
make: cc: Command not found
make: *** [psp-kprxgen.o] Error 127

C:\pspdev\uofw-master\utils\kprxgen>cd ..

C:\pspdev\uofw-master\utils>cd common

C:\pspdev\uofw-master\utils\common>make
make: *** No targets specified and no makefile found. Stop.

C:\pspdev\uofw-master\utils\common>cd ..

C:\pspdev\uofw-master\utils>[/spoiler]

User avatar
reprep
Posts: 1074
Joined: Tue Dec 17, 2013 4:38 pm

Re: uOFW compile error

Post by reprep » Mon Apr 27, 2015 10:32 am

I found this in troubleshooting section: http://www.mingw.org/wiki/howto_build_msys

"mingw32-gcc: command not found' or 'mingw32-g++: command not found' or : If this happens then the configure went wrong, and the files in the ./winsup/utils are trying to be built. Do the following so that configure doesn't try to use mingw32-gcc/mingw32-g++:"

though i can't even do "make distclean" i get no rule to make target distclean. Stop.

EDIT:SOLVED. I installed MinGW so mingw32-gcc and mingw32-g++ got installed. After compiling the utils, i successfully managed to compile ctrl.prx

Post Reply

Return to “Programming and Security”