Giter Site home page Giter Site logo

Can't compile on linux about armips HOT 5 CLOSED

kingcom avatar kingcom commented on July 16, 2024
Can't compile on linux

from armips.

Comments (5)

Matsumot0 avatar Matsumot0 commented on July 16, 2024 1

Ok thanks i've changed something but...

http://i.imgur.com/kguplS7.png

As you can see, MinGW64 can finalized the binary... after 100% complete :(

Edit: Finally it's working!
Solution found here: http://sourceforge.net/p/mingw-w64/wiki2/Unicode%20apps/

#ifndef _UNICODE
#define _UNICODE
#endif

#ifndef UNICODE
#define UNICODE
#endif

#include <wchar.h>
#include <stdio.h>

in main.cpp i need to set extern "C" like this

extern "C"
int wmain(int argc, wchar_t* argv[])

and i set -municode -static in CMakeLists.txt before do cmake -G "MinGW Makefiles"
and it's works fine 👍 without dll needed

from armips.

Matsumot0 avatar Matsumot0 commented on July 16, 2024

I can compile armips on linux without any problem
http://i.imgur.com/MhQMAng.png,

But not on windows with MinGW...
http://i.imgur.com/eEFka28.png

Thanks in advance.
PS: Sorry i don't want open a issue ticket for that maybe i've miss something.

from armips.

Kingcom avatar Kingcom commented on July 16, 2024

@3ZVK : I'm not really sure what you mean. Can you try to explain your issue? As @Matsumot0 said, building on Linux seems to work.

@Matsumot0 : Can you try putting this into stdafx.h, after #pragma once, and see if it helps?

#ifndef UNICODE
#define UNICODE
#endif

#ifndef _UNICODE
#define _UNICODE
#endif

from armips.

Matsumot0 avatar Matsumot0 commented on July 16, 2024

Thanks for your answer, it works almost 👍
But i've had another invalid conversion

http://i.imgur.com/EAZCQWv.png

Edit: Some progress, I've set #define swprintf _snwprintf into stdafx.h between #ifdef _WIN32 to #endif useless

http://i.imgur.com/6IKZ9YB.png

from armips.

Kingcom avatar Kingcom commented on July 16, 2024

It looks like you don't have sufficient C++11 support (namely, for std::thread). Try looking for a newer version.

from armips.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.