View Single Post
Old 09-05-2010, 10:28 PM   #3
Skitzman69
Junior Member
Skitzman69 began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Sep 2010
Device: IPhone
Quote:
Originally Posted by Valloric View Post
Again read the error message that tells you you're doing it from the wrong directory. It tells you how to do it correctly (I know, because I wrote it).
Ok I deleted the source directory and tried again and (of course) it works For others here is the commands that I used

Code:
~src$ unzip Sigil-0.2.4-Code
~src$ cd Sigil-0.2.4-Code
~/src/Sigil-0.2.4-Code$ cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release ~/src/Sigil-0.2.4-Code
~/src/Sigil-0.2.4-Code$ make
But I get an error when building the main.cpp.o, any ideas?

Code:
[ 58%] Building CXX object src/Sigil/CMakeFiles/sigil.dir/main.cpp.o
/home/mwtheobald/src/Sigil-0.2.4-Code/src/Sigil/main.cpp: In function ‘int main(int, char**)’:
/home/mwtheobald/src/Sigil-0.2.4-Code/src/Sigil/main.cpp:144: warning: format not a string literal and no format arguments
[ 58%] Building CXX object src/Sigil/CMakeFiles/sigil.dir/Tabs/TabManager.cpp.o
/home/mwtheobald/src/Sigil-0.2.4-Code/src/Sigil/Tabs/TabManager.cpp: In member function ‘void TabManager::EmitTabChanged()’:
/home/mwtheobald/src/Sigil-0.2.4-Code/src/Sigil/Tabs/TabManager.cpp:142: error: ‘class QWeakPointer<ContentTab>’ has no member named ‘data’
/home/mwtheobald/src/Sigil-0.2.4-Code/src/Sigil/Tabs/TabManager.cpp:144: error: no matching function for call to ‘QWeakPointer<ContentTab>::QWeakPointer(ContentTab*&)’
/usr/include/qt4/QtCore/qsharedpointer_impl.h:359: note: candidates are: QWeakPointer<T>::QWeakPointer(const QSharedPointer<X>&) [with T = ContentTab]
/usr/include/qt4/QtCore/qsharedpointer_impl.h:351: note:                 QWeakPointer<T>::QWeakPointer(const QWeakPointer<T>&) [with T = ContentTab]
/usr/include/qt4/QtCore/qsharedpointer_impl.h:349: note:                 QWeakPointer<T>::QWeakPointer() [with T = ContentTab]
make[2]: *** [src/Sigil/CMakeFiles/sigil.dir/Tabs/TabManager.cpp.o] Error 1
make[1]: *** [src/Sigil/CMakeFiles/sigil.dir/all] Error 2
make: *** [all] Error 2
I just tried grabbing the latest from the repo and got the same error... And yes I installed the core QT libraries as noted in the instructions.

Last edited by Skitzman69; 09-05-2010 at 10:48 PM. Reason: Repo version didn't work either.
Skitzman69 is offline   Reply With Quote