problems compiling Mudlet from source code

Sweetashny
Posts: 1
Joined: Tue Jul 30, 2013 7:18 pm

Re: problems compiling Mudlet from source code

Post by Sweetashny »

Code: Select all

g++ -c -pipe -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -O2 -O3 -Wno-deprecated-declarations -Wno-unused-parameter -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/lib64/qt4/mkspecs/linux-g++ -I. -I/usr/include/QtCore -I/usr/include/QtUiTools -I/usr/include/QtNetwork -I/usr/include/QtGui -I/usr/include/QtOpenGL -I/usr/include -I. -I/usr/include/lua5.1 -Iirc/include -I/usr/X11R6/include -I. -I. -o mudlet.o mudlet.cpp
mudlet.cpp: In member function ‘void mudlet::layoutModules()’:
mudlet.cpp:422:38: error: ‘class QHeaderView’ has no member named ‘setSectionResizeMode’
make: *** [mudlet.o] Błąd 1

User avatar
Heiko
Site Admin
Posts: 1548
Joined: Wed Mar 11, 2009 6:26 pm

Re: problems compiling Mudlet from source code

Post by Heiko »

Mudlet-dev is currently being moved to Qt5.1. You can either get the new Qt5.1 SDK to build latest git or use a slightly older snapshot.

Filion
Posts: 93
Joined: Sat Mar 26, 2011 4:21 pm

Re: problems compiling Mudlet from source code

Post by Filion »

Does the
Warning: unknown QT: uitools i get is due to me donwloading qt 4.8?

User avatar
Vadi
Posts: 5035
Joined: Sat Mar 14, 2009 3:13 pm

Re: problems compiling Mudlet from source code

Post by Vadi »

Yeah, download Qt 5.2 (5.2 is out now).

Filion
Posts: 93
Joined: Sat Mar 26, 2011 4:21 pm

Re: problems compiling Mudlet from source code

Post by Filion »

I have installed QT 5.2 ( I had to manually set PATH at /opt/Qt/5.2.0/gcc_64/bin/qmake)
and QMAKESPEC at /opt/Qt/5.2.0/gcc_64/mkspecs/linux-g++)

When I run qmake everything is fine but when I run make it shows the following

/opt/Qt/5.2.0/gcc_64/bin/qmake -o Makefile src.pro
g++ -c -pipe -O2 -O3 -Wno-deprecated-declarations -Wno-unused-local-typedefs -Wno-unused-parameter -Wall -W -D_REENTRANT -fPIE -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_MULTIMEDIA_LIB -DQT_WIDGETS_LIB -DQT_UITOOLS_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/opt/Qt/5.2.0/gcc_64/mkspecs/linux-g++ -I. -I. -I/usr/include/lua5.1 -Iirc/include -I/opt/Qt/5.2.0/gcc_64/include -I/opt/Qt/5.2.0/gcc_64/include/QtOpenGL -I/opt/Qt/5.2.0/gcc_64/include/QtMultimedia -I/opt/Qt/5.2.0/gcc_64/include/QtWidgets -I/opt/Qt/5.2.0/gcc_64/include/QtUiTools -I/opt/Qt/5.2.0/gcc_64/include/QtNetwork -I/opt/Qt/5.2.0/gcc_64/include/QtGui -I/opt/Qt/5.2.0/gcc_64/include/QtCore -I. -I. -o TConsole.o TConsole.cpp
In file included from dlgComposer.h:25:0,
from ctelnet.h:33,
from TConsole.h:36,
from TConsole.cpp:24:
ui_composer.h:14:25: fatal error: QtGui/QAction: No such file or directory
compilation terminated.

User avatar
Vadi
Posts: 5035
Joined: Sat Mar 14, 2009 3:13 pm

Re: problems compiling Mudlet from source code

Post by Vadi »

Where is the code that you're compiling from, just to be sure?

Filion
Posts: 93
Joined: Sat Mar 26, 2011 4:21 pm

Re: problems compiling Mudlet from source code

Post by Filion »

from /home/fanis/code/src/src.pro

Seems that there isn't an QAction insde QtGui but QActionEvent.

User avatar
Vadi
Posts: 5035
Joined: Sat Mar 14, 2009 3:13 pm

Re: problems compiling Mudlet from source code

Post by Vadi »

Yes, but where did you get that code from?

The current SF does not have these issues, so it is something with your setup that isn't correct.

Filion
Posts: 93
Joined: Sat Mar 26, 2011 4:21 pm

Re: problems compiling Mudlet from source code

Post by Filion »

Oh, the problem is that I was using the code that the instructions from wiki guided me to sync.( I guess someone must update the wiki)
Thank you.

User avatar
Vadi
Posts: 5035
Joined: Sat Mar 14, 2009 3:13 pm

Re: problems compiling Mudlet from source code

Post by Vadi »

Sorry - which sync? Which part of the wiki? It's also a wiki, meaning you can update it. However every location at http://wiki.mudlet.org/w/Compiling_Mudlet is updated.

Post Reply