Installing Fuzz. Error: exp ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘x_slot’ected - typechecking

I am installing "Fuzz typechecker Z" in Ubuntu 20.04 https://spivey.oriel.ox.ac.uk/corner/Fuzz_typechecker_for_Z
However, when I do make I get the following errors. Any idea where should I start?
make -C src all
make[1]: Entering directory '/home/evochecker/Downloads/fuzz/src'
gcc -Wall -c -DDEBUG -DANSI -DASSUME zparse.c
In file included from zparse.y:88:
absyn.h:4:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘x_slot’
absyn.h:51: warning: "x_params" redefined
absyn.h:19: note: this is the location of the previous definition
absyn.h:76: warning: "x_arg" redefined
absyn.h:64: note: this is the location of the previous definition
zparse.y: In function ‘sexp_fix’:
zparse.y:721:14: error: expected identifier before ‘=’ token
721 | a->x_body = sexp_fix(a->x_body);
| ^
zparse.y:728:19: error: expected identifier before ‘;’ token
728 | return a->x_arg;
| ^
zparse.y:732:13: error: expected identifier before ‘=’ token
732 | a->x_arg = sexp_fix(a->x_arg);
| ^
zparse.y:739:14: error: expected identifier before ‘=’ token
739 | a->x_arg2 = sexp_fix(a->x_arg2);
| ^
zparse.y: In function ‘pred_fix’:
zparse.y:760:14: error: expected identifier before ‘=’ token
760 | a->x_body = pred_fix(a->x_body);
| ^
zparse.y:766:14: error: expected identifier before ‘=’ token
766 | a->x_body = pred_fix(a->x_body);
| ^
zparse.y:778:16: error: expected identifier before ‘->’ token
778 | if (a->x_arg->x_kind == SEXPR)
| ^~
zparse.y:779:18: error: expected identifier before ‘=’ token
779 | a->x_arg = a->x_arg->x_arg;
| ^
zparse.y:781:16: error: expected identifier before ‘->’ token
781 | if (a->x_arg->x_kind != SREF) {
| ^~
zparse.y:791:13: error: expected identifier before ‘=’ token
791 | a->x_arg = pred_fix(a->x_arg);
| ^
zparse.y:796:14: error: expected identifier before ‘=’ token
796 | a->x_arg2 = pred_fix(a->x_arg2);
| ^
make[1]: *** [Makefile:75: zparse.o] Error 1
make[1]: Leaving directory '/home/evochecker/Downloads/fuzz/src'
make: *** [Makefile:55: src] Error 2
I know this may be a very specific question related to Fuzz, so thanks for any help.
Here are the list of files (zparse.c, zparse.h, absyn.h)
https://github.com/Spivoxity/fuzz/tree/master/src

I saw this question while perusing other 'z-notation' questions. I am using Ubuntu 22.04 and tried downloading and compiling the utility and did not run into any problems. Here is what I did:
git clone https://github.com/Spivoxity/fuzz.git
cd fuzz/
./configure
make
Here is the output:
make[1]: Entering directory '/tmp/fuzz/src'
bison -dv -y zparse.y -o zparse.c
gawk -f absyn.k absyn.x >absyn.h
gcc -Wall -c -DDEBUG -DANSI -DASSUME zparse.c
flex -ozscan.c zscan.l
gcc -Wall -c -DDEBUG -DANSI -DASSUME -DYY_NO_UNPUT -DYY_NO_INPUT zscan.c
gcc -Wall -c -DDEBUG -DANSI -DASSUME -DLIBDIR=\"/usr/local/lib\" -Dfuzz_version=\"1.2.1\" main.c
gcc -Wall -c -DDEBUG -DANSI -DASSUME spec.c
gcc -Wall -c -DDEBUG -DANSI -DASSUME type.c
gcc -Wall -c -DDEBUG -DANSI -DASSUME frame.c
gcc -Wall -c -DDEBUG -DANSI -DASSUME dict.c
gcc -Wall -c -DDEBUG -DANSI -DASSUME sched.c
gcc -Wall -c -DDEBUG -DANSI -DASSUME pretty.c
gcc -Wall -c -DDEBUG -DANSI -DASSUME error.c
gcc -Wall -c -DDEBUG -DANSI -DASSUME expr.c
gcc -Wall -c -DDEBUG -DANSI -DASSUME alloc.c
gcc -Wall -c -DDEBUG -DANSI -DASSUME unify.c
gcc -Wall -c -DDEBUG -DANSI -DASSUME schema.c
gcc -Wall -c -DDEBUG -DANSI -DASSUME dump.c
gcc -o fuzz zparse.o zscan.o main.o spec.o type.o frame.o dict.o sched.o pretty.o error.o expr.o alloc.o unify.o schema.o dump.o
/usr/bin/cpp -DDEBUG -DANSI -DASSUME symdef.x >symdef.i
gawk -f fuzzlib.k output=fuzzlib fuzzlib.x >fuzzlib
gawk -f fuzzlib.k output=minilib minilib.x >minilib
make[1]: Leaving directory '/tmp/fuzz/src'

Related

Is there a way of installing the package PET for installation of gitter and DeadOrAlive in the newest version of R?

> install.packages("C:/Users/andyk/Downloads/PET_0.5.1.tar.gz", repos = NULL, type = "source")
‘C:/Users/andyk/AppData/Local/R/win-library/4.2’의 위치에 패키지(들)을 설치합니다.
(왜냐하면 ‘lib’가 지정되지 않았기 때문입니다)
* installing *source* package 'PET' ...
** package 'PET' successfully unpacked and MD5 sums checked
** using staged installation
** libs
gcc -I"C:/PROGRA~1/R/R-42~1.1/include" -DNDEBUG -I"C:/RBuildTools/4.2/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c Hough.c -o Hough.o
Hough.c: In function 'Hough4':
Hough.c:41:10: warning: variable 'theta_min' set but not used [-Wunused-but-set-variable]
41 | double theta_min;
| ^~~~~~~~~
Hough.c:40:38: warning: variable 'y' set but not used [-Wunused-but-set-variable]
40 | double *costheta,*sintheta,theta,x,y;
| ^
Hough.c: In function 'Hough3':
Hough.c:118:10: warning: variable 'theta_min' set but not used [-Wunused-but-set-variable]
118 | double theta_min;
| ^~~~~~~~~
Hough.c: In function 'Hough2':
Hough.c:173:10: warning: variable 'theta_min' set but not used [-Wunused-but-set-variable]
173 | double theta_min;
| ^~~~~~~~~
Hough.c: In function 'Hough1':
Hough.c:227:10: warning: variable 'theta_min' set but not used [-Wunused-but-set-variable]
227 | double theta_min;
| ^~~~~~~~~
gcc -I"C:/PROGRA~1/R/R-42~1.1/include" -DNDEBUG -I"C:/RBuildTools/4.2/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c PET_init.c -o PET_init.o
gcc -I"C:/PROGRA~1/R/R-42~1.1/include" -DNDEBUG -I"C:/RBuildTools/4.2/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c amatrix.c -o amatrix.o
amatrix.c: In function 'RegulateMatrix':
amatrix.c:234:10: warning: variable 'tempVv' set but not used [-Wunused-but-set-variable]
234 | float *tempVv;
| ^~~~~~
amatrix.c: In function 'RegulateL1Matrix':
amatrix.c:289:10: warning: variable 'tempVv' set but not used [-Wunused-but-set-variable]
289 | float *tempVv;
| ^~~~~~
amatrix.c: In function 'GenerateAMatrixColumn':
amatrix.c:784:9: warning: variable 'onedivsq2' set but not used [-Wunused-but-set-variable]
784 | float onedivsq2,psi,pidivDeltaX,costheta,sintheta,of;
| ^~~~~~~~~
gcc -I"C:/PROGRA~1/R/R-42~1.1/include" -DNDEBUG -I"C:/RBuildTools/4.2/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c art.c -o art.o
art.c: In function 'FAST_ART':
art.c:128:10: warning: variable 'tempXv' set but not used [-Wunused-but-set-variable]
128 | float *tempXv,*tempBv;
| ^~~~~~
art.c: In function 'SLOW_ART':
art.c:239:10: warning: variable 'tempXv' set but not used [-Wunused-but-set-variable]
239 | float *tempXv,*tempBv;
| ^~~~~~
gcc -I"C:/PROGRA~1/R/R-42~1.1/include" -DNDEBUG -I"C:/RBuildTools/4.2/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c calc.c -o calc.o
calc.c: In function 'BackFilter':
calc.c:335:19: warning: variable 'M' set but not used [-Wunused-but-set-variable]
335 | int i,m,n,mm,nn,M,N,OldHeight,OldWidth;
| ^
calc.c: In function 'CentralSliceCZ':
calc.c:700:49: warning: variable 'rhomin' set but not used [-Wunused-but-set-variable]
700 | float DC,deltatheta,theta,thetaadj,*realtheta,rhomin,deltarho;
| ^~~~~~
gcc -I"C:/PROGRA~1/R/R-42~1.1/include" -DNDEBUG -I"C:/RBuildTools/4.2/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c cg.c -o cg.o
gcc -I"C:/PROGRA~1/R/R-42~1.1/include" -DNDEBUG -I"C:/RBuildTools/4.2/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c em.c -o em.o
gcc -I"C:/PROGRA~1/R/R-42~1.1/include" -DNDEBUG -I"C:/RBuildTools/4.2/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c eval.c -o eval.o
gcc -I"C:/PROGRA~1/R/R-42~1.1/include" -DNDEBUG -I"C:/RBuildTools/4.2/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c imgtools.c -o imgtools.o
imgtools.c: In function 'ReadPET':
imgtools.c:1005:10: warning: variable 'result' set but not used [-Wunused-but-set-variable]
1005 | size_t result;
| ^~~~~~
imgtools.c: In function 'ReadFIFHeader':
imgtools.c:1148:10: warning: variable 'result' set but not used [-Wunused-but-set-variable]
1148 | size_t result;
| ^~~~~~
imgtools.c: In function 'ReadFIF':
imgtools.c:1222:10: warning: variable 'result' set but not used [-Wunused-but-set-variable]
1222 | size_t result;
| ^~~~~~
imgtools.c: In function 'ReadAnalyze':
imgtools.c:1616:10: warning: variable 'result' set but not used [-Wunused-but-set-variable]
1616 | size_t result;
| ^~~~~~
imgtools.c:1614:21: warning: variable 'OffSet' set but not used [-Wunused-but-set-variable]
1614 | float ScaleFactor,OffSet;
| ^~~~~~
gcc -I"C:/PROGRA~1/R/R-42~1.1/include" -DNDEBUG -I"C:/RBuildTools/4.2/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c iradon.c -o iradon.o
iradon.c: In function 'iradon':
iradon.c:271:5: warning: 'spectrum' may be used uninitialized in this function [-Wmaybe-uninitialized]
271 | FreeImage(spectrum);
| ^~~~~~~~~~~~~~~~~~~
iradon.c: In function 'loadFile':
iradon.c:568:9: warning: 'list' may be used uninitialized in this function [-Wmaybe-uninitialized]
568 | return(list);
| ^
iradon.c:404:16: warning: 'typeF' may be used uninitialized in this function [-Wmaybe-uninitialized]
404 | OutImage = ReadImage(fileName, typeF);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
iradon.c: In function 'writeFile':
iradon.c:684:19: warning: 'N' may be used uninitialized in this function [-Wmaybe-uninitialized]
684 | SaveImage=NewFloatImage(fileName, M, N, _RealArray);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
iradon.c:684:19: warning: 'M' may be used uninitialized in this function [-Wmaybe-uninitialized]
iradon.c:772:5: warning: 'typeF' may be used uninitialized in this function [-Wmaybe-uninitialized]
772 | WriteImage(SaveImage, typeF);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -I"C:/PROGRA~1/R/R-42~1.1/include" -DNDEBUG -I"C:/RBuildTools/4.2/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c it.c -o it.o
gcc -I"C:/PROGRA~1/R/R-42~1.1/include" -DNDEBUG -I"C:/RBuildTools/4.2/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c itreadargs.c -o itreadargs.o
gcc -I"C:/PROGRA~1/R/R-42~1.1/include" -DNDEBUG -I"C:/RBuildTools/4.2/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c misc.c -o misc.o
gcc -I"C:/PROGRA~1/R/R-42~1.1/include" -DNDEBUG -I"C:/RBuildTools/4.2/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c oradLI.c -o oradLI.o
gcc -I"C:/PROGRA~1/R/R-42~1.1/include" -DNDEBUG -I"C:/RBuildTools/4.2/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c oradNN.c -o oradNN.o
gcc -I"C:/PROGRA~1/R/R-42~1.1/include" -DNDEBUG -I"C:/RBuildTools/4.2/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c oradSINC.c -o oradSINC.o
oradSINC.c: In function 'radonSINC':
oradSINC.c:52:10: warning: variable 'idx' set but not used [-Wunused-but-set-variable]
52 | double idx,mintrig,psi;
| ^~~
gcc -I"C:/PROGRA~1/R/R-42~1.1/include" -DNDEBUG -I"C:/RBuildTools/4.2/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c sparse.c -o sparse.o
sparse.c: In function 'ReadSIFHeader':
sparse.c:607:10: warning: variable 'result' set but not used [-Wunused-but-set-variable]
607 | size_t result;
| ^~~~~~
sparse.c: In function 'ReadSIF':
sparse.c:657:10: warning: variable 'result' set but not used [-Wunused-but-set-variable]
657 | size_t result;
| ^~~~~~
sparse.c: In function 'MeanFilterVector':
sparse.c:1537:13: warning: variable 'area' set but not used [-Wunused-but-set-variable]
1537 | float sum,area,*tempVv,*tempNv,*tempKernM;
| ^~~~
gcc -shared -s -static-libgcc -o PET.dll tmp.def Hough.o PET_init.o amatrix.o art.o calc.o cg.o em.o eval.o imgtools.o iradon.o it.o itreadargs.o misc.o oradLI.o oradNN.o oradSINC.o sparse.o -LC:/RBuildTools/4.2/x86_64-w64-mingw32.static.posix/lib/x64 -LC:/RBuildTools/4.2/x86_64-w64-mingw32.static.posix/lib -LC:/PROGRA~1/R/R-42~1.1/bin/x64 -lR
C:\RBuildTools\4.2\x86_64-w64-mingw32.static.posix\bin/ld.exe: it.o:it.c:(.bss+0x610): multiple definition of `DebugNiveau'; iradon.o:iradon.c:(.data+0x0): first defined here
C:\RBuildTools\4.2\x86_64-w64-mingw32.static.posix\bin/ld.exe: it.o:it.c:(.bss+0x480): multiple definition of `IniFile'; iradon.o:iradon.c:(.bss+0x0): first defined here
C:\RBuildTools\4.2\x86_64-w64-mingw32.static.posix\bin/ld.exe: it.o:it.c:(.bss+0x598): multiple definition of `multtemp'; iradon.o:iradon.c:(.bss+0x118): first defined here
C:\RBuildTools\4.2\x86_64-w64-mingw32.static.posix\bin/ld.exe: it.o:it.c:(.bss+0x5a0): multiple definition of `LogFileName'; iradon.o:iradon.c:(.bss+0x120): first defined here
C:\RBuildTools\4.2\x86_64-w64-mingw32.static.posix\bin/ld.exe: it.o:it.c:(.bss+0x608): multiple definition of `LogFile'; iradon.o:iradon.c:(.bss+0x188): first defined here
collect2.exe: error: ld returned 1 exit status
no DLL was created
ERROR: compilation failed for package 'PET'
* removing 'C:/Users/andyk/AppData/Local/R/win-library/4.2/PET'
Warning in install.packages :
패키지 ‘C:/Users/andyk/Downloads/PET_0.5.1.tar.gz’의 설치가 0이 아닌 종료상태를 가졌습니다
I need the package PET to install gitter and DeadOrAlive. I've tried manually installing with tar. file for PET, using install.packages, and other versions of the package, but none of the methods worked.
Is it not possible to install the package at all, or are there other ways of installing PET to download the subsequent packages.

Errors in qvariant.h during compilation

I am getting a variety of compilation errors relating to qvariant when compiling my program. I have not modified the Qt libs/source, so why am I getting these errors? (What do they mean)
/Qt/5.9.9/gcc_64/mkspecs/linux-g++ -o tl_ansi_codes.o /mydir/tl_ansi_formatting/tl_ansi_codes.cpp
In file included from /opt/Qt/5.9.9/gcc_64/include/QtCore/qlocale.h:43,
from /opt/Qt/5.9.9/gcc_64/include/QtCore/qtextstream.h:46,
from /opt/Qt/5.9.9/gcc_64/include/QtCore/qdebug.h:49,
from /opt/Qt/5.9.9/gcc_64/include/QtCore/QDebug:1,
from /mydir/tl_ansi_formatting/tl_ansi_codes.cpp:9:
/opt/Qt/5.9.9/gcc_64/include/QtCore/qvariant.h: In constructor ‘QVariant::QVariant(QVariant&&)’:
/opt/Qt/5.9.9/gcc_64/include/QtCore/qvariant.h:265:25: warning: implicitly-declared ‘constexpr QVariant::Private& QVariant::Private::operator=(const QVariant::Private&)’ is deprecated [-Wdeprecated-copy]
265 | { other.d = Private(); }
| ^
/opt/Qt/5.9.9/gcc_64/include/QtCore/qvariant.h:380:16: note: because ‘QVariant::Private’ has user-provided ‘QVariant::Private::Private(const QVariant::Private&)’
380 | inline Private(const Private &other) Q_DECL_NOTHROW
| ^~~~~~~
g++ -c -pipe -g -Wall -W -D_REENTRANT -fPIC -DQT_DEPRECATED_WARNINGS -Dproject_vls=1 -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_SQL_LIB -DQT_CORE_LIB -I/mydir//project -I. -
/opt/Qt/5.9.9/gcc_64/include/QtCore/qvariant.h: In constructor ‘QVariant::QVariant(QVariant&&)’:
/opt/Qt/5.9.9/gcc_64/include/QtCore/qvariant.h:265:25: warning: implicitly-declared ‘constexpr QVariant::Private& QVariant::Private::operator=(const QVariant::Private&)’ is deprecated [-Wdeprecated-copy]
265 | { other.d = Private(); }
The best solution available is just to ignore it, Or upgrade to qt6.
To Ignore the warning, just add
QMAKE_CXXFLAGS += -Wno-deprecated-copy
In all of your .pro files.
This will ignore all the deprecated-copy warning; you can also ignore for debug or release build using QMAKE_CXXFLAGS_DEBUG or QMAKE_CXXFLAGS_RELEASE.

Could not link CPLEX library in R

I am trying to install Rcplex in R on a macbook and I'm following the instruction at this link http://jrzubizarreta.com/INSTALL.
On terminal, in the folder where I unzipped Rcplex (Users/Downloads), I typed
R CMD INSTALL --configure-args="PKG_CFLAGS='-m64 -fPIC'
PKG_CPPFLAGS=-I/Applications/CPLEX_Studio129/cplex/include
PKG_LIBS='-l/Applications/CPLEX_Studio129/cplex/lib/x86-64_osx/static_pic
-lcplex -m64 -lm -lpthread -framework CoreFoundation -framework IOKit'" Rcplex
The error I receive reads:
configure: error: Could not link CPLEX library using -
l/Applications/CPLEX_Studio129/cplex/lib/x86-64_osx/static_pic -lcplex -m64 -
lm -lpthread -framework CoreFoundation -framework IOKit
ERROR: configuration failed for package ‘Rcplex’
The makefile with the info on CFLAGS and CLNFLAGS and the config.log file from the folder where I installed Rcplexare attached below.
I'm not experienced at installing sw from terminal, but I really need this sw to work. Anyone understands where the problem is? Thank you.
PS: I have already posted a similar question in the past (at error: C compiler cannot create executables) but I couldn't make this work despite the previous post was very helpful.
********************* START MAKEFILE ***********************************
SYSTEM = x86-64_osx
LIBFORMAT = static_pic
#------------------------------------------------------------
#
# When you adapt this makefile to compile your CPLEX programs
# please copy this makefile and set CPLEXDIR and CONCERTDIR to
# the directories where CPLEX and CONCERT are installed.
#
#------------------------------------------------------------
CPLEXDIR = ../../..
CONCERTDIR = ../../../../concert
# ---------------------------------------------------------------------
# Compiler selection
# ---------------------------------------------------------------------
CCC = clang++ -O0
CC = clang -O0
JAVAC = javac
# ---------------------------------------------------------------------
# Compiler options
# ---------------------------------------------------------------------
CCOPT = -m64 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -stdlib=libc++
COPT = -m64 -fPIC
JOPT = -classpath $(CPLEXDIR)/lib/cplex.jar -O
# ---------------------------------------------------------------------
# Link options and libraries
# ---------------------------------------------------------------------
CPLEXBINDIR = $(CPLEXDIR)/bin/$(BINDIST)
CPLEXJARDIR = $(CPLEXDIR)/lib/cplex.jar
CPLEXLIBDIR = $(CPLEXDIR)/lib/$(SYSTEM)/$(LIBFORMAT)
CONCERTLIBDIR = $(CONCERTDIR)/lib/$(SYSTEM)/$(LIBFORMAT)
# For dynamic linking
CPLEXBINDIR = $(CPLEXDIR)/bin/$(SYSTEM)
CPLEXLIB = cplex$(dynamic:yes=1290)
run = $(dynamic:yes=DYLD_LIBRARY_PATH=$(CPLEXBINDIR))
CCLNDIRS = -L$(CPLEXLIBDIR) -L$(CONCERTLIBDIR) $(dynamic:yes=-L$(CPLEXBINDIR))
CLNDIRS = -L$(CPLEXLIBDIR) $(dynamic:yes=-L$(CPLEXBINDIR))
CCLNFLAGS = -lconcert -lilocplex -l$(CPLEXLIB) -m64 -lm -lpthread -framework CoreFoundation -framework IOKit -stdlib=libc++
CLNFLAGS = -l$(CPLEXLIB) -m64 -lm -lpthread -framework CoreFoundation -framework IOKit
JAVA = java -d64 -Djava.library.path=$(CPLEXDIR)/bin/x86-64_osx -classpath $(CPLEXJARDIR):
all:
make all_c
make all_cpp
make all_java
execute: all
make execute_c
make execute_cpp
make execute_java
CONCERTINCDIR = $(CONCERTDIR)/include
CPLEXINCDIR = $(CPLEXDIR)/include
EXDIR = $(CPLEXDIR)/examples
EXINC = $(EXDIR)/include
EXDATA = $(EXDIR)/data
EXSRCC = $(EXDIR)/src/c
EXSRCCX = $(EXDIR)/src/c_x
EXSRCCPP = $(EXDIR)/src/cpp
EXSRCJAVA = $(EXDIR)/src/java
CFLAGS = $(COPT) -I$(CPLEXINCDIR)
********************* END MAKEFILE *************************************
********************* START CONFIG.LOG **********************************
Removed because of space limit
********************* END CONFIG.LOG ***********************************
#rkersh correctly pointed out that the -l should actually be -L. Unfortunately, the code still gives error. I attached the config.log from running:
R CMD INSTALL --configure-args="PKG_CFLAGS='-m64 -fPIC' PKG_CPPFLAGS=-
I/Applications/CPLEX_Studio129/cplex/include PKG_LIBS='-
L/Applications/CPLEX_Studio129/cplex/lib/x86-64_osx/static_pic -lcplex -m64 -
lm -lpthread -framework CoreFoundation -framework IOKit'" Rcplex
********************* START CONFIG.LOG WITH `-L` ***********************
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by Rcplex configure 0.3.2, which was
generated by GNU Autoconf 2.59. Invocation command line was
$ ./configure PKG_CFLAGS=-m64 -fPIC PKG_CPPFLAGS=-I/Applications/CPLEX_Studio129/cplex/include PKG_LIBS=-L/Applications/CPLEX_Studio129/cplex/lib/x86-64_osx/static_pic -lcplex -m64 -lm -lpthread -framework CoreFoundation -framework IOKit
## --------- ##
## Platform. ##
## --------- ##
hostname = Andrews###
uname -m = x86_64
uname -r = 16.7.0
uname -s = Darwin
uname -v = Darwin Kernel Version 16.7.0: Thu Jun 15 17:36:27 PDT 2017; root:xnu-3789.70.16~2/RELEASE_X86_64
/usr/bin/uname -p = i386
/bin/uname -X = unknown
/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
hostinfo = Mach kernel version:
Darwin Kernel Version 16.7.0: Thu Jun 15 17:36:27 PDT 2017; root:xnu-3789.70.16~2/RELEASE_X86_64
Kernel configured for up to 4 processors.
2 processors are physically available.
4 processors are logically available.
Processor type: x86_64h (Intel x86-64h Haswell)
Processors active: 0 1 2 3
Primary memory available: 16.00 gigabytes
Default processor set: 365 tasks, 1784 threads, 4 processors
Load average: 2.23, Mach factor: 1.76
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /Users/andrews/anaconda/bin
PATH: /Library/Frameworks/Python.framework/Versions/2.7/bin
PATH: /Users/andrews/anaconda/bin
PATH: /Library/Frameworks/Python.framework/Versions/3.5/bin
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/sbin
PATH: /sbin
PATH: /opt/X11/bin
PATH: /Library/TeX/texbin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:1631: checking for gcc
configure:1657: result: clang
configure:1901: checking for C compiler version
configure:1904: clang --version </dev/null >&5
Apple LLVM version 7.0.0 (clang-700.0.72)
Target: x86_64-apple-darwin16.7.0
Thread model: posix
configure:1907: $? = 0
configure:1909: clang -v </dev/null >&5
Apple LLVM version 7.0.0 (clang-700.0.72)
Target: x86_64-apple-darwin16.7.0
Thread model: posix
configure:1912: $? = 0
configure:1914: clang -V </dev/null >&5
clang: error: argument to '-V' is missing (expected 1 value)
clang: error: no input files
configure:1917: $? = 1
configure:1940: checking for C compiler default output file name
configure:1943: clang -Wall -g -O2 -I/usr/local/include conftest.c >&5
configure:1946: $? = 0
configure:1992: result: a.out
configure:1997: checking whether the C compiler works
configure:2003: ./a.out
configure:2006: $? = 0
configure:2023: result: yes
configure:2030: checking whether we are cross compiling
configure:2032: result: no
configure:2035: checking for suffix of executables
configure:2037: clang -o conftest -Wall -g -O2 -I/usr/local/include conftest.c >&5
configure:2040: $? = 0
configure:2065: result:
configure:2071: checking for suffix of object files
configure:2092: clang -c -Wall -g -O2 -I/usr/local/include conftest.c >&5
configure:2095: $? = 0
configure:2117: result: o
configure:2121: checking whether we are using the GNU C compiler
configure:2145: clang -c -Wall -g -O2 -I/usr/local/include conftest.c >&5
configure:2151: $? = 0
configure:2155: test -z
|| test ! -s conftest.err
configure:2158: $? = 0
configure:2161: test -s conftest.o
configure:2164: $? = 0
configure:2177: result: yes
configure:2183: checking whether clang accepts -g
configure:2204: clang -c -g -I/usr/local/include conftest.c >&5
configure:2210: $? = 0
configure:2214: test -z
|| test ! -s conftest.err
configure:2217: $? = 0
configure:2220: test -s conftest.o
configure:2223: $? = 0
configure:2234: result: yes
configure:2251: checking for clang option to accept ANSI C
configure:2321: clang -c -Wall -g -O2 -I/usr/local/include conftest.c >&5
configure:2327: $? = 0
configure:2331: test -z
|| test ! -s conftest.err
configure:2334: $? = 0
configure:2337: test -s conftest.o
configure:2340: $? = 0
configure:2358: result: none needed
configure:2376: clang -c -Wall -g -O2 -I/usr/local/include conftest.c >&5
conftest.c:2:3: error: unknown type name 'choke'
choke me
^
conftest.c:2:11: error: expected ';' after top level declarator
choke me
^
;
2 errors generated.
configure:2382: $? = 1
configure: failed program was:
| #ifndef __cplusplus
| choke me
| #endif
configure:2520: checking how to run the C preprocessor
configure:2638: result: clang -E
configure:2662: clang -E -I/usr/local/include conftest.c
configure:2668: $? = 0
configure:2700: clang -E -I/usr/local/include conftest.c
conftest.c:9:10: fatal error: 'ac_nonexistent.h' file not found
#include <ac_nonexistent.h>
^
1 error generated.
configure:2706: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "Rcplex"
| #define PACKAGE_TARNAME "rcplex"
| #define PACKAGE_VERSION "0.3.2"
| #define PACKAGE_STRING "Rcplex 0.3.2"
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
configure:2756: checking for egrep
configure:2766: result: grep -E
configure:2771: checking for ANSI C header files
configure:2796: clang -c -Wall -g -O2 -m64 -fPIC -I/usr/local/include -I/Applications/CPLEX_Studio129/cplex/include conftest.c >&5
configure:2802: $? = 0
configure:2806: test -z
|| test ! -s conftest.err
configure:2809: $? = 0
configure:2812: test -s conftest.o
configure:2815: $? = 0
configure:2904: clang -o conftest -Wall -g -O2 -m64 -fPIC -I/usr/local/include -I/Applications/CPLEX_Studio129/cplex/include conftest.c -L/Applications/CPLEX_Studio129/cplex/lib/x86-64_osx/static_pic -lcplex -m64 -lm -lpthread -framework CoreFoundation -framework IOKit >&5
conftest.c:26:7: warning: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))'
exit(2);
^
conftest.c:26:7: note: include the header <stdlib.h> or explicitly provide a declaration for 'exit'
1 warning generated.
configure:2907: $? = 0
configure:2909: ./conftest
configure:2912: $? = 0
configure:2927: result: yes
configure:2951: checking for sys/types.h
configure:2967: clang -c -Wall -g -O2 -m64 -fPIC -I/usr/local/include -I/Applications/CPLEX_Studio129/cplex/include conftest.c >&5
configure:2973: $? = 0
configure:2977: test -z
|| test ! -s conftest.err
configure:2980: $? = 0
configure:2983: test -s conftest.o
configure:2986: $? = 0
configure:2997: result: yes
configure:2951: checking for sys/stat.h
configure:2967: clang -c -Wall -g -O2 -m64 -fPIC -I/usr/local/include -I/Applications/CPLEX_Studio129/cplex/include conftest.c >&5
configure:2973: $? = 0
configure:2977: test -z
|| test ! -s conftest.err
configure:2980: $? = 0
configure:2983: test -s conftest.o
configure:2986: $? = 0
configure:2997: result: yes
configure:2951: checking for stdlib.h
configure:2967: clang -c -Wall -g -O2 -m64 -fPIC -I/usr/local/include -I/Applications/CPLEX_Studio129/cplex/include conftest.c >&5
configure:2973: $? = 0
configure:2977: test -z
|| test ! -s conftest.err
configure:2980: $? = 0
configure:2983: test -s conftest.o
configure:2986: $? = 0
configure:2997: result: yes
configure:2951: checking for string.h
configure:2967: clang -c -Wall -g -O2 -m64 -fPIC -I/usr/local/include -I/Applications/CPLEX_Studio129/cplex/include conftest.c >&5
configure:2973: $? = 0
configure:2977: test -z
|| test ! -s conftest.err
configure:2980: $? = 0
configure:2983: test -s conftest.o
configure:2986: $? = 0
configure:2997: result: yes
configure:2951: checking for memory.h
configure:2967: clang -c -Wall -g -O2 -m64 -fPIC -I/usr/local/include -I/Applications/CPLEX_Studio129/cplex/include conftest.c >&5
configure:2973: $? = 0
configure:2977: test -z
|| test ! -s conftest.err
configure:2980: $? = 0
configure:2983: test -s conftest.o
configure:2986: $? = 0
configure:2997: result: yes
configure:2951: checking for strings.h
configure:2967: clang -c -Wall -g -O2 -m64 -fPIC -I/usr/local/include -I/Applications/CPLEX_Studio129/cplex/include conftest.c >&5
configure:2973: $? = 0
configure:2977: test -z
|| test ! -s conftest.err
configure:2980: $? = 0
configure:2983: test -s conftest.o
configure:2986: $? = 0
configure:2997: result: yes
configure:2951: checking for inttypes.h
configure:2967: clang -c -Wall -g -O2 -m64 -fPIC -I/usr/local/include -I/Applications/CPLEX_Studio129/cplex/include conftest.c >&5
configure:2973: $? = 0
configure:2977: test -z
|| test ! -s conftest.err
configure:2980: $? = 0
configure:2983: test -s conftest.o
configure:2986: $? = 0
configure:2997: result: yes
configure:2951: checking for stdint.h
configure:2967: clang -c -Wall -g -O2 -m64 -fPIC -I/usr/local/include -I/Applications/CPLEX_Studio129/cplex/include conftest.c >&5
configure:2973: $? = 0
configure:2977: test -z
|| test ! -s conftest.err
configure:2980: $? = 0
configure:2983: test -s conftest.o
configure:2986: $? = 0
configure:2997: result: yes
configure:2951: checking for unistd.h
configure:2967: clang -c -Wall -g -O2 -m64 -fPIC -I/usr/local/include -I/Applications/CPLEX_Studio129/cplex/include conftest.c >&5
configure:2973: $? = 0
configure:2977: test -z
|| test ! -s conftest.err
configure:2980: $? = 0
configure:2983: test -s conftest.o
configure:2986: $? = 0
configure:2997: result: yes
configure:3019: checking ilcplex/cplex.h usability
configure:3031: clang -c -Wall -g -O2 -m64 -fPIC -I/usr/local/include -I/Applications/CPLEX_Studio129/cplex/include conftest.c >&5
configure:3037: $? = 0
configure:3041: test -z
|| test ! -s conftest.err
configure:3044: $? = 0
configure:3047: test -s conftest.o
configure:3050: $? = 0
configure:3060: result: yes
configure:3064: checking ilcplex/cplex.h presence
configure:3074: clang -E -I/usr/local/include -I/Applications/CPLEX_Studio129/cplex/include conftest.c
configure:3080: $? = 0
configure:3100: result: yes
configure:3135: checking for ilcplex/cplex.h
configure:3142: result: yes
configure:3154: checking for library containing CPXversion
configure:3184: clang -o conftest -Wall -g -O2 -m64 -fPIC -I/usr/local/include -I/Applications/CPLEX_Studio129/cplex/include conftest.c -L/Applications/CPLEX_Studio129/cplex/lib/x86-64_osx/static_pic -lcplex -m64 -lm -lpthread -framework CoreFoundation -framework IOKit >&5
configure:3190: $? = 0
configure:3194: test -z
|| test ! -s conftest.err
configure:3197: $? = 0
configure:3200: test -s conftest
configure:3203: $? = 0
configure:3273: result: none required
configure:3415: creating ./config.status
## ---------------------- ##
## Running config.status. ##
## ---------------------- ##
This file was extended by Rcplex config.status 0.3.2, which was
generated by GNU Autoconf 2.59. Invocation command line was
CONFIG_FILES =
CONFIG_HEADERS =
CONFIG_LINKS =
CONFIG_COMMANDS =
$ ./config.status
on Andrews###
config.status:638: creating src/Makevars
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_c_compiler_gnu=yes
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_exeext=
ac_cv_header_ilcplex_cplex_h=yes
ac_cv_header_inttypes_h=yes
ac_cv_header_memory_h=yes
ac_cv_header_stdc=yes
ac_cv_header_stdint_h=yes
ac_cv_header_stdlib_h=yes
ac_cv_header_string_h=yes
ac_cv_header_strings_h=yes
ac_cv_header_sys_stat_h=yes
ac_cv_header_sys_types_h=yes
ac_cv_header_unistd_h=yes
ac_cv_objext=o
ac_cv_prog_CPP='clang -E'
ac_cv_prog_ac_ct_CC=clang
ac_cv_prog_cc_g=yes
ac_cv_prog_cc_stdc=
ac_cv_prog_egrep='grep -E'
ac_cv_search_CPXversion='none required'
## ----------------- ##
## Output variables. ##
## ----------------- ##
AWK=''
CC='clang'
CFLAGS='-Wall -g -O2 -m64 -fPIC'
CPLEX_BIN=''
CPP='clang -E'
CPPFLAGS='-I/usr/local/include -I/Applications/CPLEX_Studio129/cplex/include'
DEFS='-DPACKAGE_NAME=\"Rcplex\" -DPACKAGE_TARNAME=\"rcplex\" -DPACKAGE_VERSION=\"0.3.2\" -DPACKAGE_STRING=\"Rcplex\ 0.3.2\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 '
ECHO_C='ECHO_N=''
ECHO_T=''
EGREP='grep -E'
EXEEXT=''
LDFLAGS=''
LIBOBJS=''
LIBS='-L/Applications/CPLEX_Studio129/cplex/lib/x86-64_osx/static_pic -lcplex -m64 -lm -lpthread -framework CoreFoundation -framework IOKit'
LTLIBOBJS=''
OBJEXT='o'
PACKAGE_BUGREPORT=''
PACKAGE_NAME='Rcplex'
PACKAGE_STRING='Rcplex 0.3.2'
PACKAGE_TARNAME='rcplex'
PACKAGE_VERSION='0.3.2'
PATH_SEPARATOR=':'
PKG_CFLAGS='-m64 -fPIC'
PKG_CPPFLAGS='-I/Applications/CPLEX_Studio129/cplex/include'
PKG_LIBS='-L/Applications/CPLEX_Studio129/cplex/lib/x86-64_osx/static_pic -lcplex -m64 -lm -lpthread -framework CoreFoundation -framework IOKit'
SHELL='/bin/sh'
ac_ct_CC='clang'
bindir='${exec_prefix}/bin'
build_alias=''
datadir='${prefix}/share'
exec_prefix='${prefix}'
host_alias=''
includedir='${prefix}/include'
infodir='${prefix}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
mandir='${prefix}/man'
oldincludedir='/usr/include'
prefix='/usr/local'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
#define HAVE_INTTYPES_H 1
#define HAVE_MEMORY_H 1
#define HAVE_STDINT_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRINGS_H 1
#define HAVE_STRING_H 1
#define HAVE_SYS_STAT_H 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_UNISTD_H 1
#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME "Rcplex"
#define PACKAGE_STRING "Rcplex 0.3.2"
#define PACKAGE_TARNAME "rcplex"
#define PACKAGE_VERSION "0.3.2"
#define STDC_HEADERS 1
configure: exit 0
You should be using -L for the lib directory rather than -l.
Try using the following:
R CMD INSTALL --configure-args="PKG_CFLAGS='-m64 -fPIC'
PKG_CPPFLAGS=-I/Applications/CPLEX_Studio129/cplex/include
PKG_LIBS='-L/Applications/CPLEX_Studio129/cplex/lib/x86-64_osx/static_pic
-lcplex -m64 -lm -lpthread -framework CoreFoundation -framework IOKit'" Rcplex

Can not make qmqtt

I had previously installed qt4. Now, I have installed QT5.7. I am trying to compile the qmqtt project to generate the libqmqtt file. Qmake is fine. But make gives the following error.
Link:
https://github.com/emqtt/qmqtt
g++ -c -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -O2 -fvisibility=hidden -fvisibility-inlines-hidden -std=c++0x -fno-exceptions -Wall -W -D_REENTRANT -fPIC -DQT_NO_MTDEV -DQT_NO_CAST_TO_ASCII -DQT_NO_CAST_FROM_ASCII -DQT_BUILD_MQTT_LIB -DQT_BUILDING_QT -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_CORE_LIB -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64 -I/home/sm/qt_applications/qmqtt/qmqtt-master/src/mqtt -I/home/sm/qt_applications/qmqtt/qmqtt-master/src/mqtt -I/home/sm/qt_applications/qmqtt/qmqtt-master/include -I/home/sm/qt_applications/qmqtt/qmqtt-master/include/qmqtt -I../../include -I../../include/qmqtt -I/home/sm/qt_applications/qmqtt/qmqtt-master/include/qmqtt/1.0.0 -I/home/sm/qt_applications/qmqtt/qmqtt-master/include/qmqtt/1.0.0/qmqtt -I/usr/include/qt5 -I/usr/include/qt5/QtNetwork -I/usr/include/qt5/QtCore -I.moc -I. -o .obj/qmqtt_routedmessage.o /home/sm/qt_applications/qmqtt/qmqtt-master/src/mqtt/qmqtt_routedmessage.cpp
g++ -c -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -O2 -fvisibility=hidden -fvisibility-inlines-hidden -std=c++0x -fno-exceptions -Wall -W -D_REENTRANT -fPIC -DQT_NO_MTDEV -DQT_NO_CAST_TO_ASCII -DQT_NO_CAST_FROM_ASCII -DQT_BUILD_MQTT_LIB -DQT_BUILDING_QT -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_CORE_LIB -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64 -I/home/sm/qt_applications/qmqtt/qmqtt-master/src/mqtt -I/home/sm/qt_applications/qmqtt/qmqtt-master/src/mqtt -I/home/sm/qt_applications/qmqtt/qmqtt-master/include -I/home/sm/qt_applications/qmqtt/qmqtt-master/include/qmqtt -I../../include -I../../include/qmqtt -I/home/sm/qt_applications/qmqtt/qmqtt-master/include/qmqtt/1.0.0 -I/home/sm/qt_applications/qmqtt/qmqtt-master/include/qmqtt/1.0.0/qmqtt -I/usr/include/qt5 -I/usr/include/qt5/QtNetwork -I/usr/include/qt5/QtCore -I.moc -I. -o .obj/qmqtt_router.o /home/sm/qt_applications/qmqtt/qmqtt-master/src/mqtt/qmqtt_router.cpp
In file included from /usr/include/qt5/QtCore/qobjectdefs.h:47:0,
from /usr/include/qt5/QtCore/qobject.h:48,
from /usr/include/qt5/QtCore/QObject:1,
from /home/sm/qt_applications/qmqtt/qmqtt-master/src/mqtt/qmqtt_router.h:38,
from /home/sm/qt_applications/qmqtt/qmqtt-master/src/mqtt/qmqtt_router.cpp:33:
/usr/include/qt5/QtCore/qobjectdefs_impl.h: In instantiation of ‘struct QtPrivate::AreArgumentsCompatible<QMQTT::Message, QMQTT::Message>’:
/usr/include/qt5/QtCore/qobjectdefs_impl.h:599:21: required from ‘struct QtPrivate::CheckCompatibleArguments<QtPrivate::List<const QMQTT::Message&>, QtPrivate::List<const QMQTT::Message&> >’
/usr/include/qt5/QtCore/qobject.h:241:80: required from ‘static QMetaObject::Connection QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, const typename QtPrivate::FunctionPointer<Func2>::Object*, Func2, Qt::ConnectionType) [with Func1 = void (QMQTT::Client::*)(const QMQTT::Message&); Func2 = void (QMQTT::RouteSubscription::*)(const QMQTT::Message&); typename QtPrivate::FunctionPointer<Func>::Object = QMQTT::Client; typename QtPrivate::FunctionPointer<Func2>::Object = QMQTT::RouteSubscription]’
/home/sm/qt_applications/qmqtt/qmqtt-master/src/mqtt/qmqtt_router.cpp:52:87: required from here
/usr/include/qt5/QtCore/qobjectdefs_impl.h:573:42: error: invalid use of incomplete type ‘class QMQTT::Message’
enum { value = sizeof(test(dummy())) == sizeof(int) };
^
In file included from /home/sm/qt_applications/qmqtt/qmqtt-master/src/mqtt/qmqtt_router.cpp:35:0:
/home/sm/qt_applications/qmqtt/qmqtt-master/src/mqtt/qmqtt_client.h:95:7: error: forward declaration of ‘class QMQTT::Message’
class Message;
^
In file included from /home/sm/qt_applications/qmqtt/qmqtt-master/src/mqtt/qmqtt_global.h:35:0,
from /home/sm/qt_applications/qmqtt/qmqtt-master/src/mqtt/qmqtt_router.h:36,
from /home/sm/qt_applications/qmqtt/qmqtt-master/src/mqtt/qmqtt_router.cpp:33:
/usr/include/qt5/QtCore/qobject.h: In instantiation of ‘static QMetaObject::Connection QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, const typename QtPrivate::FunctionPointer<Func2>::Object*, Func2, Qt::ConnectionType) [with Func1 = void (QMQTT::Client::*)(const QMQTT::Message&); Func2 = void (QMQTT::RouteSubscription::*)(const QMQTT::Message&); typename QtPrivate::FunctionPointer<Func>::Object = QMQTT::Client; typename QtPrivate::FunctionPointer<Func2>::Object = QMQTT::RouteSubscription]’:
/home/sm/qt_applications/qmqtt/qmqtt-master/src/mqtt/qmqtt_router.cpp:52:87: required from here
/usr/include/qt5/QtCore/qglobal.h:669:47: error: static assertion failed: Signal and slot arguments are not compatible.
#define Q_STATIC_ASSERT_X(Condition, Message) static_assert(bool(Condition), Message)
^
/usr/include/qt5/QtCore/qobject.h:228:9: note: in expansion of macro ‘Q_STATIC_ASSERT_X’
Q_STATIC_ASSERT_X((QtPrivate::CheckCompatibleArguments<typename SignalType::Arguments, typename SlotType::Arguments>::value),
^
make[2]: *** [.obj/qmqtt_router.o] Error 1
make[2]: Leaving directory `/home/sm/qt_applications/qmqtt/qmqtt-master/build/src/mqtt'
make[1]: *** [sub-mqtt-make_first] Error 2
make[1]: Leaving directory `/home/sm/qt_applications/qmqtt/qmqtt-master/build/src'
make: *** [sub-src-make_first] Error 2
Spent a lot of time. After compiling by Qt 5.7.0, there was no Dll-files in the folder "release". I looking at the compilation log and I saw that there was created the folder "lib" in the root of the disk with the project, there I found Dll. But work with DLL allows you to work on Windows. I need on Android.
In github someone suggests just use it as plain code.
I rewrite it to "plain code" and made example-project. It is here. There is two folders: project and mosquitto for using mqtt on localhost

RPM build errors: /var/tmp/rpm-tmp.OJ8A3j inválido (%build)

I am trying in every way, but still the error persists!!
[root#localhost nginx-1.8.0]# rpmbuild -v -bb --clean
/root/rpmbuild/SPECS/NGNX.spec
Executando (%prep): /bin/sh -e /var/tmp/rpm-tmp.UnDrvt
+ umask 022
+ cd /root/rpmbuild/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ cd /root/rpmbuild/BUILD
+ rm -rf NGNX-666
+ /usr/bin/gzip -dc /root/rpmbuild/SOURCES/NGNX-666.tar.gz
+ /bin/tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd NGNX-666
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ exit 0
Executando (%build): /bin/sh -e /var/tmp/rpm-tmp.OJ8A3j
+ umask 022
+ cd /root/rpmbuild/BUILD
+ cd NGNX-666
+ LANG=C
+ export LANG
+ unset DISPLAY
+ CFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables'
+ export CFLAGS
+ CXXFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables'
+ export CXXFLAGS
+ FFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -I/usr/lib/gfortran/modules'
+ export FFLAGS
+ ./configure --build=i686-redhat-linux-gnu --host=i686-redhat-linux-gnu --target=i686-redhat-linux-gnu --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info
./configure: error: invalid option "--host=i686-redhat-linux-gnu"
erro: Status de saída de /var/tmp/rpm-tmp.OJ8A3j inválido (%build)
Erros na construção do RPM:
Status de saída de /var/tmp/rpm-tmp.OJ8A3j inválido (%build)
the spec file is as follows:
[root#localhost ~]# cat /root/rpmbuild/SPECS/NGNX.spec
Name: NGNX
Version: 666
Release: 1%{?dist}
Summary: Esse eh apenas um teste do firewall de aplicacao
Group: Development/Tools
License: GPL
URL: https://github.com/nbs-system/naxsi
Source0: %{name}-%{version}.tar.gz
BuildRequires: gcc
Requires: gcc make automake
Prefix: /etc
%description
%prep
%setup -q
%build
%configure
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc
%changelog
some help?
./configure: error: invalid option "--host=i686-redhat-linux-gnu" is the real problem - do you have 32-bit compilers installed? What happens if you extract the tarball and manually run that line? It might give you a more explicit reason as to why.

Resources