[help]Homebrew-filter error compiling

Post Reply
triki
Posts: 2
Joined: Mon Jan 07, 2019 10:13 pm

[help]Homebrew-filter error compiling

Post by triki » Mon Jan 07, 2019 10:43 pm

Hello, I installed some time ago devkitpro.
I would have liked to edit Homebrewfilter simply by adding background music.
First I downloaded sources:https://gitlab.com/Nanolx/homebrewfilter
I just wanted to compile for first test, I added the missing libs ones during my first two tests.
But I still have an error:
> "make " dist_wii
===========================
== HBF Installer for Wii ==
===========================
make[1]: Entering directory '/opt/devkitpro/examples/wii/sources-prog/homebrewfilter'
make[2]: Entering directory '/opt/devkitpro/examples/wii/sources-prog/homebrewfilter/main'
clean ...
make[2]: Leaving directory '/opt/devkitpro/examples/wii/sources-prog/homebrewfilter/main'
make[2]: Entering directory '/opt/devkitpro/examples/wii/sources-prog/homebrewfilter/boot'
clean ...
make[2]: Leaving directory '/opt/devkitpro/examples/wii/sources-prog/homebrewfilter/boot'
make[2]: Entering directory '/opt/devkitpro/examples/wii/sources-prog/homebrewfilter/installer'
clean ...
make[2]: Leaving directory '/opt/devkitpro/examples/wii/sources-prog/homebrewfilter/installer'
make[2]: Entering directory '/opt/devkitpro/examples/wii/sources-prog/homebrewfilter/nand-loader'
clean ...
make[2]: Leaving directory '/opt/devkitpro/examples/wii/sources-prog/homebrewfilter/nand-loader'
make[2]: Entering directory '/opt/devkitpro/examples/wii/sources-prog/homebrewfilter/forwarder'
clean ...
make[2]: Leaving directory '/opt/devkitpro/examples/wii/sources-prog/homebrewfilter/forwarder'
make[2]: Entering directory '/opt/devkitpro/examples/wii/sources-prog/homebrewfilter/libruntimeiospatch'
clean ...
make[2]: Leaving directory '/opt/devkitpro/examples/wii/sources-prog/homebrewfilter/libruntimeiospatch'
make[1]: Leaving directory '/opt/devkitpro/examples/wii/sources-prog/homebrewfilter'
make[1]: Entering directory '/opt/devkitpro/examples/wii/sources-prog/homebrewfilter/main'
main.cpp
C:/devkitPro/examples/wii/sources-prog/homebrewfilter/main/source/main.cpp: In function 'int main(int, char**)':
C:/devkitPro/examples/wii/sources-prog/homebrewfilter/main/source/main.cpp:229:2: error: 'SYS_SetResetCallback' was not declared in this scope
SYS_SetResetCallback(WiiResetPressed);
^~~~~~~~~~~~~~~~~~~~
C:/devkitPro/examples/wii/sources-prog/homebrewfilter/main/source/main.cpp:229:2: note: suggested alternative: 'SYS_SetPowerCallback'
SYS_SetResetCallback(WiiResetPressed);
^~~~~~~~~~~~~~~~~~~~
SYS_SetPowerCallback
make[2]: *** [/opt/devkitpro/devkitPPC/base_rules:13: main.o] Error 1
make[1]: *** [Makefile:122: build] Error 2
make[1]: Leaving directory '/opt/devkitpro/examples/wii/sources-prog/homebrewfilter/main'
make : *** [Makefile:72: compile_hbf] Error 2

> Process Exit Code: 2
> Time Taken: 00:24
I am beginner I specify.
To compile I did:
make and parameters dist_wii

Can you help me? Have I missed something?
Thank you

WinterMute
Site Admin
Posts: 1845
Joined: Tue Aug 09, 2005 3:21 am
Location: UK
Contact:

Re: [help]Homebrew-filter error compiling

Post by WinterMute » Thu Jan 10, 2019 3:35 am

You've possibly broken something trying to fix it, that error shouldn't be possible.

I had a look at building it myself but it needs a bit more work yet. The HBF dol itself runs in Dolphin anyway I'll try hw tomorrow.

my changes are at https://github.com/WinterMute/homebrewfilter if it helps any.
Help keep devkitPro toolchains free, Donate today

Personal Blog

triki
Posts: 2
Joined: Mon Jan 07, 2019 10:13 pm

Re: [help]Homebrew-filter error compiling

Post by triki » Thu Jan 10, 2019 11:28 pm

Hello WinterMute,

Thanks for your help.
I just made a donation, After an update of devkitPPC I still have the same problem.

I found my first problem, I used pacman then the command pacman -S wii-dev then all to reinstall, more error system, but I have this now:

Code: Select all

c: / devkitpro / devkitppc / bin / ... / lib / gcc / powerpc-eabi / 8.2.0 /../../../../ powerpc-eabi / bin / ld.exe: can not find -lwupc
c: / devkitpro / devkitppc / bin /../lib/gcc/powerpc-eabi / 8.2.0 /../../../../ powerpc-eabi / bin / ld.exe: can not find -lbz2
collect2.exe: error: ld returned 1 exit status
make [2]: *** [/ opt / devkitpro / devkitPPC / wii_rules: 25: /opt/devkitpro/examples/wii/sources-prog/homebrewfilter-master/main/hbf.elf] Error 1
make [1]: *** [Makefile: 125: build] Error 2
make [1]: Leaving directory '/ opt / devkitpro / examples / wii / sources-prog / homebrewfilter-master / main'
make: *** [Makefile: 72: compile_hbf] Error 2
I found lwupc, I copied and paste include and lib in devkitpro / portlibs / ppc

Other compilation;)
linking ... hbf.elf

Code: Select all

c: / devkitpro / devkitppc / bin /../lib/gcc/powerpc-eabi / 8.2.0 /../../../../ powerpc-eabi / bin / ld.exe: can not find -lbz2
collect2.exe: error: ld returned 1 exit status
make [2]: *** [/ opt / devkitpro / devkitPPC / wii_rules: 25: /opt/devkitpro/examples/wii/sources-prog/homebrewfilter-master/main/hbf.elf] Error 1
make [1]: *** [Makefile: 125: build] Error 2
There I can not find the lib lbz2, I block

To overcome my mistakes I updated all my libs ppc-

Code: Select all

hbf.dol
linking ... hbf_boot.elf
output ... hbf_boot.dol
make[1]: Leaving directory '/opt/devkitpro/examples/wii/sources-prog/homebrewfilter-master/boot'
/bin/sh: wine: command not found
make : *** [Makefile:80: compile_installer] Error 127

> Process Exit Code: 2
> Time Taken: 07:24
On windows I do not have wine ....

Thank you for your help

WinterMute
Site Admin
Posts: 1845
Joined: Tue Aug 09, 2005 3:21 am
Location: UK
Contact:

Re: [help]Homebrew-filter error compiling

Post by WinterMute » Fri Jan 25, 2019 6:00 pm

Sorry to take so long replying, kind of busy with a major project atm. You seem to have got quite far already though & I edited your posts together.

Thanks for the donation, always appreciated & helps us keep providing the tools for free :)

Wine is a method of running windows binaries on linux. When you're running windows you should be able to just run those binaries directly - just remove the wine or mono from the start of the line as appropriate.
Help keep devkitPro toolchains free, Donate today

Personal Blog

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests