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

unable to build with clion #127

Open
trollingchar opened this issue May 16, 2018 · 0 comments
Open

unable to build with clion #127

trollingchar opened this issue May 16, 2018 · 0 comments

Comments

@trollingchar
Copy link

I am trying to setup oxygine on CLion, i downloaded framework from oxygine.org
I used this manual
https://github.com/oxygine/oxygine-framework/blob/master/readme/CMake%2BMinGW.txt
but after build there were only libSDL2.dll and libSDL2.dll.a, no libSDL2.a and libSDL2main.a
I continued and when i pressed "Run" build failed with this:

[ 96%] Built target oxygine-framework
[ 97%] Linking CXX executable Demo.exe
C:/Users/Dima/Documents/oxygine/oxygine-framework/libs/SDL2main.lib(Win32/Release/SDL_windows_main.obj):(.text$mn+0x0): multiple definition of `main'
c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../libmingw32.a(main.o):(.text.startup+0x0): first defined here
oxygine-framework/liboxygine-framework.a(DebugActor.cpp.obj): In function `ZN7oxygine10DebugActor6renderERKNS_11RenderStateE':
C:/Users/Dima/Documents/oxygine/oxygine-framework/oxygine/src/oxygine/actor/DebugActor.cpp:349: undefined reference to `GetProcessMemoryInfo@12'
collect2.exe: error: ld returned 1 exit status
CMakeFiles\Demo.dir\build.make:178: recipe for target 'Demo.exe' failed
mingw32-make.exe[3]: *** [Demo.exe] Error 1
CMakeFiles\Makefile2:66: recipe for target 'CMakeFiles/Demo.dir/all' failed
mingw32-make.exe[2]: *** [CMakeFiles/Demo.dir/all] Error 2
CMakeFiles\Makefile2:78: recipe for target 'CMakeFiles/Demo.dir/rule' failed
mingw32-make.exe[1]: *** [CMakeFiles/Demo.dir/rule] Error 2
Makefile:163: recipe for target 'Demo' failed
mingw32-make.exe: *** [Demo] Error 2

Is it a bug or just my mistake and what i should do?

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

1 participant