Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

svn checkout and build problems on Windows #5260

Closed
cyberduck opened this issue Oct 2, 2010 · 15 comments
Closed

svn checkout and build problems on Windows #5260

cyberduck opened this issue Oct 2, 2010 · 15 comments

Comments

@cyberduck
Copy link
Collaborator

6567071 created the issue

I'm having some problems related to svn checkouts and building under windows:

  1. svn checkout fails with the following error (using TortoiseSVN):
Error: Can't move 'C:\Users\lukas\Documents\cyberduck-test\www\help\.svn\tmp\entries'   
Error: to 'C:\Users\lukas\Documents\cyberduck-test\www\help\.svn\entries': The file or   
Error: directory is corrupted and unreadable. 

The collabnet cmd line svn seems to break too with the same error message but at random places - on Monday i will test this on some other machine just to double confirm.

  1. Build issues:
    I have followed the instructions from http://trac.cyberduck.ch/browser/trunk/README.txt
    The instructions should mention that ant ikvmc task should be downloaded and added to the ant lib directory (http://ant-ikvmc.sourceforge.net/)
    i have also used slightly later release of ikvmc (ikvm-0.44.0.5) and JDK 1.6.0_21 to the one given in the instructions.
    Now when i run ant i get the following error(s):

A.

[dn:msbuild]   CSC : error CS1719: Error reading Win32 resource file 'c:\Users\l
ukas\Documents\cyberduck-svn\cyberduck\source\ch\cyberduck\ui\winforms\commondia
log\obj\debug\res1.res' -- 'The system cannot find the path specified. ' [C:\Use
rs\lukas\Documents\cyberduck-svn\cyberduck\source\ch\cyberduck\ui\winforms\commo
ndialog\CustomOpenFileFolderDialog.csproj]

I have managed to overcome this error by manually building the project using visual studio 2010 (Both Release and Debug targets) but then i get the following errors:
.
.
.

[dn:msbuild]   ui\winforms\BrowserForm.cs(663,16): error CS0246: The type or nam
espace name 'PathFilter' could not be found (are you missing a using directive o
r an assembly reference?) [C:\Users\lukas\Documents\cyberduck-svn\cyberduck\sour
ce\ch\cyberduck\Cyberduck.csproj]
[dn:msbuild]   ui\winforms\BrowserForm.cs(685,16): error CS0246: The type or nam
espace name 'Host' could not be found (are you missing a using directive or an a
ssembly reference?) [C:\Users\lukas\Documents\cyberduck-svn\cyberduck\source\ch\
cyberduck\Cyberduck.csproj]
[dn:msbuild]   ui\winforms\BrowserForm.cs(725,37): error CS0246: The type or nam
espace name 'Host' could not be found (are you missing a using directive or an a
ssembly reference?) [C:\Users\lukas\Documents\cyberduck-svn\cyberduck\source\ch\
cyberduck\Cyberduck.csproj]
[dn:msbuild]   ui\winforms\BrowserForm.cs(730,33): error CS0246: The type or nam
espace name 'Host' could not be found (are you missing a using directive or an a
ssembly reference?) [C:\Users\lukas\Documents\cyberduck-svn\cyberduck\source\ch\
cyberduck\Cyberduck.csproj]

There are piles, and piles of those

Thx

Luk

@cyberduck
Copy link
Collaborator Author

@dkocher commented

Replying to [5260 lukas]:

[dn:msbuild]   ui\winforms\BrowserForm.cs(663,16): error CS0246: The type or nam
espace name 'PathFilter' could not be found (are you missing a using directive o
r an assembly reference?) [C:\Users\lukas\Documents\cyberduck-svn\cyberduck\sour
ce\ch\cyberduck\Cyberduck.csproj]
[dn:msbuild]   ui\winforms\BrowserForm.cs(685,16): error CS0246: The type or nam
espace name 'Host' could not be found (are you missing a using directive or an a
ssembly reference?) [C:\Users\lukas\Documents\cyberduck-svn\cyberduck\source\ch\
cyberduck\Cyberduck.csproj]
[dn:msbuild]   ui\winforms\BrowserForm.cs(725,37): error CS0246: The type or nam
espace name 'Host' could not be found (are you missing a using directive or an a
ssembly reference?) [C:\Users\lukas\Documents\cyberduck-svn\cyberduck\source\ch\
cyberduck\Cyberduck.csproj]
[dn:msbuild]   ui\winforms\BrowserForm.cs(730,33): error CS0246: The type or nam
espace name 'Host' could not be found (are you missing a using directive or an a
ssembly reference?) [C:\Users\lukas\Documents\cyberduck-svn\cyberduck\source\ch\
cyberduck\Cyberduck.csproj]

Please run ant dll. It is currently not included in the default build target as it takes a long time to run and is not cached.

@cyberduck
Copy link
Collaborator Author

@dkocher commented

