texmacs-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Texmacs-dev] texmacs-aqua does not build on MacOSX 10.6


From: Gubinelli Massimiliano
Subject: Re: [Texmacs-dev] texmacs-aqua does not build on MacOSX 10.6
Date: Thu, 1 Apr 2010 11:56:02 +0200

Dear Martin,

it is my long term goal to have a fully working cocoa version. For the moment the cocoa version is still not up to date wrt the Qt version. Current developer effort is to finalize the Qt version. When all the problems have been solved it will be (almost) straightforward to synchronize the Cocoa port (most of the internal structure is very similar). In the short term I do not even guarantee that it compiles properly. In my opinion the Qt version works quite well under Mac (I use it everyday) and is well integrated (Mac spell checking, mac image conversion tools, application and doc icons, .app bundle). The Qt version has a working Xcode project in misc/bundle (to be used after the configure stage).

sorry

best
massimiliano gubinelli


On 1 avr. 10, at 10:31, Martin Costabel wrote:

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 mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/texmacs-dev





reply via email to

[Prev in Thread] Current Thread [Next in Thread]