Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: Cannot open file ...../T-SPLINE-master/CMakeDoxyfile.tpl for writing #18

Open
dimitrioui opened this issue Nov 25, 2018 · 13 comments

Comments

@dimitrioui
Copy link

I have the following problem , after using CMake on Windows7

Selecting Windows SDK version 10.0.17134.0 to target Windows 6.1.7601.
Found OpenMP_C: -openmp
Found OpenMP_CXX: -openmp
Found OpenMP: TRUE
OpenMP Found
error: Cannot open file C:/Users/�������/Desktop/T-SPLINE-master/CMakeDoxyfile.tpl for writing

CMake Error at C:/Program Files (x86)/CMake/share/cmake-3.12/Modules/FindDoxygen.cmake:671 (message):
Unable to generate Doxyfile template: 1
Call Stack (most recent call first):
CMakeLists.txt:45 (FIND_PACKAGE)

CMake Warning (dev) in C:/Program Files (x86)/CMake/share/cmake-3.12/Modules/FindDoxygen.cmake:
Policy CMP0011 is not set: Included scripts do automatic cmake_policy PUSH
and POP. Run "cmake --help-policy CMP0011" for policy details. Use the
cmake_policy command to set the policy and suppress this warning.

The included script

C:/Program Files (x86)/CMake/share/cmake-3.12/Modules/FindDoxygen.cmake

affects policy settings. CMake is implying the NO_POLICY_SCOPE option for
compatibility, so the effects are applied to the including context.
Call Stack (most recent call first):
CMakeLists.txt:45 (FIND_PACKAGE)
This warning is for project developers. Use -Wno-dev to suppress it.

Configuring incomplete, errors occurred!
See also "C:/Users/ΓΙΑΝΝΗΣ/Desktop/T-SPLINE-master/CMakeFiles/CMakeOutput.log".

I can't find a solution for this problem and so i can't debbug on Msvc 2017

@dimitrioui
Copy link
Author

error: Cannot open file C:/Users/�������/Desktop/T-SPLINE-master/CMakeDoxyfile.tpl for writing
... C;\Users/ ......... , was in non accessible language fron the compiler!!!
after setting different dir ,the problem was fixed!

@Jillinger
Copy link

@dimitrioui I am having this problem, and moved the directory several places, but get the same error. What do you mean by "non accessible language"?

@dimitrioui
Copy link
Author

dimitrioui commented Mar 28, 2021

I mean that ..."�������" is in greek an perhaps the compiler does not understand the characters. But this is just a thought.

@dimitrioui dimitrioui reopened this Mar 28, 2021
@Jillinger
Copy link

Oh. Thanks. Mine is in english, and it still complains.
I don't understand why.

@dimitrioui
Copy link
Author

dimitrioui commented Mar 28, 2021

Oh. Thanks. Mine is in english, and it still complains.
I don't understand why.

Mine also. I 've tried another one who hasn't greek name (as a PC), but same result. I use Cmake and i can build the solution. When i open it with msvc 19 (new) i can run only the "demo" project.

@Jillinger
Copy link

I was trying to find a way for cmake to exclude building the docs, but there appears to be no option for that. I'm trying to build libosmium.

This is terrible. I have spent nearly 48 hours just trying to get osmium. For some reason pip doesn't want to do it nicely.

@Jillinger
Copy link

Hey @dimitrioui I was thinking, perhaps I can create a CMakeDoxyfile.tpl file, so that one can be found. Can you give me an idea of what your CMakeDoxyfile.tpl looks like? What do you think?

@dimitrioui
Copy link
Author

dimitrioui commented Mar 29, 2021

When I build with Cmake. I receive:

CMake Deprecation Warning at CMakeLists.txt:4 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.

Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.

CMake Deprecation Warning at CMakeLists.txt:4 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.

Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.

Selecting Windows SDK version 8.1 to target Windows 6.1.7601.
OpenMP Found
MAKE_PYTHON_BINDINGS set to ON
Found PythonInterp: C:/Users/user/python.exe (found version "3.8.5")
Found PythonLibs: optimized;C:/Users/user/libs/python38.lib;debug;C:/Users/user/libs/python38_d.lib (found version "3.8.5")
Configuring done
Generating done

Is there pybind11.h in your system (as it seems to be included but is not recognizable)? Because this is what I get when the debbuging finishes.
Then when I copy the whole path I get another one: "pybind11\stl.h" is missing. Then I copy again the whole path, and I receive:
"Severity Code Description Project File Line Suppression State
Error LNK1104 cannot open file 'python38.lib' _tspline C:\Users\user\T-SPLINE-master\python\LINK 1 "

I think that something goes wrong with the "python" adjastments. I mean Build is fine but can't Debug.

@Jillinger
Copy link

I get the same thing about the cmake version.
I get Configuring done & Generating done on building the examples, but then when it starts to build the documentations is where I get that error.
I was going to create the file, and see what happens, but I want an idea of what it contains at the beginning and end, at least.
I looked at some tpl files, to get an idea. They often start something like this...

[= AutoGen5 template texi

...and ends something like this...

aginfo.tpl ends here =]

How does your CMakeDoxyfile.tpl file start and end?
I have pybind11 installed, and don't get a problem there.

@dimitrioui
Copy link
Author

dimitrioui commented Mar 29, 2021

In the beginning it is like that:

Doxyfile 1.8.14

#---------------------------------------------------------------------------

Project related configuration options

#---------------------------------------------------------------------------
DOXYFILE_ENCODING = UTF-8
PROJECT_NAME = "My Project"
.....................
......................
......................
and a few lines before the end...
"DIAFILE_DIRS =
PLANTUML_JAR_PATH =
PLANTUML_CFG_FILE =
PLANTUML_INCLUDE_PATH =
DOT_GRAPH_MAX_NODES = 50
MAX_DOT_GRAPH_DEPTH = 0
DOT_TRANSPARENT = NO
DOT_MULTI_TARGETS = NO
GENERATE_LEGEND = YES
DOT_CLEANUP = YES"

ButI see that it makes a file "CmakeDoxygenDefaults.cmake"...
and this file starts like this:
"#

DO NOT EDIT! THIS FILE WAS GENERATED BY CMAKE!

"
and ends likes this :
" if(NOT DEFINED DOXYGEN_DOT_CLEANUP)
set(DOXYGEN_DOT_CLEANUP YES)
endif()"

@Jillinger
Copy link

That looks so different.
I created the file, and put this in it

Doxyfile 1.9.1
#---------------------------------------------------------------------------

Project related configuration options
#---------------------------------------------------------------------------
DOXYFILE_ENCODING = UTF-8

but that didn't change anything.
I still get the error
error: Cannot open file /cygdrive/e/libosmium/libosmium/build/CMakeDoxyfile.tpl for writing

I give up.
The next thing I will try is installing python 3.9, and see if it installs the osmium for me.
You can go ahead and close the thread. Thanks for responding. :)

@dimitrioui
Copy link
Author

The problem seems to be the choise of the right compiler, but not only this (I have tried x64 and win32). The libraries included in the system might be a big problem as well. We have to do this manually if there are not present. Generally the compatibility of different versions of (compilers and debuggers) do not allow the user to put everything together so easy . The instructions given leave some crusial informations out of sight. Not intentionally.
By the way, where do we have to install pybind11.?

@Jillinger
Copy link

I use cygwin to build my projects where possible, since it keeps all my libraries in one place, and any it can't find can look in the path where I have libraries in gnuwin32, and so.
My pybind11 was downloaded with pip from python3.8 in cygwin. I also have it in my python2.7 on my system.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants