SeleDreams / godot-2-3ds

Unfinished Godot 2 port for the nintendo 3DS
Other
52 stars 2 forks source link

Opus error when compiling #3

Open trevorwatkins1129 opened 3 months ago

trevorwatkins1129 commented 3 months ago
godot-2-3ds git:(master) scons platform=3ds target=release llvm=yes
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
[Initial build] Compiling ==> thirdparty/opus/silk/quant_LTP_gains.c
In file included from thirdparty/opus/silk/quant_LTP_gains.c:32:
thirdparty/opus/silk/quant_LTP_gains.c: In function 'silk_quant_LTP_gains':
thirdparty/opus/silk/quant_LTP_gains.c:86:17: error: passing argument 3 of 'silk_VQ_WMat_EC_c' from incompatible pointer type [-Wincompatible-pointer-types]
   86 |                 &gain_Q7,               /* O    sum of absolute LTP coefficients                        */
      |                 ^~~~~~~~
      |                 |
      |                 opus_int32 * {aka long int *}
thirdparty/opus/silk/main.h:237:57: note: in definition of macro 'silk_VQ_WMat_EC'
  237 |     ((void)(arch),silk_VQ_WMat_EC_c(ind, rate_dist_Q14, gain_Q7, in_Q14, W_Q18, cb_Q7, cb_gain_Q7, cl_Q5, \
      |                                                         ^~~~~~~
thirdparty/opus/silk/main.h:223:34: note: expected 'int *' but argument is of type 'opus_int32 *' {aka 'long int *'}
  223 |     opus_int                    *gain_Q7,                       /* O    sum of absolute LTP coefficients            */
scons: *** [thirdparty/opus/silk/quant_LTP_gains.3ds.opt.32.o] Error 1
scons: building terminated because of errors.
trevorwatkins1129 commented 3 months ago

And if I try to compile the x11 target, I get this error:

godot-2-3ds git:(master) scons platform=x11 target=release llvm=yes
scons: Reading SConscript files ...
Package xi was not found in the pkg-config search path.
Perhaps you should add the directory containing `xi.pc'
to the PKG_CONFIG_PATH environment variable
Package 'xi', required by 'virtual:world', not found
xi not found.. cannot build with touch. Aborting.
SeleDreams commented 3 months ago

Why are you passing llvm=yes ? The 3ds toolchain relies on gcc so llvm is not a correct parameter here. For x11, you are missing installed libraries. The error message indicates you miss the package libxi-dev if you're on ubuntu, you'll have to see the equivalent for your distribution

Le jeu. 1 août 2024 à 01:59, TheDuckDev @.***> a écrit :

And if I try to compile the x11 target, I get this error:

*➜ godot-2-3ds git:(master*) scons platform=x11 target=release llvm=yes scons: Reading SConscript files ... Package xi was not found in the pkg-config search path. Perhaps you should add the directory containing `xi.pc' to the PKG_CONFIG_PATH environment variable Package 'xi', required by 'virtual:world', not found xi not found.. cannot build with touch. Aborting.

— Reply to this email directly, view it on GitHub https://github.com/SeleDreams/godot-2-3ds/issues/3#issuecomment-2261679979, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD4UF4MIOKUOCOV35RAE623ZPF26HAVCNFSM6AAAAABLZOGZ4CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENRRGY3TSOJXHE . You are receiving this because you are subscribed to this thread.Message ID: @.***>

trevorwatkins1129 commented 3 months ago

Ah just used to using llvm. I use Fedora so I will have to check