Need Help Packaging

Would like some help packaging up RPCEmu for Haiku. I tried but it didn’t go too well. Also trying to set an icon from it. It comes with a .PNG icon.

How are you packaging? Through a recipe of from the cli with the package command, also would be nice to know what isn’t working. :slight_smile:

PNG’s afaik won’t work to set on a binary.

Post it and ask if any of our vector wizards can duplicate it in HVIF format.

Convert the png to hvif: https://github.com/threedeyes/hvif-tools

2 Likes

I’m going to test again with the packaging. I need to uninstall it but Haiku thinks its still installed. When I go to uninstall it, Haiku wants to uninstall a bunch of packages. It’s almost the same as what happened when I uninstalled Librewolf.

No idea what’s going on with your issues with uninstalling. I guess we’d have to know exactly what’s your config and what you do step-by-step.

That aside. Issues may pop up when you try uninstalling and installing a package with the exact same version without rebooting.
When you’re experimenting with packaging stuff, I recommend increasing the revision with every try. For example, your first try has in .PackageInfo “version 1.0.0-1”. For your next try change that to “version 1.0.0-2”. Now can just install the newer package and it’ll automatically uninstall the previous version.

It’s been years though since I last used the “package” command directly. I normally create a haikuporter recipe.

1 Like

By the way,you can create a package target in your Makefile to automate all tasks related to packaging,so that you don’t have to do it again by hand for each new release.
I’m doing this for all my Haiku applications,makes my life a lot easier.
Here’s how it can look like.

I created a recipe.. machine keeps crashing argh. Seems to crash a lot when compiling. I’m on hrev57937+129. Here’s my github repo for it: GitHub - chrisc30/rpcemu-haiku · GitHub

Build error when cloned (multiple definitions):

g++ -Wl,-O1 -Wl,-rpath,/packages/qtwebkit-5.212.0~pre20200924-4/.self/lib -Wl,-rpath,/packages/qtwebkit-5.212.0~pre20200924-4/.self/lib -o ../../rpcemu-interpreter release/superio.o release/cdrom-iso.o release/cmos.o release/cp15.o release/fdc.o release/fpa.o release/hostfs.o release/ide.o release/iomd.o release/keyboard.o release/mem.o release/romload.o release/rpcemu.o release/sound.o release/vidc20.o release/podules.o release/podulerom.o release/icside.o release/rpc-machdep.o release/arm_common.o release/i8042.o release/disc.o release/disc_adf.o release/disc_hfe.o release/disc_mfm_common.o release/hostclipboard.o release/settings.o release/rpc-qt5.o release/main_window.o release/configure_dialog.o release/about_dialog.o release/plt_sound.o release/network-haiku.o release/network-nat.o release/nat_edit_dialog.o release/nat_list_dialog.o release/network.o release/network_dialog.o release/bootp.o release/cksum.o release/cutils.o release/if.o release/ip_icmp.o release/ip_input.o release/ip_output.o release/mbuf.o release/misc.o release/sbuf.o release/slirp.o release/socket.o release/tcp_input.o release/tcp_output.o release/tcp_subr.o release/tcp_timer.o release/udp.o release/keyboard_haiku.o release/hostfs-unix.o release/rpc-linux.o release/arm.o release/codegen_null.o release/qrc_icon.o release/moc_main_window.o release/moc_configure_dialog.o release/moc_about_dialog.o release/moc_rpc-qt5.o release/moc_plt_sound.o release/moc_nat_edit_dialog.o release/moc_nat_list_dialog.o release/moc_network_dialog.o   -lnetwork /boot/system/lib/libQt5Widgets.so /boot/system/lib/libQt5Multimedia.so /boot/system/lib/libQt5Gui.so /boot/system/lib/libQt5Network.so /boot/system/lib/libQt5Core.so -lGL   
/boot/system/develop/tools/bin/../lib/gcc/x86_64-unknown-haiku/13.3.0/../../../../x86_64-unknown-haiku/bin/ld: release/arm.o: in function `arm_unpredictable':
arm.c:(.text+0xd90): multiple definition of `arm_unpredictable'; release/arm_common.o:arm_common.c:(.text+0x1220): first defined here
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile.Release:514: ../../rpcemu-interpreter] Error 1
make[1]: Leaving directory '/Opslag/wip/Haiku/rpcemu-haiku/src/qt5'
make: *** [Makefile:42: release] Error 2

Fixed. Can you try it again when you have some time?

1 Like

Builds OK now :+1: