libsc
libsc copied to clipboard
Problems encountered when building libsc
Description There is the process when building libsc with Cygwin:
- clone the github code ;
- run ./bootstrop ;
- ./configure (without mpi)
- make
- make install Because I encountered many problems when I reference the "readme.txt",I just built libsc as the general compilation and installation process.
Additional information
Operating system, build configuration, etc.
Thanks for the report. Good to know it builds on Cygwin.
The version shows up as UNKNOWN; what happens if you run git describe?
You may use make -j V=0 for a parallel, faster build and less console output.
If you think some of our instructions are wrong, please be specific and we'll look at it!
Thank you for your reply!
I have decided to stop attempting to build libsc on Cygwin due to several unresolved issues. However, after learning Linux, I believe I have successfully built glib, gts, and libsc on a virtual machine! The process is illustrated in Picture 1, and the results are shown in Picture 2.
I do have two questions though:
-
If I build libsc using "### Autotools," do I need to skip the "### CMake" process?
-
I cannot find libsc in my bin folder. Should I configure the environment variables?
I would be grateful if you could provide me with some advice.
@UNSAT CMake and Autotools are two alternative methods to compile and install. If you're having trouble with one you can always try the other.
As for seeing libsc in your bin, it looks like your library was installed to /home/future/libsc-master/local/
(the default location, you can override this with ./configure --prefix=/path/to/install
). If you look in /home/future/libsc-master/local/lib
you should see libsc.a
, as well as all the headers in /home/future/libsc-master/local/include
.
On the related issue of Cygwin support, it looks like you will have a difficult time installing shared libs on Cygwin, but static libraries worked fine for me (without MPI) using the latest Cygwin install and all of the Cygwin develop packages installed.
I wasn't able to replicate the git-version "UNKOWN", can I ask what you did to clone the repository?
As for seeing libsc in your bin, it looks like your library was installed to
/home/future/libsc-master/local/
(the default location, you can override this with./configure --prefix=/path/to/install
). If you look in/home/future/libsc-master/local/lib
you should seelibsc.a
, as well as all the headers in/home/future/libsc-master/local/include
.
configure --disable-shared
makes sure that we only generate the .a
files and not the .so
ones.
On the related issue of Cygwin support, it looks like you will have a difficult time installing shared libs on Cygwin, but static libraries worked fine for me (without MPI) using the latest Cygwin install and all of the Cygwin develop packages installed.
Any news? Is there anything we can do to help?