building

Error when compiling apache, “Undefined symbols:Undefined symbols:”_apr_dir_read$INODE64“…ld: symbol(s) not found”

不想你离开。 提交于 2019-12-13 00:23:30
问题 I am trying to compile Apache. I did download the latest version of the sourcecode (2.2.17). This is what I do: > sudo ./configure --prefix=/usr/local/apache2 --with-included-apr --enable-mods-shared=all --enable-module=so > sudo make and when doing that I get: /Users/Niklas/Development/apache/httpd-2.2.17/srclib/apr/libtool --silent --mode=link gcc -g -O2 -o httpd modules.lo buildmark.o -export-dynamic server/libmain.la modules/http/libmod_http.la modules/mappers/libmod_so.la server/mpm

Problems building Drools 4 project in Eclipse

ε祈祈猫儿з 提交于 2019-12-12 18:47:00
问题 I'm having trouble compiling a drools 4 project. I'm getting errors in the rules file saying Only a type can be imported. <<MyClassName>> resolves to a package The incremental compiler isn't working because of this. How do I fix the errors or get eclipse to ignore them? 回答1: This issue was mentioned for a migration from drools 3.06 to 4.0.7, so what version of eclipse and drools are you using? This might be related to a classpath issue: Using the debugger I realized that the Drools

SCons - Headers/Libraries in a non-standard location

拈花ヽ惹草 提交于 2019-12-12 13:34:58
问题 I'm trying to use SCons to compile a program that requires a set of dependencies which I've installed in a non-standard location. I've installed the dependencies in /home/dja/ocr. Now I'm trying to compile the main program and can't figure out how to tell SCons where to look for the libraries and headers. I've tried (amongst others): scons prefix=/home/dja/ocr scons includepath=/home/dja/ocr/include libpath=/home/dja/ocr/lib env LIBPATH=/home/dja/ocr/lib INCLUDEPATH=/home/dja/ocr/include

iOS: optional code fragments for debug builds

微笑、不失礼 提交于 2019-12-12 07:10:12
问题 for my App I'd like to have a debug view that I want to have only in debug-builds and not in release builds. I don't want to change my code though. Thats why i am wondering if I can check some compiler flag if this is a release build and exclude some code that i only want to have for debug builds. 回答1: In your projects build settings, look for the preprocessor defines section, in there you can define a variable in your debug build only, such as DEBUG=1 , and then use this in your code: #if

How do I resolve error MSB6006: “cmd.exe” exited with code 3?

谁都会走 提交于 2019-12-11 12:08:03
问题 I am getting the following error when building my code: C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error MSB6006: "cmd.exe" exited with code 3. Done executing task "CustomBuild" -- FAILED. (TaskId:40) How do I resolve this? 回答1: Open your .vcxproj file as a .xml file (so with Notepad++ or equivalent.) You should be able to search the file for the "CustomBuild" tag. Something in the task defined by that tag is failing. You can test what it is by

Drupal 6 fails to build menu router and links

旧巷老猫 提交于 2019-12-11 01:54:25
问题 When I enable a new menu in Drupal (for example, mymodule), Drupal should be able to get the menu items from mymodule_menu (hook_menu), process the items and insert the menu items to menu_router and menu_links table. However, my Drupal fails to do so. Each time I enable a module (written by me or modules contributed by others, or core modules), Drupal does not seem to get the new information. The menu items defined in the newly enabled module are not processed and inserted to Drupal's menu

WebRTC not building for Windows

一曲冷凌霜 提交于 2019-12-10 08:33:03
问题 Whenever I try build WebRTC for Windows, I get this error when running gclient runhooks: ________ running 'C:\path\to\depot_tools\python276_bin\python.exe src/build /landmines.py' in 'C:\path\to\webrtc\src\chromium' Please follow the instructions at http://www.chromium.org/developers/how-tos/bui ld-instructions-windows Traceback (most recent call last): File "src/build/landmines.py", line 215, in <module> sys.exit(main()) File "src/build/landmines.py", line 202, in main gyp_environment

Visual Studio will not give me the platform option of 64 bit in configuration manager..?

社会主义新天地 提交于 2019-12-09 00:34:22
问题 I am currently trying to build a project for a 64 bit computer, but the configuration manager doesn't list 64 bit as an option. It gives me Win32, but no x64 (under "Platform"). I am using Visual Studio 2010 C++ Express. It works on my other computer, but not this one. Most everything I have read has been saying to go up to the "Active Solution platform" drop down, and add 'x64' to it. I have tried that, but it still only lists Win32. 回答1: Select the Configuration Manager as given by the

Java - Using Ant to automatically generate boilerplate code

做~自己de王妃 提交于 2019-12-08 08:30:11
问题 Intro: I'm asking this before I try, fail and get frustrated as I have 0 experience with Apache Ant. A simple 'yes this will work' may suffice, or if it won't please tell me what will. Situation: I'm working on a project that uses JavaFX to create a GUI. JavaFX relies on Java Bean-like objects that require a lot of boilerplate code for it's properties. For example, all functionality I want to have is a String called name with default value "Unnamed" , or in a minimal Java syntax: String name

Flutter in Android Studio: Build Bundle/APK greyed out

旧街凉风 提交于 2019-12-08 04:05:22
问题 I installed Flutter and Android Studio following this link here: https://flutter.dev/docs/get-started/editor I've been coding in flutter for two months now and can run my app in simulator or on a connected device no problem. But when I try to actually build an apk via "Build" --> "Build Bundle(s) / APK", this option is greyed out. Android Studio: 3.3.2 回答1: You can't build apk using Build option in Android Studio if you are running your Flutter project. There are 2 solutions to build it. In