Return to Opensourcebistro Main                                            Return to Package Building Main

OpenJPG

How to build or package OpenJPG for the Vectorlinux repositories.

This also serves as the first in a 2 part tutorial on installing Kdenlive on Vectorlinux 6.0 Gold.
You can find the part 3 here.
Click the Green Arrow to start.

Exported text from the tutorial.
I'm trying something new and including the exported text from the tutorial.
My hope is that this may do more than just make the content more searchable,
but also encourage some community participation.

 If you are able to translate the dialog to another language or improve it
in any way simply...
1. copy everything below to a text editor.
 2. You can change anything inbetween the '+--->' Markers.
3. Save the text file with your changes and email it to me here

If you wish to comment on the above tutorial. Please do so
here at opensourcebistro.com/blog1


NumFrames: 168
Frame: 1
Title:
NumCallouts: 1
+--->
Packaging OpenJpg.
Part two of the packaging kdenlive series.
+--->
Frame: 2
Title:
NumCallouts: 1
+--->

+--->
Frame: 3
Title:
NumCallouts: 1
+--->

+--->
Frame: 4
Title:
NumCallouts: 1
+--->
Really , frei0r and OpenJpg are dependencies of mlt, but with out mlt there is no kdenlive, so we must tackle mlt's dependencies first.
+--->
Frame: 5
Title:
NumCallouts: 1
+--->

+--->
Frame: 6
Title:
NumCallouts: 1
+--->

+--->
Frame: 7
Title:
NumCallouts: 1
+--->
First we are going to tackle openjpeg.
+--->
Frame: 8
Title:
NumCallouts: 1
+--->

+--->
Frame: 9
Title:
NumCallouts: 1
+--->

+--->
Frame: 10
Title:
NumCallouts: 1
+--->

+--->
Frame: 11
Title:
NumCallouts: 1
+--->
A quick google and you will find www.openjpeg.org.
+--->
Frame: 12
Title:
NumCallouts: 1
+--->

+--->
Frame: 13
Title:
NumCallouts: 1
+--->

+--->
Frame: 14
Title:
NumCallouts: 1
+--->

+--->
Frame: 15
Title:
NumCallouts: 1
+--->

+--->
Frame: 16
Title:
NumCallouts: 1
+--->

+--->
Frame: 17
Title:
NumCallouts: 1
+--->

+--->
Frame: 18
Title:
NumCallouts: 1
+--->
Out of these we want the version 1.3 source files, at the bottom here.
+--->
Frame: 19
Title:
NumCallouts: 1
+--->

+--->
Frame: 20
Title:
NumCallouts: 1
+--->

+--->
Frame: 21
Title:
NumCallouts: 1
+--->

+--->
Frame: 22
Title:
NumCallouts: 1
+--->

+--->
Frame: 23
Title:
NumCallouts: 1
+--->

+--->
Frame: 24
Title:
NumCallouts: 1
+--->

+--->
Frame: 25
Title:
NumCallouts: 1
+--->

+--->
Frame: 26
Title:
NumCallouts: 1
+--->

+--->
Frame: 27
Title:
NumCallouts: 1
+--->

+--->
Frame: 28
Title:
NumCallouts: 1
+--->

+--->
Frame: 29
Title:
NumCallouts: 1
+--->
Create a directory to download the compressed source files into.
+--->
Frame: 30
Title:
NumCallouts: 1
+--->

+--->
Frame: 31
Title:
NumCallouts: 1
+--->

+--->
Frame: 32
Title:
NumCallouts: 1
+--->

+--->
Frame: 33
Title:
NumCallouts: 1
+--->

+--->
Frame: 34
Title:
NumCallouts: 1
+--->

+--->
Frame: 35
Title:
NumCallouts: 1
+--->

+--->
Frame: 36
Title:
NumCallouts: 1
+--->

+--->
Frame: 37
Title:
NumCallouts: 1
+--->

+--->
Frame: 38
Title:
NumCallouts: 1
+--->

+--->
Frame: 39
Title:
NumCallouts: 1
+--->

+--->
Frame: 40
Title:
NumCallouts: 1
+--->

+--->
Frame: 41
Title:
NumCallouts: 1
+--->

+--->
Frame: 42
Title:
NumCallouts: 1
+--->

+--->
Frame: 43
Title:
NumCallouts: 1
+--->
Extract the files.
+--->
Frame: 44
Title:
NumCallouts: 1
+--->

+--->
Frame: 45
Title:
NumCallouts: 1
+--->

+--->
Frame: 46
Title:
NumCallouts: 1
+--->

+--->
Frame: 47
Title:
NumCallouts: 1
+--->

+--->
Frame: 48
Title:
NumCallouts: 1
+--->
I never highlighted this while capturing this tutorial, but you may notice the word cmake, used often in the file names.  This is an important clue to watch for.
+--->
Frame: 49
Title:
NumCallouts: 1
+--->

+--->
Frame: 50
Title:
NumCallouts: 1
+--->
As always read any provided documentation that may help you with the build.
+--->
Frame: 51
Title:
NumCallouts: 1
+--->

