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

Fails to Compile in CMake #5

Open
ecic2002 opened this issue Mar 6, 2019 · 15 comments
Open

Fails to Compile in CMake #5

ecic2002 opened this issue Mar 6, 2019 · 15 comments

Comments

@ecic2002
Copy link

ecic2002 commented Mar 6, 2019

I have been having a lot of trouble getting the project to compile on windows 10. The cmake compiler always errors out during the configuration stage. This is the error that I am seeing:

https://drive.google.com/file/d/1V_QjtIk8dTnwXchC50hUxvdm3hekMl2Z/view?usp=sharing

I'm using all the same software down to the version number that was in the pdf. It is also my first time actually trying to compile in CMake. If anything, is there anywhere I could find a precompiled executable for windows?
Thank You for any help.

@ghost
Copy link

ghost commented Mar 6, 2019 via email

@Shanki5
Copy link

Shanki5 commented Dec 20, 2019

I am also unable to configure using cmake.
I am getting the following as the error : Debug;Release;MinSizeRel;RelWithDebInfo
error

I used Visual Studio Code 15 2017 x64 bit for configuring.

@ghost
Copy link

ghost commented Dec 20, 2019 via email

@Shanki5
Copy link

Shanki5 commented Dec 20, 2019

CMake Error at CMakeLists.txt:5 (project):
Generator

Visual Studio 15 2017

could not find any instance of Visual Studio.

I tried to uninstall and reinstall visual studio but still no luck.

@Shanki5
Copy link

Shanki5 commented Dec 20, 2019

So I tried to configure using visual studio 16 2019 and Ive got the following errors.

The C compiler identification is MSVC 19.24.28314.0
The CXX compiler identification is MSVC 19.24.28314.0
Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.24.28314/bin/Hostx64/x64/cl.exe
Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.24.28314/bin/Hostx64/x64/cl.exe -- works
Detecting C compiler ABI info
Detecting C compiler ABI info - done
Detecting C compile features
Detecting C compile features - done
Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.24.28314/bin/Hostx64/x64/cl.exe
Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.24.28314/bin/Hostx64/x64/cl.exe -- works
Detecting CXX compiler ABI info
Detecting CXX compiler ABI info - done
Detecting CXX compile features
Detecting CXX compile features - done
Found OpenGL: opengl32
CMake Deprecation Warning at externals/opengl_viewer/externals/glfw/CMakeLists.txt:10 (cmake_policy):
The OLD behavior for policy CMP0042 will be removed from a future version
of CMake.

The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.

Looking for pthread.h
Looking for pthread.h - not found
Found Threads: TRUE
Could NOT find Vulkan (missing: VULKAN_LIBRARY VULKAN_INCLUDE_DIR)
Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
Using Win32 for window creation
Looking for dlfcn.h
Looking for dlfcn.h - not found
Looking for getopt.h
Looking for getopt.h - not found
Looking for unistd.h
Looking for unistd.h - not found
Looking for string.h
Looking for string.h - found
Looking for strings.h
Looking for strings.h - not found
Looking for inttypes.h
Looking for inttypes.h - found
Looking for memory.h
Looking for memory.h - found
Looking for stdlib.h
Looking for stdlib.h - found
Looking for stdint.h
Looking for stdint.h - found
Looking for time.h
Looking for time.h - found
Looking for sys/types.h
Looking for sys/types.h - found
Looking for sys/stat.h
Looking for sys/stat.h - found
Looking for sys/time.h
Looking for sys/time.h - not found
Looking for getpid
Looking for getpid - found
Looking for syscall
Looking for syscall - not found
Looking for isinf
Looking for isinf - not found
Looking for isnan
Looking for isnan - not found
Looking for gettimeofday
Looking for gettimeofday - not found
Looking for qsort_r
Looking for qsort_r - not found
Looking for time
Looking for time - found
Looking for copysign
Looking for copysign - found
Looking for stddef.h
Looking for stddef.h - found
Check size of uint32_t
Check size of uint32_t - done
Check size of unsigned int
Check size of unsigned int - done
Check size of unsigned long
Check size of unsigned long - done
Looking for sqrt in m
Looking for sqrt in m - not found
Looking for fpclassify
Looking for fpclassify - FALSE
Performing Test HAVE_THREAD_LOCAL_STORAGE
Performing Test HAVE_THREAD_LOCAL_STORAGE - Failed
Performing Test HAVE_THREAD_LOCAL_STORAGE
Performing Test HAVE_THREAD_LOCAL_STORAGE - Success
NLopt version 2.5.0
Performing Test HAS_FPIC
Performing Test HAS_FPIC - Failed
Configuring done

Thanks for replying so soon.

@desaic
Copy link

desaic commented Dec 20, 2019

So I tried to configure using visual studio 16 2019 and Ive got the following errors.

The C compiler identification is MSVC 19.24.28314.0
The CXX compiler identification is MSVC 19.24.28314.0
Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.24.28314/bin/Hostx64/x64/cl.exe
Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.24.28314/bin/Hostx64/x64/cl.exe -- works
Detecting C compiler ABI info
Detecting C compiler ABI info - done
Detecting C compile features
Detecting C compile features - done
Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.24.28314/bin/Hostx64/x64/cl.exe
Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.24.28314/bin/Hostx64/x64/cl.exe -- works
Detecting CXX compiler ABI info
Detecting CXX compiler ABI info - done
Detecting CXX compile features
Detecting CXX compile features - done
Found OpenGL: opengl32
CMake Deprecation Warning at externals/opengl_viewer/externals/glfw/CMakeLists.txt:10 (cmake_policy):
The OLD behavior for policy CMP0042 will be removed from a future version
of CMake.

