Openmsx 0.15 trying to compile for ps3 with cell sdk.Help needed

ページ 1/2
| 2

By nikodr

Paladin (750)

nikodr さんの画像

30-05-2020, 21:23

Hello i downloaded openmsx 0.15 .I am trying to make a pkg file for a jail broken ps3.I have ming and msys installed and the required cell sdk.Inside the Ming i can install the sdk examples and make files for the ps3.
now i need help to setup the config for openmsx to be done for ppc.
Even though i have GCC and g++ installed plus all the required libraries this is the error i am getting

$ configure
build/main.mk:26: Extraneous text after `else' directive
Probing target system...
Creating derived/x86_64-mingw-w64-opt/config/probed_defs.mk...
Creating derived/x86_64-mingw-w64-opt/config/systemfuncs.hh...

No working C++ compiler was found.
Please install a C++ compiler, such as GCC's g++.
If you have a C++ compiler installed and openMSX did not detect it, please set the environment variable CXX to the name of your C++ compiler.
After you have corrected the situation, rerun "configure"."

why am i getting the derived/x86_64-mingw-w64-opt ?

The thing is in order to create executable for ps3 under the Ming i did follow the way they do it in the sdk
that is
1)i created a file called Makefile that has the following inside

# SCE CONFIDENTIAL
# PLAYSTATION(R)3 Programmer Tool Runtime Library 192.001
# Copyright (C) 2006 Sony Computer Entertainment Inc.
# All Rights Reserved.
#

CELL_MK_DIR := $(CELL_SDK)/samples/mk
include $(CELL_MK_DIR)/sdk.makedef.mk

MK_TARGET = msx.mk

include $(CELL_MK_DIR)/sdk.target.mk

and another file that is msx.mk that has this code

#   SCE CONFIDENTIAL                                      
#   PLAYSTATION(R)3 Programmer Tool Runtime Library 192.001
#   Copyright (C) 2006 Sony Computer Entertainment Inc.   
#   All Rights Reserved.                                  

CELL_MK_DIR := $(CELL_SDK)/samples/mk

include $(CELL_MK_DIR)/sdk.makedef.mk

PPU_OPTIMIZE_LV		:= -O2
PPU_INCDIRS		:= -Iinclude -I../include
PPU_CPPFLAGS		:= -DPSGL -D_DEBUG
PPU_CXXSTDFLAGS		+= -fno-exceptions
PPU_SRCS		:= src/main.cc
PPU_TARGET		:= openmsx.elf
PPU_LIBS		:= ../libfw.a
PPU_LDLIBDIR		:= -L.. -L$(PPU_PSGL_LIBDIR)
PPU_LDLIBS		:= -lPSGL -lPSGLU -lPSGLFX -lm \
				   -lresc_stub -lgcm_cmd -lgcm_sys_stub \
				   -lnet_stub -lio_stub -lsysutil_stub -lsysmodule_stub

include $(CELL_MK_DIR)/sdk.target.mk

Even after this i still get that i do not have gcc or g++ which is not correct because i can compile other software for the ps3 with no problems.How can i configure the openmsx to get the correct gcc that i have installed?
I did also try the staticbindist it downloaded many missing libraries but again halted on the fact that i do not have the g++ or gcc.

hank you

ログイン/登録して投稿

By FiXato

Scribe (1743)

FiXato さんの画像

30-05-2020, 21:53

Perhaps try exporting the CXX environment variable with the compiler you want, and sure this compiler's path is on your PATH? (Alternatively try setting CXX to the full path of your desired compiler)?
export CXX=/path/to/your/desired/g++
https://openmsx.org/manual/compile.html#compilelocal

By Manuel

Ascended (19678)

Manuel さんの画像

30-05-2020, 23:19

You can't simply skip the Makefile files that come with openMSX... you'll have to make use of the openMSX build system.

Is the OS basically Linux? Then you should make a copy of build/platform-linux.mk and modify it for the PS3 environment. I'm not sure if any modification is required. Then compile like this:
make staticbindist OPENMSX_TARGET_OS=<yourplatform> OPENMSX_TARGET_CPU=x86_64 OPENMSX_FLAVOUR=opt

You can see why it's not detecting the compiler in derived/x86_64-mingw-w64-opt/config/probe.log

You get that folder, because openMSX's build system puts all generated files into the derived folder.

Looking at this folder name which was generated for you, the build system concluded that you're building for Windows with MinGW-W64...

By sdsnatcher73

Enlighted (4298)

sdsnatcher73 さんの画像

31-05-2020, 06:26

You should not need ming or msys I believe

By nikodr

Paladin (750)

nikodr さんの画像

31-05-2020, 16:45

Thank you all for the replies.Indeed i have a windows 7 machine with ming and msys installed along with the cell sdk and the needed files for the firmware of ps3.It is indeed a linux kind of installation with all the needed gcc g++ compiler plus the files needed to compile for ps3 cell platform.

i will try what you told me and post later my progress.
But shold not there be a way for it to know that yes i am using a x64 bit windows but i want to export code for ppc and the cell sdk?Because ido not want x64 exe files.?

sdsnatcher73 wrote:

You should not need ming or msys I believe

I am trying to make a pkg for ps3 built with the cell sdk that outputs self and fself files that i then convert to pkg files for the gameos of ps3.So there is no other way than ming the required sdk of ps3 and msys.

By Manuel

Ascended (19678)

Manuel さんの画像

31-05-2020, 18:50

The variable OPENMSX_TARGET_CPU=ppc might help. But I'll ask mthuurne whether he can help you. No one ever cross compiled openMSX on Windows for another system.

By nikodr

Paladin (750)

nikodr さんの画像

31-05-2020, 21:34

Thanik you manuel.The truth is in this machine i want to install another vmware machine and try to make an sdk enviroment fro ps4 jailbroken machines up to firmware 5.05 you can install apps on ps4.Would be good to port openmsx to as many of those consoles as possible.
I will have more time tomorrow to try and post my results.
Probably as platform it should be ppc64 i remember when i install yellow dog linux and ubuntu on the ps3 and in the info it said ppc64.

By mth

Champion (507)

mth さんの画像

31-05-2020, 23:34

Eh, it looks like you're trying to compile openMSX to run on the cell processors, not on the PPC main CPU. I don't think that's not going to work: the cell processors have specialized instruction sets and limited memory; they need code designed and written specifically for them.

By psxdev

Resident (45)

psxdev さんの画像

01-06-2020, 01:25

Port things to PlayStation families is not only do make. However impossible is nothing Tongue

Openmsx is not too much friendly for embed devices with custom OS with different philosophy from linux or windows based devices.

Many auxiliar libraries used in Openmsx are not present at all in console world, so it is a pain in the ass to make a port believe me Tongue. I would love to port it but by now no free time to do it.

I made ports for fmsx and bluemsx for differents PlayStation devices included PlayStation 4. Those are c based more easy to port but you will need adapt to PlayStation many parts, source is published if you need references.

I am behind of proper port of Openmsx for PlayStation families but a lightweight core is needed to avoid some libraries that i am not going to port (tcl for example i will never port it sorry) and rewrite a lot to adapt to PlayStation requirements.

reference msx part at https://psxdev.github.io/stuff.html

check the video at the end of the page sorry it is in spanish (MSX RU06 video(spanish) https://psxdev.github.io/msxorbis.html

I will publish news about PS4 in a few days perhaps on 13th related to msx if i have some free time

By sdsnatcher73

Enlighted (4298)

sdsnatcher73 さんの画像

01-06-2020, 06:09

nikodr wrote:
sdsnatcher73 wrote:

You should not need ming or msys I believe

I am trying to make a pkg for ps3 built with the cell sdk that outputs self and fself files that i then convert to pkg files for the gameos of ps3.So there is no other way than ming the required sdk of ps3 and msys.

Yes you are right I thought you were building on the PS3 directly (even though it said Windows 7 in your post).

By nikodr

Paladin (750)

nikodr さんの画像

01-06-2020, 10:13

psxdev wrote:

Port things to PlayStation families is not only do make. However impossible is nothing Tongue

Openmsx is not too much friendly for embed devices with custom OS with different philosophy from linux or windows based devices.

Many auxiliar libraries used in Openmsx are not present at all in console world, so it is a pain in the ass to make a port believe me Tongue. I would love to port it but by now no free time to do it.

I made ports for fmsx and bluemsx for differents PlayStation devices included PlayStation 4. Those are c based more easy to port but you will need adapt to PlayStation many parts, source is published if you need references.

I am behind of proper port of Openmsx for PlayStation families but a lightweight core is needed to avoid some libraries that i am not going to port (tcl for example i will never port it sorry) and rewrite a lot to adapt to PlayStation requirements.

reference msx part at https://psxdev.github.io/stuff.html

check the video at the end of the page sorry it is in spanish (MSX RU06 video(spanish) https://psxdev.github.io/msxorbis.html

I will publish news about PS4 in a few days perhaps on 13th related to msx if i have some free time

Thank you so much for your reply.

So it seems that openmsx is not possible to port to ps3 yet because of missing libraries not present yet.I should go to the fmsx route instead?

Would it be possible to create a different lightweight core and make a different openmsx version for those on consoles like these?is it much work?
Can i help beta-test it?
I am looking forward for your ps4 also news

ページ 1/2
| 2