+--->
Frame: 52
Title:
NumCallouts: 1
+--->

+--->
Frame: 53
Title:
NumCallouts: 1
+--->

+--->
Frame: 54
Title:
NumCallouts: 1
+--->

+--->
Frame: 55
Title:
NumCallouts: 1
+--->
This file let's us know that this installation does not require configure, just make and make install.
+--->
Frame: 56
Title:
NumCallouts: 1
+--->

+--->
Frame: 57
Title:
NumCallouts: 1
+--->

+--->
Frame: 58
Title:
NumCallouts: 1
+--->

+--->
Frame: 59
Title:
NumCallouts: 1
+--->

+--->
Frame: 60
Title:
NumCallouts: 1
+--->
That is enough information to use sbbuilder for this program.
+--->
Frame: 61
Title:
NumCallouts: 1
+--->

+--->
Frame: 62
Title:
NumCallouts: 1
+--->

+--->
Frame: 63
Title:
NumCallouts: 1
+--->

+--->
Frame: 64
Title:
NumCallouts: 1
+--->

+--->
Frame: 65
Title:
NumCallouts: 1
+--->

+--->
Frame: 66
Title:
NumCallouts: 1
+--->

+--->
Frame: 67
Title:
NumCallouts: 1
+--->
Because cmake was noticed in the file names in the source file directory, I am going with --type=cmake
+--->
Frame: 68
Title:
NumCallouts: 1
+--->
The package name 'OpenJPEG' is different from the 'openjpeg' used in the compressed file, but I went with 'OpenJPEG'
+--->
Frame: 69
Title:
NumCallouts: 1
+--->
I also change the version number to fit the SlackBuild conventions. Notice the _(underscore) is now a .)period.
+--->
Frame: 70
Title:
NumCallouts: 1
+--->
and of course on your build give yourself credit with --user=yourusername.
+--->
Frame: 71
Title:
NumCallouts: 1
+--->

+--->
Frame: 72
Title:
NumCallouts: 1
+--->

+--->
Frame: 73
Title:
NumCallouts: 1
+--->

+--->
Frame: 74
Title:
NumCallouts: 1
+--->

+--->
Frame: 75
Title:
NumCallouts: 1
+--->
Since the compressed file does not share the same name as the uncompressed one we need to delete it.
+--->
Frame: 76
Title:
NumCallouts: 1
+--->

+--->
Frame: 77
Title:
NumCallouts: 1
+--->

+--->
Frame: 78
Title:
NumCallouts: 1
+--->

+--->
Frame: 79
Title:
NumCallouts: 1
+--->

+--->
Frame: 80
Title:
NumCallouts: 1
+--->

+--->
Frame: 81
Title:
NumCallouts: 1
+--->

+--->
Frame: 82
Title:
NumCallouts: 1
+--->
Then we are going to rename the uncompressed source file to include the version number change made in the sbbuider command.
+--->
Frame: 83
Title:
NumCallouts: 1
+--->

+--->
Frame: 84
Title:
NumCallouts: 1
+--->

+--->
Frame: 85
Title:
NumCallouts: 1
+--->

+--->
Frame: 86
Title:
NumCallouts: 1
+--->
We have to do this because sbbuilder is not good with underscores.
+--->
Frame: 87
Title:
NumCallouts: 1
+--->

+--->
Frame: 88
Title:
NumCallouts: 1
+--->

+--->
Frame: 89
Title:
NumCallouts: 1
+--->

+--->
Frame: 90
Title:
NumCallouts: 1
+--->

+--->
Frame: 91
Title:
NumCallouts: 1
+--->

+--->
Frame: 92
Title:
NumCallouts: 1
+--->

+--->
Frame: 93
Title:
NumCallouts: 1
+--->
We then can compress this file, that way everything between the two names will match.
+--->
Frame: 94
Title:
NumCallouts: 1
+--->

+--->
Frame: 95
Title:
NumCallouts: 1
+--->

+--->
Frame: 96
Title:
NumCallouts: 1
+--->

+--->
Frame: 97
Title:
NumCallouts: 1
+--->

+--->
Frame: 98
Title:
NumCallouts: 1
+--->

+--->
Frame: 99
Title:
NumCallouts: 1
+--->

+--->
Frame: 100
Title:
NumCallouts: 1
+--->

+--->
Frame: 101
Title:
NumCallouts: 1
+--->

+--->
Frame: 102
Title:
NumCallouts: 1
+--->

+--->
Frame: 103
Title:
NumCallouts: 1
+--->

+--->
Frame: 104
Title:
NumCallouts: 1
+--->
Now we can take a look at the SlackBuild file generated by sbbuilder.
+--->
Frame: 105
Title:
NumCallouts: 1
+--->

+--->
Frame: 106
Title:
NumCallouts: 1
+--->

+--->
Frame: 107
Title:
NumCallouts: 1
+--->

+--->
Frame: 108
Title:
NumCallouts: 1
+--->

+--->
Frame: 109
Title:
NumCallouts: 1
+--->

