Compile Liferay under os x 10.6 - macos

Hi i'm trying to build Liferay from source, i've downloaded liferay-portal-src-5.2.3.zip but when i go in and press "ant start" i got 3 errors:
SampleSQLBuilder.java:139: cannot find symbol > _counter = new SimpleCounter(counterOffset);
EditServerAction.java:401: cannot find symbol > Log4JUtil.setLevel(loggerName, priority);
EditUserPortraitAction.java:102: cannot find symbol > PortletRequestUtil.testMultipartWithCommonsFileUpload
I've tried switching compiler using build.properties but nothing seems to work. Can you help me ?

I've solved the problem. I had some conflicts in my classpath. I've cleaned /System/Library/Java/Extension and /Library/Java/Extensions and everything goes right!

Related

Unresolved reference 'DeserializeFromUInt16' using ANTLR for Go

I'm creating a grammar to run a console application, using VSCode or IntelliJ extensions everything seems fine with my .g4 grammar file. But when I execute the command to get the antlr/parser folder:
antlr4 -Dlanguage=Go -o parser items.g4
I get the following errors from the items_lexer.go and items_parser.go files:
Unresolved reference 'DeserializeFromUInt16'
Unresolved reference 'DecisionToState'
Unresolved reference 'DecisionToState'
The first one appears in the following line:
var lexerAtn = lexerDeserializer.DeserializeFromUInt16(serializedLexerAtn)
Which uses the var: lexerDeserializer declared in the previous line:
var lexerDeserializer = antlr.NewATNDeserializer(nil)
And here is the origin of the problem, directly from antlr lib for some reason the DeserializeFromUInt16 func is not founded. I already tried using another grammar. Im using ANTRL 4.7.2, and I made sure to had a jdk installed, the go get github.com/antlr/antlr4/runtime/Go/antlr, and the .jar folder in my project.
I would appreciate any kind of suggestions about how can I free my files from errors.

IntelliJ IDEA "Cannot find 'require'"

When using the Ruby plug-in with IntelliJ, what "undefined reference" warnings should I expect/tolerate, and which indicate that I don't have something configured correctly?
For example, I am getting "Cannot find" warnings for 'require', 'File', and 'FileUtils'. I suspect that this indicates a configuration problem.
I am also getting warnings for RSpec methods like 'describe', 'before', 'after, and 'it'. Should I also be able to configure IntelliJ to "find" these?
You need to select the Ruby SDK in the Project Strucure (Ctrl + Alt + Shift + S by default).
Unfortunately it does not solve the warnings for rspec related words.
File > Project Structure > Project > Select Ruby SDK

Please solve appcompat_v7 error

My Android Support Library is properly installed by SDK Manager.
Using this link I doing this procedure.
Selecting Adding Library with recources - Using Eclipse > doing these procedure.
After I finish, created "android-support-v7-appcompat" file in Eclipse.
android-support-v7-appcompat > res > values-v21 > styles_base.xml >
<style name="Base.Widget.AppCompat.ActionButton"
parent="android:Widget.Material.ActionButton">
</style>
this line creating with error. How I can fix this problem?
I read some question about appcompat_v7 error but I can not fix it yet.
Please tell me effective way to solve it forever.
You need to remove the android-v4 jar file under the libs folder,and add it from the android-support-v7-appcompat libs folder. I had this problem before,and I found it so annoying!
If in console the error is
Error retrieving parent for item: No resource found that matches the
given name 'android:Widget.Material.ActionButton'
, on android-support-v7-appcompat library project choose Properties/Android/Project Build Target and set checkbox on Android 5.0 to solve.

Compile iReport 4.0.2 from sources with NetBeans 6.5.1 java.io.IOException

I am trying to compile iReport 4.0.2 with NetBeans 6.5.1. On the iReport forums it says that this is the NetBeans platform to which it is compatible.
However, I get this error when compiling the project:
C:\Program Files\NetBeans 6.5.1\harness\suite.xml:106: The following
error occurred while executing this line:
C:\Program Files\NetBeans
6.5.1\harness\build.xml:98: java.io.IOException: No definition of netbeans.dest.dir in
V:\iReport-4.0.2-src\iReport-4.0.2-src\jasperreports-components
This is the line 106 in suite.xml
<subant target="netbeans" buildpath="${modules.sorted}" inheritrefs="false" inheritall="false"/>
This is the line 98 in build.xml:
>
... it is basically closing an xml start tag (parseprojectxml) - this is the context of the line (the single angle bracket):
<parseprojectxml
project="."
publicpackagesproperty="public.packages"
friendsproperty="friends"
javadocpackagesproperty="module.javadoc.packages"
moduledependenciesproperty="module.dependencies"
moduleclasspathproperty="module.classpath"
publicpackagejardir="${public.package.jar.dir}"
modulerunclasspathproperty="module.run.classpath"
classpathextensionsproperty="class.path.extensions"
>
<testtype name="unit"
folder="test.unit.folder"
runtimecp="test.unit.runtime.cp"
compilecp="test.unit.compile.cp"
compiledep="test.unit.testdep"/>
<testtype name="qa-functional"
folder="test.qa-functional.folder"
runtimecp="test.qa-functional.runtime.cp"
compilecp="test.qa-functional.compile.cp"
compiledep="test.qa-functional.testdep"/>
</parseprojectxml>
I also faced the above problem in iReports trunk version (> 4.6.0). After marking off read only mode (which the solution of previous answer do), you might need to add
<nbmproject2:property name="netbeans.dest.dir" value="nbplatform.${nbplatform.active}.netbeans.dest.dir" xmlns:nbmproject2="http://www.netbeans.org/ns/nb-module-project/2"/>
in jasperreports-extensions and MongoDbPlugin.
Gaurav J
The problem was somehow solved by opening each module in NetBeans IDE, then opening the properties dialog and clicking OK for each module. I restarted the IDE and then I managed to run the project.
If someone can exaplain what caused the problem and why my actions managed to solve it... I would like to have an explanation for this behavior.
Thank you!
I can compile ireport with NetBeans success.I think you must modify file with name "platform-private.properties"

Problem in compiling in release mode --VC++

I am compiling my project in the release mode in VC++.
I have a .def file where i have declared the setLog and now i
am getting following error
Linking...
Creating library Release/HKL.lib and object Release/HKL.exp
HKL_libinterface.obj : error LNK2001: unresolved external symbol _SCTP_setLog#8
Please help me on the above to fix the problem.
Thanks
It sounds to me like you have a lib file configured in your debug build that is not in the release build. Your setLog() function does not seem to be the function the linker is complaining about - it sounds like it's not finding a function called SCTP_setLog().
Look in the list of libraries you have configured in your project's debug configuration and make sure they are also configured in the release configuration.
If this compiles in Debug mode the most possible reason is that somehow the code where this function is implemented is not included into build - for example, the cpp file where it is implemented has "Excluded from build" set.
As sharptooth mentioned, you most likely are not compiling the above function in your release build. In addition to looking for 'Excluded from build', check if you have any defines set (or not set) that would exclude the missing function from your release build.

Resources