{"id":1175,"date":"2025-08-17T22:12:29","date_gmt":"2025-08-17T20:12:29","guid":{"rendered":"https:\/\/pcmacb.de\/?page_id=1175"},"modified":"2025-08-17T22:12:29","modified_gmt":"2025-08-17T20:12:29","slug":"spice","status":"publish","type":"page","link":"https:\/\/pcmacb.de\/?page_id=1175","title":{"rendered":"Spice"},"content":{"rendered":"\n<p>installation<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>curl -O https:\/\/www.spice-space.org\/download\/releases\/spice-server\/spice-0.15.2.tar.bz2<br>tar -xjf spice-0.15.2.tar.bz2<br>cd spice-0.15.2<\/code><\/pre>\n\n\n\n<p>Apply macOS fixes (edit files with nano or your preferred editor):<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>In server\/red-worker.cpp, comment out the line with pthread_setname_np(worker-&gt;thread, &#8222;SPICE Worker&#8220;); (add \/\/ at the start).<\/li>\n\n\n\n<li>In server\/red-stream.c and server\/tests\/test-websocket.c, add this line near the top (after includes):<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>#define MSG_NOSIGNAL 0x2000 \/* don't raise SIGPIPE *\/<\/code><\/pre>\n\n\n\n<p>Search all Makefiles (e.g., via grep -r -l &#8222;\\-Werror&#8220; .) and remove -Werror flags to ignore warnings-as-errors.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>grep -r -l \"\\-Werror\" .<\/code><\/pre>\n\n\n\n<p>Check openssl:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ls \/usr\/local\/opt | grep openssl<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>openssl<\/li>\n\n\n\n<li>openssl@3 <\/li>\n\n\n\n<li>openssl@3.5<\/li>\n<\/ul>\n\n\n\n<p>HERE WE CHOOSE &#8222;3&#8220;!!<\/p>\n\n\n\n<p>Set environment variables for OpenSSL (adjust if your OpenSSL path differs):<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>export PKG_CONFIG_PATH=\"\/usr\/local\/opt\/openssl@3\/lib\/pkgconfig:$PKG_CONFIG_PATH\"\nexport LDFLAGS=\"-L\/usr\/local\/opt\/openssl@3\/lib\"\nexport CPPFLAGS=\"-I\/usr\/local\/opt\/openssl@3\/include\"<\/code><\/pre>\n\n\n\n<p>Configure, build, and install:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cd spice-0.15.2\n.\/autogen.sh\n.\/configure --prefix=\/usr\/local --disable-werror<\/code><\/pre>\n\n\n\n<p>check again for &#8222;-Werror&#8220;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>find . -name 'Makefile' -exec sed -i '' 's\/-Werror\/\/g' {} \\;<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>make -j$(sysctl -n hw.ncpu)<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo make install<\/code><\/pre>\n\n\n\n<p>check:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pkg-config --modversion spice-server<\/code><\/pre>\n\n\n\n<p>If you hit errors (e.g., missing dependencies), ensure all Homebrew packages from step 1 are installed and retry.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>installation Apply macOS fixes (edit files with nano or your preferred editor): Search all Makefiles (e.g., via grep -r -l &#8222;\\-Werror&#8220; .) and remove -Werror flags to ignore warnings-as-errors. Check openssl: HERE WE CHOOSE &#8222;3&#8220;!! Set environment variables for OpenSSL <a class=\"more-link\" href=\"https:\/\/pcmacb.de\/?page_id=1175\">weiterlesen&#8230;<\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_lmt_disableupdate":"","_lmt_disable":"","footnotes":""},"class_list":["post-1175","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/pcmacb.de\/index.php?rest_route=\/wp\/v2\/pages\/1175","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pcmacb.de\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/pcmacb.de\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/pcmacb.de\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/pcmacb.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1175"}],"version-history":[{"count":1,"href":"https:\/\/pcmacb.de\/index.php?rest_route=\/wp\/v2\/pages\/1175\/revisions"}],"predecessor-version":[{"id":1177,"href":"https:\/\/pcmacb.de\/index.php?rest_route=\/wp\/v2\/pages\/1175\/revisions\/1177"}],"wp:attachment":[{"href":"https:\/\/pcmacb.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1175"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}