Author |
Message |
bigjohn
|
Posted: Thu Nov 06, 2003 10:51 pm |
|
Joined: Tue Nov 04, 2003 7:38 pm
Posts: 27
|
is it ok to say, tweak a bit of code and recompile? or is that not a good idea?
and if its ok, where is the source
Thanks
J
|
|
Top |
|
|
cesman
|
Posted: Wed Nov 12, 2003 3:34 am |
|
Joined: Fri Sep 19, 2003 7:05 pm
Posts: 5088
Location:
Fontana, Ca
|
tweak to your heart's content...which souce are you looking for?
cesman
|
|
Top |
|
|
bigjohn
|
Posted: Fri Nov 14, 2003 6:23 pm |
|
Joined: Tue Nov 04, 2003 7:38 pm
Posts: 27
|
I guess I was assuming that the mythtv code and its modules was placed somewhere where it would be easy to make small changes and recompile it. Is there such a place or do i have to download the code?
|
|
Top |
|
|
bigjohn
|
Posted: Fri Nov 14, 2003 6:32 pm |
|
Joined: Tue Nov 04, 2003 7:38 pm
Posts: 27
|
oops i didn't see there was a directory called r4_src for the mythtv user
|
|
Top |
|
|
mgordon
|
Posted: Fri Nov 14, 2003 8:19 pm |
|
Joined: Tue Oct 28, 2003 1:25 pm
Posts: 125
|
If I were to modify a local build I am assuming that I would need to grab the latest code from CVS, True or false?
Is CVS installed with teh knoppMyth disto?
Once I compile with my modifications how to I test my executables locally?
Keep in mind that I am a windows NT driver developer. This has been my first experience with unix in 6 years.
Thanks,
Mike G.
|
|
Top |
|
|
cesman
|
Posted: Fri Nov 14, 2003 8:32 pm |
|
Joined: Fri Sep 19, 2003 7:05 pm
Posts: 5088
Location:
Fontana, Ca
|
mgordon wrote: If I were to modify a local build I am assuming that I would need to grab the latest code from CVS, True or false? False. Only use CVS if you want some new feature that is in CVS. mgordon wrote: Is CVS installed with teh knoppMyth disto? No. That doesn't mean it cannot be done. That a look at the MythTV How-To. mgordon wrote: Once I compile with my modifications how to I test my executables locally? make install. The installed MythTV packages were made with checkinstall, so you can just reinstall the .debs if you messed something up with your build. mgordon wrote: Keep in mind that I am a windows NT driver developer. This has been my first experience with unix in 6 years.
Thanks, Mike G.
You're welcome. Keep in mind that everything in MythTV is stock. The code has not in anyway been modified by Dale or I.
cesman
|
|
Top |
|
|
mgordon
|
Posted: Sun Nov 16, 2003 2:08 pm |
|
Joined: Tue Oct 28, 2003 1:25 pm
Posts: 125
|
Ok,
I have decided that I would tweak mythmusic, so I unpacked mythmusic and compiled.
The next step is make install (I haven't done this yet). This process puts the libmythmusic.so file into the following directory: /usr/local/lib/mythtv/plugins.
I did a little searching and I also found *.so files related to myth in the following directory : /usr/lib and /usr/lib/mythtv/plugins. I am assuming that these directories are for the package that were initially installed.
Once I complete the make install I am assuming that the system will pick up my compiled version of mythmusic in usr/local/lib/mythtv/plugins. If I were to break my version of mythmusic I can go back to the original by deleting the *.so file in the /usr/local/lib/mythtv/plugins and the *.so will be used in the /usr/lib/mythtv/plugins directory. Correct?
I am a windows developer, Linux newbe and I am being cautious.
Thanks,
Mike G.
|
|
Top |
|
|
cesman
|
Posted: Sun Nov 16, 2003 8:27 pm |
|
Joined: Fri Sep 19, 2003 7:05 pm
Posts: 5088
Location:
Fontana, Ca
|
cd into the mythmusic sub-dir
make distclean
vi settings.pro
change /usr/local to /usr
Then follow the compilation instructions in the How-To.
cesman
|
|
Top |
|
|
mgordon
|
Posted: Mon Nov 17, 2003 7:33 am |
|
Joined: Tue Oct 28, 2003 1:25 pm
Posts: 125
|
cesman,
so by changing /usr/local to /usr the libmythtmusic.so will be put in the correct directory for execution. When you refer to the HOW-TO are you referring to the README that is located with mythmusic or the how-to document on mythtv.org?
Thanks for your patience.
Mike G.
|
|
Top |
|
|
mgordon
|
Posted: Fri Jan 09, 2004 8:59 pm |
|
Joined: Tue Oct 28, 2003 1:25 pm
Posts: 125
|
I am trying to recompile mythtv because the frontend freeze issue has been found.
Thanks
Mike G.
I get the following error:
videoout_ivtv.cpp: In destructor `virtual VideoOutputIvtv::~VideoOutputIvtv()':
videoout_ivtv.cpp:58: error: syntax error before `[' token
videoout_ivtv.cpp:67: error: syntax error before `[' token
videoout_ivtv.cpp: In member function `void VideoOutputIvtv::ClearOSD()':
videoout_ivtv.cpp:89: error: syntax error before `[' token
videoout_ivtv.cpp:98: error: syntax error before `[' token
videoout_ivtv.cpp:109: error: invalid types `int[int]' for array subscript
videoout_ivtv.cpp:117: error: syntax error before `[' token
videoout_ivtv.cpp: In member function `virtual bool VideoOutputIvtv::Init(int,
int, float, unsigned int, int, int, int, int, unsigned int)':
videoout_ivtv.cpp:174: error: syntax error before `[' token
videoout_ivtv.cpp:187: error: syntax error before `[' token
videoout_ivtv.cpp:196: error: syntax error before `[' token
videoout_ivtv.cpp: In member function `virtual void
VideoOutputIvtv::EmbedInWidget(long unsigned int, int, int, int, int)':
videoout_ivtv.cpp:267: error: syntax error before `[' token
videoout_ivtv.cpp:273: error: syntax error before `[' token
videoout_ivtv.cpp: In member function `virtual void
VideoOutputIvtv::StopEmbedding()':
videoout_ivtv.cpp:287: error: syntax error before `[' token
videoout_ivtv.cpp:294: error: syntax error before `[' token
videoout_ivtv.cpp: In member function `virtual void
VideoOutputIvtv::ProcessFrame(VideoFrame*, OSD*, std::vector<VideoFilter*,
std::allocator<VideoFilter*> >&, NuppelVideoPlayer*)':
videoout_ivtv.cpp:353: error: syntax error before `[' token
videoout_ivtv.cpp:359: error: invalid types `int[int]' for array subscript
videoout_ivtv.cpp:367: error: syntax error before `[' token
make[2]: *** [videoout_ivtv.o] Error 1
make[2]: Leaving directory `/home/mythtv/r4_src/mythtv-0.12/libs/libmythtv'
make[1]: *** [sub-libmythtv] Error 2
make[1]: Leaving directory `/home/mythtv/r4_src/mythtv-0.12/libs'
|
|
Top |
|
|
cesman
|
Posted: Fri Jan 09, 2004 9:28 pm |
|
Joined: Fri Sep 19, 2003 7:05 pm
Posts: 5088
Location:
Fontana, Ca
|
Odd as I had no issues compiling 0.12 at all. Perhaps remove 0.12 and compiling 0.13 from source?
_________________ cesman
When the source is open, the possibilities are endless!
|
|
Top |
|
|
mgordon
|
Posted: Fri Jan 09, 2004 10:05 pm |
|
Joined: Tue Oct 28, 2003 1:25 pm
Posts: 125
|
Oh I forgot to mention that I recompilied the kernel to 2.4.22, would that make a difference?
When you say remove r12 do you mean dpkg -r myth<tab> until all are gone as stated in a previous post?
Thanks for your help.
I am looking forward to fixing this front end freeze.
Mike G.
This is what I did to compile r12.
untared source
$export QTDIR=/usr/share/qt
$export PATH=$PATH:$QTDIR/bin
./configure
qmake mythtv.pro
make
|
|
Top |
|
|
cesman
|
Posted: Fri Jan 09, 2004 10:08 pm |
|
Joined: Fri Sep 19, 2003 7:05 pm
Posts: 5088
Location:
Fontana, Ca
|
I don't think installing 2.4.22 would have a difference. Yes, dpkg -r myth<tab>. Steps you took look good.
_________________ cesman
When the source is open, the possibilities are endless!
|
|
Top |
|
|
mgordon
|
Posted: Fri Jan 09, 2004 11:08 pm |
|
Joined: Tue Oct 28, 2003 1:25 pm
Posts: 125
|
|
Top |
|
|
mgordon
|
Posted: Sat Jan 10, 2004 7:22 am |
|
Joined: Tue Oct 28, 2003 1:25 pm
Posts: 125
|
I successfully compilied and installed 0.12 mythtv that was packaged with the distro. Unfortunatly my remote no longer works.
Any suggestions.
Thanks,
Mike G.
|
|
Top |
|
|