Re: [blfs-support] portmidi on blfs javac problem

2014-04-25 Thread lux-integ
On Friday 25 April 2014 00:43:27 Bruce Dubbs wrote:

 
 linux-3.10.37?  Typo?  3.10.7?
 
  It uses cmake and reaches 93 percent and ends with this
  #---
  javac : file not found pmdefaults/PmDefaults.java
  #---
 
 I think you need to set CLASSPATH
I did (but forgot to mention )  I did  this
export CLASSPATH=/opt/jdk/bin:$CLASSPATH
but the problem persisted

I wondered if this line 

  javac : file not found pmdefaults/PmDefaults.java
was telling us something. as  pmdefaults is  a subdirectory of pm_java in 
the source tree and the top CMakeLists.txt has this line
include_directories(pm_common  porttime )
I.E.  no pm_java.

  I thought eureka so I amended this line to read

include_directories(pm_common  porttime pm_java )
( the build still failed at 93% with the same error


I thought I am using out-of-source-tree-build so I will set full path so the 
line becomes
include_directories(${CMAKE_SOURCE_DIR}/{pm_common,porttime,pm_java} )
-same outcome
I m stumped




-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] portmidi on blfs javac problem

2014-04-25 Thread lux-integ
On Friday 25 April 2014 13:05:59 lux-integ wrote:
 I thought I am using out-of-source-tree-build so I will set full path so
 the  line becomes
 include_directories(${CMAKE_SOURCE_DIR}/{pm_common,porttime,pm_java} )
 -same outcome
 I m stumped

UPDATE
If one edits  pm_java/CMakeLists.txt
change 
pmdefaults/PmDefaults.java
to
${CMAKE_SOURCE_DIR}/pm_java/pmdefaults/PmDefaults.java


the build now reports

[ 93%] Generating pmdefaults/PmDefaults.class
cd /home/linteg/build-portmidiSVN080114_rv228/pm_java  javac -classpath . 
/home/linteg/portmidiSVN080114_rv228/pm_java/pmdefaults/PmDefaults.java
/home/linteg/portmidiSVN080114_rv228/pm_java/pmdefaults/PmDefaults.java:8: 
error: cannot find symbol
new PmDefaultsFrame(PortMIDI Setup);
^
  symbol:   class PmDefaultsFrame
  location: class PmDefaults
1 error
make[2]: *** [pm_java/pmdefaults/PmDefaults.class] Error 1

( it gives the same error with suns jdk as well as openjdk )

( which I interpret as progress )

However to make progress
advice will be appreciated
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


[blfs-support] portmidi on blfs javac problem

2014-04-24 Thread lux-integ
Greetings,

I am trying to build portmidi  
( http://portmedia.sourceforge.net/portmidi/ )
on a machine with these:-
--os BLFS linux-3.10.37, openjdk-1.7
--cpu amd64 gcc-4.8.1


It uses cmake and reaches 93 percent and ends with this
#---
javac : file not found pmdefaults/PmDefaults.java
#---


It is not a PATH issue the problem persists if I do
export PATH=$JAVA_HOME/bin:$PATH

And  if I test  with 'bash javac' and 'which javac'  this results:-

linteg [ ~ ]# bash javac
/opt/jdk/bin/javac: /opt/jdk/bin/javac: cannot execute binary file
linteg [ ~ ]# which  javac
/opt/jdk/bin/javac
linteg [ ~ ]# 


I am unsure if /opt/jdk/bin/javac: cannot execute binary file
means there is a file permissions problem.

Advce would be appreciated.

sincerely
luxInteg
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page