Unresolved symbols while building QGIS - qgis

I've been able to get ahead from this step: Building QGIS source code on Windows 7 - Not working
I'm trying to build the latest QGIS(2.10.1) using Visual Studio 10 Express but getting these unresolved symbols while building "ALL BUILD".
In the Cmake-gui I can see these variables as undefined: QWTPOLAR_INCLUDE_DIR and QWTPOLAR_LIBRARY.
Build configuration is set to Release.
I remember while building the solution itself it showed a couple failures.
All the unresolved symbols start with Qwt in "ALL BUILD" for example:
Creating library d:/build/src/gui/Release/qgis_gui.lib and object d:/build/src/gui/Release/qgis_gui.exp
81>qgsrasterhistogramwidget.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall QwtPlot::print(class QPainter *,class QRect const &,class QwtPlotPrintFilter const &)const " (?print#QwtPlot##UBEXPAVQPainter##ABVQRect##ABVQwtPlotPrintFilter###Z)
81>qgshistogramwidget.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall QwtPlot::print(class QPainter *,class QRect const &,class QwtPlotPrintFilter const &)const " (?print#QwtPlot##UBEXPAVQPainter##ABVQRect##ABVQwtPlotPrintFilter###Z)
81>qgsrasterhistogramwidget.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall QwtPlot::polish(void)" (?polish#QwtPlot##UAEXXZ)
81>qgshistogramwidget.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall QwtPlot::polish(void)" (?polish#QwtPlot##UAEXXZ)
81>qgsrasterhistogramwidget.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall QwtPlot::clear(void)" (?clear#QwtPlot##UAEXXZ)
81>qgshistogramwidget.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall QwtPlot::clear(void)" (?clear#QwtPlot##UAEXXZ)
81>qgsrasterhistogramwidget.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall QwtPlot::drawItems(class QPainter *,class QRect const &,class QwtScaleMap const * const,class QwtPlotPrintFilter const &)const " (?drawItems#QwtPlot##MBEXPAVQPainter##ABVQRect##QBVQwtScaleMap##ABVQwtPlotPrintFilter###Z)
81>qgshistogramwidget.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall QwtPlot::drawItems(class QPainter *,class QRect const &,class QwtScaleMap const * const,class QwtPlotPrintFilter const &)const " (?drawItems#QwtPlot##MBEXPAVQPainter##ABVQRect##QBVQwtScaleMap##ABVQwtPlotPrintFilter###Z)
81>qgsrasterhistogramwidget.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall QwtPlot::printLegendItem(class QPainter *,class QWidget const *,class QRect const &)const " (?printLegendItem#QwtPlot##MBEXPAVQPainter##PBVQWidget##ABVQRect###Z)
81>qgshistogramwidget.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall QwtPlot::printLegendItem(class QPainter *,class QWidget const *,class QRect const &)const " (?printLegendItem#QwtPlot##MBEXPAVQPainter##PBVQWidget##ABVQRect###Z)
81>qgsrasterhistogramwidget.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall QwtPlot::printTitle(class QPainter *,class QRect const &)const " (?printTitle#QwtPlot##MBEXPAVQPainter##ABVQRect###Z)
81>qgshistogramwidget.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall QwtPlot::printTitle(class QPainter *,class QRect const &)const " (?printTitle#QwtPlot##MBEXPAVQPainter##ABVQRect###Z)
81>qgsrasterhistogramwidget.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall QwtPlot::printScale(class QPainter *,int,int,int,int,class QRect const &)const " (?printScale#QwtPlot##MBEXPAVQPainter##HHHHABVQRect###Z)
81>qgshistogramwidget.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall QwtPlot::printScale(class QPainter *,int,int,int,int,class QRect const &)const " (?printScale#QwtPlot##MBEXPAVQPainter##HHHHABVQRect###Z)
81>qgsrasterhistogramwidget.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall QwtPlot::printCanvas(class QPainter *,class QRect const &,class QRect const &,class QwtScaleMap const * const,class QwtPlotPrintFilter const &)const " (?printCanvas#QwtPlot##MBEXPAVQPainter##ABVQRect##1QBVQwtScaleMap##ABVQwtPlotPrintFilter###Z)
81>qgshistogramwidget.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall QwtPlot::printCanvas(class QPainter *,class QRect const &,class QRect const &,class QwtScaleMap const * const,class QwtPlotPrintFilter const &)const " (?printCanvas#QwtPlot##MBEXPAVQPainter##ABVQRect##1QBVQwtScaleMap##ABVQwtPlotPrintFilter###Z)
81>qgsrasterhistogramwidget.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall QwtPlot::printLegend(class QPainter *,class QRec
What could be causing it?

Related

firebase_auth #nonnull error cannot find symbol

I'm getting this error with flutter and firebase_auth plugin for flutter
C:\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_auth-0.6.2+1\android\src\main\java\io\flutter\plugins\firebaseauth\FirebaseAuthPlugin.java:576: error: cannot find symbol
public void onComplete(#NonNull Task<ProviderQueryResult> task) {
^
symbol: class NonNull
location: class FirebaseAuthPlugin.ProvidersCompleteListener
C:\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_auth-0.6.2+1\android\src\main\java\io\flutter\plugins\firebaseauth\FirebaseAuthPlugin.java:175: error: cannot find symbol
public void onComplete(#NonNull Task<AuthResult> task) {
^
symbol: class NonNull
C:\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_auth-0.6.2+1\android\src\main\java\io\flutter\plugins\firebaseauth\FirebaseAuthPlugin.java:270: error: cannot find symbol
public void onAuthStateChanged(#NonNull FirebaseAuth firebaseAuth) {
^
symbol: class NonNull
C:\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_auth-0.6.2+1\android\src\main\java\io\flutter\plugins\firebaseauth\FirebaseAuthPlugin.java:435: error: cannot find symbol
public void onComplete(#NonNull Task<GetTokenResult> task) {
^
symbol: class NonNull
C:\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_auth-0.6.2+1\android\src\main\java\io\flutter\plugins\firebaseauth\FirebaseAuthPlugin.java:487: error: cannot find symbol
public void onAuthStateChanged(#NonNull FirebaseAuth firebaseAuth) {
^
symbol: class NonNull
Note: C:\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_auth-0.6.2+1\android\src\main\java\io\flutter\plugins\firebaseauth\FirebaseAuthPlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
8 errors
FAILURE: Build failed with an exception.
Is this a version problem? or what could it be

How to resolve this error on java with selenium?

//Eclipse java code:
package openbrowser;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
public class OpenChrome {
public static void main(String[] args) {
// TODO Auto-generated method stub
System.setProperty("webdriver.chrome.driver", "d://chromedriver.exe");
WebDriver driver=new ChromeDriver();
}
}
eclipse error
Error occurred during initialization of boot layer
java.lang.module.FindException: Unable to derive module descriptor for C:\Users\Om Murugaa\Downloads\Testing\selenium-server-standalone-3.141.59.jar
Caused by: java.lang.module.InvalidModuleDescriptorException: Provider class org.eclipse.jetty.http.Http1FieldPreEncoder not in module
Adding maven into eclipse resolved this error.

Getting 'the type or namespace name' trying to DllImport in Unity3d

Error
Assets/Scripts/osx.cs(4,16): error CS0246: The type or namespace name `CoreGraphics' could not be found. Are you missing an assembly reference?
My code:
[DllImport ("/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics")]
static extern CoreGraphics.CGSize CGDisplayScreenSize (uint display);
How to I access external libs from Unity3d? Specifically CoreGraphics for CGDisplayScreenSize.
Define the ObjC return type, CoreGraphics.CGSize in terms a C# type and you will be fine.
[Serializable]
public struct MyCGSize
{
public nfloat width;
public nfloat height;
}
[DllImport("/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics")]
static extern MyCGSize CGDisplayScreenSize(uint display);

eclipse jena and tomcat query

import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.hp.hpl.jena.ontology.OntModel;
import com.hp.hpl.jena.rdf.model.*;
import com.hp.hpl.jena.rdf.model.ModelFactory;
import com.hp.hpl.jena.util.FileManager;
import com.hp.hpl.jena.sparql.*;
import java.io.InputStream;
import com.hp.hpl.jena.query.*;
import com.hp.hpl.jena.util.FileManager;
import com.hp.hpl.jena.ontology.*;
/**
* Servlet implementation class rdf
*/
public class rdf extends HttpServlet {
private static final long serialVersionUID = 1L;
/**
* #see HttpServlet#HttpServlet()
*/
public rdf() {
super();
// TODO Auto-generated constructor stub
}
/**
* #see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
*/
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
// TODO Auto-generated method stub
}
/**
* #see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
*/
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
// TODO Auto-generated method stub
String inputFileName = "/home/jarboox/Documentos/Eclipse/workspace/Sparql/src/tres.rdf";
try {
//create the reasoning model using the base
OntModel inf = ModelFactory.createOntologyModel();
// use the FileManager to find the input file
InputStream in = FileManager.get().open(inputFileName);
if (in == null) {
throw new IllegalArgumentException("File: " + inputFileName + " not found");
}
inf.read(in, "");
} catch (Exception e) {
System.out.println(e.getMessage());
}
}
}
Tomcat problem:
type Informe de Excepción
mensaje La ejecución del Servlet lanzó una excepción
descripción El servidor encontró un error interno que hizo que no
pudiera rellenar este requerimiento.
excepción
javax.servlet.ServletException: La ejecución del Servlet lanzó una
excepción causa raíz
java.lang.NoClassDefFoundError: com/hp/hpl/jena/rdf/model/ModelFactory
rdf.doPost(rdf.java:55)
javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717) causa
raíz
java.lang.ClassNotFoundException:
com.hp.hpl.jena.rdf.model.ModelFactory
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
rdf.doPost(rdf.java:55)
javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717) nota La
traza completa de la causa de este error se encuentra en los archivos
de diario de Apache Tomcat/6.0.36.
java.lang.NoClassDefFoundError: com/hp/hpl/jena/rdf/model/ModelFactory
rdf.doPost(rdf.java:55)
The jena jars are not on the runtime class path of the webapp.

build.xml throws annotation error

I am new to ANT and JUnit. As per the requirement i created 'JUnitTestCase' in Eclipse and call the requested test classes as per proper annotation.
While running the 'build.xml' file through 'Ant Build', it throws error as:
D:\ecllipse\eclipse\JunitTestProject>ant compile
Buildfile: D:\ecllipse\eclipse\JunitTestProject\build.xml
setClassPath:
init:
clean:
compile:
[echo] making directory...
[echo] classpath------:
[echo] compiling...
[javac] Compiling 4 source files to D:\ecllipse\eclipse\JunitTestProject\build
[javac] D:\ecllipse\eclipse\JunitTestProject\src\jnuittestPckg\HelloWorldTest.java:3: package org.junit does not exist
[javac] import org.junit.After;
[javac] ^
[javac] D:\ecllipse\eclipse\JunitTestProject\src\jnuittestPckg\HelloWorldTes
t.java:4: package org.junit does not exist
[javac] import org.junit.Before;
[javac] ^
While looking back to JUnitTEstCase, i have imported the annotations like (import org.junit.After;import org.junit.Before and import org.junit.Test;). I, also, set build path for 'junit.jar'. I tried lot but couldn't figure it out. i am also attaching JUnitTest project as:
package jnuittestPckg;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
public class HelloWorldTest {
private HelloWorld hlwrd;
#Before
public void setUp() throws Exception {
hlwrd = new HelloWorld();
System.out.println("I am in Before");
}
#After
public void tearDown() throws Exception {
System.out.println("I am in After");
}
#Test
public void testClass1() {
hlwrd.Class1(null);
}
#Test
public void testClass2() {
hlwrd.Class2(null);
}
}
Please help me out.
You test.classpath property does not include the junit.jar.
Add it to the classpath and this issue will be resolved.