← Back to team overview

cuneiform team mailing list archive

Re: First try to build cuneiform-linux in MSYS env.

 

Aleks Kuzemko wrote:
I make changes in CMakeLists.txt - replace in line like this
install(TARGETS rimage LIBRARY DESTINATION ${LIBDIR}) to
install(TARGETS rimage ARCHIVE DESTINATION ${LIBDIR})

and comment (becouse I recive error with this lines)
# dl* functions are already in libc
# if(NOT CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
# find_library(DL_LIB dl)
# endif()

After this I can run Cmake with -G "MSYS Makefiles".

When I try a command
make all
I recive a error
[ 0%] Building C object cuneiform_src/Kern/CMakeFiles/windummy.dir/windummy.obj g:/workspace/cuneifor-linux/cuneiform_src/Kern/windummy.c:36:19: error: dlfcn.h: No such file or directory

The source of this error is commented line
# if(NOT CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
# find_library(DL_LIB dl)
# endif()

I have a qustions:
What is dl library? What is it analog on the Windows?
Please, try to use man pages before asking such questions.

dl* is a set of functions to load/unload shared libraries on most (all?) modern unixes. You don`t need it on windows,of course, because there is LoadLibrary win32 api function for this. Most of (if not all) functions inside windummy should be isolated with #ifndef WIN32, because they are just replacement (or stabs) for their native win32 api analogues.

_______________________________________________
Mailing list: https://launchpad.net/~cuneiform
Post to     : cuneiform@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~cuneiform
More help   : https://help.launchpad.net/ListHelp





References