GithubHelp home page GithubHelp logo

Comments (10)

maosatgithub avatar maosatgithub commented on August 17, 2024 1

I believe this would be the proper fix:

win32-msvc*: {
QMAKE_CXXFLAGS+= -openmp
QMAKE_LFLAGS += -openmp
RC_ICONS = imgs/texassolver_logo.ico
}

win32-g++: {
QMAKE_CXXFLAGS += -fopenmp
QMAKE_LFLAGS += -fopenmp
RC_ICONS = imgs/texassolver_logo.ico
}

win64-msvc*: {
QMAKE_CXXFLAGS+= -openmp
QMAKE_LFLAGS += -openmp
RC_ICONS = imgs/texassolver_logo.ico
}

win64-g++: {
QMAKE_CXXFLAGS += -fopenmp
QMAKE_LFLAGS += -fopenmp
RC_ICONS = imgs/texassolver_logo.ico
}

from texassolver.

Endle avatar Endle commented on August 17, 2024 1

I have met the same problem when compiling on Windows

The hack #87 (comment) worked fine for me. However, #87 (comment) doesn't work for me

from texassolver.

bupticybee avatar bupticybee commented on August 17, 2024

I don't think it's the problem of this project. Many have already successfully compiled in windows, please make sure you follow exactly the compile guide in readme.

from texassolver.

maosatgithub avatar maosatgithub commented on August 17, 2024

I had the same issue when trying to use MinGW. Thus I used MVSC2015 instead, which worked. This is with Qt 5.15.2

Note that this is on the GUI version -- the only compile guide I found was for the console version, is there another one?

from texassolver.

bupticybee avatar bupticybee commented on August 17, 2024

I had the same issue when trying to use MinGW. Thus I used MVSC2015 instead, which worked. This is with Qt 5.15.2

Note that this is on the GUI version -- the only compile guide I found was for the console version, is there another one?

MVSC produce slower executable, don't use it.

make sure you use Mingw64 instead of Mingw32.
For Gui version I didn't actually write the compile guide, you should just set the QT C compiler to mingw64 and you should get the project running.

from texassolver.

maosatgithub avatar maosatgithub commented on August 17, 2024

I tried both, makes no difference. Issue is in these lines of "Makefile.Release" in the build directory:
release/moc_predefs.h: C:/Qt/5.15.2/mingw81_64/mkspecs/features/data/dummy.cpp
g++ -fno-keep-inline-dllexport -openmp -O2 -Wall -Wextra -Wextra -dM -E -o release\moc_predefs.h C:\Qt\5.15.2\mingw81_64\mkspecs\features\data\dummy.cpp

Error of that g++ call is "cc1plus.exe: error: output filename specified twice" But I don't see where that 2nd specification would come from...

Can you please compare what you have in the makefile, and maybe also provide the resulting release\moc_predefs.h from the subdirectory?

from texassolver.

maosatgithub avatar maosatgithub commented on August 17, 2024

I think I found the issue in teh .pro file , this fixes it quick and dirty for me:
win32: {
#QMAKE_CXXFLAGS+= -openmp
#QMAKE_LFLAGS += -openmp
QMAKE_CXXFLAGS += -fopenmp
QMAKE_LFLAGS += -fopenmp
RC_ICONS = imgs/texassolver_logo.ico
}

Yes, seems to be faster by 25%, but was so only on the 2nd run onwards. 1st run was actually 20% slower, for whatever reason.

from texassolver.

bupticybee avatar bupticybee commented on August 17, 2024

I believe this would be the proper fix:

win32-msvc*: { QMAKE_CXXFLAGS+= -openmp QMAKE_LFLAGS += -openmp RC_ICONS = imgs/texassolver_logo.ico }

win32-g++: { QMAKE_CXXFLAGS += -fopenmp QMAKE_LFLAGS += -fopenmp RC_ICONS = imgs/texassolver_logo.ico }

win64-msvc*: { QMAKE_CXXFLAGS+= -openmp QMAKE_LFLAGS += -openmp RC_ICONS = imgs/texassolver_logo.ico }

win64-g++: { QMAKE_CXXFLAGS += -fopenmp QMAKE_LFLAGS += -fopenmp RC_ICONS = imgs/texassolver_logo.ico }

I see, will do some tests.

from texassolver.

keyor avatar keyor commented on August 17, 2024

I have the same problems, (cc1.exe: error: output filename specified twice)
what is the best solution to solve it?

from texassolver.

bupticybee avatar bupticybee commented on August 17, 2024

keyor

try @Endle code

Endle@39859a5

from texassolver.

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.