Closed mathomp4 closed 3 years ago
Cool, let's get this to run on SLES!
I have a few bits of information from building on Windows, where I also had to build a library myself.
I built PCRE like this. Mostly this means I built the static libs, which makes sense because on a random Windows system, the dynamic libs will not be available.
Then, for linking properly, I did this call, and specified the libs either dynamically (Linux) or statically (Windows). This -l
stuff should already be good in your case.
In other words, try setting C_INCLUDE_PATH
to point at the header files, and LDFLAGS_ADDTL
to point at the libs.
Let me know how this works out!
Okay. It took a bit. First I built pcre2 with:
./configure --enable-pcre2-8 --enable-pcre2-16 --enable-pcre2-32
because I didn't see you linked to how you built it. But it seemed happy. Then I was able to build boxes with:
make LDFLAGS_ADDTL='-L/discover/swdev/mathomp4/local-SLES12/lib' CFLAGS_ADDTL='-std=c99 -I/discover/swdev/mathomp4/local-SLES12/include'
It needed the -std=c99
it seems on my system (might be old GCC).
But boxes 2.0.0 works!
I guess next up is maybe figuring out how to fix the brew formula so my laptop can have it! (I really only know how to do brew bump-formula-pr
but I think you might need a bit more updates with pcre2 and libunistring dependencies...)
Great! Now we have instructions on how to build on SLES. 😎 I might link to this in the compile faq.
Thank you for sharing!
This isn't a bug report per se with boxes, but a request for help with building. Namely, I build boxes locally because I'm on a cluster where I don't have admin rights and I'll never convince the admins to
zypper in
boxes. So, I build myself.Today I tried this and:
Obviously, I need libunistring (at least). So I downloaded and built it locally, but now I'm wondering: How do I inform boxes of this? I tried staring at the Makefiles and tried:
but that didn't seem to help. Any ideas?