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

Error when compiling openjpeg_v1_4_sources_r697 #79

Closed
gcode-importer opened this issue Aug 10, 2011 · 11 comments
Closed

Error when compiling openjpeg_v1_4_sources_r697 #79

gcode-importer opened this issue Aug 10, 2011 · 11 comments

Comments

@gcode-importer
Copy link

Originally reported on Google Code with ID 79

What steps will reproduce the problem?
1.when issuing the command 'make' will produce an error
What do you see instead?
fatal error: openjpeg.h: no such file or directory

What version of the product are you using? On what operating system?
openjpeg_v1_4_sources_r697 on Windows Xp


Reported by sreemnpy on 2011-08-10 09:30:47

@gcode-importer
Copy link
Author

can you check out the openjpeg-1.5 branch and see if the error is still there ?

Reported by vincent.torri on 2011-08-11 23:02:33

@gcode-importer
Copy link
Author

Thanks for the comment.
I checked out the openjpeg-1.5 branch. In openjpeg_v1_4_sources_r697 some files are
missing and i added up that missing files from openjpeg-1.5. Now there is no error
displaying until '../configure' command But after issuing 'make' command it shows like

"make[3]:Entering directory /c/openjpeg/build/applications/codec
Makefile:1086:***Missing seperator. Stop
make[3]:Leaving directory /c/openjpeg/build/applications/codec"

Kindly comment the solution....
Thanks and Regards
Sreerag R

Reported by sreemnpy on 2011-08-12 07:10:53

@gcode-importer
Copy link
Author

Which compiler system do you use?
cygwin? mingw? Any other?

winfried

Reported by szukw000 on 2011-08-12 14:32:35

@gcode-importer
Copy link
Author

Iam using mingw compiler...

Reported by sreemnpy on 2011-08-12 16:36:10

@gcode-importer
Copy link
Author

'Missing separator' means: there should be a HTAB, instead of a SPACE.
A first workaround is:

Open applications/codec/Makefile
Goto line 1086
Replace the SPACE(s) with a HTAB
Close the Makefile
Continue with 'make'.

Using the editor 'vim':

vim +1086 applications/codec/Makefile

What do you see in line 1086 in that Makefile?
My LINUX Makefile shows in line 1085/1086:

install-data-hook:# line 1085
    @echo -e " (B)\t$(bindir)/j2k_to_image$(EXEEXT)" >> $(top_builddir)/report.txt

winfried

Reported by szukw000 on 2011-08-13 01:21:53

@gcode-importer
Copy link
Author

I have tested it on WindowsXP and MinGW with OpenJPEG-1.5.0-revision-863.

Line 1086 in the resp. Makefile is the first line after 'install-data-hook:'.

There is a HTAB, no SPACE.

winfried

Reported by szukw000 on 2011-08-13 06:09:26

@gcode-importer
Copy link
Author

@Sreerag : I'm using MSYS + MinGW without such error with openjpeg 1.4 (the released
version) or openjpeg 1.5 (the branch)

1) you said : "In openjpeg_v1_4_sources_r697 some files are missing and i added up
that missing files from openjpeg-1.5". Does it mean you added the "missing" files (btw,
i'm sure that in the 1.4 release, there is no missing file) taken from the openjpeg
1.5 branch to the 1.4 version, and compiled the 1.4 version ? If yes, don't do that.

2) check out the 1.5 branch and give the command you did to configure and compile the
project

Vincent Torri

Reported by vincent.torri on 2011-08-15 06:03:16

@gcode-importer
Copy link
Author

Hi,
I checked out the 1.5 branch and i solved the 'missing separator problem' But now i
am getting some errors with a particular file(convert.c in codec folder). I am attaching
that error's screenshot. kindly check it and reply me...

Thanks and Regards
Sreerag

Reported by sreemnpy on 2011-08-18 06:55:22


- _Attachment: [error_openjpeg.JPG](https://storage.googleapis.com/google-code-attachments/openjpeg/issue-79/comment-9/error_openjpeg.JPG)_

@gcode-importer
Copy link
Author

There is something weird.

convert.c includes openjpeg.h line 48 :

http://code.google.com/p/openjpeg/source/browse/branches/openjpeg-1.5/applications/codec/convert.c#48

openjpeg.h defines opj_bool line 63 :

http://code.google.com/p/openjpeg/source/browse/branches/openjpeg-1.5/libopenjpeg/openjpeg.h#63

in convert.c, convert.h is included *after* openjpeg.h, line 49 (see the first link).

So check that it's the same for you.

Reported by vincent.torri on 2011-09-10 06:08:34

@gcode-importer
Copy link
Author

Is the issue still there in branch 1.5 ? Thanks

Reported by malaterre on 2012-05-21 14:12:57

@gcode-importer
Copy link
Author

Closing since no news.

Reported by malaterre on 2012-05-29 12:51:07

  • Status changed: Invalid

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants