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

How can I compile the metis-5.1.0 library on windows Platform with QT(qmake)? #100

Open
jsfeng-fudan opened this issue Dec 4, 2024 · 0 comments

Comments

@jsfeng-fudan
Copy link

When I use QT(qmake) to compile the metis-5.1.0, the error appeared "....\metis-5.1.0\GKlib\GKlib.h:61: error: regex: No such file or directory #include // C++11 regex available in modern compilers ", but qmake file .pro file is already set the compiler CONFIG + = c++11. The .pro files is attached as below:
#-------------------------------------------------

Project created by QtCreator 2024-12-04T21:28:50

#-------------------------------------------------

QT -= gui
CONFIG += c++11
TARGET = libmetis510
TEMPLATE = lib
CONFIG += staticlib

The following define makes your compiler emit warnings if you use

any feature of Qt which has been marked as deprecated (the exact warnings

depend on your compiler). Please consult the documentation of the

deprecated API in order to know how to port your code away from it.

DEFINES += QT_DEPRECATED_WARNINGS

You can also make your code fail to compile if you use deprecated APIs.

In order to do so, uncomment the following line.

You can also select to disable deprecated APIs only up to a certain version of Qt.

#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
INCLUDEPATH += $$PWD/metis-5.1.0
SOURCES +=
metis-5.1.0/GKlib/conf/check_thread_storage.c
metis-5.1.0/GKlib/test/fis.c
metis-5.1.0/GKlib/test/gkgraph.c
metis-5.1.0/GKlib/test/gksort.c
metis-5.1.0/GKlib/test/rw.c
metis-5.1.0/GKlib/test/strings.c
metis-5.1.0/GKlib/b64.c
metis-5.1.0/GKlib/blas.c
metis-5.1.0/GKlib/csr.c
metis-5.1.0/GKlib/error.c
metis-5.1.0/GKlib/evaluate.c
metis-5.1.0/GKlib/fkvkselect.c
metis-5.1.0/GKlib/fs.c
metis-5.1.0/GKlib/getopt.c
metis-5.1.0/GKlib/gkregex.c
metis-5.1.0/GKlib/graph.c
metis-5.1.0/GKlib/htable.c
metis-5.1.0/GKlib/io.c
metis-5.1.0/GKlib/itemsets.c
metis-5.1.0/GKlib/mcore.c
metis-5.1.0/GKlib/memory.c
metis-5.1.0/GKlib/omp.c
metis-5.1.0/GKlib/pdb.c
metis-5.1.0/GKlib/pqueue.c
metis-5.1.0/GKlib/random.c
metis-5.1.0/GKlib/rw.c
metis-5.1.0/GKlib/seq.c
metis-5.1.0/GKlib/sort.c
metis-5.1.0/GKlib/string.c
metis-5.1.0/GKlib/timers.c
metis-5.1.0/GKlib/tokenizer.c
metis-5.1.0/GKlib/util.c
metis-5.1.0/libmetis/auxapi.c
metis-5.1.0/libmetis/balance.c
metis-5.1.0/libmetis/bucketsort.c
metis-5.1.0/libmetis/checkgraph.c
metis-5.1.0/libmetis/coarsen.c
metis-5.1.0/libmetis/compress.c
metis-5.1.0/libmetis/contig.c
metis-5.1.0/libmetis/debug.c
metis-5.1.0/libmetis/fm.c
metis-5.1.0/libmetis/fortran.c
metis-5.1.0/libmetis/frename.c
metis-5.1.0/libmetis/gklib.c
metis-5.1.0/libmetis/graph.c
metis-5.1.0/libmetis/initpart.c
metis-5.1.0/libmetis/kmetis.c
metis-5.1.0/libmetis/kwayfm.c
metis-5.1.0/libmetis/kwayrefine.c
metis-5.1.0/libmetis/mcutil.c
metis-5.1.0/libmetis/mesh.c
metis-5.1.0/libmetis/meshpart.c
metis-5.1.0/libmetis/minconn.c
metis-5.1.0/libmetis/mincover.c
metis-5.1.0/libmetis/mmd.c
metis-5.1.0/libmetis/ometis.c
metis-5.1.0/libmetis/options.c
metis-5.1.0/libmetis/parmetis.c
metis-5.1.0/libmetis/pmetis.c
metis-5.1.0/libmetis/refine.c
metis-5.1.0/libmetis/separator.c
metis-5.1.0/libmetis/sfm.c
metis-5.1.0/libmetis/srefine.c
metis-5.1.0/libmetis/stat.c
metis-5.1.0/libmetis/timing.c
metis-5.1.0/libmetis/util.c
metis-5.1.0/libmetis/wspace.c
metis-5.1.0/programs/cmdline_gpmetis.c
metis-5.1.0/programs/cmdline_m2gmetis.c
metis-5.1.0/programs/cmdline_mpmetis.c
metis-5.1.0/programs/cmdline_ndmetis.c
metis-5.1.0/programs/cmpfillin.c
metis-5.1.0/programs/gpmetis.c
metis-5.1.0/programs/graphchk.c
metis-5.1.0/programs/io.c
metis-5.1.0/programs/m2gmetis.c
metis-5.1.0/programs/mpmetis.c
metis-5.1.0/programs/ndmetis.c
metis-5.1.0/programs/smbfactor.c
metis-5.1.0/programs/stat.c

HEADERS +=
metis-5.1.0/GKlib/gk_arch.h
metis-5.1.0/GKlib/gk_defs.h
metis-5.1.0/GKlib/gk_externs.h
metis-5.1.0/GKlib/gk_getopt.h
metis-5.1.0/GKlib/gk_macros.h
metis-5.1.0/GKlib/gk_mkblas.h
metis-5.1.0/GKlib/gk_mkmemory.h
metis-5.1.0/GKlib/gk_mkpqueue.h
metis-5.1.0/GKlib/gk_mkpqueue2.h
metis-5.1.0/GKlib/gk_mkrandom.h
metis-5.1.0/GKlib/gk_mksort.h
metis-5.1.0/GKlib/gk_mkutils.h
metis-5.1.0/GKlib/gk_proto.h
metis-5.1.0/GKlib/gk_struct.h
metis-5.1.0/GKlib/gk_types.h
metis-5.1.0/GKlib/GKlib.h
metis-5.1.0/GKlib/gkregex.h
metis-5.1.0/GKlib/ms_inttypes.h
metis-5.1.0/GKlib/ms_stat.h
metis-5.1.0/GKlib/ms_stdint.h
metis-5.1.0/include/metis.h
metis-5.1.0/libmetis/defs.h
metis-5.1.0/libmetis/gklib_defs.h
metis-5.1.0/libmetis/gklib_rename.h
metis-5.1.0/libmetis/macros.h
metis-5.1.0/libmetis/metislib.h
metis-5.1.0/libmetis/proto.h
metis-5.1.0/libmetis/rename.h
metis-5.1.0/libmetis/stdheaders.h
metis-5.1.0/libmetis/struct.h
metis-5.1.0/programs/defs.h
metis-5.1.0/programs/metisbin.h
metis-5.1.0/programs/proto.h
metis-5.1.0/programs/struct.h
unix {
target.path = /usr/lib
INSTALLS += target
}
If anyone can help solve it, thank you very much!

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