Page 2 of 2

Re: Ubuntu install tutorial

PostPosted: Sun Mar 28, 2021 5:29 am
by TheOldDragon
new_holmes wrote:I removed the whole directory and retried.
Yes, output directories are created:

dominique@HP-Pavilion-15:~/model3emu-code$ make -f Makefiles/Makefile.UNIX
Creating directory : bin
Creating directory : obj
Generating dependencies: Src/CPU/PowerPC/PPCDisasm.cpp -> obj/PPCDisasm.d
Compiling : Src/CPU/PowerPC/PPCDisasm.cpp -> obj/PPCDisasm.o
cc1plus: internal compiler error: Erreur de segmentation
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-10/README.Bugs> for instructions.
make: *** [Makefiles/Rules.inc:278 : obj/PPCDisasm.o] Erreur 1


Where are you getting the code from? Directly from the Sourceforge via SVN or a tarball, or somewhere else?
As long as you have the dependencies [per the prior posts], literally all you need is:

"create and cd to a new directory", then
Code: Select all
svn checkout https://svn.code.sf.net/p/model3emu/code/trunk model3emu-code
cd model3emu-code/
ln -s Makefiles/Makefile.UNIX Makefile
make


If you have a spare SATA or NVMe SSD, I'd try downloading the Ubuntu 20.10 ISO, writing it onto a USB stick, installing onto the SSD, and making sure the steps above work [and rule out any computer hardware issues you may have].
[I did it yesterday morning, for a different reason [in a VM, so no USB stick creation needed] - and start to finish, including building and testing Supermodel, it was less than 15 minutes...]

Re: Ubuntu install tutorial

PostPosted: Sun Mar 28, 2021 7:12 am
by new_holmes
I use the commands you mention.
Unfortunately I do not have a spare disk.
I will probably wait for the Kubuntu 21.04 upgrade and hope it will fix things.

Re: Ubuntu install tutorial

PostPosted: Sun Mar 28, 2021 9:51 pm
by zuppa_di_pesce
faulty hardware? What if you try compiling with older gcc? What if you try compiling with clang?

Re: Ubuntu install tutorial

PostPosted: Mon Mar 29, 2021 12:31 am
by new_holmes
If I install clang, will it break anything? Will it be the default compiler?

Re: Ubuntu install tutorial

PostPosted: Mon Mar 29, 2021 2:37 am
by zuppa_di_pesce
new_holmes wrote:If I install clang, will it break anything? Will it be the default compiler?
Dunno, sorry I can't tell you, I'm not using Ubuntu. :P

Re: Ubuntu install tutorial

PostPosted: Mon Mar 29, 2021 8:42 am
by new_holmes
Finally I compiled without issue with clang.
No idea what causes this problem with gcc.

As a side note, the new3d engine does not render in 3D (texture2DLod). Legacy engine is OK. New3d works with quad-rendering but I get only 50 fps.
I replaced texture2DLod with tetxture2D. Now it works nicely :D