webodf / ViewerJS

ViewerJS: Document Reader in JavaScript
http://viewerjs.org
1.94k stars 421 forks source link

Doesn't compile #171

Open chrilith opened 8 years ago

chrilith commented 8 years ago

Hi,

I'm trying to build my own version but the script is stuck on:

HEAD is now at 3fd44fd... Import l10n files Submodule 'test/ttx/fonttools-code' (git://git.code.sf.net/p/fonttools/code) registered for path 'test/ttx/fonttools-code' Cloning into 'test/ttx/fonttools-code'... github --credentials get: github: command not found

Any clue? Thanks

chrilith commented 8 years ago

Tested again today with a new configuration, still hangs at:

Cloning into 'test/ttx/fonttools-code'...

Any clue?

adityab commented 8 years ago

I'm not sure why your output says github when the repository is hosted on git.code.sf.net. Are you perhaps using a nonstandard git interface, like github's scripts?

chrilith commented 8 years ago

Well it seems I'm using GitHub "PortableGit" as client.

Now, if I authenticate on sf.net first with git, I'm able to clone this repo. Seems that this build script expect a same credential for different GIT repos.

chrilith commented 8 years ago

$ git --version git version 1.9.5.github.0

chrilith commented 8 years ago

OK, well, seems that this cannot be built on Windows. I give up.

CMake Error at webodf/CMakeLists.txt:12 (include): include could not find load file:

C:/DEV/GitHub/build/WebODF-build/jsfileslist.txt

-- Configuring incomplete, errors occurred! See also "C:/DEV/GitHub/build/WebODF-build/CMakeFiles/CMakeOutput.log". mingw32-make[2]: * [WebODF-prefix/src/WebODF-stamp/WebODF-configure] Error 1 mingw32-make[1]: * [CMakeFiles/WebODF.dir/all] Error 2 mingw32-make: *\ [all] Error 2

SergioReis97 commented 6 years ago

Having same problem, linux min 18.2, git version 2.7.4. Trying to build like in readme says

git clone http://github.com/kogmbh/ViewerJS.git
mkdir build
cd build
cmake ../ViewerJS
make  

returns this error on the make command :

.
.
.
[ 63%] Performing download step (git clone) for 'PDFjs'
Cloning into 'PDFJS-source'...
Note: checking out 'v1.1.114'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at 3fd44fd... Import l10n files
Submodule 'test/ttx/fonttools-code' (git://git.code.sf.net/p/fonttools/code) registered for path 'test/ttx/fonttools-code'
Cloning into 'test/ttx/fonttools-code'...
fatal: remote error: access denied or repository not exported: /p/fonttools/code
fatal: clone of 'git://git.code.sf.net/p/fonttools/code' into submodule path 'test/ttx/fonttools-code' failed
CMake Error at PDFjs-prefix/tmp/PDFjs-gitclone.cmake:67 (message):
  Failed to update submodules in:
  '/home/sergio/Desktop/javascript/build/PDFJS-source'

CMakeFiles/PDFjs.dir/build.make:89: recipe for target 'PDFjs-prefix/src/PDFjs-stamp/PDFjs-download' failed
make[2]: *** [PDFjs-prefix/src/PDFjs-stamp/PDFjs-download] Error 1
CMakeFiles/Makefile2:139: recipe for target 'CMakeFiles/PDFjs.dir/all' failed
make[1]: *** [CMakeFiles/PDFjs.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
sougiovn commented 5 years ago

Same error in macOS Mojave 10.14 git git version 2.17.1 (Apple Git-112)

renierdbruyn commented 5 years ago

Has anybody found a solution for this?

This is still an issue.. I am using ubuntu 18.04

Nimdoc commented 4 years ago

@renierdbruyn I'm not sure if you're still trying to use this almost a year later, but the problem was that the repository for a submodule of pdf.js no longer exists. I made a pull request that has a later version of pdf.js with the submodule fixed.

https://github.com/webodf/ViewerJS/pull/287