Building wine_bridge with 32 and 64bit not possible
I am trying to build Linuxtrackx-ir Level 2 with wine_bridge on Ubuntu 24.04 .
When preparing the system I need to install wine32-tools and win64-tools. With apt under Ubuntu this is not possible as the first one gets removed when installing the other.
Therefore even with the multi-arch flag I got linking ELF errors:
$ cmake .. -DLIB32DIR=i386-linux-gnu -DENABLE_LTR_32LIB_ON_X64=ON -DCMAKE_INSTALL_PREFIX=/usr/local
...
-- Wine plugin: enabled
-- 32-bit development headers: found (32-bit Wine components will be built)
-- Found Debian/Ubuntu wine32 libraries in /usr/lib/i386-linux-gnu/wine
-- Found Ubuntu/Debian wine64 libraries in /usr/lib/x86_64-linux-gnu/wine
-- Wine64 plugin: enabled (64-bit components will be built)
-- Wine32 libraries: found (32-bit Wine libraries detected)
-- 32-bit library on 64-bit host: enabled
...
$ cmake --build . -j$(nproc)
[ 36%] Built target TrackIR
/usr/bin/ld: relocatable linking with relocations from format elf32-i386 (/usr/lib/i386-linux-gnu/wine/i386-unix/libadvapi32.a(advapi32-00000168.o)) to format elf64-x86-64 (tmp69228e95/Tester64-00000000.spec-00000001.o) is not supported
winebuild: /usr/bin/ld failed with status 1
winegcc: /usr/lib/wine/winebuild failed
gmake[2]: *** [src/wine_bridge/tester/CMakeFiles/Tester64.dir/build.make:74: src/wine_bridge/tester/CMakeFiles/Tester64] Fehler 2
gmake[1]: *** [CMakeFiles/Makefile2:951: src/wine_bridge/tester/CMakeFiles/Tester64.dir/all] Fehler 2