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

macOS universal binary #40

Open
amay5267 opened this issue Dec 5, 2022 · 19 comments
Open

macOS universal binary #40

amay5267 opened this issue Dec 5, 2022 · 19 comments

Comments

@amay5267
Copy link

amay5267 commented Dec 5, 2022

Hi @magiblot @stuaxo

I have Xcode 12.2 ready to produce macOS universal binary.
any idea how to build macOS universal binary from Turbo?
Can you please update CMake files with something like CMAKE_OSX_ARCHITECTURES=arm64;x86_64
?

@amay5267
Copy link
Author

amay5267 commented Dec 5, 2022

just tried to use CMake GUI press "Add Entry" and then set Name to CMAKE_OSX_ARCHITECTURES, Type=String, Value=arm64;x86_64

[  0%] Building CXX object CMakeFiles/scintilla.dir/Unity/unity_5_cxx.cxx.o
[  1%] Building CXX object CMakeFiles/scintilla.dir/Unity/unity_4_cxx.cxx.o
[  1%] Building CXX object CMakeFiles/scintilla.dir/Unity/unity_3_cxx.cxx.o
[  1%] Building CXX object CMakeFiles/scintilla.dir/Unity/unity_2_cxx.cxx.o
[  2%] Building CXX object CMakeFiles/scintilla.dir/Unity/unity_1_cxx.cxx.o
[  2%] Building CXX object CMakeFiles/scintilla.dir/Unity/unity_0_cxx.cxx.o
[  2%] Built target scintilla
[  2%] Building CXX object CMakeFiles/scilexers.dir/cmake_pch.hxx.pch
[  3%] Building CXX object CMakeFiles/scilexers.dir/source/scintilla/lexers/LexAsm.cxx.o
[  3%] Building CXX object CMakeFiles/scilexers.dir/source/scintilla/lexers/LexBash.cxx.o
[  3%] Building CXX object CMakeFiles/scilexers.dir/source/scintilla/lexers/LexCPP.cxx.o
[  4%] Building CXX object CMakeFiles/scilexers.dir/source/scintilla/lexers/LexJSON.cxx.o
[  4%] Building CXX object CMakeFiles/scilexers.dir/source/scintilla/lexers/LexMake.cxx.o
[  5%] Building CXX object CMakeFiles/scilexers.dir/source/scintilla/lexers/LexPython.cxx.o
[  5%] Building CXX object CMakeFiles/scilexers.dir/source/scintilla/lexers/LexRuby.cxx.o
[  5%] Building CXX object CMakeFiles/scilexers.dir/source/scintilla/lexers/LexRust.cxx.o
[  6%] Building CXX object CMakeFiles/scilexers.dir/source/scintilla/lexers/LexYAML.cxx.o
[  6%] Built target scilexers
[  7%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/cmake_pch.hxx.pch
[  7%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/platform/ansidisp.cpp.o
[  8%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/platform/buffdisp.cpp.o
[  8%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/platform/codepage.cpp.o
[  8%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/platform/colors.cpp.o
[  9%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/platform/cursor.cpp.o
[  9%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/platform/dir.cpp.o
[ 10%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/platform/events.cpp.o
[ 10%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/platform/findfrst.cpp.o
[ 10%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/platform/gpminput.cpp.o
[ 11%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/platform/hardware.cpp.o
[ 11%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/platform/linuxcon.cpp.o
[ 12%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/platform/ncurdisp.cpp.o
[ 12%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/platform/ncursinp.cpp.o
[ 13%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/platform/platfcon.cpp.o
[ 13%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/platform/platform.cpp.o
[ 13%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/platform/scrlife.cpp.o
[ 14%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/platform/sighandl.cpp.o
[ 14%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/platform/sigwinch.cpp.o
[ 15%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/platform/stdioctl.cpp.o
[ 15%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/platform/strings.cpp.o
[ 15%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/platform/termdisp.cpp.o
[ 16%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/platform/terminal.cpp.o
[ 16%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/platform/ttext.cpp.o
[ 17%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/platform/unixcon.cpp.o
[ 17%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/platform/win32con.cpp.o
[ 17%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/platform/winwidth.cpp.o
[ 18%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/colorsel.cpp.o
[ 18%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/drivers.cpp.o
[ 20%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/drivers2.cpp.o
[ 20%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/edits.cpp.o
[ 20%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/editstat.cpp.o
[ 21%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/framelin.cpp.o
[ 21%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/grp.cpp.o
[ 22%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/hardwrvr.cpp.o
[ 22%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/help.cpp.o
[ 22%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/helpbase.cpp.o
[ 23%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/histlist.cpp.o
[ 23%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/mapcolor.cpp.o
[ 24%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/menu.cpp.o
[ 24%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/misc.cpp.o
[ 24%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/msgbox.cpp.o
[ 25%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/new.cpp.o
[ 25%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/newstr.cpp.o
[ 26%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/nmbkgrnd.cpp.o
[ 26%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/nmbutton.cpp.o
[ 26%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/nmchdrdl.cpp.o
[ 27%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/nmchkbox.cpp.o
[ 27%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/nmclrsel.cpp.o
[ 28%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/nmclustr.cpp.o
[ 28%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/nmcollct.cpp.o
[ 28%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/nmdialog.cpp.o
[ 29%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/nmdirbox.cpp.o
[ 29%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/nmdircol.cpp.o
In file included from /Users/usr/Documents/turbo/turbo/deps/tvision/source/tvision/nmdircol.cpp:15:
In file included from /Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/tv.h:724:
/Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/stddlg.h:514:21: warning: 
      'TDirCollection::indexOf' hides overloaded virtual function
      [-Woverloaded-virtual]
    virtual ccIndex indexOf( TDirEntry *item )
                    ^
/Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/tvobjs.h:72:21: note: 
      hidden overloaded virtual function 'TNSCollection::indexOf' declared here:
      type mismatch at 1st parameter ('void *' vs 'TDirEntry *')
    virtual ccIndex indexOf( void *item );
                    ^
In file included from /Users/usr/Documents/turbo/turbo/deps/tvision/source/tvision/nmdircol.cpp:15:
In file included from /Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/tv.h:724:
/Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/stddlg.h:525:21: warning: 
      'TDirCollection::insert' hides overloaded virtual function
      [-Woverloaded-virtual]
    virtual ccIndex insert( TDirEntry *item )
                    ^
/Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/tvobjs.h:83:21: note: 
      hidden overloaded virtual function 'TNSCollection::insert' declared here:
      type mismatch at 1st parameter ('void *' vs 'TDirEntry *')
    virtual ccIndex insert( void *item );
                    ^
2 warnings generated.
[ 30%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/nmdsktop.cpp.o
[ 30%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/nmeditor.cpp.o
[ 30%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/nmfilcol.cpp.o
In file included from /Users/usr/Documents/turbo/turbo/deps/tvision/source/tvision/nmfilcol.cpp:15:
In file included from /Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/tv.h:724:
/Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/stddlg.h:123:21: warning: 
      'TFileCollection::indexOf' hides overloaded virtual functions
      [-Woverloaded-virtual]
    virtual ccIndex indexOf( TSearchRec *item )
                    ^
/Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/tvobjs.h:129:21: note: 
      hidden overloaded virtual function 'TNSSortedCollection::indexOf' declared
      here: type mismatch at 1st parameter ('void *' vs 'TSearchRec *')
    virtual ccIndex indexOf( void *item );
                    ^
/Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/tvobjs.h:72:21: note: 
      hidden overloaded virtual function 'TNSCollection::indexOf' declared here:
      type mismatch at 1st parameter ('void *' vs 'TSearchRec *')
    virtual ccIndex indexOf( void *item );
                    ^
In file included from /Users/usr/Documents/turbo/turbo/deps/tvision/source/tvision/nmfilcol.cpp:15:
In file included from /Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/tv.h:724:
/Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/stddlg.h:134:21: warning: 
      'TFileCollection::insert' hides overloaded virtual functions
      [-Woverloaded-virtual]
    virtual ccIndex insert( TSearchRec *item )
                    ^
/Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/tvobjs.h:130:21: note: 
      hidden overloaded virtual function 'TNSSortedCollection::insert' declared
      here: type mismatch at 1st parameter ('void *' vs 'TSearchRec *')
    virtual ccIndex insert( void *item );
                    ^
/Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/tvobjs.h:83:21: note: 
      hidden overloaded virtual function 'TNSCollection::insert' declared here:
      type mismatch at 1st parameter ('void *' vs 'TSearchRec *')
    virtual ccIndex insert( void *item );
                    ^
2 warnings generated.
[ 31%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/nmfildlg.cpp.o
[ 31%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/nmfillst.cpp.o
In file included from /Users/usr/Documents/turbo/turbo/deps/tvision/source/tvision/nmfillst.cpp:16:
In file included from /Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/tv.h:724:
/Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/stddlg.h:123:21: warning: 
      'TFileCollection::indexOf' hides overloaded virtual functions
      [-Woverloaded-virtual]
    virtual ccIndex indexOf( TSearchRec *item )
                    ^
/Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/tvobjs.h:129:21: note: 
      hidden overloaded virtual function 'TNSSortedCollection::indexOf' declared
      here: type mismatch at 1st parameter ('void *' vs 'TSearchRec *')
    virtual ccIndex indexOf( void *item );
                    ^
/Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/tvobjs.h:72:21: note: 
      hidden overloaded virtual function 'TNSCollection::indexOf' declared here:
      type mismatch at 1st parameter ('void *' vs 'TSearchRec *')
    virtual ccIndex indexOf( void *item );
                    ^
In file included from /Users/usr/Documents/turbo/turbo/deps/tvision/source/tvision/nmfillst.cpp:16:
In file included from /Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/tv.h:724:
/Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/stddlg.h:134:21: warning: 
      'TFileCollection::insert' hides overloaded virtual functions
      [-Woverloaded-virtual]
    virtual ccIndex insert( TSearchRec *item )
                    ^
/Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/tvobjs.h:130:21: note: 
      hidden overloaded virtual function 'TNSSortedCollection::insert' declared
      here: type mismatch at 1st parameter ('void *' vs 'TSearchRec *')
    virtual ccIndex insert( void *item );
                    ^
/Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/tvobjs.h:83:21: note: 
      hidden overloaded virtual function 'TNSCollection::insert' declared here:
      type mismatch at 1st parameter ('void *' vs 'TSearchRec *')
    virtual ccIndex insert( void *item );
                    ^
In file included from /Users/usr/Documents/turbo/turbo/deps/tvision/source/tvision/nmfillst.cpp:16:
In file included from /Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/tv.h:724:
/Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/stddlg.h:205:10: warning: 
      'TSortedListBox::newList' hides overloaded virtual function
      [-Woverloaded-virtual]
    void newList( TSortedCollection *aList );
         ^
/Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/dialogs.h:657:18: note: 
      hidden overloaded virtual function 'TListBox::newList' declared here: type
      mismatch at 1st parameter ('TCollection *' vs 'TSortedCollection *')
    virtual void newList( TCollection *aList );
                 ^
3 warnings generated.
[ 32%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/nmframe.cpp.o
[ 32%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/nmgroup.cpp.o
[ 32%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/nmhist.cpp.o
[ 33%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/nminptln.cpp.o
[ 33%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/nmlabel.cpp.o
[ 34%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/nmlstbox.cpp.o
[ 34%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/nmlstvwr.cpp.o
[ 34%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/nmmnubar.cpp.o
[ 35%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/nmmnubox.cpp.o
[ 35%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/nmmnupop.cpp.o
[ 36%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/nmmnuvw.cpp.o
[ 36%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/nmmulchk.cpp.o
[ 36%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/nmoutlin.cpp.o
[ 37%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/nmprmtxt.cpp.o
[ 37%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/nmrbtns.cpp.o
[ 38%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/nmrescol.cpp.o
[ 38%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/nmscoll.cpp.o
[ 40%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/nmscrbar.cpp.o
[ 40%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/nmscroll.cpp.o
[ 40%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/nmstctxt.cpp.o
[ 41%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/nmstddlg.cpp.o
In file included from /Users/usr/Documents/turbo/turbo/deps/tvision/source/tvision/nmstddlg.cpp:19:
In file included from /Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/tv.h:724:
/Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/stddlg.h:205:10: warning: 
      'TSortedListBox::newList' hides overloaded virtual function
      [-Woverloaded-virtual]
    void newList( TSortedCollection *aList );
         ^
/Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/dialogs.h:657:18: note: 
      hidden overloaded virtual function 'TListBox::newList' declared here: type
      mismatch at 1st parameter ('TCollection *' vs 'TSortedCollection *')
    virtual void newList( TCollection *aList );
                 ^
1 warning generated.
[ 41%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/nmstline.cpp.o
[ 42%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/nmstrcol.cpp.o
[ 42%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/nmstrlst.cpp.o
[ 42%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/nmvalida.cpp.o
[ 43%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/nmview.cpp.o
[ 43%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/nmwindow.cpp.o
[ 44%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/palette.cpp.o
[ 44%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/popupmnu.cpp.o
[ 44%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/prntcnst.cpp.o
[ 45%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/sbkgrnd.cpp.o
[ 45%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/sbutton.cpp.o
[ 46%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/schdrdlg.cpp.o
[ 46%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/scheckbo.cpp.o
[ 46%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/sclrsel.cpp.o
[ 47%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/scluster.cpp.o
[ 47%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/sdesktop.cpp.o
[ 48%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/sdialog.cpp.o
[ 48%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/sdircoll.cpp.o
In file included from /Users/usr/Documents/turbo/turbo/deps/tvision/source/tvision/sdircoll.cpp:17:
In file included from /Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/tv.h:724:
/Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/stddlg.h:514:21: warning: 
      'TDirCollection::indexOf' hides overloaded virtual function
      [-Woverloaded-virtual]
    virtual ccIndex indexOf( TDirEntry *item )
                    ^
/Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/tvobjs.h:72:21: note: 
      hidden overloaded virtual function 'TNSCollection::indexOf' declared here:
      type mismatch at 1st parameter ('void *' vs 'TDirEntry *')
    virtual ccIndex indexOf( void *item );
                    ^
In file included from /Users/usr/Documents/turbo/turbo/deps/tvision/source/tvision/sdircoll.cpp:17:
In file included from /Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/tv.h:724:
/Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/stddlg.h:525:21: warning: 
      'TDirCollection::insert' hides overloaded virtual function
      [-Woverloaded-virtual]
    virtual ccIndex insert( TDirEntry *item )
                    ^
/Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/tvobjs.h:83:21: note: 
      hidden overloaded virtual function 'TNSCollection::insert' declared here:
      type mismatch at 1st parameter ('void *' vs 'TDirEntry *')
    virtual ccIndex insert( void *item );
                    ^
2 warnings generated.
[ 48%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/sdirlist.cpp.o
[ 49%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/seditors.cpp.o
[ 49%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/sfilcoll.cpp.o
In file included from /Users/usr/Documents/turbo/turbo/deps/tvision/source/tvision/sfilcoll.cpp:16:
In file included from /Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/tv.h:724:
/Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/stddlg.h:123:21: warning: 
      'TFileCollection::indexOf' hides overloaded virtual functions
      [-Woverloaded-virtual]
    virtual ccIndex indexOf( TSearchRec *item )
                    ^
/Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/tvobjs.h:129:21: note: 
      hidden overloaded virtual function 'TNSSortedCollection::indexOf' declared
      here: type mismatch at 1st parameter ('void *' vs 'TSearchRec *')
    virtual ccIndex indexOf( void *item );
                    ^
/Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/tvobjs.h:72:21: note: 
      hidden overloaded virtual function 'TNSCollection::indexOf' declared here:
      type mismatch at 1st parameter ('void *' vs 'TSearchRec *')
    virtual ccIndex indexOf( void *item );
                    ^
In file included from /Users/usr/Documents/turbo/turbo/deps/tvision/source/tvision/sfilcoll.cpp:16:
In file included from /Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/tv.h:724:
/Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/stddlg.h:134:21: warning: 
      'TFileCollection::insert' hides overloaded virtual functions
      [-Woverloaded-virtual]
    virtual ccIndex insert( TSearchRec *item )
                    ^
/Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/tvobjs.h:130:21: note: 
      hidden overloaded virtual function 'TNSSortedCollection::insert' declared
      here: type mismatch at 1st parameter ('void *' vs 'TSearchRec *')
    virtual ccIndex insert( void *item );
                    ^
/Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/tvobjs.h:83:21: note: 
      hidden overloaded virtual function 'TNSCollection::insert' declared here:
      type mismatch at 1st parameter ('void *' vs 'TSearchRec *')
    virtual ccIndex insert( void *item );
                    ^
2 warnings generated.
[ 50%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/sfildlg.cpp.o
[ 50%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/sfilelst.cpp.o
In file included from /Users/usr/Documents/turbo/turbo/deps/tvision/source/tvision/sfilelst.cpp:17:
In file included from /Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/tv.h:724:
/Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/stddlg.h:123:21: warning: 
      'TFileCollection::indexOf' hides overloaded virtual functions
      [-Woverloaded-virtual]
    virtual ccIndex indexOf( TSearchRec *item )
                    ^
/Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/tvobjs.h:129:21: note: 
      hidden overloaded virtual function 'TNSSortedCollection::indexOf' declared
      here: type mismatch at 1st parameter ('void *' vs 'TSearchRec *')
    virtual ccIndex indexOf( void *item );
                    ^
/Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/tvobjs.h:72:21: note: 
      hidden overloaded virtual function 'TNSCollection::indexOf' declared here:
      type mismatch at 1st parameter ('void *' vs 'TSearchRec *')
    virtual ccIndex indexOf( void *item );
                    ^
In file included from /Users/usr/Documents/turbo/turbo/deps/tvision/source/tvision/sfilelst.cpp:17:
In file included from /Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/tv.h:724:
/Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/stddlg.h:134:21: warning: 
      'TFileCollection::insert' hides overloaded virtual functions
      [-Woverloaded-virtual]
    virtual ccIndex insert( TSearchRec *item )
                    ^
/Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/tvobjs.h:130:21: note: 
      hidden overloaded virtual function 'TNSSortedCollection::insert' declared
      here: type mismatch at 1st parameter ('void *' vs 'TSearchRec *')
    virtual ccIndex insert( void *item );
                    ^
/Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/tvobjs.h:83:21: note: 
      hidden overloaded virtual function 'TNSCollection::insert' declared here:
      type mismatch at 1st parameter ('void *' vs 'TSearchRec *')
    virtual ccIndex insert( void *item );
                    ^
In file included from /Users/usr/Documents/turbo/turbo/deps/tvision/source/tvision/sfilelst.cpp:17:
In file included from /Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/tv.h:724:
/Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/stddlg.h:205:10: warning: 
      'TSortedListBox::newList' hides overloaded virtual function
      [-Woverloaded-virtual]
    void newList( TSortedCollection *aList );
         ^
/Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/dialogs.h:657:18: note: 
      hidden overloaded virtual function 'TListBox::newList' declared here: type
      mismatch at 1st parameter ('TCollection *' vs 'TSortedCollection *')
    virtual void newList( TCollection *aList );
                 ^
3 warnings generated.
[ 50%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/sfinfpne.cpp.o
[ 51%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/sfinputl.cpp.o
[ 51%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/sframe.cpp.o
[ 52%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/sgroup.cpp.o
[ 52%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/shistory.cpp.o
[ 52%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/sinputli.cpp.o
[ 53%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/slabel.cpp.o
[ 53%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/slistbox.cpp.o
[ 54%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/slstview.cpp.o
[ 54%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/smenubar.cpp.o
[ 54%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/smenubox.cpp.o
[ 55%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/smenupop.cpp.o
[ 55%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/smnuview.cpp.o
[ 56%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/smulchkb.cpp.o
[ 56%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/soutline.cpp.o
[ 56%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/sparamte.cpp.o
[ 57%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/sradiobu.cpp.o
[ 57%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/srescoll.cpp.o
[ 58%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/sscrlbar.cpp.o
[ 58%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/sscrolle.cpp.o
[ 58%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/sstatict.cpp.o
[ 60%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/sstatusl.cpp.o
[ 60%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/sstrcoll.cpp.o
[ 61%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/sstrlst.cpp.o
[ 61%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/stddlg.cpp.o
In file included from /Users/usr/Documents/turbo/turbo/deps/tvision/source/tvision/stddlg.cpp:29:
In file included from /Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/tv.h:724:
/Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/stddlg.h:205:10: warning: 
      'TSortedListBox::newList' hides overloaded virtual function
      [-Woverloaded-virtual]
    void newList( TSortedCollection *aList );
         ^
/Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/dialogs.h:657:18: note: 
      hidden overloaded virtual function 'TListBox::newList' declared here: type
      mismatch at 1st parameter ('TCollection *' vs 'TSortedCollection *')
    virtual void newList( TCollection *aList );
                 ^
1 warning generated.
[ 61%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/strmstat.cpp.o
[ 62%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/svalid.cpp.o
[ 62%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/sview.cpp.o
[ 63%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/swindow.cpp.o
[ 63%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/syserr.cpp.o
[ 63%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/tapplica.cpp.o
[ 64%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/tbkgrnd.cpp.o
[ 64%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/tbutton.cpp.o
[ 65%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/tchdrdlg.cpp.o
In file included from /Users/usr/Documents/turbo/turbo/deps/tvision/source/tvision/tchdrdlg.cpp:30:
In file included from /Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/tv.h:724:
/Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/stddlg.h:514:21: warning: 
      'TDirCollection::indexOf' hides overloaded virtual function
      [-Woverloaded-virtual]
    virtual ccIndex indexOf( TDirEntry *item )
                    ^
/Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/tvobjs.h:72:21: note: 
      hidden overloaded virtual function 'TNSCollection::indexOf' declared here:
      type mismatch at 1st parameter ('void *' vs 'TDirEntry *')
    virtual ccIndex indexOf( void *item );
                    ^
In file included from /Users/usr/Documents/turbo/turbo/deps/tvision/source/tvision/tchdrdlg.cpp:30:
In file included from /Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/tv.h:724:
/Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/stddlg.h:525:21: warning: 
      'TDirCollection::insert' hides overloaded virtual function
      [-Woverloaded-virtual]
    virtual ccIndex insert( TDirEntry *item )
                    ^
/Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/tvobjs.h:83:21: note: 
      hidden overloaded virtual function 'TNSCollection::insert' declared here:
      type mismatch at 1st parameter ('void *' vs 'TDirEntry *')
    virtual ccIndex insert( void *item );
                    ^
2 warnings generated.
[ 65%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/tcheckbo.cpp.o
[ 66%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/tcluster.cpp.o
[ 66%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/tcmdset.cpp.o
[ 66%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/tcollect.cpp.o
[ 67%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/tdesktop.cpp.o
[ 67%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/tdialog.cpp.o
[ 68%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/tdircoll.cpp.o
In file included from /Users/usr/Documents/turbo/turbo/deps/tvision/source/tvision/tdircoll.cpp:19:
In file included from /Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/tv.h:724:
/Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/stddlg.h:514:21: warning: 
      'TDirCollection::indexOf' hides overloaded virtual function
      [-Woverloaded-virtual]
    virtual ccIndex indexOf( TDirEntry *item )
                    ^
/Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/tvobjs.h:72:21: note: 
      hidden overloaded virtual function 'TNSCollection::indexOf' declared here:
      type mismatch at 1st parameter ('void *' vs 'TDirEntry *')
    virtual ccIndex indexOf( void *item );
                    ^
In file included from /Users/usr/Documents/turbo/turbo/deps/tvision/source/tvision/tdircoll.cpp:19:
In file included from /Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/tv.h:724:
/Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/stddlg.h:525:21: warning: 
      'TDirCollection::insert' hides overloaded virtual function
      [-Woverloaded-virtual]
    virtual ccIndex insert( TDirEntry *item )
                    ^
/Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/tvobjs.h:83:21: note: 
      hidden overloaded virtual function 'TNSCollection::insert' declared here:
      type mismatch at 1st parameter ('void *' vs 'TDirEntry *')
    virtual ccIndex insert( void *item );
                    ^
2 warnings generated.
[ 68%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/tdirlist.cpp.o
In file included from /Users/usr/Documents/turbo/turbo/deps/tvision/source/tvision/tdirlist.cpp:21:
In file included from /Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/tv.h:724:
/Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/stddlg.h:514:21: warning: 
      'TDirCollection::indexOf' hides overloaded virtual function
      [-Woverloaded-virtual]
    virtual ccIndex indexOf( TDirEntry *item )
                    ^
/Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/tvobjs.h:72:21: note: 
      hidden overloaded virtual function 'TNSCollection::indexOf' declared here:
      type mismatch at 1st parameter ('void *' vs 'TDirEntry *')
    virtual ccIndex indexOf( void *item );
                    ^
In file included from /Users/usr/Documents/turbo/turbo/deps/tvision/source/tvision/tdirlist.cpp:21:
In file included from /Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/tv.h:724:
/Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/stddlg.h:525:21: warning: 
      'TDirCollection::insert' hides overloaded virtual function
      [-Woverloaded-virtual]
    virtual ccIndex insert( TDirEntry *item )
                    ^
/Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/tvobjs.h:83:21: note: 
      hidden overloaded virtual function 'TNSCollection::insert' declared here:
      type mismatch at 1st parameter ('void *' vs 'TDirEntry *')
    virtual ccIndex insert( void *item );
                    ^
2 warnings generated.
[ 68%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/teditor1.cpp.o
[ 69%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/teditor2.cpp.o
[ 69%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/teditwnd.cpp.o
[ 70%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/tevent.cpp.o
[ 70%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/textview.cpp.o
[ 70%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/tfildlg.cpp.o
In file included from /Users/usr/Documents/turbo/turbo/deps/tvision/source/tvision/tfildlg.cpp:29:
In file included from /Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/tv.h:724:
/Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/stddlg.h:123:21: warning: 
      'TFileCollection::indexOf' hides overloaded virtual functions
      [-Woverloaded-virtual]
    virtual ccIndex indexOf( TSearchRec *item )
                    ^
/Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/tvobjs.h:129:21: note: 
      hidden overloaded virtual function 'TNSSortedCollection::indexOf' declared
      here: type mismatch at 1st parameter ('void *' vs 'TSearchRec *')
    virtual ccIndex indexOf( void *item );
                    ^
/Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/tvobjs.h:72:21: note: 
      hidden overloaded virtual function 'TNSCollection::indexOf' declared here:
      type mismatch at 1st parameter ('void *' vs 'TSearchRec *')
    virtual ccIndex indexOf( void *item );
                    ^
In file included from /Users/usr/Documents/turbo/turbo/deps/tvision/source/tvision/tfildlg.cpp:29:
In file included from /Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/tv.h:724:
/Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/stddlg.h:134:21: warning: 
      'TFileCollection::insert' hides overloaded virtual functions
      [-Woverloaded-virtual]
    virtual ccIndex insert( TSearchRec *item )
                    ^
/Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/tvobjs.h:130:21: note: 
      hidden overloaded virtual function 'TNSSortedCollection::insert' declared
      here: type mismatch at 1st parameter ('void *' vs 'TSearchRec *')
    virtual ccIndex insert( void *item );
                    ^
/Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/tvobjs.h:83:21: note: 
      hidden overloaded virtual function 'TNSCollection::insert' declared here:
      type mismatch at 1st parameter ('void *' vs 'TSearchRec *')
    virtual ccIndex insert( void *item );
                    ^
In file included from /Users/usr/Documents/turbo/turbo/deps/tvision/source/tvision/tfildlg.cpp:29:
In file included from /Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/tv.h:724:
/Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/stddlg.h:205:10: warning: 
      'TSortedListBox::newList' hides overloaded virtual function
      [-Woverloaded-virtual]
    void newList( TSortedCollection *aList );
         ^
/Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/dialogs.h:657:18: note: 
      hidden overloaded virtual function 'TListBox::newList' declared here: type
      mismatch at 1st parameter ('TCollection *' vs 'TSortedCollection *')
    virtual void newList( TCollection *aList );
                 ^
3 warnings generated.
[ 71%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/tfilecol.cpp.o
In file included from /Users/usr/Documents/turbo/turbo/deps/tvision/source/tvision/tfilecol.cpp:20:
In file included from /Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/tv.h:724:
/Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/stddlg.h:123:21: warning: 
      'TFileCollection::indexOf' hides overloaded virtual functions
      [-Woverloaded-virtual]
    virtual ccIndex indexOf( TSearchRec *item )
                    ^
/Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/tvobjs.h:129:21: note: 
      hidden overloaded virtual function 'TNSSortedCollection::indexOf' declared
      here: type mismatch at 1st parameter ('void *' vs 'TSearchRec *')
    virtual ccIndex indexOf( void *item );
                    ^
/Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/tvobjs.h:72:21: note: 
      hidden overloaded virtual function 'TNSCollection::indexOf' declared here:
      type mismatch at 1st parameter ('void *' vs 'TSearchRec *')
    virtual ccIndex indexOf( void *item );
                    ^
In file included from /Users/usr/Documents/turbo/turbo/deps/tvision/source/tvision/tfilecol.cpp:20:
In file included from /Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/tv.h:724:
/Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/stddlg.h:134:21: warning: 
      'TFileCollection::insert' hides overloaded virtual functions
      [-Woverloaded-virtual]
    virtual ccIndex insert( TSearchRec *item )
                    ^
/Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/tvobjs.h:130:21: note: 
      hidden overloaded virtual function 'TNSSortedCollection::insert' declared
      here: type mismatch at 1st parameter ('void *' vs 'TSearchRec *')
    virtual ccIndex insert( void *item );
                    ^
/Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/tvobjs.h:83:21: note: 
      hidden overloaded virtual function 'TNSCollection::insert' declared here:
      type mismatch at 1st parameter ('void *' vs 'TSearchRec *')
    virtual ccIndex insert( void *item );
                    ^
2 warnings generated.
[ 71%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/tfiledtr.cpp.o
[ 72%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/tfillist.cpp.o
In file included from /Users/usr/Documents/turbo/turbo/deps/tvision/source/tvision/tfillist.cpp:23:
In file included from /Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/tv.h:724:
/Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/stddlg.h:123:21: warning: 
      'TFileCollection::indexOf' hides overloaded virtual functions
      [-Woverloaded-virtual]
    virtual ccIndex indexOf( TSearchRec *item )
                    ^
/Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/tvobjs.h:129:21: note: 
      hidden overloaded virtual function 'TNSSortedCollection::indexOf' declared
      here: type mismatch at 1st parameter ('void *' vs 'TSearchRec *')
    virtual ccIndex indexOf( void *item );
                    ^
/Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/tvobjs.h:72:21: note: 
      hidden overloaded virtual function 'TNSCollection::indexOf' declared here:
      type mismatch at 1st parameter ('void *' vs 'TSearchRec *')
    virtual ccIndex indexOf( void *item );
                    ^
In file included from /Users/usr/Documents/turbo/turbo/deps/tvision/source/tvision/tfillist.cpp:23:
In file included from /Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/tv.h:724:
/Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/stddlg.h:134:21: warning: 
      'TFileCollection::insert' hides overloaded virtual functions
      [-Woverloaded-virtual]
    virtual ccIndex insert( TSearchRec *item )
                    ^
/Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/tvobjs.h:130:21: note: 
      hidden overloaded virtual function 'TNSSortedCollection::insert' declared
      here: type mismatch at 1st parameter ('void *' vs 'TSearchRec *')
    virtual ccIndex insert( void *item );
                    ^
/Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/tvobjs.h:83:21: note: 
      hidden overloaded virtual function 'TNSCollection::insert' declared here:
      type mismatch at 1st parameter ('void *' vs 'TSearchRec *')
    virtual ccIndex insert( void *item );
                    ^
In file included from /Users/usr/Documents/turbo/turbo/deps/tvision/source/tvision/tfillist.cpp:23:
In file included from /Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/tv.h:724:
/Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/stddlg.h:205:10: warning: 
      'TSortedListBox::newList' hides overloaded virtual function
      [-Woverloaded-virtual]
    void newList( TSortedCollection *aList );
         ^
/Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/dialogs.h:657:18: note: 
      hidden overloaded virtual function 'TListBox::newList' declared here: type
      mismatch at 1st parameter ('TCollection *' vs 'TSortedCollection *')
    virtual void newList( TCollection *aList );
                 ^
3 warnings generated.
[ 72%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/tframe.cpp.o
[ 72%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/tgrmv.cpp.o
[ 73%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/tgroup.cpp.o
[ 73%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/thistory.cpp.o
[ 74%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/thistwin.cpp.o
[ 74%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/thstview.cpp.o
[ 74%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/tindictr.cpp.o
[ 75%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/tinputli.cpp.o
[ 75%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/tkey.cpp.o
[ 76%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/tlabel.cpp.o
[ 76%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/tlistbox.cpp.o
[ 76%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/tlstview.cpp.o
[ 77%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/tmemo.cpp.o
[ 77%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/tmenubar.cpp.o
[ 78%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/tmenubox.cpp.o
[ 78%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/tmenupop.cpp.o
[ 78%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/tmnuview.cpp.o
[ 80%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/tmouse.cpp.o
[ 80%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/tmulchkb.cpp.o
[ 81%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/tobject.cpp.o
[ 81%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/tobjstrm.cpp.o
[ 81%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/toutline.cpp.o
[ 82%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/tparamte.cpp.o
[ 82%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/tprogram.cpp.o
[ 83%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/tradiobu.cpp.o
[ 83%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/trescoll.cpp.o
[ 83%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/tresfile.cpp.o
[ 84%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/tscreen.cpp.o
[ 84%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/tscrlbar.cpp.o
[ 85%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/tscrolle.cpp.o
[ 85%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/tsortcol.cpp.o
[ 85%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/tstatict.cpp.o
[ 86%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/tstatusl.cpp.o
[ 86%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/tstrcoll.cpp.o
[ 87%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/tstrlist.cpp.o
[ 87%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/tstrview.cpp.o
[ 87%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/tsurface.cpp.o
[ 88%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/ttprvlns.cpp.o
[ 88%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/tvalidat.cpp.o
[ 89%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/tvcursor.cpp.o
[ 89%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/tvexposd.cpp.o
[ 89%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/tview.cpp.o
[ 90%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/tvtext1.cpp.o
[ 90%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/tvtext2.cpp.o
In file included from /Users/usr/Documents/turbo/turbo/deps/tvision/source/tvision/tvtext2.cpp:27:
In file included from /Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/tv.h:724:
/Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/stddlg.h:123:21: warning: 
      'TFileCollection::indexOf' hides overloaded virtual functions
      [-Woverloaded-virtual]
    virtual ccIndex indexOf( TSearchRec *item )
                    ^
/Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/tvobjs.h:129:21: note: 
      hidden overloaded virtual function 'TNSSortedCollection::indexOf' declared
      here: type mismatch at 1st parameter ('void *' vs 'TSearchRec *')
    virtual ccIndex indexOf( void *item );
                    ^
/Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/tvobjs.h:72:21: note: 
      hidden overloaded virtual function 'TNSCollection::indexOf' declared here:
      type mismatch at 1st parameter ('void *' vs 'TSearchRec *')
    virtual ccIndex indexOf( void *item );
                    ^
In file included from /Users/usr/Documents/turbo/turbo/deps/tvision/source/tvision/tvtext2.cpp:27:
In file included from /Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/tv.h:724:
/Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/stddlg.h:134:21: warning: 
      'TFileCollection::insert' hides overloaded virtual functions
      [-Woverloaded-virtual]
    virtual ccIndex insert( TSearchRec *item )
                    ^
/Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/tvobjs.h:130:21: note: 
      hidden overloaded virtual function 'TNSSortedCollection::insert' declared
      here: type mismatch at 1st parameter ('void *' vs 'TSearchRec *')
    virtual ccIndex insert( void *item );
                    ^
/Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/tvobjs.h:83:21: note: 
      hidden overloaded virtual function 'TNSCollection::insert' declared here:
      type mismatch at 1st parameter ('void *' vs 'TSearchRec *')
    virtual ccIndex insert( void *item );
                    ^
In file included from /Users/usr/Documents/turbo/turbo/deps/tvision/source/tvision/tvtext2.cpp:27:
In file included from /Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/tv.h:724:
/Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/stddlg.h:205:10: warning: 
      'TSortedListBox::newList' hides overloaded virtual function
      [-Woverloaded-virtual]
    void newList( TSortedCollection *aList );
         ^
/Users/usr/Documents/turbo/turbo/deps/tvision/include/tvision/dialogs.h:657:18: note: 
      hidden overloaded virtual function 'TListBox::newList' declared here: type
      mismatch at 1st parameter ('TCollection *' vs 'TSortedCollection *')
    virtual void newList( TCollection *aList );
                 ^
3 warnings generated.
[ 91%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/tvwrite.cpp.o
[ 91%] Building CXX object deps/tvision/source/CMakeFiles/tvision.dir/tvision/twindow.cpp.o
[ 92%] Linking CXX static library ../libtvision.a
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: ../libtvision.a(gpminput.cpp.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: ../libtvision.a(linuxcon.cpp.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: ../libtvision.a(win32con.cpp.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: ../libtvision.a(winwidth.cpp.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: ../libtvision.a(gpminput.cpp.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: ../libtvision.a(linuxcon.cpp.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: ../libtvision.a(win32con.cpp.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: ../libtvision.a(winwidth.cpp.o) has no symbols
[ 92%] Built target tvision
[ 93%] Building CXX object deps/fmt/CMakeFiles/fmt.dir/src/format.cc.o
[ 93%] Building CXX object deps/fmt/CMakeFiles/fmt.dir/src/os.cc.o
[ 94%] Linking CXX static library libfmtd.a
[ 94%] Built target fmt
[ 95%] Building C object deps/libclipboard/CMakeFiles/clipboard.dir/src/clipboard_win32.c.o
[ 95%] Building C object deps/libclipboard/CMakeFiles/clipboard.dir/src/clipboard_x11.c.o
[ 96%] Building C object deps/libclipboard/CMakeFiles/clipboard.dir/src/clipboard_cocoa.c.o
/Users/usr/Documents/turbo/turbo/deps/libclipboard/src/clipboard_cocoa.c:77:37: warning: 
      'NSStringPboardType' is deprecated: first deprecated in macOS 10.14
      [-Wdeprecated-declarations]
    ns_clip = [cb->pb stringForType:NSStringPboardType];
                                    ^~~~~~~~~~~~~~~~~~
                                    NSPasteboardTypeString
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPasteboard.h:311:32: note: 
      'NSStringPboardType' has been explicitly marked deprecated here
APPKIT_EXTERN NSPasteboardType NSStringPboardType API_DEPRECATED_WITH_RE...
                               ^
/Users/usr/Documents/turbo/turbo/deps/libclipboard/src/clipboard_cocoa.c:110:51: warning: 
      'NSStringPboardType' is deprecated: first deprecated in macOS 10.14
      [-Wdeprecated-declarations]
    [cb->pb declareTypes:[NSArray arrayWithObject:NSStringPboardType] owner:...
                                                  ^~~~~~~~~~~~~~~~~~
                                                  NSPasteboardTypeString
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPasteboard.h:311:32: note: 
      'NSStringPboardType' has been explicitly marked deprecated here
APPKIT_EXTERN NSPasteboardType NSStringPboardType API_DEPRECATED_WITH_RE...
                               ^
/Users/usr/Documents/turbo/turbo/deps/libclipboard/src/clipboard_cocoa.c:111:45: warning: 
      'NSStringPboardType' is deprecated: first deprecated in macOS 10.14
      [-Wdeprecated-declarations]
    ret = [cb->pb setString:ns_clip forType:NSStringPboardType];
                                            ^~~~~~~~~~~~~~~~~~
                                            NSPasteboardTypeString
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPasteboard.h:311:32: note: 
      'NSStringPboardType' has been explicitly marked deprecated here
APPKIT_EXTERN NSPasteboardType NSStringPboardType API_DEPRECATED_WITH_RE...
                               ^
/Users/usr/Documents/turbo/turbo/deps/libclipboard/src/clipboard_cocoa.c:115:5: warning: 
      'OSAtomicCompareAndSwapLong' is deprecated: first deprecated in macOS
      10.12 - Use atomic_compare_exchange_strong_explicit(memory_order_relaxed)
      from <stdatomic.h> instead [-Wdeprecated-declarations]
    OSAtomicCompareAndSwapLong(cb->last_cb_serial, serial, &cb->last_cb_serial);
    ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/include/libkern/OSAtomicDeprecated.h:597:6: note: 
      'OSAtomicCompareAndSwapLong' has been explicitly marked deprecated here
bool    OSAtomicCompareAndSwapLong( long __oldValue, long __newValue, vo...
        ^
4 warnings generated.
[ 96%] Building C object deps/libclipboard/CMakeFiles/clipboard.dir/src/clipboard_common.c.o
[ 96%] Linking C static library ../../lib/libclipboard.a
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: ../../lib/libclipboard.a(clipboard_win32.c.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: ../../lib/libclipboard.a(clipboard_x11.c.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: ../../lib/libclipboard.a(clipboard_win32.c.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: ../../lib/libclipboard.a(clipboard_x11.c.o) has no symbols
[ 96%] Built target clipboard
[ 97%] Building CXX object CMakeFiles/turbo-core.dir/cmake_pch.hxx.pch
[ 97%] Building CXX object CMakeFiles/turbo-core.dir/Unity/unity_2_cxx.cxx.o
In file included from /Users/usr/Documents/turbo/turbo/CMakeFiles/turbo-core.dir/Unity/unity_2_cxx.cxx:3:
/Users/usr/Documents/turbo/turbo/source/turbo-core/styles.cc:9:10: fatal error: 
      'magic.h' file not found
#include <magic.h>
         ^~~~~~~~~
1 error generated.
make[2]: *** [CMakeFiles/turbo-core.dir/Unity/unity_2_cxx.cxx.o] Error 1
make[1]: *** [CMakeFiles/turbo-core.dir/all] Error 2
make: *** [all] Error 2```

@amay5267
Copy link
Author

amay5267 commented Dec 5, 2022

just tried :
cmake . -GXcode

@magiblot
Copy link
Owner

magiblot commented Dec 5, 2022

Hi @amay5267,

The problem is that CMake is finding the libmagic library but not its header files. Do you know where magic.h is located in your system?

Can you make the following change to /CMakeLists.txt and see if it works?

 # Optional dependencies
 
 find_library(MAGIC magic)
 if (MAGIC)
     target_link_libraries(${TURBO}-core PRIVATE ${MAGIC})
     target_compile_definitions(${TURBO}-core PRIVATE HAVE_MAGIC)
+    find_path(MAGIC_INCLUDE "magic.h")
+    if (MAGIC_INCLUDE)
+        target_include_directories(${TURBO}-core PRIVATE "${MAGIC_INCLUDE}")
+    else()
+        tv_message(FATAL_ERROR "'magic' development headers not found")
+    endif()
 endif()

If it doesn't, can you try adding the -DCMAKE_PREFIX_PATH=/opt/homebrew argument when calling CMake?

@amay5267
Copy link
Author

amay5267 commented Dec 5, 2022

Hi @magiblot

I have installed libmagic over homebrew.
It is located in /usr/local/Cellar/libmagic/5.43/include/magic.h

@magiblot
Copy link
Owner

magiblot commented Dec 5, 2022

Is there a symlink in /usr/local/include/magic.h or /opt/homebrew/include/magic.h that points to the original /usr/local/Cellar/libmagic/5.43/include/magic.h?

@amay5267
Copy link
Author

amay5267 commented Dec 5, 2022

    cd /Users/usr/Documents/turbo/turbo/turbo2/turbo
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -target arm64-apple-macos11.1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk -L/Users/usr/Documents/turbo/turbo/turbo2/turbo/Debug -F/Users/usr/Documents/turbo/turbo/turbo2/turbo/Debug -filelist /Users/usr/Documents/turbo/turbo/turbo2/turbo/build/turbo.build/Debug/Objects-normal/arm64/turbo.LinkFileList -Xlinker -object_path_lto -Xlinker /Users/usr/Documents/turbo/turbo/turbo2/turbo/build/turbo.build/Debug/Objects-normal/arm64/turbo_lto.o -Xlinker -no_deduplicate -Wl,-search_paths_first -Wl,-headerpad_max_install_names /Users/usr/Documents/turbo/turbo/turbo2/turbo/Debug/libturbo-core.a /Users/usr/Documents/turbo/turbo/turbo2/turbo/deps/tvision/Debug/libtvision-debug.a /opt/local/lib/libncursesw.dylib /Users/usr/Documents/turbo/turbo/turbo2/turbo/deps/fmt/Debug/libfmtd.a /Users/usr/Documents/turbo/turbo/turbo2/turbo/lib/Debug/libclipboard.a -framework Cocoa /usr/local/lib/libmagic.dylib -Xlinker -no_adhoc_codesign -Xlinker -dependency_info -Xlinker /Users/usr/Documents/turbo/turbo/turbo2/turbo/build/turbo.build/Debug/Objects-normal/arm64/turbo_dependency_info.dat -o /Users/usr/Documents/turbo/turbo/turbo2/turbo/build/turbo.build/Debug/Objects-normal/arm64/Binary/turbo

ld: warning: ignoring file /opt/local/lib/libncursesw.dylib, building for macOS-arm64 but attempting to link with file built for macOS-x86_64
ld: warning: ignoring file /usr/local/lib/libmagic.dylib, building for macOS-arm64 but attempting to link with file built for macOS-x86_64
Undefined symbols for architecture arm64:
  "_COLORS", referenced from:
      tvision::NcursesDisplay::getColorCount() in libtvision-debug.a(ncurdisp.o)
      tvision::NcursesDisplay::translateAttributes(TColorAttr) in libtvision-debug.a(ncurdisp.o)
  "_curs_set", referenced from:
      tvision::NcursesDisplay::getCaretSize() in libtvision-debug.a(ncurdisp.o)
      tvision::NcursesDisplay::lowlevelCursorSize(int) in libtvision-debug.a(ncurdisp.o)
  "_delscreen", referenced from:
      tvision::NcursesDisplay::~NcursesDisplay() in libtvision-debug.a(ncurdisp.o)
  "_endwin", referenced from:
      tvision::NcursesDisplay::~NcursesDisplay() in libtvision-debug.a(ncurdisp.o)
  "_getmaxx", referenced from:
      tvision::NcursesDisplay::getScreenSize() in libtvision-debug.a(ncurdisp.o)
  "_getmaxy", referenced from:
      tvision::NcursesDisplay::getScreenSize() in libtvision-debug.a(ncurdisp.o)
  "_getmouse", referenced from:
      tvision::NcursesInput::parseCursesMouse(TEvent&) in libtvision-debug.a(ncursinp.o)
  "_has_colors", referenced from:
      tvision::NcursesDisplay::NcursesDisplay(tvision::StdioCtl const&) in libtvision-debug.a(ncurdisp.o)
  "_init_pair", referenced from:
      tvision::NcursesDisplay::getColorPair(unsigned char) in libtvision-debug.a(ncurdisp.o)
  "_keyname", referenced from:
      tvision::NcursesInput::getEvent(TEvent&) in libtvision-debug.a(ncursinp.o)
  "_keypad", referenced from:
      tvision::NcursesInput::NcursesInput(tvision::StdioCtl const&, tvision::NcursesDisplay&, bool) in libtvision-debug.a(ncursinp.o)
  "_magic_close", referenced from:
      turbo::detectFileLanguage(char const*) in libturbo-core.a(unity_2_cxx.o)
  "_magic_file", referenced from:
      turbo::detectFileLanguage(char const*) in libturbo-core.a(unity_2_cxx.o)
  "_magic_load", referenced from:
      turbo::detectFileLanguage(char const*) in libturbo-core.a(unity_2_cxx.o)
  "_magic_open", referenced from:
      turbo::detectFileLanguage(char const*) in libturbo-core.a(unity_2_cxx.o)
  "_magic_setflags", referenced from:
      turbo::detectFileLanguage(char const*) in libturbo-core.a(unity_2_cxx.o)
  "_newterm", referenced from:
      tvision::NcursesDisplay::NcursesDisplay(tvision::StdioCtl const&) in libtvision-debug.a(ncurdisp.o)
  "_noecho", referenced from:
      tvision::NcursesInput::NcursesInput(tvision::StdioCtl const&, tvision::NcursesDisplay&, bool) in libtvision-debug.a(ncursinp.o)
  "_nonl", referenced from:
      tvision::NcursesInput::NcursesInput(tvision::StdioCtl const&, tvision::NcursesDisplay&, bool) in libtvision-debug.a(ncursinp.o)
  "_raw", referenced from:
      tvision::NcursesInput::NcursesInput(tvision::StdioCtl const&, tvision::NcursesDisplay&, bool) in libtvision-debug.a(ncursinp.o)
  "_resize_term", referenced from:
      tvision::NcursesDisplay::reloadScreenInfo() in libtvision-debug.a(ncurdisp.o)
  "_resizeterm", referenced from:
      tvision::NcursesDisplay::reloadScreenInfo() in libtvision-debug.a(ncurdisp.o)
  "_set_escdelay", referenced from:
      tvision::NcursesInput::NcursesInput(tvision::StdioCtl const&, tvision::NcursesDisplay&, bool) in libtvision-debug.a(ncursinp.o)
  "_start_color", referenced from:
      tvision::NcursesDisplay::NcursesDisplay(tvision::StdioCtl const&) in libtvision-debug.a(ncurdisp.o)
  "_stdscr", referenced from:
      tvision::NcursesInput::NcursesInput(tvision::StdioCtl const&, tvision::NcursesDisplay&, bool) in libtvision-debug.a(ncursinp.o)
      tvision::NcursesInput::getch_nb() in libtvision-debug.a(ncursinp.o)
      tvision::NcursesInput::NcGetChBuf::do_getch() in libtvision-debug.a(ncursinp.o)
      tvision::NcursesInput::getEvent(TEvent&) in libtvision-debug.a(ncursinp.o)
      tvision::NcursesInput::readUtf8Char(int*, int&) in libtvision-debug.a(ncursinp.o)
      tvision::NcursesDisplay::NcursesDisplay(tvision::StdioCtl const&) in libtvision-debug.a(ncurdisp.o)
      tvision::NcursesDisplay::getScreenSize() in libtvision-debug.a(ncurdisp.o)
      ...
  "_ungetch", referenced from:
      tvision::NcursesInput::NcGetChBuf::do_ungetch(int) in libtvision-debug.a(ncursinp.o)
      tvision::NcursesInput::hasPendingEvents() in libtvision-debug.a(ncursinp.o)
     (maybe you meant: tvision::NcursesInput::NcGetChBuf::do_ungetch(int))
  "_use_default_colors", referenced from:
      tvision::NcursesDisplay::NcursesDisplay(tvision::StdioCtl const&) in libtvision-debug.a(ncurdisp.o)
  "_waddnstr", referenced from:
      tvision::NcursesDisplay::lowlevelWriteChars(TStringView, TColorAttr) in libtvision-debug.a(ncurdisp.o)
  "_wattr_off", referenced from:
      tvision::NcursesDisplay::lowlevelWriteChars(TStringView, TColorAttr) in libtvision-debug.a(ncurdisp.o)
  "_wattr_on", referenced from:
      tvision::NcursesDisplay::lowlevelWriteChars(TStringView, TColorAttr) in libtvision-debug.a(ncurdisp.o)
  "_wclear", referenced from:
      tvision::NcursesDisplay::clearScreen() in libtvision-debug.a(ncurdisp.o)
  "_wgetch", referenced from:
      tvision::NcursesInput::getch_nb() in libtvision-debug.a(ncursinp.o)
      tvision::NcursesInput::NcGetChBuf::do_getch() in libtvision-debug.a(ncursinp.o)
      tvision::NcursesInput::getEvent(TEvent&) in libtvision-debug.a(ncursinp.o)
      tvision::NcursesInput::readUtf8Char(int*, int&) in libtvision-debug.a(ncursinp.o)
  "_wmove", referenced from:
      tvision::NcursesDisplay::lowlevelMoveCursor(unsigned int, unsigned int) in libtvision-debug.a(ncurdisp.o)
  "_wrefresh", referenced from:
      tvision::NcursesDisplay::NcursesDisplay(tvision::StdioCtl const&) in libtvision-debug.a(ncurdisp.o)
      tvision::NcursesDisplay::lowlevelFlush() in libtvision-debug.a(ncurdisp.o)
  "_wtimeout", referenced from:
      tvision::NcursesInput::NcursesInput(tvision::StdioCtl const&, tvision::NcursesDisplay&, bool) in libtvision-debug.a(ncursinp.o)
      tvision::NcursesInput::getch_nb() in libtvision-debug.a(ncursinp.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)```

@magiblot
Copy link
Owner

magiblot commented Dec 5, 2022

Please use code blocks (```) when pasting log output.

This is the issue:

ld: warning: ignoring file /opt/local/lib/libncursesw.dylib, building for macOS-arm64 but attempting to link with file built for macOS-x86_64
ld: warning: ignoring file /usr/local/lib/libmagic.dylib, building for macOS-arm64 but attempting to link with file built for macOS-x86_64

You are building Turbo for arm64, but the dependencies libncursesw and libmagic are only built for x86-64 (I have no idea how to deal with this issue).

@amay5267 amay5267 closed this as completed Dec 5, 2022
@magiblot
Copy link
Owner

magiblot commented Dec 5, 2022

What did you do to make it work?

@amay5267
Copy link
Author

amay5267 commented Dec 5, 2022

arch -arm64 brew install libmagic ncurses

@magiblot
Copy link
Owner

magiblot commented Dec 5, 2022

And what fixed the 'magic.h' file not found issue?

@amay5267
Copy link
Author

amay5267 commented Dec 5, 2022

Probaly coping 'magic.h' file from /usr/local/Cellar/libmagic/5.43/include/magic.h to /Users/usr/Documents/turbo/turbo/source/turbo-core/
fixed it.

@amay5267
Copy link
Author

amay5267 commented Dec 5, 2022

Hi @onderweg
Can you please share Turbo macOS universal binary?
How did you build it?

@amay5267 amay5267 reopened this Dec 5, 2022
@onderweg
Copy link

onderweg commented Dec 6, 2022

As far as I remember, I never build a universal binary.
I did build for arm64 and x86_64 on separate machines.

(For the Intel build to succeed, I had to add typedef unsigned int uint; to source/turbo/apputils.h by the way).

@amay5267
Copy link
Author

amay5267 commented Dec 6, 2022

Hi @onderweg
Perfect!
I already shared Intel build so can you please share arm64 build?

@amay5267
Copy link
Author

amay5267 commented Dec 6, 2022

x86_64-turbo.zip
We can merge x86_64-turbo with arm64-turbo :

lipo -create arm64-turbo x86_64-turbo -output universal-turbo

$ file universal-turbo

@magiblot
Copy link
Owner

magiblot commented Dec 6, 2022

For the Intel build to succeed, I had to add typedef unsigned int uint; to source/turbo/apputils.h by the way)

I take note of that, thanks.

@onderweg
Copy link

onderweg commented Dec 6, 2022

Mmm, my build is dynamically linked to a specific ncurses version. So maybe not really portable?

$ otool -L turbo
	/usr/lib/libncurses.5.4.dylib (compatibility version 5.4.0, current version 5.4.0)
	/System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa (compatibility version 1.0.0, current version 23.0.0)
	/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 1300.32.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1319.0.0)
	/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit (compatibility version 45.0.0, current version 2297.0.0)
	/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 1953.1.0)
	/System/Library/Frameworks/Foundation.framework/Versions/C/Foundation (compatibility version 300.0.0, current version 1953.1.0)
	/usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version 228.0.0)

turbo_arm64.zip

@onderweg
Copy link

onderweg commented Dec 6, 2022

I also managed to build an universal binary with:

cmake . -DCMAKE_BUILD_TYPE=Release -DCMAKE_OSX_ARCHITECTURES="arm64;x86_64" &&                                                                      20:21:02
cmake --build .

Check output architecture:

$ lipo -archs turbo                                                                                                                                  
x86_64 arm64

Linked libraries:

turbo (architecture x86_64):
	/usr/lib/libncurses.5.4.dylib (compatibility version 5.4.0, current version 5.4.0)
	/System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa (compatibility version 1.0.0, current version 23.0.0)
	/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 1300.32.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1319.0.0)
	/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit (compatibility version 45.0.0, current version 2297.0.0)
	/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 1953.1.0)
	/System/Library/Frameworks/Foundation.framework/Versions/C/Foundation (compatibility version 300.0.0, current version 1953.1.0)
	/usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version 228.0.0)
turbo (architecture arm64):
	/usr/lib/libncurses.5.4.dylib (compatibility version 5.4.0, current version 5.4.0)
	/System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa (compatibility version 1.0.0, current version 23.0.0)
	/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 1300.32.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1319.0.0)
	/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit (compatibility version 45.0.0, current version 2297.0.0)
	/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 1953.1.0)
	/System/Library/Frameworks/Foundation.framework/Versions/C/Foundation (compatibility version 300.0.0, current version 1953.1.0)
	/usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version 228.0.0)

turbo_universal.zip

@sambacha
Copy link

cmake . -DCMAKE_BUILD_TYPE=Release -DCMAKE_OSX_ARCHITECTURES="arm64;x86_64" &&                                                                      20:21:02
cmake --build .

Apple Silicon up to Ventura is supported in libmagic

pkg-config --cflags --libs 

You can see that the magic.h works in the test included in homebrew: https://github.com/Homebrew/homebrew-core/blob/6e5de457879e0b55da72203c0cc4f518c82c2cf6/Formula/libmagic.rb

Thanks for including the binary output as well, cheers

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

4 participants