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

QuakeIII::ETLegacy275 or WOlf260sdk compilation for vita

Open discussions on programming specifically for the PS Vita.
Forum rules
Forum rule Nº 15 is strictly enforced in this subforum.
Post Reply
ivo2376
Posts: 20
Joined: Wed Jan 14, 2015 10:17 pm

QuakeIII::ETLegacy275 or WOlf260sdk compilation for vita

Post by ivo2376 » Sun Sep 10, 2017 2:23 pm

Are these single line enough to start porting a linux build ETlegacy or wolfsdk (but thats with scons)

#$ENV{VITASDK}/share/vita.toolchain.cmake
mkdir build
cd build
cmake -DCMAKE_TOOLCHAIN_FILE=$VITASDK/share/vita.toolchain.cmake ..
make

i get an error on CXX ident
EEM2:~/codepro/pctools/etlegacy$ ./vitabuild.sh
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
-- Check for working C compiler: /usr/local/vitasdk/bin/arm-vita-eabi-gcc
-- Check for working C compiler: /usr/local/vitasdk/bin/arm-vita-eabi-gcc -- broken
CMake Error at /usr/local/share/cmake-3.9/Modules/CMakeTestCCompiler.cmake:51 (message):
The C compiler "/usr/local/vitasdk/bin/arm-vita-eabi-gcc" is not able to
compile a simple test program.
It fails with the following output:
Change Dir: /home/verhoeve/codepro/pctools/etlegacy/build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_c99d9/fast"
/usr/bin/make -f CMakeFiles/cmTC_c99d9.dir/build.make
CMakeFiles/cmTC_c99d9.dir/build
make[1]: Entering directory
`/home/verhoeve/codepro/pctools/etlegacy/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_c99d9.dir/testCCompiler.c.obj
/usr/local/vitasdk/bin/arm-vita-eabi-gcc -Wl,-q -o
CMakeFiles/cmTC_c99d9.dir/testCCompiler.c.obj -c
/home/verhoeve/codepro/pctools/etlegacy/build/CMakeFiles/CMakeTmp/testCCompiler.c
/usr/local/vitasdk/bin/arm-vita-eabi-gcc:
/usr/local/vitasdk/bin/arm-vita-eabi-gcc: cannot execute binary file
make[1]: *** [CMakeFiles/cmTC_c99d9.dir/testCCompiler.c.obj] Error 126
make[1]: Leaving directory
`/home/verhoeve/codepro/pctools/etlegacy/build/CMakeFiles/CMakeTmp'
make: *** [cmTC_c99d9/fast] Error 2
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:10 (project)
-- Configuring incomplete, errors occurred!
See also "/home/verhoeve/codepro/pctools/etlegacy/build/CMakeFiles/CMakeOutput.log".
See also "/home/verhoeve/codepro/pctools/etlegacy/build/CMakeFiles/CMakeError.log".
make: *** No targets specified and no makefile found. Stop.
EEM2:~/codepro/pctools/etlegacy$ nano vitabuild.sh

What should i change or do or how do i proceed ?
thanks in advance and a happy quakeIII to u to
Advertising

ivo2376
Posts: 20
Joined: Wed Jan 14, 2015 10:17 pm

Re: QuakeIII::ETLegacy275 or WOlf260sdk compilation for vita

Post by ivo2376 » Sun Sep 10, 2017 3:01 pm

so i first had to verify wheter the source worked and made this linux or pc version first ETLegacy275
i did ./easybuild.sh like it says on the git
after init and update submodules for libs
but then i can against a libs/ogg error and i had to
remove a macro that ended in DIRS and replace it with same macro that ended in DIR
AC_MACRO_***_DIR in configure.ac then it worked
maybe a libtoolize --force
then another error after another try in libjpegturbo
solution touch the pregenerators files to update timestamp
so it dont complain about aclocal-1.15 but just uses aclocal
after a couple of tries i compiled it for pc so now i want a vita version ofc xD

heres the pc build in the mean while

https://www.sendspace.com/file/0a507q

heres something to add to the end of .bashrc and just hit ctrl C when see the fortune|cowsay

while true; do sl; fortune|cowsay; echo "$(date '+%D %T' | toilet -f term -F border --***)"; sleep 1; done
Advertising

darkfires
Posts: 1
Joined: Thu Oct 05, 2017 2:16 am

Re: QuakeIII::ETLegacy275 or WOlf260sdk compilation for vita

Post by darkfires » Thu Oct 05, 2017 2:25 am

ivo2376 wrote:Are these single line enough to start porting a linux build ETlegacy or wolfsdk (but thats with scons)

/usr/local/vitasdk/bin/arm-vita-eabi-gcc: cannot execute binary file

What should i change or do or how do i proceed ?
thanks in advance and a happy quakeIII to u to
That error right there tells me you likely are running a different arch than what the binaries are. My vitasdk is 64bit, not sure what yours
root@saturn:/opt/vitasdk/bin# file arm-vita-eabi-gcc
arm-vita-eabi-gcc: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.24, BuildID[sha1]=8a0b1fdda62a06f7a5e6a8743b958fd1e8eb0f92, stripped
root@saturn:/opt/vitasdk/bin# uname -a
Linux saturn 4.4.0-43-Microsoft #1-Microsoft Wed Dec 31 14:42:53 PST 2014 x86_64 x86_64 x86_64 GNU/Linux

If you're running 32bit OS and the binaries are 64bit, then you need to install 64bit OS.

Post Reply

Return to “Programming and Security”