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

Add missing <stdint.h> header #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add missing <stdint.h> header #1

wants to merge 1 commit into from

Conversation

ghost
Copy link

@ghost ghost commented Oct 26, 2017

No description provided.

Signed-off-by: Juraj Oravec <[email protected]>
@phanirithvij
Copy link

phanirithvij commented Jan 15, 2020

@hhirsch This blocks building on Windows when using msys2.

Issue: GlPortal/RadixEngine#199

And there is also one more issue that blocks the build after resolving this.

offset = (alignment - (unsigned long)(real + sizeof(void*))) & (alignment - 1);

There are more issues.

In source/env/util.cpp

  __try
  {
    RaiseException( MS_VC_EXCEPTION, 0, sizeof(info)/sizeof(ULONG_PTR), (ULONG_PTR*)&info );
  }
  __except(EXCEPTION_EXECUTE_HANDLER)
  {
  }

with msys2 it does not recognize __except the fix was to replace it with catch (...) {}

After resolving it got one more

[ 78%] Linking CXX executable ../bin/profiler_sample_disabled_profiler.exe
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles/profiler_sample_disabled_profiler.dir/objects.a(main.cpp.obj): in function `profiler::main_thread::frameTimeLocalMax(profiler::Duration)':
D:/Projects/fun/C++/glPortal/external/RadixEngine/external/easy_profiler/easy_profiler_core/include/easy/profiler.h:943: undefined reference to `__imp_main_thread_frameTimeLocalMax'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles/profiler_sample_disabled_profiler.dir/objects.a(main.cpp.obj): in function `profiler::main_thread::frameTimeLocalAvg(profiler::Duration)':
D:/Projects/fun/C++/glPortal/external/RadixEngine/external/easy_profiler/easy_profiler_core/include/easy/profiler.h:947: undefined reference to `__imp_main_thread_frameTimeLocalAvg'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles/profiler_sample_disabled_profiler.dir/objects.a(main.cpp.obj): in function `main':
D:/Projects/fun/C++/glPortal/external/RadixEngine/external/easy_profiler/sample/main.cpp:215: undefined reference to `__imp_startListen'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/Projects/fun/C++/glPortal/external/RadixEngine/external/easy_profiler/sample/main.cpp:258: undefined reference to `__imp_dumpBlocksToFile'
collect2.exe: error: ld returned 1 exit status
mingw32-make[2]: *** [external/RadixEngine/external/easy_profiler/sample/CMakeFiles/profiler_sample_disabled_profiler.dir/build.make:86: external/RadixEngine/external/easy_profiler/bin/profiler_sample_disabled_profiler.exe] Error 1
mingw32-make[1]: *** [CMakeFiles/Makefile2:485: external/RadixEngine/external/easy_profiler/sample/CMakeFiles/profiler_sample_disabled_profiler.dir/all] Error 2
mingw32-make: *** [Makefile:130: all] Error 2

Where I'm stuck at the moment.
Wasted 3 hours trying to build glportal on windows.

Switched to Linux. It works like a charm.

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.

1 participant