Menu

#1251 TXS Fails to Compile on OSX

None
fixed
nobody
None
1
2015-02-24
2015-02-24
Robert
No

See below:

Warning, QT path may be invalid
readlink: illegal option -- f
usage: readlink [-n] [file ...]
Starting compilation
-macx is deprecated.
Project MESSAGE: Building with Qt4
g++ -c -pipe -O2 -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.5 -Wall -W -DHUNSPELL_STATIC -D_QCODE_EDIT_BUILD_ -DQNFA_BUILD -DQUAZIP_STATIC -DHAS_POPPLER_24 -DQT_NO_DEBUG -DQT_SCRIPT_LIB -DQT_SVG_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Cellar/qt/4.8.6/mkspecs/macx-g++ -I. -I/usr/local/Cellar/qt/4.8.6/include/QtUiTools -I/usr/local/Cellar/qt/4.8.6/lib/QtCore.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.6/lib/QtCore.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.6/lib/QtNetwork.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.6/lib/QtNetwork.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.6/lib/QtGui.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.6/lib/QtGui.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.6/lib/QtXml.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.6/lib/QtXml.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.6/lib/QtSvg.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.6/lib/QtSvg.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.6/lib/QtScript.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.6/lib/QtScript.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.6/include -Iqtsingleapplication -Iqcodeedit/lib -Iqcodeedit/lib/document -Iqcodeedit/lib/widgets -Iqcodeedit/lib/qnfa -Iquazip/quazip -I/usr/local/Cellar/poppler/0.29.0/include/poppler/qt4 -I/usr/local/Cellar/poppler/0.29.0/include/poppler -I.moc -I.ui -F/usr/local/Cellar/qt/4.8.6/lib -o .obj/main.o main.cpp
g++ -c -pipe -O2 -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.5 -Wall -W -DHUNSPELL_STATIC -D_QCODE_EDIT_BUILD_ -DQNFA_BUILD -DQUAZIP_STATIC -DHAS_POPPLER_24 -DQT_NO_DEBUG -DQT_SCRIPT_LIB -DQT_SVG_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Cellar/qt/4.8.6/mkspecs/macx-g++ -I. -I/usr/local/Cellar/qt/4.8.6/include/QtUiTools -I/usr/local/Cellar/qt/4.8.6/lib/QtCore.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.6/lib/QtCore.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.6/lib/QtNetwork.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.6/lib/QtNetwork.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.6/lib/QtGui.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.6/lib/QtGui.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.6/lib/QtXml.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.6/lib/QtXml.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.6/lib/QtSvg.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.6/lib/QtSvg.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.6/lib/QtScript.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.6/lib/QtScript.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.6/include -Iqtsingleapplication -Iqcodeedit/lib -Iqcodeedit/lib/document -Iqcodeedit/lib/widgets -Iqcodeedit/lib/qnfa -Iquazip/quazip -I/usr/local/Cellar/poppler/0.29.0/include/poppler/qt4 -I/usr/local/Cellar/poppler/0.29.0/include/poppler -I.moc -I.ui -F/usr/local/Cellar/qt/4.8.6/lib -o .obj/buildmanager.o buildmanager.cpp
g++ -c -pipe -O2 -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.5 -Wall -W -DHUNSPELL_STATIC -D_QCODE_EDIT_BUILD_ -DQNFA_BUILD -DQUAZIP_STATIC -DHAS_POPPLER_24 -DQT_NO_DEBUG -DQT_SCRIPT_LIB -DQT_SVG_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Cellar/qt/4.8.6/mkspecs/macx-g++ -I. -I/usr/local/Cellar/qt/4.8.6/include/QtUiTools -I/usr/local/Cellar/qt/4.8.6/lib/QtCore.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.6/lib/QtCore.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.6/lib/QtNetwork.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.6/lib/QtNetwork.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.6/lib/QtGui.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.6/lib/QtGui.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.6/lib/QtXml.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.6/lib/QtXml.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.6/lib/QtSvg.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.6/lib/QtSvg.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.6/lib/QtScript.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.6/lib/QtScript.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.6/include -Iqtsingleapplication -Iqcodeedit/lib -Iqcodeedit/lib/document -Iqcodeedit/lib/widgets -Iqcodeedit/lib/qnfa -Iquazip/quazip -I/usr/local/Cellar/poppler/0.29.0/include/poppler/qt4 -I/usr/local/Cellar/poppler/0.29.0/include/poppler -I.moc -I.ui -F/usr/local/Cellar/qt/4.8.6/lib -o .obj/texmaker.o texmaker.cpp
texmaker.cpp:3872:123: error: cast from pointer to smaller type 'int' loses
information
...int(se->getLineHandle()):0).arg(se->columnNumber);
^~~~~~~~~~~~~~~~~~~~~~~
In file included from texmaker.cpp:16:
In file included from ./texmaker.h:17:
In file included from ./mostQtHeaders.h:12:
In file included from ./modifiedQObject.h:44:
In file included from /usr/local/Cellar/qt/4.8.6/lib/QtCore.framework/Versions/4/Headers/QObject:1:
In file included from /usr/local/Cellar/qt/4.8.6/lib/QtCore.framework/Versions/4/Headers/qobject.h:50:
/usr/local/Cellar/qt/4.8.6/include/QtCore/qlist.h:381:22: warning: source of
this 'memcpy' call is a pointer to dynamic class 'const QDocumentCursor';
vtable pointer will be copied [-Wdynamic-class-memaccess]
else ::memcpy(n, &t, sizeof(T));
~~~~~~~~ ^
/usr/local/Cellar/qt/4.8.6/include/QtCore/qlist.h:580:13: note: in instantiation
of member function 'QList<QDocumentCursor>::node_construct' requested here
node_construct(n, t);
^
texmaker.cpp:7407:42: note: in instantiation of member function
'QList<QDocumentCursor>::insert' requested here
currentEditorView()->autoPreviewCursor.insert(0,c);
^
/usr/local/Cellar/qt/4.8.6/include/QtCore/qlist.h:381:22: note: explicitly cast
the pointer to silence this warning
else ::memcpy(n, &t, sizeof(T));
^
(void*)
1 warning and 1 error generated.
make: [.obj/texmaker.o] Error 1
g++ -c -pipe -O2 -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.5 -Wall -W -DHUNSPELL_STATIC -D_QCODE_EDIT_BUILD_ -DQNFA_BUILD -DQUAZIP_STATIC -DHAS_POPPLER_24 -DQT_NO_DEBUG -DQT_SCRIPT_LIB -DQT_SVG_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Cellar/qt/4.8.6/mkspecs/macx-g++ -I. -I/usr/local/Cellar/qt/4.8.6/include/QtUiTools -I/usr/local/Cellar/qt/4.8.6/lib/QtCore.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.6/lib/QtCore.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.6/lib/QtNetwork.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.6/lib/QtNetwork.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.6/lib/QtGui.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.6/lib/QtGui.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.6/lib/QtXml.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.6/lib/QtXml.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.6/lib/QtSvg.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.6/lib/QtSvg.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.6/lib/QtScript.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.6/lib/QtScript.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.6/include -Iqtsingleapplication -Iqcodeedit/lib -Iqcodeedit/lib/document -Iqcodeedit/lib/widgets -Iqcodeedit/lib/qnfa -Iquazip/quazip -I/usr/local/Cellar/poppler/0.29.0/include/poppler/qt4 -I/usr/local/Cellar/poppler/0.29.0/include/poppler -I.moc -I.ui -F/usr/local/Cellar/qt/4.8.6/lib -o .obj/texmaker.o texmaker.cpp
texmaker.cpp:3872:123: error: cast from pointer to smaller type 'int' loses
information
...int(se->getLineHandle()):0).arg(se->columnNumber);
^~~~~~~~~~~~~~~~~~~~~~~
In file included from texmaker.cpp:16:
In file included from ./texmaker.h:17:
In file included from ./mostQtHeaders.h:12:
In file included from ./modifiedQObject.h:44:
In file included from /usr/local/Cellar/qt/4.8.6/lib/QtCore.framework/Versions/4/Headers/QObject:1:
In file included from /usr/local/Cellar/qt/4.8.6/lib/QtCore.framework/Versions/4/Headers/qobject.h:50:
/usr/local/Cellar/qt/4.8.6/include/QtCore/qlist.h:381:22: warning: source of
this 'memcpy' call is a pointer to dynamic class 'const QDocumentCursor';
vtable pointer will be copied [-Wdynamic-class-memaccess]
else ::memcpy(n, &t, sizeof(T));
~~~~~~~~ ^
/usr/local/Cellar/qt/4.8.6/include/QtCore/qlist.h:580:13: note: in instantiation
of member function 'QList<QDocumentCursor>::node_construct' requested here
node_construct(n, t);
^
texmaker.cpp:7407:42: note: in instantiation of member function
'QList<QDocumentCursor>::insert' requested here
currentEditorView()->autoPreviewCursor.insert(0,c);
^
/usr/local/Cellar/qt/4.8.6/include/QtCore/qlist.h:381:22: note: explicitly cast
the pointer to silence this warning
else ::memcpy(n, &t, sizeof(T));
^
(void*)
1 warning and 1 error generated.
make:
[.obj/texmaker.o] Error 1
Compilation and installation done

Discussion

  • Tim Hoffmann

    Tim Hoffmann - 2015-02-24

    fix: hg 4945 (e61d1f344c0b)

     
  • Tim Hoffmann

    Tim Hoffmann - 2015-02-24
    • Group: -->
     
  • Tim Hoffmann

    Tim Hoffmann - 2015-02-24
    • status: open --> fixed
     

Log in to post a comment.