This question is not about programming but compiling with GNU GCC/Make. I am not on a UNIX machine but am using the UNIX-like environment MSYS with MinGW for compiling. The problem that I am having is that I cannot get guile to compile. For some reason it cannot find libltdl which is part of libtool. The libltdl header and library files are located in the default include and lib directories. This is the error that stops the configure script:
I've checked the README file but have found nothing to help solve this problem. I've tried using the "--with-ltdl-prefix" flag, but it does not help.
I'm sorry if this question is not on topic. I thought this would be the best place since it deals with compiling on UNIX environments and I can't find any compiler specific forums.
In addition to using the right directories that the compile can find static libraries in, look at your dynamic linker man page (the subroutine ld() usually man section 2) to see what the local $LD_LIBRARY_PATH variable name is (some UNIX use other names and one I recall just overloaded $PATH with this duty). Make sure any dynamic libraries lib dir paths are in your $LD_LIBRARY_PATH just like command bin dir paths are in $PATH.
Sometime you need a specific minimum version to support a compile. Naturally, the prerequisite installs have to be for the desired target environment: O/S and CPU.
I recompiled libtool/libltdl as a shared library and it fixed the problem. However, I have a new problem during compilation:
It appears that there might be some incompatibilities between guild and pthreads-w32. I will try compiling without thread support.
----- Edit -----
I uninstalled pthreads-w32 and tried compiling again. Now I am getting the following error:
----- Edit -----
I finally gave up on guile-2.0.6 and compiled an older version, 1.8.8. It compiled fine after a couple of little fixes:
1) Had to use the following CFLAGS options to configure command for gcc 4.7:
2) Edited config.h to comment out "HAVE_STRUCT_TIMESPEC" since already defined in pthread.h:
3) Patched file libguile/guile-snarf-docs.in: Patch source
My only question is can I set an option from the configure command to undefine HAVE_STRUCT_TIMESPEC so that I don't have to manually edit the config.h file?
The options available in configure can differ, ./configure --help to see if something which does what you want exists.
It may be a bug in configure; its purpose is to autodetect these things for you and generate the .h file accordingly. But if your paths are odd, it can't autodetect everything.
Hi: in the info page for readline library I read
-- Function: void rl_variable_dumper (int readable)
Print the readline variable names and their current values to
`rl_outstream'. If READABLE is non-zero, the list is formatted in
such a way that it can be made part of an... (1 Reply)
Hello,
I am writing a program which relies on some heavy astronomy calculations, so I am using libnova c++ astronomy libraries => libnova: libnova.
I started off with a simple program to make sure everything compiled ok (below)
//Simple example program to test Libnova C++ class libraries
... (2 Replies)
Hi All,
I was wondering if someone could clarify the best way to display mpeg video with SDL in MinGW.
After scouring the internet it seems there is not a lot of information regarding this subject (or at least not up to date) and libraries that are available for this purpose.
Any help/... (1 Reply)