Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   Portable Windriver (http://www.chiefdelphi.com/forums/showthread.php?t=76825)

dboisvert 15-04-2009 22:41

Portable Windriver
 
Has anyone made, or know how to make a portable windriver?

The reason being is I want to use it on a portable hard drive and just store the workspace on that for next years season so anyone can take it home and work on it and it can be moved to any computer.

virtuald 16-04-2009 11:19

Re: Portable Windriver
 
I would imagine that due to licensing constraints, this isn't possible. An alternative is to install WindRiver in a virtual machine, and move it around in that. Of course, at that point Windows will complain about its licensing... (unless you have a corporate license for it).

virtuald 16-04-2009 11:21

Re: Portable Windriver
 
But on that thought, if you're just wanting to share the workspace, then using a version control system like SVN would be ideal -- then the members of your team would be able to access the workspace from anywhere in the internet (assuming the server is on the public internet -- doesn't have to be). subclipse integrates nicely into Wind River, and allows you to import/export projects seamlessly. Theres a bit about subclipse in the FRC C++ Programming Guide...

Shinigami2057 20-04-2009 20:19

Re: Portable Windriver
 
Quote:

Originally Posted by virtuald (Post 850908)
I would imagine that due to licensing constraints, this isn't possible. An alternative is to install WindRiver in a virtual machine, and move it around in that. Of course, at that point Windows will complain about its licensing... (unless you have a corporate license for it).

Moving around a VirtualBox virtual machine worked great for our team. It's mostly just drag and drop, and saves massive time for installation of Wind River and LabView, et al.

Plus being able to save machine state is invaluable. I'd highly recommend teams with a technical background to give it a whirl; the first few days were excruciating trying to find a fast way to get the build environment on multiple laptops and workstations. You can't beat transferring an already-configured machine over the network :)

pyr0b0y 20-04-2009 21:01

Re: Portable Windriver
 
Can you post any links on how a team would go about setting up WindRiver for SVN?

byteit101 21-04-2009 20:50

Re: Portable Windriver
 