Replying to [5260 lukas]:

  1. Build issues:
    I have followed the instructions from http://trac.cyberduck.ch/browser/trunk/README.txt
    The instructions should mention that ant ikvmc task should be downloaded and added to the ant lib directory (http://ant-ikvmc.sourceforge.net/)
    i have also used slightly later release of ikvmc (ikvm-0.44.0.5) and JDK 1.6.0_21 to the one given in the instructions.
    Now when i run ant i get the following error(s):

I have added the IKVMC ant task to lib/ext in 23e326c.

@cyberduck
Copy link
Collaborator Author

@dkocher commented

Replying to [5260 lukas]:

I'm having some problems related to svn checkouts and building under windows:

  1. svn checkout fails with the following error (using TortoiseSVN):
Error: Can't move 'C:\Users\lukas\Documents\cyberduck-test\www\help\.svn\tmp\entries'   
Error: to 'C:\Users\lukas\Documents\cyberduck-test\www\help\.svn\entries': The file or   
Error: directory is corrupted and unreadable. 

Turn off Indexing of your SVN repositories by the Windows Indexing Service.

@cyberduck
Copy link
Collaborator Author

6567071 commented

Replying to [comment:3 dkocher]:

Replying to [5260 lukas]:

  1. Build issues:
    I have followed the instructions from http://trac.cyberduck.ch/browser/trunk/README.txt
    The instructions should mention that ant ikvmc task should be downloaded and added to the ant lib directory (http://ant-ikvmc.sourceforge.net/)
    i have also used slightly later release of ikvmc (ikvm-0.44.0.5) and JDK 1.6.0_21 to the one given in the instructions.
    Now when i run ant i get the following error(s):

I have added the IKVMC ant task to lib/ext in 23e326c.
Thx just noticed its there

@cyberduck
Copy link
Collaborator Author

6567071 commented

Replying to [comment:4 dkocher]:

Replying to [5260 lukas]:

I'm having some problems related to svn checkouts and building under windows:

  1. svn checkout fails with the following error (using TortoiseSVN):
Error: Can't move 'C:\Users\lukas\Documents\cyberduck-test\www\help\.svn\tmp\entries'   
Error: to 'C:\Users\lukas\Documents\cyberduck-test\www\help\.svn\entries': The file or   
Error: directory is corrupted and unreadable. 

Turn off Indexing of your SVN repositories by the Windows Indexing Service.

Thx i have switched indexing off for the cyberduck dir repo. It broke once, but i have run update and it finished successfully. I will look into disabling it globally

@cyberduck
Copy link
Collaborator Author

6567071 commented

Replying to [comment:2 dkocher]:

Replying to [5260 lukas]:

[dn:msbuild]   ui\winforms\BrowserForm.cs(663,16): error CS0246: The type or nam
espace name 'PathFilter' could not be found (are you missing a using directive o
r an assembly reference?) [C:\Users\lukas\Documents\cyberduck-svn\cyberduck\sour
ce\ch\cyberduck\Cyberduck.csproj]
[dn:msbuild]   ui\winforms\BrowserForm.cs(685,16): error CS0246: The type or nam
espace name 'Host' could not be found (are you missing a using directive or an a
ssembly reference?) [C:\Users\lukas\Documents\cyberduck-svn\cyberduck\source\ch\
cyberduck\Cyberduck.csproj]
[dn:msbuild]   ui\winforms\BrowserForm.cs(725,37): error CS0246: The type or nam
espace name 'Host' could not be found (are you missing a using directive or an a
ssembly reference?) [C:\Users\lukas\Documents\cyberduck-svn\cyberduck\source\ch\
cyberduck\Cyberduck.csproj]
[dn:msbuild]   ui\winforms\BrowserForm.cs(730,33): error CS0246: The type or nam
espace name 'Host' could not be found (are you missing a using directive or an a
ssembly reference?) [C:\Users\lukas\Documents\cyberduck-svn\cyberduck\source\ch\
cyberduck\Cyberduck.csproj]

Please run ant dll. It is currently not included in the default build target as it takes a long time to run and is not cached.
Great this has fixed it - i still have to build commondialog manually

@cyberduck
Copy link
Collaborator Author

6567071 commented

I have another issue though. it seems like i'm missing wybuild (which by the looks is a non-free). Is there any way to build the release build and installer without it?

@cyberduck
Copy link
Collaborator Author

6567071 commented

And what should be the right sequence of ant targets that i should run?

@cyberduck
Copy link
Collaborator Author

@dkocher commented

Replying to [comment:9 lukas]:

And what should be the right sequence of ant targets that i should run?

Just type ant which executes the default build target which has all the right dependencies except dll which you have to run manually once.

@cyberduck
Copy link
Collaborator Author

@ylangisc commented

After running ant you find an exploded release build (without wyUpdate) in build\Release. Currently it's not possible to build an installer without wyBuild and a code signing certificate.

@cyberduck
Copy link
Collaborator Author

6567071 commented

Oki odki, did see the binary builds but wanted to test the insrtaller build. Anyhow dkocher, yla thx for all the help:)

@cyberduck
Copy link
Collaborator Author

6567071 commented

Oh just rememebered, a minor issue. build-windows.xml seems to use ${env.ProgramFiles(x86)} macros - this works on x64 architecture, but on 32 bit ${env.ProgramFiles(x86)} does not exist and ${env.ProgramFiles} should be used instead. Is there a way to have a platform specific elements in the ant xml specs (something along the lines of ifdef/else/endif)

@cyberduck
Copy link
Collaborator Author

@ylangisc commented

Thanks, I'm aware of this issue. Unfortunately there is no easy and 100% safe solution. A possible solution is in 1585277. Please note that if you use an alternative shell for building (like Cygwin) you might have to manually set the environment variable for the 32bit ProgramFiles folder. Otherwise Ant possibly won't pick the right JDK.

@cyberduck
Copy link
Collaborator Author

6567071 commented

ah that is a shame. Maybe putting a note in the build instructions might be the easiest solution

@cyberduck
Copy link
Collaborator Author

@dkocher commented

Updated build instructions in ad9ec39.

@iterate-ch iterate-ch locked as resolved and limited conversation to collaborators Nov 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant