Hi all, First post.
So i was going about setting up the PrizmSDK, and it was painless! Then, as i was looking over the tutorials for WikiPrizm (see this page -> http://prizm.cemetech.net/index.php/Hello_World) i noticed that the version of libfxcg that comes with the SDK is outdated. So i pulled the code from the github, and am having trouble building it.
I tried placing it into the SDKs directory (specifically under the 'projects' subdirectory) and building it using the tools packaged with the SDK (the sh3eb-elf-gcc toolchain). This didnt work; the build succeded up until it started compiling the syscalls (under libfxcg/libfxcg/syscalls). At this point, it stopped compilation, giving the following trace:
make -C libfxcg
make[1]: Entering directory 'D:/PrizmSDK-0.3/projects/libfxcg/libbfxcg'
sh3ed-elf-gcc -c -ffunction-sections -fdata-sections -Os -Lr -I../include -mhitachi -m4a-nofpu -flto -stdt=c99 -Wall -Wextra syscalls/Alpha_GetData.s -o syscalls/Alpha_GetDate.o
as: unrecognized option '-big'
make[1]: *** [syscalls/Alpha_GetData.o] Error 1
make[1]: Leaving directory 'D:/PrizmSDK-0.3/projects/libfxcg/libbfxcg'
make: *** [all] Error 2
What instantly confused me was the fact that the '-big' option is passed in, when i could not find it in the makefile, OR in the invoked action in the shell (see the trace). I have no clue where it is coming from, and compilation with other toolchains gives errors about other missing options ( '-mhitachi' and '-m4a-nofpu' being the offending ones). I also serached online but had trouble finding information on building libfxcg from source - this forum also had no information on building it on Windows (Mac and Linux are covered though, if im not mistaken).
So, in summary, what can i do to fix this error. How do i get a successful compilation from source (github link -> https://github.com/Jonimoose/libfxcg) on windows? Full steps would be greatly appreciated! Or, do i just move to linux and attempt to compile from there. Linux would be the least appealing option - i have no previous experience and would be stumped for a while. Full steps would be even more required for this option.
EDIT 1:
I forgot to mention that im attempting compilation with a fresh copy of the PrizmSDK package available on this forum (link -> https://www.cemetech.net/news.php?id=486). I simply copied and pasted the files for libfxcg (downloaded fresh from github, link above) into the projects directory on the fresh SDK package. The only edits were in the 2 makefiles for libfxcg, in libfxcg/libfxcg and libfxcg/libc. The edits consisted of specifying the TOOLCHAIN as sh3eb-elf-. The make.bat used for compilation of libfxcg was copied from the 'example' project already present in the PrizmSDK, and pasted into the root libfxcg directory.
TL;DR
Compilation from source for Libfxcg fails on windows, using the PrizmSDKs built in sh3eb-elf toolchain. Wierd option is being (apparently) passed in, despite not showing up in the shell trace. How do i compile libfxcg on windows?
So i was going about setting up the PrizmSDK, and it was painless! Then, as i was looking over the tutorials for WikiPrizm (see this page -> http://prizm.cemetech.net/index.php/Hello_World) i noticed that the version of libfxcg that comes with the SDK is outdated. So i pulled the code from the github, and am having trouble building it.
I tried placing it into the SDKs directory (specifically under the 'projects' subdirectory) and building it using the tools packaged with the SDK (the sh3eb-elf-gcc toolchain). This didnt work; the build succeded up until it started compiling the syscalls (under libfxcg/libfxcg/syscalls). At this point, it stopped compilation, giving the following trace:
make -C libfxcg
make[1]: Entering directory 'D:/PrizmSDK-0.3/projects/libfxcg/libbfxcg'
sh3ed-elf-gcc -c -ffunction-sections -fdata-sections -Os -Lr -I../include -mhitachi -m4a-nofpu -flto -stdt=c99 -Wall -Wextra syscalls/Alpha_GetData.s -o syscalls/Alpha_GetDate.o
as: unrecognized option '-big'
make[1]: *** [syscalls/Alpha_GetData.o] Error 1
make[1]: Leaving directory 'D:/PrizmSDK-0.3/projects/libfxcg/libbfxcg'
make: *** [all] Error 2
What instantly confused me was the fact that the '-big' option is passed in, when i could not find it in the makefile, OR in the invoked action in the shell (see the trace). I have no clue where it is coming from, and compilation with other toolchains gives errors about other missing options ( '-mhitachi' and '-m4a-nofpu' being the offending ones). I also serached online but had trouble finding information on building libfxcg from source - this forum also had no information on building it on Windows (Mac and Linux are covered though, if im not mistaken).
So, in summary, what can i do to fix this error. How do i get a successful compilation from source (github link -> https://github.com/Jonimoose/libfxcg) on windows? Full steps would be greatly appreciated! Or, do i just move to linux and attempt to compile from there. Linux would be the least appealing option - i have no previous experience and would be stumped for a while. Full steps would be even more required for this option.
EDIT 1:
I forgot to mention that im attempting compilation with a fresh copy of the PrizmSDK package available on this forum (link -> https://www.cemetech.net/news.php?id=486). I simply copied and pasted the files for libfxcg (downloaded fresh from github, link above) into the projects directory on the fresh SDK package. The only edits were in the 2 makefiles for libfxcg, in libfxcg/libfxcg and libfxcg/libc. The edits consisted of specifying the TOOLCHAIN as sh3eb-elf-. The make.bat used for compilation of libfxcg was copied from the 'example' project already present in the PrizmSDK, and pasted into the root libfxcg directory.
TL;DR
Compilation from source for Libfxcg fails on windows, using the PrizmSDKs built in sh3eb-elf toolchain. Wierd option is being (apparently) passed in, despite not showing up in the shell trace. How do i compile libfxcg on windows?