install subversion (http://subversion.tigris.org/getting.html#windows)
run (in cmd) svnadmin create C:/Documents and Settings/longcomplicatedpath/repository
(yes, you must use / instead of \ for the path)
install subclipse (look in C Programming guide)
open SVN Repository View
Right click in SVN Repository view, New> Location... (or something like that)
enter file:///C:/Documents and Settings/longcomplicatedpath/repository
hit ok (if you get an error, tell me what it says)
with your project, Right click>Team>Add to repository (something like that)

more info at http://svnbook.red-bean.com/en/1.5/svn-book.pdf and in the WRWB help file

pyr0b0y 23-04-2009 00:29

Re: Portable Windriver
 
can you explain the part about creating the repository or point me to a link? i tried typing svnadmin create[...] in cmd but it doesnt recognize it

byteit101 23-04-2009 22:39

Re: Portable Windriver
 
first, did you install subversion?
did it fail or succede?
then open cmd and type svnadmin create C:/dir/.../...
look in http://svnbook.red-bean.com/en/1.5/svn-book.pdf on page 40, the first line of command and page 31 near the bottom about windows paths

pyr0b0y 24-04-2009 02:16

Re: Portable Windriver
 
OK, so i created the repos and have created users and put them into different groups. i tried the url, got the certificate, but i am not able to log into it from remote computers, do i have to set some type of permissions or use the ip address?

I just need to be able to access the repo from different computers.

byteit101 24-04-2009 22:36

Re: Portable Windriver
 
you need to install apache (at least that is how i could only get it to work)
just google apache, download and install 2.2
(fromhttp://www.codeproject.com/KB/winsdk/SubversionApache.aspx)
When the installation is finished, go to the bin directory within the Subversion installation, find two files with extension *.so, and put them into the (Apache)/modules directory. The files are mod_authz_svn.so and mod_dav_svn.so.

Go to the conf sub-directory within the Apache installation directory and open the httpd.conf file in any text editor.

Add the following lines:

LoadModule dav_module modules/mod_dav.so
LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so

Now assuming your reposotory is at C:\svns\repos1 and you want to redirect localhost/svn to it,
add this to the httpd.conf:




<Location /svn>

DAV svn

SVNListParentPath on

SVNParentPath C:/svns

</Location>



If you get an error, tell me

byteit101 24-04-2009 22:40

Re: Portable Windriver
 
once you do that restart apache( or restart the computer), and if that computer's ip address is 192.168.101, on another computr (same network) type in http://192.168.1.101/svn
your web browser, you should see your repository there, now you can access it from other computers
then from windriver, new, project> from svn, new connection to http://192.168.1.101/svn/yourrepoitory
and finish out the dialog.
read the WR help for more details

pyr0b0y 25-04-2009 01:07

Re: Portable Windriver
 
[EDIT] Actually i followed the directions with editing the httpd file, but when i restart apache i get this error message:

Code:

Invalid command 'DAV', perhaps misspelled or defined by a module not included in the server configuration

byteit101 25-04-2009 20:48

Re: Portable Windriver
 
did you go to the bin directory within the Subversion installation, find two files with extension *.so, and put them into the (Apache)/modules directory. The files are mod_authz_svn.so and mod_dav_svn.so

also make sure all three lines below are in httpd.conf (and restart apache after you modify it)
LoadModule dav_module modules/mod_dav.so
LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so

If that does not work, copy C:\Program Flies\Subversion\libapr-1.dll and libapriconv-1.dll to (apache)\bin and replace the current ones

keehun 25-04-2009 20:52

Re: Portable Windriver
 
I think you need WebDAV not DAV. Not sure though

byteit101 26-04-2009 09:21

Re: Portable Windriver
 
no, you need DAV, but you can have WebDAV if you really want. DAV is part of SVN. DAV is related to WebDAV, but different (I think)
EDIT: I dont have WebDAV on my server, just DAV, and Subversion Works fine

pyr0b0y 27-04-2009 19:35

Re: Portable Windriver
 
i retried everything you just said, but i still get the same error, is there any other way to do it besides using apache?

byteit101 28-04-2009 15:33

Re: Portable Windriver
 
I think you can do something like svn://x.y.z.q/repositories/path/not/ending/in/a/slash
never tried that.

are you sure that in (apache)/conf/httpd.conf you have the line LoadModule dav_module modules/mod_dav.so uncommented (without a semicolon at the beginning)?

pyr0b0y 28-04-2009 16:27

Re: Portable Windriver
 
Quote:

Originally Posted by byteit101 (Post 855694)
I think you can do something like svn://x.y.z.q/repositories/path/not/ending/in/a/slash
never tried that.

are you sure that in (apache)/conf/httpd.conf you have the line LoadModule dav_module modules/mod_dav.so uncommented (without a semicolon at the beginning)?

I tried it without the # sign at first, but then i get errors, so i tried it with the # sign and just came up with the DAV error

byteit101 28-04-2009 21:11

Re: Portable Windriver
 
Quote:

Originally Posted by pyr0b0y (Post 855700)
I tried it without the # sign at first, but then i get errors, so i tried it with the # sign and just came up with the DAV error

OOps! # is the comment, not ; I was thinking php.ini :D
you want it without the # sign to uncomment it (what is the error?)

pyr0b0y 30-04-2009 13:19

Re: Portable Windriver
 
This is what i inserted in the httpd file
Code:

LoadModule dav_module modules/mod_dav.so
LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so

<Location /svn/>

DAV svn

SVNListParentPath on

SVNParentPath C:/Repositories /* This is where my default folder is */
</Location>

the error that get is


byteit101 30-04-2009 15:17

Re: Portable Windriver
 
recopy mod_dav_svn.so to the modules dir from the svn dir. if that does not work, reinstall subversion (existing repositories will be kept)
EDIT: and of course, re-copy it

pyr0b0y 30-04-2009 17:55

Re: Portable Windriver
 
I tried what you said and made sure i install subversion with apache 2.2.x I also double checked that both .so files were in both locations. This is the error that I am getting now.


byteit101 01-05-2009 16:59

Re: Portable Windriver
 
could you post the last 30 or so lines from (apache)/logs/error.log?

pyr0b0y 04-05-2009 20:56

Re: Portable Windriver
 
Code:

Starting the Apache2.2 service
The Apache2.2 service is running.
] Apache/2.2.11 (Win32) configured -- resuming normal operations
[Fri Apr 24 23:03:57 2009] [notice] Server built: Dec 10 2008 00:10:06
[Fri Apr 24 23:03:57 2009] [notice] Parent: Created child process 4636
[Fri Apr 24 23:03:58 2009] [notice] Child 4636: Child process is running
[Fri Apr 24 23:03:58 2009] [notice] Child 4636: Acquired the start mutex.
[Fri Apr 24 23:03:58 2009] [notice] Child 4636: Starting 64 worker threads.
[Fri Apr 24 23:03:58 2009] [notice] Child 4636: Starting thread to listen on port 80.
httpd.exe: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
[Mon Apr 27 17:58:11 2009] [warn] pid file C:/Program Files/Apache Software Foundation/Apache2.2/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Mon Apr 27 17:58:11 2009] [notice] Apache/2.2.11 (Win32) configured -- resuming normal operations
[Mon Apr 27 17:58:11 2009] [notice] Server built: Dec 10 2008 00:10:06
[Mon Apr 27 17:58:11 2009] [notice] Parent: Created child process 2384
httpd.exe: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
httpd.exe: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
[Mon Apr 27 17:58:11 2009] [notice] Child 2384: Child process is running
[Mon Apr 27 17:58:11 2009] [notice] Child 2384: Acquired the start mutex.
[Mon Apr 27 17:58:11 2009] [notice] Child 2384: Starting 64 worker threads.
[Mon Apr 27 17:58:11 2009] [notice] Child 2384: Starting thread to listen on port 80.
[Thu Apr 30 14:51:13 2009] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Thu Apr 30 14:51:14 2009] [notice] Child 2384: Exit event signaled. Child process is ending.
[Thu Apr 30 14:51:15 2009] [notice] Child 2384: Released the start mutex
[Thu Apr 30 14:51:16 2009] [notice] Child 2384: All worker threads have exited.
[Thu Apr 30 14:51:16 2009] [notice] Child 2384: Child process is exiting
[Thu Apr 30 14:51:17 2009] [notice] Parent: Child process exited successfully.


byteit101 05-05-2009 22:03

Re: Portable Windriver
 
hmm,
your httpd.conf looks like this (at the end)?
#make sure its /svn not /svn/
<Location /svn>

DAV svn

SVNListParentPath on

#same here, also remove the /**/ comment
SVNParentPath C:/Repositories
</Location>
restart the server, and tell me if it works now

pyr0b0y 06-05-2009 01:20

Re: Portable Windriver
 
thanks a lot, that finally worked, so now i can access the repo from a remote location by using the server computer address correct?

byteit101 06-05-2009 19:55

Re: Portable Windriver
 
yes, on the network, (if your ip is 192.168.1.103 (use ipconfig))
file>new project: SVN+new project from svn: http://192.168.1.103/svn OK

Over the internet, you need to configure the router to send port 80 traffic to the computer that has the repos on it, then google what is my ip, and click teh first result, and (pretending it is 72.123.852.95) you would enter in the new repos location box http://72.123.852.95/svn

I would look at the help on it to (in the help menu, and google svn book) learn about commiting, updating and stuff


All times are GMT -5. The time now is 12:18.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi