Skip to content

Conversation

@Dengda98
Copy link
Owner

Enhance compatibility with macOS and Windows by updating the Makefile and some functions.

Some bugs are fixed before this branch:

  1. Fix print bug of grt with long-length array, which has array index out of bound, may cause segmentation fault.

  2. mkdir function on Windows (mkdir under mingw #1 )

  3. Stack Overflow. (The multichannel example can't run. #2 ). (epsecially in multi-threads)
    In early version ptam.c, I set some variable-length array (variable nr), which needs some stack memory. Since Windows set lower stack size than Ubuntu and MacOS, when you pass too many stations at once, program might broke on Windows.
    In new version, I allocate the memory from heap (using malloc/calloc), and set -Wl,-stack_size,0x1000000 for Windows.

  4. Set SetConsoleOutputCP(65001); on Windows to show logo normally.

@Dengda98 Dengda98 marked this pull request as ready for review February 25, 2025 07:52
@Dengda98 Dengda98 merged commit fa5b223 into main Feb 25, 2025
@Dengda98 Dengda98 deleted the new_workflow branch February 25, 2025 07:55
@Dengda98
Copy link
Owner Author

use -Wl,-stack,0x1000000 instead.

Dengda98 added a commit that referenced this pull request Apr 20, 2025
Improve compatibility, and fix some bugs
Dengda98 added a commit that referenced this pull request Apr 21, 2025
Improve compatibility, and fix some bugs
Dengda98 added a commit that referenced this pull request Apr 21, 2025
Improve compatibility, and fix some bugs
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