-
Notifications
You must be signed in to change notification settings - Fork 15
How to use NetBeans with Greta
Brice Donval edited this page Jan 13, 2020
·
2 revisions
This page is dedicated to developers to install, compile and make development on Greta Project. NetBeans use many templates to help developers to code easily. But its default managment is to simplistic for the development of Greta. That's why we must take care on some stuff when we create a new NetBeans project in Greta.
Installation:
- Install TortoiseSVN and checkout : https://hotline.isir.upmc.fr/svn/Greta/trunk/
- Install Java 64 bits http://java.com/fr/download/manual.jsp
- Install NetBeans https://netbeans.org/downloads/ version all
- Open
<GRETA_DIR>/bin/Player/Lib/External/Win64/Plugins_DX9.cfg
and<GRETA_DIR>/bin/Player/Lib/External/Win64/Plugins_OpenGL.cfg
- Change "PluginFolder" value to absolute path
- Open NetBeans and right click on project space (left of NetBeans window)
- Select Project Group/New Group and choose the name that you want to give to your project
- Select Folder of Projects and browse in the directory (previously get from SVN) /trunk/VIB
- Compile the project All_Javadoc by clicking right on it
- Do the same for compiling Modular
Make this step only once.
- In the NetBeans menu, choose "Tools" -> "Templates" to open the template manager
- Clic on "Settings" button. It opens the
User.properties
file. - Add the line with you name using the correct case
user=Firstname Lastname
Make this step only once.
- In the NetBeans menu, choose "Tools" -> "Templates" to open the template manager
- select the "Licenses" folder and clic on "Add..." button
- choose the file
<GRETA_DIR>/license-greta.txt
- select the "Licenses" folder and clic on "Add..." button
- choose the file
<GRETA_DIR>/license-greta-auxiliary.txt
- create a new project with NetBeans, and choose "Java Class Library" then choose a good name and path
- edit the file
<myProject>/build.xml
:
insert (and check relative path !) :<import file="../../nbbuild.xml"/>
/!\ it must be added before the line :<import file="nbproject/build-impl.xml"/>
- edit the file
<myProject>/nbproject/project.properties
:
add lines :
compile.on.save=true
project.license=greta
- change the values (and check relative path!):
application.vendor=Catherine Pelachaud
dist.dir=../../bin/Common/Lib/Internal
javac.source=1.8
javac.target=1.8
- first: because it's Catherine's. second : set the final destination of the jar
if your version of NetBeans is lower than 7.x, you must add the line :mkdist.disabled=true
- 4. save the two files
- 5. shut down NetBeans and restart it
(it's almost the same)
- create a new project with NetBeans, and choose "Java Application" then choose a good name and path
- edit the file
<myProject>/build.xml
:
insert (and check relative path !) :<import file="../../nbbuild.xml"/>
/!\ it must be added before the line :<import file="nbproject/build-impl.xml"/>
- edit the file
<myProject>/nbproject/project.properties
:
add lines :
compile.on.save=true
work.dir=../../bin
project.license=greta
application.vendor=Catherine Pelachaud
dist.dir=../../bin
javac.source=1.8
javac.target=1.8
- first: because it's Catherine's. second : set the final destination of the jar
- 4. save the two files
- 5. shut down NetBeans and restart it
- right clic on the project name in NetBeans and select "Properties"
- on the pop up window, choose "Libraries"
- choose the "Compile" tab if it is not already the case
- to add an existing Greta projet :
- to add an external jar :
- make sure that this one is in
<GRETA_DIR>/bin/Common/Lib/External/
folder - clic on "Add JAR/Folder" button
- choose the good one (in the good folder)
- before validating you choice, select "Relative Path"
- make sure that this one is in
Advanced
- Generating New Facial expressions
- Generating New Gestures
- Generating new Hand configurations
- Torso Editor Interface
- Creating an Instance for Interaction
- Create a new virtual character
- Creating a Greta Module in Java
- Modular Application
- Basic Configuration
- Signal
- Feedbacks
- From text to FML
- Expressivity Parameters
- Text-to-speech, TTS
-
AUs from external sources
-
Large language model (LLM)
-
Automatic speech recognition (ASR)
-
Extentions
-
Integration examples
Nothing to show here