Skip to content

Fix on linux path_to_executable()#1197

Merged
jdumas merged 4 commits intolibigl:devfrom
BruegelN:fix-on-linux-path_to_executable
Jun 13, 2019
Merged

Fix on linux path_to_executable()#1197
jdumas merged 4 commits intolibigl:devfrom
BruegelN:fix-on-linux-path_to_executable

Conversation

@BruegelN
Copy link
Copy Markdown
Contributor

Added symboles to check for in path_to_executable() because capital case UNIX is not defined under Linux (i.e. Ubuntu).

Lowercase unix is defined however. See: https://stackoverflow.com/questions/142508/how-do-i-check-os-with-a-preprocessor-directive
Also added missing include for readlink().
readlink() does not append a null byte, thus use information about the written byted when building the resulting string.

Check all that apply (change to [x])

  • All changes meet libigl style-guidelines.
  • Adds new .cpp file.
  • Adds corresponding unit test.
  • Adds corresponding python binding.
  • This is a minor change.

Nico Brügel and others added 4 commits May 14, 2019 16:57
…ase UNIX is not defined under Linux (i.e. Ubuntu).

Lowercase unix is defined however. See: https://stackoverflow.com/questions/142508/how-do-i-check-os-with-a-preprocessor-directive
Also added missing include for readlink().
readlink() does not append a null byte, thus use information about the written byted when building the resulting string.
@BruegelN
Copy link
Copy Markdown
Contributor Author

BruegelN commented May 15, 2019

The following tests FAILED:
	 47 - cotmatrix: tetrahedron (SEGFAULT)
Errors while running CTest
The command "ctest --verbose" exited with 8.

See here for failed test: https://travis-ci.org/libigl/libigl/jobs/532716414#L2191
Which isn't even affected by this PR.
It seems somehow related to #1126

This issue does somehow not occur with Eigen 3.3. Is there any reason not to switch to Eigen3.3.7 by default? If you want I can submit a PR to make Eigen 3.3 default. @jdumas or who ever can decide this.

@jdumas jdumas merged commit 15b87c6 into libigl:dev Jun 13, 2019
@jdumas
Copy link
Copy Markdown
Collaborator

jdumas commented Jun 13, 2019

We will make Eigen 3.3 the default soon, when we move to the new python bindings. Our deadline for that is a SIGGRAPH course this summer, so it will happen within the next two months =)

@BruegelN BruegelN deleted the fix-on-linux-path_to_executable branch June 14, 2019 13:45
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

Successfully merging this pull request may close these issues.

2 participants