+--->
Frame: 110
Title:
NumCallouts: 1
+--->

+--->
Frame: 111
Title:
NumCallouts: 1
+--->
Open the .SlackBuild with your favorite text editor.
+--->
Frame: 112
Title:
NumCallouts: 1
+--->

+--->
Frame: 113
Title:
NumCallouts: 1
+--->

+--->
Frame: 114
Title:
NumCallouts: 1
+--->

+--->
Frame: 115
Title:
NumCallouts: 1
+--->
The only thing to be edited is the information for the slack-desc file.
+--->
Frame: 116
Title:
NumCallouts: 1
+--->
Glean this information from the official web site and the COPYING and AUTHORS files.
+--->
Frame: 117
Title:
NumCallouts: 1
+--->

+--->
Frame: 118
Title:
NumCallouts: 1
+--->

+--->
Frame: 119
Title:
NumCallouts: 1
+--->

+--->
Frame: 120
Title:
NumCallouts: 1
+--->

+--->
Frame: 121
Title:
NumCallouts: 1
+--->

+--->
Frame: 122
Title:
NumCallouts: 1
+--->

+--->
Frame: 123
Title:
NumCallouts: 1
+--->

+--->
Frame: 124
Title:
NumCallouts: 1
+--->
Save your changes.
+--->
Frame: 125
Title:
NumCallouts: 1
+--->

+--->
Frame: 126
Title:
NumCallouts: 1
+--->

+--->
Frame: 127
Title:
NumCallouts: 1
+--->

+--->
Frame: 128
Title:
NumCallouts: 1
+--->
I kind of sneaked this in but, you'll need to remember to copy the OpenJPEG-v1.3.tar.gz file into the 'src' with the SlackBuild.
+--->
Frame: 129
Title:
NumCallouts: 1
+--->

+--->
Frame: 130
Title:
NumCallouts: 1
+--->

+--->
Frame: 131
Title:
NumCallouts: 1
+--->

+--->
Frame: 132
Title:
NumCallouts: 1
+--->

+--->
Frame: 133
Title:
NumCallouts: 1
+--->
The other thing you need to remember to do when making a 'cmake' type build is install the latest version of cmake with gslapt.
+--->
Frame: 134
Title:
NumCallouts: 1
+--->

+--->
Frame: 135
Title:
NumCallouts: 1
+--->

+--->
Frame: 136
Title:
NumCallouts: 1
+--->

+--->
Frame: 137
Title:
NumCallouts: 1
+--->

+--->
Frame: 138
Title:
NumCallouts: 1
+--->

+--->
Frame: 139
Title:
NumCallouts: 1
+--->

+--->
Frame: 140
Title:
NumCallouts: 1
+--->

+--->
Frame: 141
Title:
NumCallouts: 1
+--->

+--->
Frame: 142
Title:
NumCallouts: 1
+--->
Open a terminal in the same directory as the .SlackBuild.
+--->
Frame: 143
Title:
NumCallouts: 1
+--->

+--->
Frame: 144
Title:
NumCallouts: 1
+--->

+--->
Frame: 145
Title:
NumCallouts: 1
+--->

+--->
Frame: 146
Title:
NumCallouts: 1
+--->
Become a super or root user.
+--->
Frame: 147
Title:
NumCallouts: 1
+--->

+--->
Frame: 148
Title:
NumCallouts: 1
+--->
Then start it up with 'sh ./OpenJPEG.SlackBuild'.
+--->
Frame: 149
Title:
NumCallouts: 1
+--->

+--->
Frame: 150
Title:
NumCallouts: 1
+--->

+--->
Frame: 151
Title:
NumCallouts: 1
+--->

+--->
Frame: 152
Title:
NumCallouts: 1
+--->

+--->
Frame: 153
Title:
NumCallouts: 1
+--->

+--->
Frame: 154
Title:
NumCallouts: 1
+--->

+--->
Frame: 155
Title:
NumCallouts: 1
+--->

+--->
Frame: 156
Title:
NumCallouts: 1
+--->

+--->
Frame: 157
Title:
NumCallouts: 1
+--->

+--->
Frame: 158
Title:
NumCallouts: 1
+--->

+--->
Frame: 159
Title:
NumCallouts: 1
+--->

+--->
Frame: 160
Title:
NumCallouts: 1
+--->

+--->
Frame: 161
Title:
NumCallouts: 1
+--->

+--->
Frame: 162
Title:
NumCallouts: 1
+--->

+--->
Frame: 163
Title:
NumCallouts: 1
+--->

+--->
Frame: 164
Title:
NumCallouts: 1
+--->
Remember to install the newly built package so it is there when it is called for as a dependency when building 'mlt'
+--->
Frame: 165
Title:
NumCallouts: 1
+--->

+--->
Frame: 166
Title:
NumCallouts: 1
+--->

+--->
Frame: 167
Title:
NumCallouts: 1
+--->

+--->
Frame: 168
Title:
NumCallouts: 1
+--->
Finished

View Again?
+--->
Return to Opensourcebistro Main                                            Return to packaging Main