I just tried compiling it, on p4.3.1, using cmake-2.6.
Code: Select all
cmake -D CMAKE_INSTALL_PREFIX="/usr" ./CMakeLists.txt
Code: Select all
cmake -D CMAKE_INSTALL_PREFIX="/usr" ./CMakeLists.txt
Code: Select all
[ 15%] Building CXX object CMakeFiles/ComicMaster.dir/src/main.cpp.o
In file included from /root/comicmaster/src/./KeyboardManager/../PluginCode/ComicDatabase/DatabaseCode/PageFrame.h:26,
from /root/comicmaster/src/./KeyboardManager/PageHandler.h:26,
from /root/comicmaster/src/main.cpp:24:
/root/comicmaster/src/./KeyboardManager/../PluginCode/ComicDatabase/DatabaseCode/../../../PageManager/PageListManagerSingleton.h:28:7: error: no newline at end of file
make[2]: *** [CMakeFiles/ComicMaster.dir/src/main.cpp.o] Error 1
make[1]: *** [CMakeFiles/ComicMaster.dir/all] Error 2
make: *** [all] Error 2
But I couldn't find the file in question to edit.Open the file in an editor, go to the last line of the file, and hit enter to add a blank line to the end of the file.
Code: Select all
In file included from ./KeyboardManager/../PluginCode/ComicDatabase/DatabaseCode/PageFrame.h:26,
from ./KeyboardManager/PageHandler.h:26,
from main.cpp:24:
./KeyboardManager/../PluginCode/ComicDatabase/DatabaseCode/../../../PageManager/PageListManagerSingleton.h:28:7: error: no newline at end of file
main.cpp:27:35: error: src/ComicMasterConfig.h: No such file or directory
main.cpp: In function 'int main(int, char**)':
main.cpp:72: error: 'ComicMaster_Version' was not declared in this scope
make[1]: *** [.obj/main.o] Error 1
make[1]: Leaving directory `/root/comicmaster/src'
make: *** [sub-ComicMaster-pro-make_default] Error 2
Code: Select all
In file included from /home/comicmaster/src/./KeyboardManager/../PluginCode/ComicDatabase/DatabaseCode/PageFrame.h:24,
from /home/comicmaster/src/./KeyboardManager/PageHandler.h:26,
from /home/comicmaster/src/main.cpp:24:
/home/comicmaster/src/./KeyboardManager/../PluginCode/ComicDatabase/DatabaseCode/./DatabaseManager/DATABASEDEFINITIONS.h:28:26: error: QSharedPointer: No such file or directory
In file included from /home/comicmaster/src/./KeyboardManager/../PluginCode/ComicDatabase/DatabaseCode/PageFrame.h:26,
from /home/comicmaster/src/./KeyboardManager/PageHandler.h:26,
from /home/comicmaster/src/main.cpp:24:
/home/comicmaster/src/./KeyboardManager/../PluginCode/ComicDatabase/DatabaseCode/../../../PageManager/PageListManagerSingleton.h:28:7: error: no newline at end of file
In file included from /home/comicmaster/src/main.cpp:22:
/home/comicmaster/src/ComicMaster.h:177: error: 'GestureType' in namespace 'Qt' does not name a type
Hello Battleshooter,battleshooter wrote:Hi Kumosan,
How does link you gave me compile, by qmake in the src directory or cmake . in the main folder?
Battleshooter
Oh my, never expected that many problems. Never watched others 'over the shoulder' when they tried to compile ComicMaster.muggins wrote:Unfortunately it only got to 15%. Mainly I suspect because my qt4-4.3.2 is missing certain features. Which qt4 are you using?
Could you quote them? Qt4-4.6.2 is fine. I suspect missing boost. 0066 had still some boost dependencies, which I removed in 0067. And please stop using anything before 0067... it is useless.muggins wrote:You were right...qute a few files missing newlines. This time I used Qt4-4.6.2 ,from Slax, and cmake made it to 60%...before a whole bunch of linkage errors showed up! Might have another look in a day or so.
Code: Select all
[ 16%] Building CXX object CMakeFiles/ComicMaster.dir/src/main.cpp.o
In file included from /root/ComicMaster/src/./KeyboardManager/../PluginCode/ComicDatabase/DatabaseCode/PageFrame.h:26,
from /root/ComicMaster/src/./KeyboardManager/PageHandler.h:26,
from /root/ComicMaster/src/main.cpp:24:
/root/ComicMaster/src/./KeyboardManager/../PluginCode/ComicDatabase/DatabaseCode/../../../PageManager/PageListManagerSingleton.h:28:7: error: no newline at end of file
make[2]: *** [CMakeFiles/ComicMaster.dir/src/main.cpp.o] Error 1
make[1]: *** [CMakeFiles/ComicMaster.dir/all] Error 2
make: *** [all] Error 2
.. is usually only a warning. And though I activated -Werror and -Wall, which should give me all warnings and treat them as errors, I never get this. What version of gcc do you use?error: no newline at end of file
In other words, I can never see such a warning. However, you probably use an older gcc and get this warnings, which results due to the -Werror flag in an abort. I would hate to remove -Werror. This is one good method to keep code clean and warning free.This is a long-standing complaint that usually results in people just
saying "fix your invalid source code" or "use a non-broken editor."
See PR14331 for some history. There have been patches suggested over
the years to add a -Wno-eof-newline option to disable the warning but
they never went in. However, earlier this year the discussion concluded
that it would be simpler just to remove the warning than to add an
option to disable it, and so if you use a recent 4.3 (mainline >=
2007-05-31) then you will no longer see the warning.
Code: Select all
ADD_DEFINITIONS( "-ansi -Werror -Wall -DQT_NO_DEBUG")
Code: Select all
ADD_DEFINITIONS( "-ansi -Wall -DQT_NO_DEBUG")
Code: Select all
[ 61%] Building CXX object CMakeFiles/ComicMaster.dir/build/qrc_SQLite.cxx.o
Linking CXX executable bin/ComicMaster
/usr/local/Trolltech/Qt-4.6.3/lib/libQtCore.so: undefined reference to `inotify_init1@GLIBC_2.9'
/usr/local/Trolltech/Qt-4.6.3/lib/libQtCore.so: undefined reference to `pipe2@GLIBC_2.9'
/usr/local/Trolltech/Qt-4.6.3/lib/libQtNetwork.so: undefined reference to `accept4@GLIBC_2.10'
collect2: ld returned 1 exit status
make[2]: *** [bin/ComicMaster] Error 1
make[1]: *** [CMakeFiles/ComicMaster.dir/all] Error 2
make: *** [all] Error 2
Did you use the new 0067? 0066 had problems creating its config files, which are based on sqlite. This definitely is fixed on 0067.... when I tried running the package on Lupu it gave an error to the effect that it couldn't find sqlite.
Code: Select all
libQtCore.so.4 => /usr/local/Trolltech/Qt/lib/libQtCore.so.4
libQtGui.so.4 => /usr/local/Trolltech/Qt/lib/libQtGui.so.4
libQtSql.so.4 => /usr/local/Trolltech/Qt/lib/libQtSql.so.4
libQtXml.so.4 => /usr/local/Trolltech/Qt/lib/libQtXml.so.4
libQtNetwork.so.4 => /usr/local/Trolltech/Qt/lib/libQtNetwork.so.4
Also, the minimal QT4 library package, for the compiled program to run, was of the order of 7Mbytes...it goes against the grain of puppy's mean & lean philosophy.