B4Alpha-Aft3r0mega / javacpp

Automatically exported from code.google.com/p/javacpp
GNU General Public License v2.0
0 stars 0 forks source link

compiler.framework property causes unrecognized command line option error #14

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Use JavaCPP 20120429
2. Add framework properties. eg. framework="Foundation"
3. Run javacpp builder

What is the expected output? What do you see instead?

Dynlib linked with Mac OS X frameworks.

What version of the product are you using? On what operating system?

JavaCPP 20120429, Mac OS X 10.7

Please provide any additional information below.

Here is error message:

g++ -I/System/Library/Frameworks/JavaVM.framework/Headers/ 
-I./../skia/include/core -I./../skia/include/config -I./../skia/include/effects 
-I./../skia/include/images -I./../skia/include/utils 
/Users/eungju/sideprojects/skia-javacpp/target/classes/skia/javacpp/macosx-x86_6
4/jniSkia.cpp -march=x86-64 -m64 -Wall -O3 -fPIC -dynamiclib -o 
/Users/eungju/sideprojects/skia-javacpp/target/classes/skia/javacpp/macosx-x86_6
4/libjniSkia.dylib -L./../skia/out/Release -Wl,-rpath,./../skia/out/Release 
-lcore -lports -lutils -lopts -lopts_ssse3 -leffects -limages -lzlib 
"-framework Foundation" "-framework ApplicationServices" 
cc1plus: error: unrecognized command line option "-framework Foundation"
cc1plus: error: unrecognized command line option "-framework 
ApplicationServices"

JavaCPP should not quote the framework link options. 

Original issue reported on code.google.com by eun...@gmail.com on 3 Apr 2012 at 3:43

GoogleCodeExporter commented 8 years ago
Ok, I think I've fixed that in the latest code that I've just checked in the 
repository:
http://javacpp.googlecode.com/git/javacpp/src/main/java/com/googlecode/javacpp/B
uilder.java
Let me know if it actually work correctly this time, thanks!

Original comment by samuel.a...@gmail.com on 8 Apr 2012 at 12:36

GoogleCodeExporter commented 8 years ago
It doesn't work. Error message is:

g++ -I/System/Library/Frameworks/JavaVM.framework/Headers/ 
-I./../skia/include/core -I./../skia/include/config -I./../skia/include/effects 
-I./../skia/include/images -I./../skia/include/utils 
/Users/eungju/sideprojects/skia-javacpp/target/classes/skia/javacpp/macosx-x86_6
4/jniSkia.cpp -march=x86-64 -m64 -Wall -O3 -fPIC -dynamiclib -o 
/Users/eungju/sideprojects/skia-javacpp/target/classes/skia/javacpp/macosx-x86_6
4/libjniSkia.dylib -L./../skia/out/Release -Wl,-rpath,./../skia/out/Release 
-lcore -leffects -limages -ljpeg -lopts -lopts_ssse3 -lports -lutils -lzlib 
"-framework " Foundation "-framework " ApplicationServices 
i686-apple-darwin11-llvm-g++-4.2: Foundation: No such file or directory
i686-apple-darwin11-llvm-g++-4.2: ApplicationServices: No such file or directory
cc1plus: error: unrecognized command line option "-framework "
cc1plus: error: unrecognized command line option "-framework "

Original comment by eun...@gmail.com on 10 Apr 2012 at 5:29

GoogleCodeExporter commented 8 years ago
-framework parameter is Objective-C/Mac specific. So I think it should not be 
specific. In this case, Generalizing a problem can make the solution more 
complicated.

Original comment by eun...@gmail.com on 10 Apr 2012 at 5:34

GoogleCodeExporter commented 8 years ago
Right, I've tried to fix it again, but I tested it on my end this time, so it 
should work now :) Please confirm:
http://javacpp.googlecode.com/git/javacpp/src/main/java/com/googlecode/javacpp/B
uilder.java

Original comment by samuel.a...@gmail.com on 15 Apr 2012 at 8:55

GoogleCodeExporter commented 8 years ago
It works well. Thank you.

Original comment by eun...@gmail.com on 15 Apr 2012 at 1:44

GoogleCodeExporter commented 8 years ago
Great, fixed in the latest release! Let me know if anything else is broken, and 
thanks for reporting

Original comment by samuel.a...@gmail.com on 12 May 2012 at 11:21