compilation

Qt Subclassing and “No matching function for call to connect”

时光总嘲笑我的痴心妄想 提交于 2019-12-07 14:34:11
问题 I am trying to encapsulate table view behavior and am starting with connecting table view header signals to table view slots defined in the subclass. I can get the behavior I'm looking for without subclassing, but that defeats the purpose. When I do try to subclass, I get the dreaded "No matching function call to connect. All components are ultimately QObjects, so I don't think that's the problem. (But, then again, maybe that IS the problem.) Right now I'm connecting to 'hideColumn()', but I

Avoid linking and compiling in Make if not needed

独自空忆成欢 提交于 2019-12-07 14:28:33
问题 As a follow-up question from here: My Makefile will do the linking, even if nothing is changed in the code. Why? How can I avoid that behaviour, so that make won't do anything if the code has not changed? OBJS = main_no_mkl.o SOURCE = main_no_mkl.cpp HEADER = IO.h OUT = test CXX = ../../mpich-install/bin/mpic++ CXXFLAGS = -I../../intel/mkl/include -Wl,--start-group -Wl,--end-group -lpthread -lm -ldl -Wall LDFLAGS = ../../intel/mkl/lib/intel64/libmkl_scalapack_lp64.a -Wl,--start-group ../..

Unable to compile QGIS 3.2 on xenial; Python3 errors in PyQt5 (undefined symbol: PySlice_AdjustIndices)

左心房为你撑大大i 提交于 2019-12-07 13:36:29
When trying to compile the latest version of QGIS ( https://github.com/qgis/QGIS ) I end up with the folowing erros on cmake-gui: Traceback (most recent call last): File "/opt/QGIS/cmake/FindPyQt5.py", line 34, in <module> import PyQt5.pyqtconfig ImportError: No module named 'PyQt5.pyqtconfig' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/opt/QGIS/cmake/FindPyQt5.py", line 37, in <module> import PyQt5.QtCore ImportError: /usr/local/lib/python3.5/dist-packages/PyQt5/QtCore.so: undefined symbol: PySlice_AdjustIndices Found SIP

How to load accessory files in compiled code, Chicken Scheme

半城伤御伤魂 提交于 2019-12-07 13:30:49
问题 I'm currently working on a set of utilities, written in Chicken Scheme, and this is the first time I've tried writing a multi-file based program (or set of programs) in Chicken Scheme, and I'm having some trouble figuring out how to utilize code defined in accessory files correctly so that when you compile everything, the code defined in file A will be accessible to the compiled form of file B . I essentially need Chicken Scheme's equivalent to the following C code: #include "my_helper_lib.h"

Maven - Pull code from SVN

我的未来我决定 提交于 2019-12-07 10:47:06
问题 I am migrating J2ee Project from Ant to Maven, One of The ant tasks is to pull existing source from SVN Repository Compile it, and add its jar to my current build as Jar Is it possible to do the get the source and compile it in Maven? Thank you! <target name="checkoutBuild" description="Pulls code from SVN into the build directory"> <exec executable="svn"> <arg line="co ${svn.projecturl} ${project.build.root} -r ${svn.revision} --username ${svn.username} --password ${svn.password}"/> </exec>

How to check that a method always returns a value

和自甴很熟 提交于 2019-12-07 10:13:02
问题 I wrote a compiler which is already working decently. It checks that all non-void methods do have at least one return statement, but it does not check whether all code paths within a non-void method return a value. So, for example, if I have the following code: int function(bool a) { if(a){ return 5; } } It will compile "fine" and if a is false, control will drop off the function and keep executing whatever is defined under the function. Is there some algorithm I can use to perform this check

Implementing function calls for 8051

不问归期 提交于 2019-12-07 10:10:51
问题 Say you have an 8051 microcontroller with no external RAM. Internal RAM is 128 bytes, and you have around 80 bytes available. And you want to write a compiler for a stack language. Say you want to compile an RPN expression 2 3 + . 8051 has native push and pop instructions, so you can write push #2 push #3 Then you can implement + as: pop A ; pop 2 into register A pop B ; pop 3 into register B add A, B ; A = A + B push A ; push the result on the stack Simple, right? But in this case + is

How to compile AndroidAnnotations with Google Android Gradle Plugin?

烈酒焚心 提交于 2019-12-07 09:30:53
问题 I compile a android project with google android gradle plugin and android annotations, It seems that the java compile source code before android annotations generate some source files. What's wrong with this? Thanks! I compile: git clone git@github.com:sinojelly/androidannotations-dagger-example.git -b google-android-gradle-plugin The build.gradle is: buildscript { repositories { mavenLocal() mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:0.4.2' classpath 'com

Building Symbols for NDK project takes too long in Android Studio

好久不见. 提交于 2019-12-07 09:30:37
问题 I am working on an Android Project which makes use of the NDK and binds the rather large Boost C++ library. Upon every startup of Android Studio, the IDE takes a rather long time of about 1 hour (more or less, on an i7 quad-core machine) during the Building Symbols stage, during which it is effectively impossible to use the IDE. I guess the bottleneck is directly related to the huge number of symbols included in Boost. Is there a known remedy to this problem? I have not seen many complaints

What are the available tools to compile .NET projects to standalone native binaries?

只愿长相守 提交于 2019-12-07 09:24:58
问题 What tools do you know to compile .NET projects to native binaries that run without .NET Framework, so far I've found : Xenocode Postbuild for .NET, which costs $1599. Salamander .NET Linker, which costs $1249. Mono Ahead-of-Time compilation (AOT), free. Thanks to JaredPar and Reed Copsey Native Image Generator (Ngen.exe), free, doesn't do what I'm talking about, it does pre-JIT compiling, the resulting executable-file DOES need .NET framework to work. Do you know any other products to add to