Hi Namik, > While I was able to get the project up & running, the procedure is far > from pretty. There were several issues along the way: > > -I fail to see the difference between previous submodules usage and the > current setup... In the end both libarchive and zlib are placed in the > external folder. The only difference is that now we have to do more git > bash commands to get there. What am I missing?
The reason submodules don't work is that libarchive does not compile with the latest tip on Visual Studio, so one has to use the last v3.1.2 release. On Linux, v3.1.2 fails due to missing CMake scripts, so one has to use the latest master. I could not find a way to set this up correctly with git, unless we exclude on operating system upfront. > -zlib compiled fine > -libarchive had some issues with this: > https://gitorious.org/cmake/cmake/commit/8088332178a9fb082dd387beae9b1f262615a228 > I had to apply the fix manually, no idea why they haven't pushed it to > their master. This is exactly why I added 'git checkout v3.1.2' in the build instructions and the reason for the failures mentioned above. ;-) > Since I didn't create a build folder in the project source folder, I had > to provide my own path to ZLIB_INCLUDE_DIR and ZLIB_LIBRARY. > It compiled fine after that. Yes, it is necessary to provide a ZLIB_INCLUDE_CIR and ZLIB_LIBRARY. Since this is documented, I think it's acceptable. If you think it requires further explanation, please update the README accordingly. > -then came Benchmark GUI. Again, since I was using a different build > folder, I had to do some path setting for zlib and libarchive. It > compiled fine, but failed to run since libarchive.dll wasn't placed in > the same folder as the exe. When I placed it there manually, it worked. I'm confused. There should be no .dll from neither libarchive nor zlib in use here. That's the whole purpose of the Findarchive-static.cmake and Findzlibstatic.cmake scripts: They only grab the static libraries and link these. > While I'm glad it works alright now, I must say it's way more difficult > than I'd like it to be. Is it maybe possible to make a dedicated > CMakeLists file just for zlib and libarchive? That would make things > significantly easier. I'll comment on this in the next email. Best regards, Karli ------------------------------------------------------------------------------ Want fast and easy access to all the code in your enterprise? Index and search up to 200,000 lines of code with a free copy of Black Duck Code Sight - the same software that powers the world's largest code search on Ohloh, the Black Duck Open Hub! Try it now. http://p.sf.net/sfu/bds _______________________________________________ ViennaCL-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/viennacl-devel