The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.

Looking for pthread.h
Looking for pthread.h - not found
Found Threads: TRUE
Could NOT find Vulkan (missing: VULKAN_LIBRARY VULKAN_INCLUDE_DIR)
Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
Using Win32 for window creation
Looking for dlfcn.h
Looking for dlfcn.h - not found
Looking for getopt.h
Looking for getopt.h - not found
Looking for unistd.h
Looking for unistd.h - not found
Looking for string.h
Looking for string.h - found
Looking for strings.h
Looking for strings.h - not found
Looking for inttypes.h
Looking for inttypes.h - found
Looking for memory.h
Looking for memory.h - found
Looking for stdlib.h
Looking for stdlib.h - found
Looking for stdint.h
Looking for stdint.h - found
Looking for time.h
Looking for time.h - found
Looking for sys/types.h
Looking for sys/types.h - found
Looking for sys/stat.h
Looking for sys/stat.h - found
Looking for sys/time.h
Looking for sys/time.h - not found
Looking for getpid
Looking for getpid - found
Looking for syscall
Looking for syscall - not found
Looking for isinf
Looking for isinf - not found
Looking for isnan
Looking for isnan - not found
Looking for gettimeofday
Looking for gettimeofday - not found
Looking for qsort_r
Looking for qsort_r - not found
Looking for time
Looking for time - found
Looking for copysign
Looking for copysign - found
Looking for stddef.h
Looking for stddef.h - found
Check size of uint32_t
Check size of uint32_t - done
Check size of unsigned int
Check size of unsigned int - done
Check size of unsigned long
Check size of unsigned long - done
Looking for sqrt in m
Looking for sqrt in m - not found
Looking for fpclassify
Looking for fpclassify - FALSE
Performing Test HAVE_THREAD_LOCAL_STORAGE
Performing Test HAVE_THREAD_LOCAL_STORAGE - Failed
Performing Test HAVE_THREAD_LOCAL_STORAGE
Performing Test HAVE_THREAD_LOCAL_STORAGE - Success
NLopt version 2.5.0
Performing Test HAS_FPIC
Performing Test HAS_FPIC - Failed
Configuring done

Thanks for replying so soon.

The configuration actually succeeded. Now you just need to click "generate" to generate visual studio solution files.

@Shanki5
Copy link

Shanki5 commented Dec 20, 2019

Oh cool. Ill try it. Thanks a lot

@Shanki5
Copy link

Shanki5 commented Dec 20, 2019

So I clicked generate and I opened the visual studio solution file and hit f7 and nothing seemed to happen. I proceeded to try to run copter_viewer using f5 and I'm unable to access the Debug/ALL_BUILD.

image

@desaic
Copy link

desaic commented Dec 20, 2019

To run a project, e.g.copter_viewer, right-click on it, then select "Set as Startup project". Then click the green arrow "Local Windows Debugger".

@Shanki5
Copy link

Shanki5 commented Dec 21, 2019

Okayy @desaic

@thecoolmudumba
Copy link

thecoolmudumba commented Dec 30, 2019

Hi,

I have followed the above comments and they were very helpful. I was able to open the file in Visual Studios Community 2019. However, I am getting the following error when I build it:
image

image

It seems to be in line 286 of the code. I am not sure what to do. Can you please help me?
Thank you and happy new year in advance!

@desaic
Copy link

desaic commented Dec 30, 2019

Hi,

I have followed the above comments and they were very helpful. I was able to open the file in Visual Studios Community 2019. However, I am getting the following error when I build it:
image

image

It seems to be in line 286 of the code. I am not sure what to do. Can you please help me?
Thank you and happy new year in advance!

Is this the very first compilation error you got? Can you show us what you have in the "output" tab instead of the "Error List" tab in Visual studio after you tried to compile? Specifically, can you find the first occurrence of the word "error" in the "output" log? The "Error List" view often contains unhelpful complaints.

@thecoolmudumba
Copy link

Yes, here is a snippet from the output tab.
image

Thanks for the swift reply!

@thecoolmudumba
Copy link

Hi,
I have followed the above comments and they were very helpful. I was able to open the file in Visual Studios Community 2019. However, I am getting the following error when I build it:
image
image
It seems to be in line 286 of the code. I am not sure what to do. Can you please help me?
Thank you and happy new year in advance!

Is this the very first compilation error you got? Can you show us what you have in the "output" tab instead of the "Error List" tab in Visual studio after you tried to compile? Specifically, can you find the first occurrence of the word "error" in the "output" log? The "Error List" view often contains unhelpful complaints.

I re-downloaded the latest version of Eigen library, and it is now working. Thank you.

@mechtech19
Copy link

I am also unable to configure using cmake.
I am getting the following as the error : Debug;Release;MinSizeRel;RelWithDebInfo
error

I used Visual Studio Code 15 2017 x64 bit for configuring.

I am having a similar issue (see below).

image

I opened the log file that the error is pointing to, but it just states "The system is: Windows - 10.0.19041 - AMD64". I've tried using the VS 2019, 2017, and 2015 with both x32 and x64 with no luck.

Any advice?

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

5 participants