Compiling on Mac OS 10.7

TXS - Help
Anonymous
2012-06-04
2012-10-17

  • Anonymous
    2012-06-04

    I just tried to compile the current Version of Texstudio (2930), but
    unfortunately compiling stops with following errors:
    ../texstudio_2930/debughelper.cpp:479: error: 'ucontext' does not name a type
    ../texstudio_2930/debughelper.cpp: In function 'const char
    signalIdToName(int)':
    ../texstudio_2930/debughelper.cpp:498: error: 'SIGRTMIN' was not declared in
    this scope
    ../texstudio_2930/debughelper.cpp: In function 'void signalHandler(int,
    siginfo_t
    , void*)':

    It seems MacOS doen't support SIGRTMIN.

    I'm running Max OS 10.7.4, XCode 4.3.2 and used qt 4.8.1 and poppler 0.20.

    Any ideas?

     
  • Try r2937

     
  • These errors are fixed. Now I have new problems.
    1.: The functions recoverMainThreadFromOutside() an
    undoMainThreadRecoveringFromOutside() are defined 2 times: in line 571 and 583
    as well as in line 390 and 395.
    2.: sigaltstack in line 551 is not declared. I solved this bei including
    "signal.h" instead of "sys/signal.h" But I'm not sure, if this is the
    solution.
    3.: line 917-927: 'struct darwin_ucontext' has no member named 'ss'

     
  • 2.: sigaltstack in line 551 is not declared. I solved this bei including
    "signal.h" instead of "sys/signal.h" But I'm not sure, if this is the
    solution.

    Do you have a sys/signal.h and a signal.h?
    What is the difference between them?

    If signal.h alone works, it is probably correct, I just guessed the name

    3.: line 917-927: 'struct darwin_ucontext' has no member named 'ss'

    Can you post the struct __darwin_ucontext{ ... } definition?
    (probably in a ucontext.h file)

    On 06/04/12 23:33, SourceForge.net wrote:

    Read and respond to this message at:
    https://sourceforge.net/projects/texstudio/forums/forum/907840/topic/532550
    2

    By:

    I just tried to compile the current Version of Texstudio (2930), but
    unfortunately
    compiling stops with following errors:
    ../texstudio_2930/debughelper.cpp:479: error: 'ucontext' does not name a
    type
    ../texstudio_2930/debughelper.cpp: In function 'const char
    signalIdToName(int)':
    ../texstudio_2930/debughelper.cpp:498: error: 'SIGRTMIN' was not declared in
    this scope
    ../texstudio_2930/debughelper.cpp: In function 'void signalHandler(int,
    siginfo_t
    ,
    void*)':

    It seems MacOS doen't support SIGRTMIN.

    I'm running Max OS 10.7.4, XCode 4.3.2 and used qt 4.8.1 and poppler 0.20.

    Any ideas?



    ge at:

    https://sourceforge.net/projects/texstudio/forums/forum/907840/topic/532550
    2

    By:

    I just tried to compile the current Version of Texstudio (2930), but
    unfortunately
    compiling stops with following errors:
    ../texstudio_2930/debughelper.cpp:479: error: 'ucontext' does not name a
    type
    ../texstudio_2930/debughelper.cpp: In function 'const char
    signalIdToName(int)':
    ../texstudio_2930/debughelper.cpp:498: error: 'SIGRTMIN' was not declared in
    this scope
    ../texstudio_2930/debughelper.cpp: In function 'void signalHandler(int,
    siginfo_t
    ,
    void*)':

    It seems MacOS doen't support SIGRTMIN.

    I'm running Max OS 10.7.4, XCode 4.3.2 and used qt 4.8.1 and poppler 0.20.

    Any ideas?



    opic/532550
    2](https://sourceforge.net/projects/texstudio/forums/forum/907840/topic/532550
    2)

    By:

    I just tried to compile the current Version of Texstudio (2930), but
    unfortunately
    compiling stops with following errors:
    ../texstudio_2930/debughelper.cpp:479: error: 'ucontext' does not name a
    type
    ../texstudio_2930/debughelper.cpp: In function 'const char
    signalIdToName(int)':
    ../texstudio_2930/debughelper.cpp:498: error: 'SIGRTMIN' was not declared in
    this scope
    ../texstudio_2930/debughelper.cpp: In function 'void signalHandler(int,
    siginfo_t
    ,
    void*)':

    It seems MacOS doen't support SIGRTMIN.

    I'm running Max OS 10.7.4, XCode 4.3.2 and used qt 4.8.1 and poppler 0.20.

    Any ideas?



    0/topic/532550
    2)

    By:

    I just tried to compile the current Version of Texstudio (2930), but
    unfortunately
    compiling stops with following errors:
    ../texstudio_2930/debughelper.cpp:479: error: 'ucontext' does not name a
    type
    ../texstudio_2930/debughelper.cpp: In function 'const char
    signalIdToName(int)':
    ../texstudio_2930/debughelper.cpp:498: error: 'SIGRTMIN' was not declared in
    this scope
    ../texstudio_2930/debughelper.cpp: In function 'void signalHandler(int,
    siginfo_t
    ,
    void*)':

    It seems MacOS doen't support SIGRTMIN.

    I'm running Max OS 10.7.4, XCode 4.3.2 and used qt 4.8.1 and poppler 0.20.

    Any ideas?



    n of Texstudio (2930), but
    unfortunately

    compiling stops with following errors:
    ../texstudio_2930/debughelper.cpp:479: error: 'ucontext' does not name a
    type
    ../texstudio_2930/debughelper.cpp: In function 'const char
    signalIdToName(int)':
    ../texstudio_2930/debughelper.cpp:498: error: 'SIGRTMIN' was not declared in
    this scope
    ../texstudio_2930/debughelper.cpp: In function 'void signalHandler(int,
    siginfo_t
    ,
    void*)':

    It seems MacOS doen't support SIGRTMIN.

    I'm running Max OS 10.7.4, XCode 4.3.2 and used qt 4.8.1 and poppler 0.20.

    Any ideas?



    errors:

    ../texstudio_2930/debughelper.cpp:479: error: 'ucontext' does not name a
    type
    ../texstudio_2930/debughelper.cpp: In function 'const char
    signalIdToName(int)':
    ../texstudio_2930/debughelper.cpp:498: error: 'SIGRTMIN' was not declared in
    this scope
    ../texstudio_2930/debughelper.cpp: In function 'void signalHandler(int,
    siginfo_t
    ,
    void*)':

    It seems MacOS doen't support SIGRTMIN.

    I'm running Max OS 10.7.4, XCode 4.3.2 and used qt 4.8.1 and poppler 0.20.

    Any ideas?



    t name a
    type

    ../texstudio_2930/debughelper.cpp: In function 'const char
    signalIdToName(int)':
    ../texstudio_2930/debughelper.cpp:498: error: 'SIGRTMIN' was not declared in
    this scope
    ../texstudio_2930/debughelper.cpp: In function 'void signalHandler(int,
    siginfo_t
    ,
    void*)':

    It seems MacOS doen't support SIGRTMIN.

    I'm running Max OS 10.7.4, XCode 4.3.2 and used qt 4.8.1 and poppler 0.20.

    Any ideas?



    • signalIdToName(int)':
      ../texstudio_2930/debughelper.cpp:498: error: 'SIGRTMIN' was not declared in
      this scope
      ../texstudio_2930/debughelper.cpp: In function 'void signalHandler(int,
      siginfo_t,
      void
      )':

      It seems MacOS doen't support SIGRTMIN.

      I'm running Max OS 10.7.4, XCode 4.3.2 and used qt 4.8.1 and poppler 0.20.

      Any ideas?



    : 'SIGRTMIN' was not declared in

    this scope
    ../texstudio_2930/debughelper.cpp: In function 'void signalHandler(int,
    siginfo_t,
    void
    )':

    It seems MacOS doen't support SIGRTMIN.

    I'm running Max OS 10.7.4, XCode 4.3.2 and used qt 4.8.1 and poppler 0.20.

    Any ideas?



    elper.cpp: In function 'void signalHandler(int,
    siginfo_t*,

    void*)':

    It seems MacOS doen't support SIGRTMIN.

    I'm running Max OS 10.7.4, XCode 4.3.2 and used qt 4.8.1 and poppler 0.20.

    Any ideas?



    It seems MacOS doen't support SIGRTMIN.

    I'm running Max OS 10.7.4, XCode 4.3.2 and used qt 4.8.1 and poppler 0.20.

    Any ideas?



    XCode 4.3.2 and used qt 4.8.1 and poppler 0.20.

    Any ideas?





    __


    You are receiving this email because you elected to monitor this topic or
    entire forum.
    To stop monitoring this topic visit:
    https://sourceforge.net/projects/texstudio/forums/forum/907840/topic/532550
    2/unmonitor

    To stop monitoring this forum visit:
    https://sourceforge.net/projects/texstudio/forums/forum/907840/unmonitor

     

  • Anonymous
    2012-06-10

    Yes, have 2 header files signal.h. One is located usr/include/ and the second
    in usr/include/sys/.
    The <signal.h> seems to be newer, but includes <sys signal.h="">. I don't have
    that comprehensive in c++, to understand the differences...

    Here ist the ucontext.h

    #ifndef _SYS_UCONTEXT_H_
    #define _SYS_UCONTEXT_H_
    
    #include <sys/cdefs.h>
    #include <sys/_types.h>
    
    #define __need_mcontext_t
    #define __need_stack_t
    #define __need_ucontext_t
    #include <sys/_structs.h>
    
    #ifndef _SIGSET_T
    #define _SIGSET_T
    typedef __darwin_sigset_t   sigset_t;
    #endif
    
    #endif /* _SYS_UCONTEXT_H_ */
    
     
  • Here ist the ucontext.h

    Seems like mac uses other files, there is no struct __darwin_ucontext{ ... }
    in it.

    What's in sys/_structs.h?

     
  • Any new progress on compiling a OSX SVN? I noticed more activity for the
    Windows version. Thanks.

     
  • I tried compiling the latest SVN: Here's the message I received:

    00:34:57: Running build steps for project texstudio...
    00:34:57: Configuration unchanged, skipping qmake step.
    00:34:57: Starting: "/usr/bin/make" -w
    make: Entering directory /Users/rdiaz335/Desktop/texstudio-build-desktop- Desktop_Qt_4_7_4_for_GCC__Qt_SDK__Debug' g++ -headerpad_max_install_names -arch x86_64 -Xarch_x86_64 -mmacosx-version- min=10.5 -o ./texstudio.app/Contents/MacOS/texstudio .obj/qtsingleapplication.o .obj/qtlocalpeer.o .obj/main.o .obj/buildmanager.o .obj/dsingleapplication.o .obj/texmaker.o .obj/symbolgridwidget.o .obj/icondelegate.o .obj/latexcompleter.o .obj/latexeditorview.o .obj/latexlog.o .obj/logeditor.o .obj/loghighlighter.o .obj/smallUsefulFunctions.o .obj/structdialog.o .obj/filechooser.o .obj/tabbingdialog.o .obj/arraydialog.o .obj/tabdialog.o .obj/letterdialog.o .obj/quickdocumentdialog.o .obj/usermenudialog.o .obj/usertooldialog.o .obj/configmanager.o .obj/configdialog.o .obj/debughelper.o .obj/aboutdialog.o .obj/webpublishdialog.o .obj/spellerdialog.o .obj/spellerutility.o .obj/textanalysis.o .obj/latexoutputfilter.o .obj/toolwidgets.o .obj/codesnippet.o .obj/thesaurusdialog.o .obj/xmltagslistwidget.o .obj/affentry.o .obj/affixmgr.o .obj/csutil.o .obj/dictmgr.o .obj/hashmgr.o .obj/hunspell.o .obj/phonet.o .obj/replist.o .obj/suggestmgr.o .obj/filemgr.o .obj/hunzip.o .obj/encodingdialog.o .obj/qeditorinputbinding.o .obj/randomtextgenerator.o .obj/templateselector.o .obj/bibtexdialog.o .obj/manhattanstyle.o .obj/stylehelper.o .obj/styleanimator.o .obj/findGlobalDialog.o .obj/searchresultmodel.o .obj/bibtexparser.o .obj/latexdocument.o .obj/unicodeinsertion.o .obj/universalinputdialog.o .obj/scriptengine.o .obj/insertgraphics.o .obj/txstabwidget.o .obj/additionaltranslations.o .obj/tablemanipulation.o .obj/syntaxcheck.o .obj/latexcompleter_t.o .obj/userquickdialog.o .obj/PDFDocument.o .obj/PDFDocks.o .obj/qdocumentline_t.o .obj/latexstyleparser.o .obj/pdfrenderengine.o .obj/pdfrendermanager.o .obj/qformat.o .obj/scriptobject.o .obj/directoryreader.o .obj/diff_match_patch.o .obj/diffoperations.o .obj/grammarcheck.o .obj/bibtexreader.o .obj/cleandialog.o .obj/qmetautils.o .obj/updatechecker.o .obj/dblclickmenubar.o .obj/qeditor.o .obj/qeditorfactory.o .obj/qcodeedit.o .obj/qpanellayout.o .obj/qformatscheme.o .obj/qlinemarksinfocenter.o .obj/qreliablefilewatch.o .obj/qdocument.o .obj/qdocumentcommand.o .obj/qdocumentcursor.o .obj/qdocumentline.o .obj/qdocumentsearch.o .obj/qcodecompletionengine.o .obj/qlanguagedefinition.o .obj/qlanguagefactory.o .obj/qpanel.o .obj/qlinenumberpanel.o .obj/qlinemarkpanel.o .obj/qlinechangepanel.o .obj/qfoldpanel.o .obj/qstatuspanel.o .obj/qsearchreplacepanel.o .obj/qgotolinedialog.o .obj/qgotolinepanel.o .obj/qeditconfig.o .obj/qformatconfig.o .obj/qsimplecolorpicker.o .obj/qcalltip.o .obj/qnfa.o .obj/qnfadefinition.o .obj/xml2qnfa.o .obj/testmanager.o .obj/testutil.o .obj/qcetestutil.o .obj/codesnippet_t.o .obj/scriptengine_t.o .obj/qdocumentcursor_t.o .obj/qdocumentsearch_t.o .obj/qsearchreplacepanel_t.o .obj/qeditor_t.o .obj/latexeditorview_t.o .obj/latexeditorview_bm.o .obj/tablemanipulation_t.o .obj/structureview_t.o .obj/syntaxcheck_t.o .obj/svn_revision.o .obj/synctex_parser_utils.o .obj/synctex_parser.o .obj/moc_qtsingleapplication.o .obj/moc_qtlocalpeer.o .obj/moc_texmaker.o .obj/moc_buildmanager.o .obj/moc_dsingleapplication.o .obj/moc_symbolgridwidget.o .obj/moc_icondelegate.o .obj/moc_latexcompleter.o .obj/moc_latexeditorview.o .obj/moc_latexlog.o .obj/moc_logeditor.o .obj/moc_loghighlighter.o .obj/moc_smallUsefulFunctions.o .obj/moc_structdialog.o .obj/moc_encodingdialog.o .obj/moc_filechooser.o .obj/moc_tabbingdialog.o .obj/moc_arraydialog.o .obj/moc_tabdialog.o .obj/moc_letterdialog.o .obj/moc_quickdocumentdialog.o .obj/moc_usermenudialog.o .obj/moc_usertooldialog.o .obj/moc_configmanager.o .obj/moc_configdialog.o .obj/moc_aboutdialog.o .obj/moc_webpublishdialog.o .obj/moc_spellerdialog.o .obj/moc_spellerutility.o .obj/moc_textanalysis.o .obj/moc_toolwidgets.o .obj/moc_latexoutputfilter.o .obj/moc_latexcompleter_p.o .obj/moc_thesaurusdialog.o .obj/moc_xmltagslistwidget.o .obj/moc_randomtextgenerator.o .obj/moc_templateselector.o .obj/moc_bibtexdialog.o .obj/moc_manhattanstyle.o .obj/moc_styleanimator.o .obj/moc_findGlobalDialog.o .obj/moc_searchresultmodel.o .obj/moc_latexdocument.o .obj/moc_unicodeinsertion.o .obj/moc_universalinputdialog.o .obj/moc_scriptengine.o .obj/moc_insertgraphics.o .obj/moc_txstabwidget.o .obj/moc_tablemanipulation.o .obj/moc_syntaxcheck.o .obj/moc_latexcompleter_t.o .obj/moc_userquickdialog.o .obj/moc_PDFDocument.o .obj/moc_PDFDocks.o .obj/moc_qdocumentline_t.o .obj/moc_latexstyleparser.o .obj/moc_pdfrenderengine.o .obj/moc_pdfrendermanager.o .obj/moc_scriptobject.o .obj/moc_directoryreader.o .obj/moc_grammarcheck.o .obj/moc_bibtexreader.o .obj/moc_cleandialog.o .obj/moc_qmetautils.o .obj/moc_updatechecker.o .obj/moc_dblclickmenubar.o .obj/moc_qeditor.o .obj/moc_qeditorfactory.o .obj/moc_qpanellayout.o .obj/moc_qformatscheme.o .obj/moc_qlinemarksinfocenter.o .obj/moc_qreliablefilewatch.o .obj/moc_qdocument.o .obj/moc_qdocumentcursor.o .obj/moc_qdocumentsearch.o .obj/moc_qcodecompletionengine.o .obj/moc_qlanguagefactory.o .obj/moc_qpanel.o .obj/moc_qlinenumberpanel.o .obj/moc_qlinemarkpanel.o .obj/moc_qlinechangepanel.o .obj/moc_qfoldpanel.o .obj/moc_qstatuspanel.o .obj/moc_qsearchreplacepanel.o .obj/moc_qgotolinedialog.o .obj/moc_qgotolinepanel.o .obj/moc_qeditconfig.o .obj/moc_qformatconfig.o .obj/moc_qsimplecolorpicker.o .obj/moc_testutil.o .obj/moc_smallUsefulFunctions_t.o .obj/moc_buildManager_t.o .obj/moc_codesnippet_t.o .obj/moc_scriptengine_t.o .obj/moc_qdocumentcursor_t.o .obj/moc_qdocumentsearch_t.o .obj/moc_qsearchreplacepanel_t.o .obj/moc_qeditor_t.o .obj/moc_latexeditorview_t.o .obj/moc_latexeditorview_bm.o .obj/moc_tablemanipulation_t.o .obj/moc_structureview_t.o .obj/moc_syntaxcheck_t.o .obj/qrc_texstudio.o .obj/qrc_symbols.o -F/Users/rdiaz335/QtSDK/Desktop/Qt/474/gcc/lib -L/Users/rdiaz335/QtSDK/Desktop/Qt/474/gcc/lib QtTest -framework CoreFoundation -L/usr/lib -L/usr/local/lib -lpoppler-qt4 -lz -framework QtScript -framework QtXml -framework QtGui -framework QtNetwork -framework QtCore -lQtUiTools_debug i686-apple-darwin11-llvm-g++-4.2: QtTest: No such file or directory make: *** Error 1 make: Leaving directory/Users/rdiaz335/Desktop/texstudio-build-desktop-
    Desktop_Qt_4_7_4_for_GCCQt_SDKDebug'
    00:34:58: The process "/usr/bin/make" exited with code 2.
    Error while building project texstudio (target: Desktop)
    When executing build step 'Make'