Skip to content

Commit

Permalink
bugfix, icons, release script
Browse files Browse the repository at this point in the history
fix_macosx_nativelibs_fkjn.sh need to be used whenever VTK is compiled
(if ever)
  • Loading branch information
frejon committed Sep 8, 2015
1 parent 7f468a8 commit 2da1a61
Show file tree
Hide file tree
Showing 11 changed files with 80 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ src/libovt/libovt-3.0.jnilib_temp

src/libovt/magpackbackup.c
lib/jogl/Archive.zip
dist copy/
dist_static/

lib/vtk copy.jar

Expand All @@ -19,3 +19,4 @@ src/ovt/util/ImageOperations.backupjava
vtkError.txt

nbproject/genfiles.properties

Binary file added 128x128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 256x256.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 64x64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,6 @@ Open Project -> Navigate to OVT


Before release:
fix_macosx_nativelibs_fkjn.sh
make sure VTK compiled in Release version, (ccmake, patch, make)
make sure all (new) natives found (including jogl & gluegen natives e.g. jogl-all-natives-macosx-universal.jar (+win+linux) etc) when releasing
74 changes: 74 additions & 0 deletions fix_macosx_nativelibs_fkjn.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
#!/bin/sh

#otool -L libvtkViewsInfovis-6.2.dylib |grep VTKBuild |awk '{print $1}'
#install_name_tool -change /Users/frejon/OVT/ovt/VTKBuild/lib/libvtkImagingCore-6.2.1.dylib @executable_path/natives/libvtkViewsInfovis-6.2.dylib libvtkViewsInfovis-6.2.dylib


APP_PATH=/Users/frejon/OVT/ovt/dist_static
VTK_BUILD=/Users/frejon/OVT/ovt/VTKBuild/lib
JAVA_PATH=$APP_PATH/shit
FULL_FRMW_PATH=$APP_PATH/natives
RELATIVE_PATH=@executable_path/../java/app/natives



[ ! -d "$VTK_BUILD" ] && echo "VTK_BUILD points to nonexistent $VTK_BUILD" && exit 1
[ ! -d "$APP_PATH" ] && echo "APP_PATH points to nonexistent $APP_PATH" && exit 1

cd $FULL_FRMW_PATH



cd $VTK_BUILD #get all VTK libs
#LIB_LIST=$(ls *.*lib)
dylibjnilib=$(ls *.*lib)
cd $FULL_FRMW_PATH #now in natives folder

#read -p "Press any key to continue... " -n1 -s

for LIB in $dylibjnilib #; do echo $f;done
do


[ ! -e "$VTK_BUILD/$LIB" ] && echo "Cannot find $VTK_BUILD/$LIB" && continue

#read -p "Press any key to continue... " -n1 -s

/bin/echo -n "Processing $LIB... "
cp $VTK_BUILD/$LIB $FULL_FRMW_PATH/
#(cd $FULL_FRMW_PATH && ln -s $LIB_NAME $LIB_NAM1 && ln -s $LIB_NAM1 $LIB_NAM2) #don't know the use of this
#install_name_tool -id @executable_path/$FRAMEWORK_PATH/$LIB_NAM1 $FULL_FRMW_PATH/$LIB_NAME #changes id of file
install_name_tool -id $RELATIVE_PATH/$LIB $LIB #changes id of file in natives folder

#UPD_LIBS=`otool -L $FULL_FRMW_PATH/$LIB_NAME |grep -v "@executable_path" | grep .${VEMA}.dylib | awk '{print $1}'`
UPD_LIBS=`otool -L $LIB |grep VTKBuild |awk '{print $1}'`

for LU in $UPD_LIBS
do
LU_base=$(basename $LU)
install_name_tool -change $LU $RELATIVE_PATH/$LU_base $LIB
done
echo Done.
done

echo "all vtk libs done, check libovt-3.0.jnilib"

read -p "Press any key to continue... " -n1 -s

[ ! -e "$FULL_FRMW_PATH/libovt-3.0.jnilib" ] && echo "Cannot find $FULL_FRMW_PATH/libovt-3.0.jnilib" && exit 1
install_name_tool -id $RELATIVE_PATH/libovt-3.0.jnilib $FULL_FRMW_PATH/libovt-3.0.jnilib #changes id of libovt in natives folder
echo "Done."
#LIB_NAME=${PREF}${LIB}.${VEMA}.${VEMI}.dylib
#LIB_NAM1=${PREF}${LIB}.${VEMA}.dylib
#LIB_NAM2=${PREF}${LIB}.dylib



#/bin/echo -n "Linking JNI libs... "
#for JL in $JAVA_LIBS
#do
# LIB_NAME=${PREF}${JL}Java
# [ -e "$JAVA_PATH/$LIB_NAME.jnilib" ] && rm $JAVA_PATH/$LIB_NAME.jnilib
# ( cd $JAVA_PATH && ln -s ../../Frameworks/VTK.framework/VTK/$LIB_NAME.dylib $LIB_NAME.jnilib )
#done
#echo Done.
Binary file added ovt.ico
Binary file not shown.
3 changes: 2 additions & 1 deletion src/ovt/object/Magnetosphere.java
Original file line number Diff line number Diff line change
Expand Up @@ -592,6 +592,7 @@ public void setColor(Color color) {
actor.GetProperty().SetColor(rgb[0], rgb[1], rgb[2]);
actor.setColor(color);
//mapper.SetColorMode(1);
this.setScalarcolor(false);


}
Expand Down Expand Up @@ -773,7 +774,7 @@ public Color getColor() {
*/
public void setColor(Color color) {
Color oldColor = this.color;
this.setScalarcolor(false);
//this.setScalarcolor(false);
this.color = color;

float[] rgb = ovt.util.Utils.getRGB(getColor());
Expand Down
2 changes: 1 addition & 1 deletion src/ovt/object/MagnetosphereBeanInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ private static PropertyDescriptor[] getPdescriptor(){
properties[PROPERTY_fieldlineRadiusScale] = new PropertyDescriptor ( "fieldlineRadiusScale", ovt.object.Magnetosphere.class, "getFieldlineRadiusScale", "setFieldlineRadiusScale" ); // NOI18N
properties[PROPERTY_visible] = new PropertyDescriptor ( "visible", ovt.object.Magnetosphere.class, "isVisible", "setVisible" ); // NOI18N
properties[PROPERTY_wireframe] = new PropertyDescriptor ( "wireframe", ovt.object.Magnetosphere.class, "isWireframe", "setWireframe" ); // NOI18N
properties[PROPERTY_scalarcolor] = new PropertyDescriptor ( "scalarcolor", ovt.object.Magnetosphere.class, "isScalarColor", "setScalarColor" ); // NOI18N
properties[PROPERTY_scalarcolor] = new PropertyDescriptor ( "scalarcolor", ovt.object.Magnetosphere.class, "isScalarcolor", "setScalarcolor" ); // NOI18N
}
catch(IntrospectionException e) {
e.printStackTrace();
Expand Down

0 comments on commit 2da1a61

Please sign in to comment.