qPCR4vir / nana-demo

demos and tests for Nana C++ GUI library
https://github.com/cnjinhao/nana
Boost Software License 1.0
68 stars 24 forks source link

Missing filesystem_ext.hpp #7

Closed steveking-gh closed 8 years ago

steveking-gh commented 8 years ago

Building demos against the master branch of nana results in this error (Fedora 23, 64-bit, gcc 5.3): file_explorer.cpp:23:46: fatal error: nana/filesystem/filesystem_ext.hpp: No such file or directory

nana version: 7b6baa5 (origin/hotfix-1.3) Merge branch 'qPCR4vir-filesystem' into hotfix-1.3 (Jinhao)

Demos version e198c1c (HEAD -> dev_nana_in_examples, origin/dev_nana_in_examples, origin/dev_dir_it, dev_dir_it) fix UTF8 issue of calculator under VS2013 (Jinhao)

qPCR4vir commented 8 years ago

Oh, wonderful. I'm very, very happy you are testing the latest I'm playing with. I', trying to adapt and to make much more general the explorer thing. It compile and run now, but it is a protoversion. I will commit and push now to dev_nana_in_examples my latest version. Wait a minute.

qPCR4vir commented 8 years ago

Upps.. with the filesystem from microsoft it works, but not with our. https://travis-ci.org/qPCR4vir/nana/jobs/111620291 I will need to work on that. If you have boost::filesystem it will probably works. That is why it is not yet include in the CMakefile in the jinhao nana repo. (it is pending)

steveking-gh commented 8 years ago

Hi qPCRvlr, Thanks for the quick response. I pulled new nano-demo update and installed boost, but the same error occurs.

qPCR4vir commented 8 years ago

Hi, I suspect you are not using cmake, or? If not you will need to manually un comment https://github.com/qPCR4vir/nana/blob/hotfix-1.3/include/nana/config.hpp#L53

Or with cmake: -DCMAKE_BOOST_FILESYSTEM_AVAILABLE=ON or change to ON in: https://github.com/qPCR4vir/nana/blob/hotfix-1.3/CMakeLists.txt#L34

steveking-gh commented 8 years ago

I'm using CMake.

Switching nana to hotfix-1.3 branch solved the missing include, but filesystem_exp.hpp is a hot mess. First error when building demos is: nana/include/nana/filesystem/filesystem_ext.hpp:33:37: error: ‘experimental’ in namespace ‘std’ does not name a type

qPCR4vir commented 8 years ago

Hi, Could you make a fork of nana here? That will trigger a buid in travis and I will See exactly what is going on. It works OK in all the configurations I tested. What I need to fix is the configuration you are using. We need to check where is really boost filesystem. We will need to instal it in travis too.

qPCR4vir commented 8 years ago

Hi, please make sure the options in lines 33-38 of CMakeList.txt are correct. I'm switching to make NANA_BOOST_FILESYSTEM_PREFERRED On by default. But this change will not be in jinhao repo now. It is in my repo. Anyway you need to set by self the correct values of lines 37 and 38 or make cmake find it automatically.

qPCR4vir commented 8 years ago

I added a log to boost config. But you will need to use: https://github.com/qPCR4vir/nana/tree/hotfix-1.3

steveking-gh commented 8 years ago

I think the boost problem is solved. I had boost package installed, but the dependency is on boost-devel. Should you add find_package(boost) in the CMakeLists.txt file though?

qPCR4vir commented 8 years ago

Now it completely works in Linux and windows with VC2015 and gcc 5+, using boost or nana filesystem https://travis-ci.org/qPCR4vir/nana/jobs/112151080

qPCR4vir commented 8 years ago

and now with gcc 4.9 ! https://travis-ci.org/qPCR4vir/nana/jobs/112157667