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

[Closed] Error trying to build vita-toolchain.

The PlayStation Mobile SDK and Unity for PlayStation Mobile can be downloaded here: http://www.playstation.com/psm/
Locked
cheeyee09
Posts: 132
Joined: Sat Feb 28, 2015 7:31 am

[Closed] Error trying to build vita-toolchain.

Post by cheeyee09 »

Hi Devs,

I wanted to build the vitasdk/vita-toolchain but I am getting an error. Do you know what options I have to provide for cmake? I'm using Ubuntu 12.04

rejuvenate@rejuvenate-VirtualBox:~/psp2/vitasdk/vita-toolchain$ cd build/
rejuvenate@rejuvenate-VirtualBox:~/psp2/vitasdk/vita-toolchain/build$ cmake ..
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- checking for module 'jansson'
-- found jansson, version 2.2.1
-- Found Jansson: /usr/lib/libjansson.so
-- checking for module 'libelf'
-- package 'libelf' not found
-- Found libelf: /usr/lib/x86_64-linux-gnu/libelf.so
-- Configuring done
-- Generating done
-- Build files have been written to: /home/rejuvenate/psp2/vitasdk/vita-toolchain/build
rejuvenate@rejuvenate-VirtualBox:~/psp2/vitasdk/vita-toolchain/build$ make
Scanning dependencies of target vita-elf-create
[ 9%] Building C object src/CMakeFiles/vita-elf-create.dir/vita-elf-create.c.o
In file included from /home/rejuvenate/psp2/vitasdk/vita-toolchain/src/vita-elf-create.c:11:0:
/home/rejuvenate/psp2/vitasdk/vita-toolchain/src/elf-defs.h:25:0: warning: "SHT_ARM_EXIDX" redefined
#define SHT_ARM_EXIDX 0x70000001
^
In file included from /usr/include/libelf.h:56:0,
from /home/rejuvenate/psp2/vitasdk/vita-toolchain/src/vita-elf-create.c:6:
/usr/include/elf.h:2291:0: note: this is the location of the previous definition
#define SHT_ARM_EXIDX (SHT_LOPROC + 1) /* ARM unwind section. */
^
[ 18%] Building C object src/CMakeFiles/vita-elf-create.dir/vita-elf.c.o
In file included from /home/rejuvenate/psp2/vitasdk/vita-toolchain/src/vita-elf.c:28:0:
/home/rejuvenate/psp2/vitasdk/vita-toolchain/src/elf-defs.h:25:0: warning: "SHT_ARM_EXIDX" redefined
#define SHT_ARM_EXIDX 0x70000001
^
In file included from /usr/include/libelf.h:56:0,
from /home/rejuvenate/psp2/vitasdk/vita-toolchain/src/vita-elf.c:4:
/usr/include/elf.h:2291:0: note: this is the location of the previous definition
#define SHT_ARM_EXIDX (SHT_LOPROC + 1) /* ARM unwind section. */
^
[ 27%] Building C object src/CMakeFiles/vita-elf-create.dir/vita-import.c.o
[ 36%] Building C object src/CMakeFiles/vita-elf-create.dir/vita-import-parse.c.o
/home/rejuvenate/psp2/vitasdk/vita-toolchain/src/vita-import-parse.c: In function ‘vita_imports_loads’:
/home/rejuvenate/psp2/vitasdk/vita-toolchain/src/vita-import-parse.c:41:48: error: expected ‘;’ before ‘{’ token
json_object_foreach(libs, lib_name, lib_data) {
^
make[2]: *** [src/CMakeFiles/vita-elf-create.dir/vita-import-parse.c.o] Error 1
make[1]: *** [src/CMakeFiles/vita-elf-create.dir/all] Error 2
make: *** [all] Error 2
Advertising
Last edited by cheeyee09 on Fri Aug 21, 2015 5:06 am, edited 1 time in total.
cheeyee09
Posts: 132
Joined: Sat Feb 28, 2015 7:31 am

Re: [Closed]Error trying to build vita-toolchain.

Post by cheeyee09 »

I solved my own issue. Had to update jansson to ver 2.7. Ubuntu 12.04 only install jansson-2.2, so I download src and build jansson2.7. Suggest devs to add min ver check to the FindJansson.cmake file
Advertising
Locked

Return to “PSM & PSM Unity”