LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-22-2014, 04:50 AM   #1
tonj
Member
 
Registered: Sep 2008
Posts: 546

Rep: Reputation: 37
opencv make does not create jar file


I'm running fedora 20 64 bit and trying to follow the instructions here: https://www.openshift.com/blogs/day-...ava-developers
I untar opencv-2.4.7.tar.gz and run the commands and all run fine without errors, but at the end of it all I do not get the opencv-247.jar file in the opencv-2.4.7/build/bin directory as the doc says. The best I could find on google about this was that 'some dependencies are probably missing' but I don't know what dependencies these are. Before starting on opencv I've tried these steps:
yum-builddep java-1.8.0-openjdk.x86_64
yum-builddep openvcv
yum install java-1.8.0-openjdk.x86_64 java-1.8.0-openjdk-devel.x86_64
the above commands install loads of stuff but still opencv does not create a jar file. I'm stumped here, can anyone help?
I also posted this query on the opencv forum but the help there is a bit thin so I'm trying here as well.

Last edited by tonj; 04-22-2014 at 04:51 AM.
 
Old 04-22-2014, 08:02 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
What does the "java section" in your configuring say ?
( Configuring = $ cmake -G "Unix Makefiles" -D CMAKE_CXX_COMPILER=/usr/bin/g++ -D CMAKE_C_COMPILER=/usr/bin/gcc -D WITH_CUDA=ON ../ ).
Code:
--   Java:
--     ant:                         /usr/bin/ant (ver 1.9.3)
--     JNI:                         /usr/lib/jvm/java/include /usr/lib/jvm/java/include/linux /usr/lib/jvm/java/include
--     Java tests:                  YES
? Is ant present ?
# yum install ant


* I made a test build with the "java modules".
I.e. can be be done before you build the other OpenCV files :
$ cd opencv-2.4.8/build/modules/java/ && make
... and `opencv-248.jarī appeared in "opencv-2.4.8/build/bin/".

-
 
Old 04-22-2014, 10:47 AM   #3
tonj
Member
 
Registered: Sep 2008
Posts: 546

Original Poster
Rep: Reputation: 37
yes thankyou for your help knudfl, yum install ant did it.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Error after make command to creat obj file s.arzandeh Linux - Newbie 11 07-19-2013 02:48 AM
How to make executetable jar file? if not setting the classpath? antony_csf General 1 07-01-2004 03:11 AM
How to make executetable jar file? antony_csf Programming 2 06-28-2004 07:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration