Texstudio is the best Tex editor I have ever been using in Windows, and now I
swtich my daily work in my MacOS X,so I want a Mac version.
But the Mac version in \"Download\" is so old, It lack some rudimentary new
features in later version, eg: internal support with xelatex ...
So I try to compile the SVN version on My Mac, but on the web there is still
no a introduction to howto compile a Mac version step by step,so as following
is the expierence I have :
3.poppler and some libs fo poppler
It\'s a hard work to compile poppler by your self, because there are so many
Path problem with it ,though you have installed the qt libs, eg: errors with
can not found QTCore. So I use the brew to do it automatically.
first you have to installed \"brew\" on your Mac ,it very usefull.
then in your term like \"iTerm\" i use type :
brew install -v poppler --with-qt4 --enable-xpdf-headers
It will begin automatically, and waiting, it will take a long time more than
hours.
After this you installed poppler and its libs
【Begin to compile】
4.use a texteditor like vim or emacs, edit line 247 in texstudio.pro
make sure it is : config += macx
5.edit line 251 in texstudio.pro
if you use Lion make sure it is : x64
6.edit line 504 in texstudio.pro
edit it with your poppler path
I install the poppler with \"brew\", so I set it like this:
INCLUDEPATH += /usr/local/Cellar/poppler/0.20.0/include/poppler/qt4/
7.rename fr_FR.stopWords in folder utilities in your SVN folder to
fr.stopWords
unless when compling it will exit and report \"can\'t find fr.stopWords\"
What\'s a strange bug.
8.open your QTCreator and open your texstudio project, compile
wating....
.
.
.
.
.
.
10.failed!!!
【BUT............I FAILED】
After the steps above, I still failed in compiling it more than one time, I
tried once again and again and had the some warning/errors reports.
These errors are mentioned by others who have tried to compile on Mac, I look
in it, the errors we meet when compiling on Mac are mainly in 3 files:
debughelper.cpp
signal.h
ucontex.h
It just likely there needs some special defines and declarations for Mac OS X
in the signal.h or ucontext.h and they don\'t have.
The errors I have as followings :
I../../QtSDK/Desktop/Qt/4.8.1/gcc/lib/QtScript.framework/Versions/4/Headers-I../../QtSDK/Desktop/Qt/4.8.1/gcc/include/QtScript-I../../QtSDK/Desktop/Qt/4.8.1/gcc/include-Iqtsingleapplication-Iqcodeedit/lib-Iqcodeedit/lib/document-Iqcodeedit/lib/language-Iqcodeedit/lib/widgets-Iqcodeedit/lib/qnfa-I/usr/local/Cellar/poppler/0.20.0/include/poppler/qt4-I.moc-I.ui-F/Users/Jhering/QtSDK/Desktop/Qt/4.8.1/gcc/lib-o.obj/debughelper.odebughelper.cpp[color=red]debughelper.cpp:386:warning:unusedparameter\'title\'debughelper.cpp:386:warning:unusedparameter\'where\'debughelper.cpp:386:warning:unusedparameter\'assertion\'debughelper.cpp:386:warning:unusedparameter\'file\'debughelper.cpp:386:warning:unusedparameter\'line\'debughelper.cpp:Infunction\'void registerCrashHandler(int)\':debughelper.cpp:551:error:\'sigaltstack\' was not declared in this scopedebughelper.cpp:555:error:nomatchingfunctionforcallto\'sigaction::sigaction(int, sigaction*, int)\'/usr/include/sys/signal.h:303:note:candidatesare:sigaction::sigaction()/usr/include/sys/signal.h:303:note:sigaction::sigaction(constsigaction&)debughelper.cpp:556:error:nomatchingfunctionforcallto\'sigaction::sigaction(int, sigaction*, int)\'/usr/include/sys/signal.h:303:note:candidatesare:sigaction::sigaction()/usr/include/sys/signal.h:303:note:sigaction::sigaction(constsigaction&)debughelper.cpp:559:error:nomatchingfunctionforcallto\'sigaction::sigaction(int, sigaction*, int)\'/usr/include/sys/signal.h:303:note:candidatesare:sigaction::sigaction()/usr/include/sys/signal.h:303:note:sigaction::sigaction(constsigaction&)debughelper.cpp:560:error:nomatchingfunctionforcallto\'sigaction::sigaction(int, sigaction*, int)\'/usr/include/sys/signal.h:303:note:candidatesare:sigaction::sigaction()/usr/include/sys/signal.h:303:note:sigaction::sigaction(constsigaction&)debughelper.cpp:Infunction\'bool recoverMainThreadFromOutside()\':debughelper.cpp:571:error:redefinitionof\'bool recoverMainThreadFromOutside()\'debughelper.cpp:390:error:\'bool recoverMainThreadFromOutside()\' previously defined heredebughelper.cpp:Infunction\'void undoMainThreadRecoveringFromOutside()\':debughelper.cpp:583:error:redefinitionof\'void undoMainThreadRecoveringFromOutside()\'debughelper.cpp:395:error:\'void undoMainThreadRecoveringFromOutside()\' previously defined heredebughelper.cpp:Inmemberfunction\'void SimulatedCPU::set_all(void*)\':debughelper.cpp:917:error:\'struct __darwin_ucontext\' has no member named \'__ss\'debughelper.cpp:918:error:\'struct __darwin_ucontext\' has no member named \'__ss\'debughelper.cpp:919:error:\'struct __darwin_ucontext\' has no member named \'__ss\'debughelper.cpp:Inmemberfunction\'void SimulatedCPU::get_all(void*)\':debughelper.cpp:925:error:\'struct __darwin_ucontext\' has no member named \'__ss\'debughelper.cpp:926:error:\'struct __darwin_ucontext\' has no member named \'__ss\'debughelper.cpp:927:error:\'struct __darwin_ucontext\' has no member named \'__ss\'[/color]make:***[.obj/debughelper.o]Error1
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thank you for your work!
Now it looks likes better, but there is still two errors which terminate the
compile:
in the line 454 of debughelper.cpp
if defined(__DARWIN_UNIX03) && defined(_STRUCT_X86_EXCEPTION_STATE32
there lacks )
2.after I add a ) to it, there is still one error to terminate the compile and
failed:
Iqcodeedit/lib/widgets-Iqcodeedit/lib/qnfa-I/usr/local/Cellar/poppler/0.20.0/include/poppler/qt4-I.moc-I.ui-F/Users/Jhering/QtSDK/Desktop/Qt/4.8.1/gcc/lib-o.obj/debughelper.odebughelper.cpp[color=red]Infileincludedfromdebughelper.cpp:447:/usr/include/ucontext.h:43:2:error:#error The deprecated ucontext routines require _XOPEN_SOURCE to be definedmake:***[.obj/debughelper.o]Error1make:Leavingdirectory`/Users/Jhering/Downloads/trunk2983'[/cokor]
there lacks )
Okay that was just stupid
error: #error The deprecated ucontext routines
require _XOPEN_SOURCE to be defined
Strange.
It doesn't actually need anything from ucontext.h, just from
sys/ucontext.h...
But as sys/signal.h didn't work without signal.h, I included it as well..
You can try r2984
On 06/28/12 04:09, SourceForge.net wrote:
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
How to tell texstudio where my QtTest is?
Why texstudio can found the other files in
/Users/Jhering/QtSDK/Desktop/Qt/4.8.1/gcc/......
but can't find QtTest?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Why texstudio can found the other files in
/Users/Jhering/QtSDK/Desktop/Qt/4.8.1/gcc/......
but can't find QtTest?
It is probably some strange mac thing...
How to tell texstudio where my QtTest is?
Try to replace
macx:LIBS += QtTest
by
macx:LIBS += -framework QtTest
in texstudio.pro, line 490
On 06/28/12 18:15, SourceForge.net wrote:
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
ld: warning: directory '/usr/local/pgsql/lib' following -L not found
ld: warning: directory '/tmp/qt-stuff-85167/source/qt-everywhere-opensource-src-4.8.1/Desktop/Qt/4.8.1/gcc/lib' following -L not found
ld: warning: directory '/tmp/qt-stuff-85167/source/qt-everywhere-opensource-src-4.8.1/Desktop/Qt/4.8.1/gcc/lib' following -F not found
due to Qt, not texstudio.
I solve it by added the two empty directories to the root directory on Mac:
There are 24 warnings and one error, the error terminats the compile:
ERROR:
In file included from tablemanipulation.cpp:4:
/Users/Jhering/Downloads/trunk 2984/smallUsefulFunctions.h:88:140: warning:
control may reach end of non-void function
inline int skipWhitespace(const QString &line, int pos=0) {while
(pos<line.length()) {if (!line.at(pos).isSpace()) return pos; else pos++;}}
^
tablemanipulation.cpp:858:12: error: variable length array of non-POD element
type 'QString'
QString cl;
^
1 warning and 1 error generated.
It still failed.
There is no error report and there still 30 warnings and no compiled texstudio
app then the compile exit 'normally'.
When it reportedthe warning
ld: warning: directory '/usr/local/pgsql/lib' following -L not found
ld: warning: directory '/tmp/qt-stuff-85167/source/qt-everywhere-opensource-src-4.8.1/Desktop/Qt/4.8.1/gcc/lib' following -L not found
ld: warning: directory '/tmp/qt-stuff-85167/source/qt-everywhere-opensource-src-4.8.1/Desktop/Qt/4.8.1/gcc/lib' following -F not found
ld: warning: directory '/private/tmp/qt-stuff-85167/source/qt-everywhere-opensource-src-4.8.1/Desktop/Qt/4.8.1/lib' following -F not found
I solve it by added the empty directories to the root directory on Mac:
/usr/local/pgsql/lib
/private/tmp/qt-stuff-85167/source/qt-everywhere-opensource-
src-4.8.1/Desktop/Qt/4.8.1/gcc/lib
/private/tmp/qt-stuff-85167/source/qt-everywhere-opensource-
src-4.8.1/Desktop/Qt/4.8.1/lib
Then these warnings disappeared.
Is there any mistake I have made in it?
Texstudio is the best Tex editor I have ever been using in Windows, and now I
swtich my daily work in my MacOS X,so I want a Mac version.
But the Mac version in \"Download\" is so old, It lack some rudimentary new
features in later version, eg: internal support with xelatex ...
So I try to compile the SVN version on My Mac, but on the web there is still
no a introduction to howto compile a Mac version step by step,so as following
is the expierence I have :
【Preparation】
There are some tools you need before you compile it.
1.SVN source code
You can download it on http://texstudio.svn.sourceforge.net/viewvc/texstudio/
trunk/
click the \"Download GNU tarball\" on button of page
The SVN version I used to compile is 2980
2.QT creator
You can download it on
http://qt.nokia.com/downloads
3.poppler and some libs fo poppler
It\'s a hard work to compile poppler by your self, because there are so many
Path problem with it ,though you have installed the qt libs, eg: errors with
can not found QTCore. So I use the brew to do it automatically.
first you have to installed \"brew\" on your Mac ,it very usefull.
then in your term like \"iTerm\" i use type :
brew install -v poppler --with-qt4 --enable-xpdf-headers
It will begin automatically, and waiting, it will take a long time more than
hours.
After this you installed poppler and its libs
【Begin to compile】
4.use a texteditor like vim or emacs, edit line 247 in texstudio.pro
make sure it is : config += macx
5.edit line 251 in texstudio.pro
if you use Lion make sure it is : x64
6.edit line 504 in texstudio.pro
edit it with your poppler path
I install the poppler with \"brew\", so I set it like this:
INCLUDEPATH += /usr/local/Cellar/poppler/0.20.0/include/poppler/qt4/
7.rename fr_FR.stopWords in folder utilities in your SVN folder to
fr.stopWords
unless when compling it will exit and report \"can\'t find fr.stopWords\"
What\'s a strange bug.
8.open your QTCreator and open your texstudio project, compile
.
.
.
.
.
.
10.failed!!!
【BUT............I FAILED】
After the steps above, I still failed in compiling it more than one time, I
tried once again and again and had the some warning/errors reports.
These errors are mentioned by others who have tried to compile on Mac, I look
in it, the errors we meet when compiling on Mac are mainly in 3 files:
debughelper.cpp
signal.h
ucontex.h
It just likely there needs some special defines and declarations for Mac OS X
in the signal.h or ucontext.h and they don\'t have.
The errors I have as followings :
There are in .7z
/usr/include/signal.h
/usr/include/ucontext.h
/usr/include/sys/signal.h
/usr/include/sys/ucontex.h
debughelper.h
texstudio.pro
https://docs.google.com/open?id=0B1-L3GaUwBZWeDJPRXRveXdSSDA
I have upload it on
https://docs.google.com/open?id=0B1-L3GaUwBZWeDJPRXRveXdSSDA
Anyone can download it ----------HELP Me to Debug
Thank you everyone.
The upside Links are corrupts, use this:
https://docs.google.com/open?id=0B1-L3GaUwBZWX3Q3UUk3V0UtMU0
Your latest link also gives a 404 error :(
And I probably need the sys/_structs.h, too, if there is an #include
_structs.h in ucontext.h
Do you have a 64 or 32 bit system? This part is processor dependent
sorry......
here is it :
http://d.pr/f/vK8S
or https://docs.google.com/open?id=0B1-L3GaUwBZWX3Q3UUk3V0UtMU0
I uploaded again
My MacOS X Lion is 64 bit system.
In the zip contained:
/usr/include/signal.h
/usr/include/ucontext.h
/usr/include/sys/signal.h
/usr/include/sys/ucontex.h
/usr/include/sys/__structs.h
debughelper.h
texstudio.pro
Anyting you need could send me a E-mail: pkulww@gmail.com
I am glad to be the volunteer to help Texstudio be a fullscale Mac program.
I think I have now fixed these errors in r2983.
If there is still an "undefined ... ucontext/__ss/rip" error I might
also need the machine/_structs.h to check it.
On 06/27/12 03:47, SourceForge.net wrote:
Thank you for your work!
Now it looks likes better, but there is still two errors which terminate the
compile:
if defined(__DARWIN_UNIX03) && defined(_STRUCT_X86_EXCEPTION_STATE32
there lacks )
2.after I add a ) to it, there is still one error to terminate the compile and
failed:
There is machine/_structs.h
http://d.pr/f/zqph
I have given you the /usr/include/ucontext.h in the last zip.
Anything you need could tell me.It's my pleasure can help compiling the
version in Mac.
Thank you for you work!
You can try r2984
On 06/28/12 04:09, SourceForge.net wrote:
The old problems have been sloved, but new problem is coming.....
I have install the QT and QT SDK ,how to reslove this?
Where is my QtTest?
Now I found here is my QtTest,
/Users/Jhering/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtTest/
and it contains:
QEventSizeOfChecker QTestElement QTestXunitStreamer qtestbasicstreamer.h
qtestlightxmlstreamer.h
QSignalSpy QTestElementAttribute QtTest qtestcase.h qtestmouse.h
QSpontaneKeyEvent QTestEvent QtTestGui qtestcoreelement.h qtestspontaneevent.h
QTest QTestEventList qbenchmark.h qtestcorelist.h qtestsystem.h
QTestAccessibility QTestEventLoop qbenchmarkmetric.h qtestdata.h qtesttouch.h
QTestAccessibilityEvent QTestFileLogger qsignalspy.h qtestelement.h
qtestxmlstreamer.h
QTestBasicStreamer QTestKeyClicksEvent qtest.h qtestelementattribute.h
qtestxunitstreamer.h
QTestCoreElement QTestKeyEvent qtest_global.h qtestevent.h
QTestCoreList QTestLightXmlStreamer qtest_gui.h qtesteventloop.h
QTestData QTestMouseEvent qtestaccessible.h qtestfilelogger.h
QTestDelayEvent QTestXmlStreamer qtestassert.h qtestkeyboard.h
How to tell texstudio where my QtTest is?
Why texstudio can found the other files in
/Users/Jhering/QtSDK/Desktop/Qt/4.8.1/gcc/......
but can't find QtTest?
There are all the report:
macx:LIBS += QtTest
by
macx:LIBS += -framework QtTest
in texstudio.pro, line 490
On 06/28/12 18:15, SourceForge.net wrote:
It works, but there are still two problems which terminate the compile.
not in /usr/local/pgsql/lib
How to let texstudio know where my pgsql is?
Undefined symbols for architecture x86_64:
There is the report:
Postgresql?
TeXstudio doesn't use pgsql, it is perhaps just mentioned in the error
log, because qt adds paths to all installed libraries.
You can try to replace "_etext" in debughelper.cpp line 482 and :487 by
"__etext" or "etext"
Otherwise replace &_etext in line 487 by something like ( (
(char*)&isAddressInTeXstudio) + 0x800000 )
On 06/29/12 03:46, SourceForge.net wrote:
It works,thank you.
The warning
due to Qt, not texstudio.
I solve it by added the two empty directories to the root directory on Mac:
/usr/local/pgsql/lib
/private/tmp/qt-stuff-85167/source/qt-everywhere-opensource-
src-4.8.1/Desktop/Qt/4.8.1/gcc/lib
But,
it still failed.
There are 24 warnings and one error, the error terminats the compile:
ERROR:
In file included from tablemanipulation.cpp:4:
/Users/Jhering/Downloads/trunk 2984/smallUsefulFunctions.h:88:140: warning:
control may reach end of non-void function
inline int skipWhitespace(const QString &line, int pos=0) {while
(pos<line.length()) {if (!line.at(pos).isSpace()) return pos; else pos++;}}
^
tablemanipulation.cpp:858:12: error: variable length array of non-POD element
type 'QString'
QString cl;
^
1 warning and 1 error generated.
The whole report as follows:
can you give it another try after an svn update ?
And which of the changes did you apply to fix the etext? (so we can
change it in the svn)
On 06/30/12 04:41, SourceForge.net wrote:
It still failed.
There is no error report and there still 30 warnings and no compiled texstudio
app then the compile exit 'normally'.
When it reportedthe warning
I solve it by added the empty directories to the root directory on Mac:
/usr/local/pgsql/lib
/private/tmp/qt-stuff-85167/source/qt-everywhere-opensource-
src-4.8.1/Desktop/Qt/4.8.1/gcc/lib
/private/tmp/qt-stuff-85167/source/qt-everywhere-opensource-
src-4.8.1/Desktop/Qt/4.8.1/lib
Then these warnings disappeared.
Is there any mistake I have made in it?
I have uploaded the warning and report here
https://docs.google.com/open?id=0B1-L3GaUwBZWOUNyOWx1dDJ4VEU
All the warning reports are there:
https://docs.google.com/open?id=0B1-L3GaUwBZWNDU0YW9jQ09mVDA
You can research 'warning' to find it in the document.
I replaced "_etext" in debughelper.cpp line 482 by "__etext"
and
in :487 I replaced &_etext ( ( (char*)&isAddressInTeXstudio) + 0x800000 )
Is it corect?
But I looks okay.
Did you check if texstudio.app/Contents/MacOS/texstudio runs?
On 07/01/12 03:32, SourceForge.net wrote:
When I double click the texstudio after complied with 30 warnings and no
erros:
It crashed.I yet didn't see anything before it crashed.
There is the report:
I have uploaded the warnings upside...
I have no idea now, so disappoinment.......
I run it in cosole
It reported:
./texstudio
dyld: Library not loaded: /usr/local/lib/QtCore.framework/Versions/4/QtCore
Referenced from: /usr/local/lib/libpoppler-qt4.4.dylib
Reason: image not found
Trace/BPT trap: 5