| Both sides previous revisionPrevious revisionNext revision | Previous revision |
| operating_systems:linux:debian:acdsn-ac [2012/09/10 06:51] – sbolay | operating_systems:linux:debian:acdsn-ac [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1 |
|---|
| ====== ACDSN-AC ====== | |
| This is the [[ACDSN]] Access Client (ACDSN-AC) interface used to manage units, | |
| users and rights on NiX1 through the ACDSN daemon. | |
| |
| ===== Source ===== | |
| ==== Windows ==== | |
| <note important> | |
| This described the compilation done on a Mac OSX 10.6.8, 2GHz Intel Core Duo,\\ | |
| with windows XP (EN) Pro SP2 running on Parallels Desktop (Build 6.0.12106).\\ | |
| So, This is a 32 bit version! | |
| </note> | |
| |
| Check that the Environment variable is empty | |
| * MyComputer->Properties->Advanced->Environment Variables->PATH="" | |
| |
| Download and install MinGW | |
| * [[http://www.mingw.org/|MinGW]] | |
| Download and install Strawberry perl | |
| * [[http://strawberry-perl.googlecode.com/files/strawberry-perl-5.16.1.1-32bit.msi|strawberry-perl-5.16.1.1-32bit(2).msi]] | |
| |
| === MinGW === | |
| Compile and install [[http://www.hyperrealm.com/libconfig/libconfig-1.4.8.tar.gz|libconfig]] in the C:/libconfig directory | |
| <code bash> | |
| Administrator@prive /c/tmp/libconfig-1.4.8/libconfig-1.4.8 | |
| $ ./configure --prefix=C:/libconfig | |
| |
| Administrator@prive /c/tmp/libconfig-1.4.8/libconfig-1.4.8 | |
| $ make | |
| |
| Administrator@prive /c/tmp/libconfig-1.4.8/libconfig-1.4.8 | |
| $ make install | |
| </code> | |
| |
| === Strawberry Perl === | |
| |
| Check path | |
| <code dos> | |
| C:\WINDOWS>set path=%path%;C:\perl5\bin | |
| </code> | |
| |
| Update CPAN modules((http://stackoverflow.com/questions/3727795/how-do-i-update-all-my-cpan-module-to-their-latest-versions)) | |
| <code dos> | |
| C:\>cpan App::cpanminus | |
| C:\>cpanm App::cpanoutdated | |
| C:\>cpan-outdated -p | cpanm | |
| </code> | |
| |
| Install Wx | |
| <code dos> | |
| C:\>cpan Wx | |
| </code> | |
| |
| Install Conf::Libconfig (from [[http://search.cpan.org/CPAN/authors/id/C/CN/CNANGEL/Conf-Libconfig-0.06.tar.gz|source]]) | |
| <code dos> | |
| C:\tmp\Conf-Libconfig-0.06>perl Makefile.PL LIBS=-LC:/libconfig/lib INC=-IC:/libconfig/include | |
| C:\tmp\Conf-Libconfig-0.06>dmake | |
| </code> | |
| |
| If your get such lines: | |
| <code dos> | |
| Libconfig.o:Libconfig.c:(.text+0xe6): undefined reference to `_imp__config_setting_get_int_elem' | |
| </code> | |
| |
| Add to Makefile sections EXTRALIBS and LDLOADLIBS the line "C:\libconfig\lib\libconfig.dll.a " | |
| <code dos> | |
| EXTRALIBS = C:\libconfig\lib\libconfig.dll.a C:\strawberry\c\i686-w64-mingw32\lib\libmoldname.a C:\strawberry\c\i686-w64-mingw32\lib\libkernel32.a C:\strawberry\c\i686-w64-mingw32\lib\libuser32.a C:\strawberry\c\i686-w64-mingw32\lib\libgdi32.a C:\strawberry\c\i686-w64-mingw32\lib\libwinspool.a C:\strawberry\c\i686-w64-mingw32\lib\libcomdlg32.a C:\strawberry\c\i686-w64-mingw32\lib\libadvapi32.a C:\strawberry\c\i686-w64-mingw32\lib\libshell32.a C:\strawberry\c\i686-w64-mingw32\lib\libole32.a C:\strawberry\c\i686-w64-mingw32\lib\liboleaut32.a C:\strawberry\c\i686-w64-mingw32\lib\libnetapi32.a C:\strawberry\c\i686-w64-mingw32\lib\libuuid.a C:\strawberry\c\i686-w64-mingw32\lib\libws2_32.a C:\strawberry\c\i686-w64-mingw32\lib\libmpr.a C:\strawberry\c\i686-w64-mingw32\lib\libwinmm.a C:\strawberry\c\i686-w64-mingw32\lib\libversion.a C:\strawberry\c\i686-w64-mingw32\lib\libodbc32.a C:\strawberry\c\i686-w64-mingw32\lib\libodbccp32.a C:\strawberry\c\i686-w64-mingw32\lib\libcomctl32.a | |
| |
| LDLOADLIBS = C:\libconfig\lib\libconfig.dll.a C:\strawberry\c\i686-w64-mingw32\lib\libmoldname.a C:\strawberry\c\i686-w64-mingw32\lib\libkernel32.a C:\strawberry\c\i686-w64-mingw32\lib\libuser32.a C:\strawberry\c\i686-w64-mingw32\lib\libgdi32.a C:\strawberry\c\i686-w64-mingw32\lib\libwinspool.a C:\strawberry\c\i686-w64-mingw32\lib\libcomdlg32.a C:\strawberry\c\i686-w64-mingw32\lib\libadvapi32.a C:\strawberry\c\i686-w64-mingw32\lib\libshell32.a C:\strawberry\c\i686-w64-mingw32\lib\libole32.a C:\strawberry\c\i686-w64-mingw32\lib\liboleaut32.a C:\strawberry\c\i686-w64-mingw32\lib\libnetapi32.a C:\strawberry\c\i686-w64-mingw32\lib\libuuid.a C:\strawberry\c\i686-w64-mingw32\lib\libws2_32.a C:\strawberry\c\i686-w64-mingw32\lib\libmpr.a C:\strawberry\c\i686-w64-mingw32\lib\libwinmm.a C:\strawberry\c\i686-w64-mingw32\lib\libversion.a C:\strawberry\c\i686-w64-mingw32\lib\libodbc32.a C:\strawberry\c\i686-w64-mingw32\lib\libodbccp32.a C:\strawberry\c\i686-w64-mingw32\lib\libcomctl32.a | |
| </code> | |
| |
| Then go for compilation and installation | |
| <code dos> | |
| C:\tmp\Conf-Libconfig-0.06>dmake | |
| C:\tmp\Conf-Libconfig-0.06>dmake install | |
| </code> | |
| |
| Add the missing dll | |
| * copy libconfig-9.dll and libconfig++-9.dll from C:\libconfig\bin into C:\perl5\lib\perl5\MSWin32-x86-multi-thread\auto\Conf\Libconfig | |
| |
| Install Win32::SerialPort | |
| <code dos> | |
| C:\WINDOWS>cpan Win32::SerialPort | |
| </code> | |
| |
| Needed for Par Packer | |
| <code dos> | |
| C:\WINDOWS>cpan Module::ScanDeps --> Failed | |
| C:\WINDOWS>cpanm Module::ScanDeps --> Successful | |
| </code> | |
| |
| FIXME | |
| http://www.nntp.perl.org/group/perl.par/2012/03/msg5308.html | |
| SET PATH=%MYPERL_EXTRA_PATH%;%PATH% | |
| |
| Install Par Packager | |
| <code dos> | |
| C:\tmp\iButtonLock\iButtonLock>cpan pp --> Failed | |
| C:\tmp\iButtonLock\iButtonLock>cpanm pp --> Failed | |
| </code> | |
| |
| OK, There is a bug((https://rt.cpan.org/Public/Bug/Display.html?id=75636)) | |