[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Texmacs-dev] texmacs-aqua does not build on MacOSX 10.6
From: |
Martin Costabel |
Subject: |
[Texmacs-dev] texmacs-aqua does not build on MacOSX 10.6 |
Date: |
Thu, 01 Apr 2010 10:31:59 +0200 |
User-agent: |
Thunderbird 2.0.0.24 (Macintosh/20100228) |
Trying to build texmacs-1.0.7.4 with the --enable-cocoa option on MacOSX
10.6.3, I ran into several errors, see below.
Question: Is this version still going to be supported, or should I just
forget about it?
Here is the first error (first brought to my attention by Peter Rapcan):
g++ -ISystem -ISystem/Boot -ISystem/Classes -ISystem/Files -ISystem/Link
-ISystem/Misc -ISystem/Language -IKernel/Abstractions -IKernel/Containers
-IKernel/Types -IData/Convert -IData/Drd -IData/Observers -IData/String
-IData/Tmfs -IData/Tree -IGuile -IGraphics/Bitmap_fonts -IGraphics/Fonts
-IGraphics/Gui -IGraphics/Mathematics -IGraphics/Renderer -IPlugins
-I/sw_x86_64/include -I/sw_x86_64/include/freetype2 -I/sw_x86_64/include
-I/usr/include -I/sw_x86_64/include -Dmacosx -I/sw_x86_64/include
-D_THREAD_SAFE -Wall -Wno-return-type -O2 -fno-exceptions -I/sw_x86_64/include
-c ./Plugins/Cocoa/TMView.mm -o Objects/TMView.o
./Plugins/Cocoa/TMView.mm:24: error: conversion from 'long int' to 'string' is
ambiguous
Kernel/Types/string.hpp:37: note: candidates are: string::string(const char*)
Kernel/Types/string.hpp:36: note: string::string(char)
Kernel/Types/string.hpp:35: note: string::string(int)
This error can be fixed by changing line 24 of Plugins/Cocoa/TMView.mm:
- hashmap<int,string> nskeymap(NULL);
+ hashmap<int,string> nskeymap(0);
After this, the next error is
g++ -ISystem -ISystem/Boot -ISystem/Classes -ISystem/Files -ISystem/Link -ISystem/Misc -ISystem/Language -IKernel/Abstractions -IKernel/Containers -IKernel/Types -IData/Convert -IData/Drd -IData/History -IData/Observers -IData/String -IData/Tmfs -IData/Tree -IGuile -IGraphics/Bitmap_fonts -IGraphics/Fonts -IGraphics/Gui -IGraphics/Mathematics -IGraphics/Renderer -IPlugins -I/sw_x86_64/include -I/sw_x86_64/include -I/sw_x86_64/include/freetype2 -I/sw_x86_64/include -I/usr/include -I/sw_x86_64/include -Dmacosx -I/sw_x86_64/include -D_THREAD_SAFE -I/sw_x86_64/include -DAQUATEXMACS -Wall -Wno-return-type -O2 -fno-exceptions -I/sw_x86_64/include -c ./Plugins/Cocoa/aqua_menu.mm -o Objects/aqua_menu.o
./Plugins/Cocoa/aqua_menu.mm: In function 'widget menu_button(widget, command, string, string, bool)':
./Plugins/Cocoa/aqua_menu.mm:397: error: must #include <typeinfo> before using
typeid
This one can be fixed, as indicated, by inserting #include <typeinfo>
into that file.
After this, the next error is
g++ -ISystem -ISystem/Boot -ISystem/Classes -ISystem/Files -ISystem/Link -ISystem/Misc -ISystem/Language -IKernel/Abstractions -IKernel/Containers -IKernel/Types -IData/Convert -IData/Drd -IData/History -IData/Observers -IData/String -IData/Tmfs -IData/Tree -IGuile -IGraphics/Bitmap_fonts -IGraphics/Fonts -IGraphics/Gui -IGraphics/Mathematics -IGraphics/Renderer -IPlugins -I/sw_x86_64/include -I/sw_x86_64/include -I/sw_x86_64/include/freetype2 -I/sw_x86_64/include -I/usr/include -I/sw_x86_64/include -Dmacosx -I/sw_x86_64/include -D_THREAD_SAFE -I/sw_x86_64/include -DAQUATEXMACS -Wall -Wno-return-type -O2 -fno-exceptions -I/sw_x86_64/include -c ./Plugins/Cocoa/aqua_widget.mm -o Objects/aqua_widget.o
./Plugins/Cocoa/aqua_widget.mm: In member function ‘virtual void aqua_tm_widget_rep::send(slot, blackbox)’:
./Plugins/Cocoa/aqua_widget.mm:507: error: jump to case label
./Plugins/Cocoa/aqua_widget.mm:499: error: crosses initialization of
‘simple_widget_rep* w’
./Plugins/Cocoa/aqua_widget.mm:517: error: jump to case label
./Plugins/Cocoa/aqua_widget.mm:499: error: crosses initialization of
‘simple_widget_rep* w’
./Plugins/Cocoa/aqua_widget.mm: In member function ‘virtual blackbox
aqua_window_widget_rep::query(slot, int)’:
./Plugins/Cocoa/aqua_widget.mm:815: error: cast from ‘NSWindow*’ to ‘int’ loses
precision
After this, I gave up.
--
Martin
- [Texmacs-dev] texmacs-aqua does not build on MacOSX 10.6,
Martin Costabel <=