LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   portable projects (https://www.linuxquestions.org/questions/programming-9/portable-projects-511245/)

nhatkhang 12-16-2006 10:55 PM

portable projects
 
hi
i have a new problem.
my kdevelop project is working well on my pc. i want to share it with my partner, but he couldn't normaly build my project on his pc. First, errors because the project path, it was not the same to the original project, tried to edit and errors for "required INSTALL, README, COPYING, AUTHORS, NEWS" although the project already contains those files in lowercase name, tried to edit, and couldn't build.......!!!

i got a solution but it seems to be so bad.
i create a new project, named the same with the original one. then i remove all the source files after that add all existing source files from the original one. it was working.

is there anybody tell me a better solution ?

nhatkhang

Mara 12-19-2006 02:54 PM

You should be able to remove all full paths from the project settings, leave only those relative to projekct dir. Then it should easily compile on another machine.

It's hard to say where you have the absolute paths. Look into the project settings carefully, also check if you don't have specific things in environmental variables etc. Which language is it? Have you started from a template?

nhatkhang 12-20-2006 06:30 AM

i'm using kdevelop 3.2, my project is a C++ KDE project, it actually was created by a template "base on Design"

this project uses a .so library, and LD_LIBRARY_PATH.

the path of the project in many files of project(some Makefile and some other files), it's hard to edit all the paths in those files. i even had tried but nothing was better.

there is an idea, "copy only source files, Makefile.am files , configure.in.in file into the same tree file and then build that project by import existing project"

and another is that "use Distribution & Publishing plug-in of KDevelop"

i have tried the 2 above, but it was hard to do like they do, i'm still in trouble.

nhatkhang 12-21-2006 10:36 AM

i got it. In KDevelop, there's a plug-in "Distribution and Publishing project". in order to copy project, i need to Create Source Archieve (tar file) and copy this file to away pc. on that pc, i extract this file, and compile the project by "import existing project".
at last, i run configure, atuomake&friend, install. and some settings for the working path for running. That's all.

thank you
nhatkhang


All times are GMT -5. The time now is 05:29 PM.