
Hi all
tody I have finished my actions about cmake.
Now, the flex, bison, and sed generated files will be generated at the source dir. They must be available in SVN to have a default if the buildhost does not support this programs.
The Mib's Pib's will be installed too, TBD if the *.orig should installed?
This is the default install tree on UNIX: `-- usr |-- bin |-- etc | `-- smi |-- include |-- lib | `-- pkgconfig `-- share |-- aclocal |-- cmake | `-- Modules |-- man | `-- man3 |-- mibs | |-- iana | |-- ietf | |-- irtf | |-- site | `-- tubs `-- pibs |-- ietf |-- site `-- tubs
The following variables are visible in CMakeCache.txt and can be changed if needed: BACKEND_SMI:BOOL=ON BACKEND_SMING:BOOL=ON BUILD_SHARED_LIBS:BOOL=ON CMAKE_BUILD_TYPE:STRING=Release CMAKE_INSTALL_PREFIX:PATH=/usr DEFAULT_ERRORLEVEL:STRING=3 DEFAULT_USERCONFIG:STRING=.smirc DIFF_EXECUTABLE:FILEPATH=/usr/bin/diff DIR_SEPARATOR:STRING=/ LIBSMI_SYSTEMCONFIG:STRING=etc/smi LIBSMI_SYSTEM_MIBDIR:STRING=share MAX_LEX_DEPTH:STRING=30 PATH_SEPARATOR:STRING=:
# on my build host: ProductName: Mac OS X ProductVersion: 10.5.8 BuildVersion: 9L30
The following are some of the valid targets for generated Makefile: ... all (the default if no target is provided) ... clean ... depend ... edit_cache ... generated ... install ... install/local ... install/strip ... list_install_components ... rebuild_cache ... uninstall ... backend_smi_bison ... backend_smi_flex ... backend_sming_bison ... backend_sming_flex ... smi ... generate_dump_svg_script_h ... smidiff ... smidump ... smilint ... smiquery ... smixlate
to build on my MAC with minGW cross tools I do: cd build && cmake -DCMAKE_C_COMPILER=i386-mingw32-gcc - DCMAKE_CXX_COMPILER=i386-mingw32-g++ \ -DCMAKE_SYSTEM_NAME=Windows -DCMAKE_INSTALL_PREFIX=C:/usr .. && make install
Attention: If a windows drive letter is given, the files are installed under build/C:/usr create a zip archive from usr (without C:/) and it works on Windows XP, nice ;-)
Test and distribution are open issues! I have to prevent that .svn files are installed with mibs, sorry, my fault! The handling with bison and flex should use the cmake macros! That would be clear and more portable.
The files are tested with last release (with a view lines commented out) and current trunk Revision 22530.
There are a view files you may have a lock at: CMakeFiles.sh CMakeLists.txt Darwin-install.log crosscompile.log
They show all the details what I have done.
//regards
Claus Klein
On 07.01.2010, at 22:48, Claus Klein wrote:
Hi Pau,
today I tested it with cygwin and MSVC studio 2005. cygwin works fine. MS needs little more love, but now it works too. (There are a lot of warnings)
We should use 'gcc -Wall -Wlong-long -pedantic -std=c99' to be save. Is someone able to check and fix it on svn trunk?
I will fist add the MIB installation. This weekend, I send you my final version.
What is about the man pages and docs, what is to be done? Can you do this?
It may be good to give me a feedback if I am on the right way?
1>------ Build started: Project: INSTALL, Configuration: Debug Win32
1> 1>Performing Post-Build Event... 1>-- Install configuration: "Debug" 1>-- Installing: C:/Programme/CMake 2.8/share/cmake-2.8/Modules/ FindLibSmi.cmake 1>-- Up-to-date: C:/usr/etc/smi/smi.conf-example 1>-- Installing: C:/usr/lib/smid.lib 1>-- Installing: C:/usr/bin/smid.dll 1>-- Installing: C:/usr/include/smi.h 1>-- Installing: C:/usr/bin/smiqueryd.exe 1>-- Installing: C:/usr/bin/smilintd.exe 1>-- Installing: C:/usr/bin/smidumpd.exe 1>-- Installing: C:/usr/bin/smidiffd.exe 1>-- Installing: C:/usr/bin/smixlated.exe 1>Build log was saved at "file://o:\DATEN\workspace \libsmi-0.4.8\build\INSTALL.dir\Debug\BuildLog.htm" 1>INSTALL - 0 error(s), 0 warning(s) ========== Build: 1 succeeded, 0 failed, 8 up-to-date, 0 skipped ==========
Claus
On 06.01.2010, at 21:29, Claus Klein wrote:
Hello Pau,
thanks for the good work!
I have downloaded your tar file and tested on my MAC today. Than I changed some points to get it work with current svn sources and dit a little cleanup. I hope you agree ;-))
I did not understand why you are working with static and dynamic libs both? And what do you mean with "make download"? The MIBS should be installed too, but not today by my.
I send you my cmake files only, so you can test if you want. (without PDF file) ck
The current state is good, but no complete.
-- !! This message is brought to you via the `libsmi' mailing list. !! Please do not reply to this message to unsubscribe. To unsubscribe or adjust !! your settings, send a mail message to <libsmi-request@ibr.cs.tu-bs.de
!! or look at https://mail.ibr.cs.tu-bs.de/mailman/listinfo/libsmi.