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

FloatTetwild_bin.exe not built after running cmake #65

Open
blue-gitty opened this issue Oct 10, 2023 · 7 comments
Open

FloatTetwild_bin.exe not built after running cmake #65

blue-gitty opened this issue Oct 10, 2023 · 7 comments

Comments

@blue-gitty
Copy link

No description provided.

@blue-gitty
Copy link
Author

blue-gitty commented Oct 10, 2023

image

I have also tried the ./FloatTetWild_bin in the ftetwild directory, whats wrong here? Can anyone please help me execute the buildi succesfully?

@blue-gitty
Copy link
Author

image

Here's the output after the build

@Manurocker95
Copy link

image

I have also tried the ./FloatTetWild_bin in the ftetwild directory, whats wrong here? Can anyone please help me execute the buildi succesfully?

I got it working by using CMAKE-GUI, creating the Visual Studio solution, changing the C++ runtime libs to MT instead of MD, and it finally compiled. This was a complete mess...

@blue-gitty
Copy link
Author

I got it working by using CMAKE-GUI, creating the Visual Studio solution, changing the C++ runtime libs to MT instead of MD, and it finally compiled. This was a complete mess...

Thank you for the response, but my Cmake GUI is throwing some error:


CMake Error at CMakeLists.txt:3 (project):
  Running

   'nmake' '-?'

  failed with:

   The system cannot find the file specified


CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage


@blue-gitty blue-gitty reopened this Nov 6, 2023
@nonbasketless
Copy link

I'm unable to build (can't find ",.lib") after a few hours of work. Any chance someone could just share the exe oh please please please? I have one for the original TetWild but could really use a faster version.

@nonbasketless
Copy link

nonbasketless commented Jan 26, 2024

Ok, my build failure was primarily because GMP is an absolute mess (at least on Windoze). For now working around GMP (might share later). After removing GMP:

I also had the MT/MD problem. I figured out the cause (by message printing and bisection): on Windows, IGL by default makes you use MD, contaminating everything downstream, but some other things are MT.

I fixed it by using MT for everything. Add this near the top of fTetWild's CMakeLists.txt:

if(MSVC)
	foreach(config ${CMAKE_CONFIGURATION_TYPES})
		string(TOUPPER ${config} config)
		string(REPLACE /MD /MT CMAKE_C_FLAGS_${config} "${CMAKE_C_FLAGS_${config}}")
		string(REPLACE /MD /MT CMAKE_CXX_FLAGS_${config} "${CMAKE_CXX_FLAGS_${config}}")
	endforeach()

	set(IGL_STATIC_RUNTIME ON)
endif()

You probably will want to delete your build and create it from scratch - that got rid of the last couple multiply defined symbols for me.

@crystalthoughts
Copy link

Any solutions for this?

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

4 participants