Author Topic: [SOLVED]Maya crashes when I attach CB debugger to it and press 'Debug/Continue'  (Read 10746 times)

Offline yaoyansi

  • Multiple posting newcomer
  • *
  • Posts: 31
Hi all,
I'm using CodeBlocks to develope plugins for Maya which is a DCC software. Everything works fine on CentOS7, I wrote down these steps in my blog:
http://www.cnblogs.com/yaoyansi/p/3946600.html,
http://www.cnblogs.com/yaoyansi/p/3959745.html




But now I have to switch to another machine which is CentOS6.4, the new system environment is:
- CentOS Release 6.4(Final), Kernel Linux 2.6.32-358.el6.x86_64,
- codeblocks-10.05-2.el6.x86_64.rpm, codeblocks-contrib-devel-10.05-2.el6.x86_64.rpm, codeblocks-contrib-libs-10.05-2.el6.x86_64.rpm, codeblocks-devel-10.05-2.el6.x86_64.rpm, codeblocks-libs-10.05-2.el6.x86_64.rpm.
- gcc-4.4.7-3.el6(x86_64)
- gcc-c++-4.4.7-3.el6(x86_64)
- gdb-7.2-60.el6(x86_64)
- gdb-gdbserver-7.2-60.el6(x86_64)
- gdbm-1.8.0-36.el6(x86_64)


I created a simple console project helloworld.cbp with the CodeBlock wizard, set a breakpoint, and pressed the following GUI menu items, such as 'Debug/Start', 'Debug/Next Line', 'Debug/Continue'. Everything works fine. And here is the debug log:
------------------log in window 'Debugger', begin-----------------------------------
Code
Building to ensure sources are up-to-date
Build succeeded
Selecting target:
Debug
Adding source dir: /mnt/sg_home/yys/dev/miscellaneous/helloworld/helloworld/
Adding source dir: /mnt/sg_home/yys/dev/miscellaneous/helloworld/helloworld/
Adding file: bin/Debug/helloworld
Starting debugger:
done
Registered new type: wxString
Registered new type: STL String
Registered new type: STL Vector
Setting breakpoints
Debugger name and version: GNU gdb (GDB) Red Hat Enterprise Linux (7.2-60.el6)
At /mnt/sg_home/yys/dev/miscellaneous/helloworld/helloworld/main.cpp:7
At /mnt/sg_home/yys/dev/miscellaneous/helloworld/helloworld/main.cpp:8
Continuing...
Program exited normally.
Debugger finished with status 0
-------------------log in window 'Debugger', end ----------------------------------
-------------------log in window 'Debugger(debug)', begin-------------------------------------------
Code
LD_LIBRARY_PATH=.:/job/BFX/gene/lib:/job/BFX/gene/lib64
Command-line: /usr/bin/gdb -nx -fullname  -quiet -args bin/Debug/helloworld
Working dir : /mnt/sg_home/yys/dev/miscellaneous/helloworld/helloworld/
Reading symbols from /mnt/sg_home/yys/dev/miscellaneous/helloworld/helloworld/bin/Debug/helloworld...
done.
(gdb)
> set prompt >>>>>>cb_gdb:
Executing: xterm -T 'Program Console' -e sleep 105532
>>>>>>cb_gdb:
> show version
GNU gdb (GDB) Red Hat Enterprise Linux (7.2-60.el6)
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
>>>>>>cb_gdb:
> set confirm off
>>>>>>cb_gdb:
> set width 0
>>>>>>cb_gdb:
> set height 0
>>>>>>cb_gdb:
> set breakpoint pending on
>>>>>>cb_gdb:
> set print asm-demangle on
>>>>>>cb_gdb:
> set unwindonsignal on
>>>>>>cb_gdb:
> set disassembly-flavor intel
>>>>>>cb_gdb:
> catch throw
Function "__cxa_throw" not defined.
Catchpoint 1 (throw)
>>>>>>cb_gdb:
> source /usr/share/codeblocks/scripts/stl-views-1.0.3.gdb
>>>>>>cb_gdb:
> directory /mnt/sg_home/yys/dev/miscellaneous/helloworld/helloworld/
>>>>>>cb_gdb:
> break "/mnt/sg_home/yys/dev/miscellaneous/helloworld/helloworld/main.cpp:7"
Executing: ps x -o tty,pid,command
Breakpoint 2 at 0x400818: file /mnt/sg_home/yys/dev/miscellaneous/helloworld/helloworld/main.cpp, line 7.
>>>>>>cb_gdb:
PS result: ?        27780 ps x -o tty,pid,command
PS result: ?        27775 /usr/bin/gdb -nx -fullname -quiet -args bin/Debug/helloworld
PS result: ?        26845 /usr/libexec/notification-daemon
PS result: ?        26540 gedit
PS result: ?        25532 codeblocks
PS result: pts/5    25166 bash
PS result: ?        22656 gnome-system-monitor
PS result: ?        20785 /usr/bin/gnome-keyring-daemon --daemonize --login
PS result: pts/2    18409 /usr/java/jre1.7.0_45/bin/java -XX:+UseG1GC -XX:MaxGCPauseMillis=100 -XX:InitiatingHeapOccupancyPercent=25 -Xmx768m -Xverify:none -Dsun.io.useCanonCaches=false -jar /j/HOME/yys/tools/smartgit/smartgit/lib/bootloader.jar
PS result: pts/2    18347 /bin/bash ./smartgit.sh
PS result: pts/2    18299 /bin/bash
PS result: ?        15644 /usr/libexec/gvfsd-metadata
PS result: pts/1    15254 /bin/bash
PS result: pts/0    14308 bash
PS result: ?        14307 gnome-pty-helper
PS result: ?        14306 gnome-terminal
PS result: ?        14172 /usr/libexec/gvfsd-computer --spawner :1.7 /org/gtk/gvfs/exec_spaw/2
PS result: ?        14046 /usr/lib64/thunderbird/thunderbird-bin
PS result: ?        13990 pidgin
PS result: ?        13901 /usr/libexec/ibus-engine-pinyin --ibus
PS result: ?        13900 /usr/libexec/ibus-x11 --kill-daemon
PS result: ?        13898 python /usr/share/ibus/ui/gtk/main.py
PS result: ?        13896 /usr/libexec/ibus-gconf
PS result: ?        13395 /usr/libexec/gvfsd-burn --spawner :1.7 /org/gtk/gvfs/exec_spaw/1
PS result: ?        13365 /usr/libexec/gconf-im-settings-daemon
PS result: ?        13362 /usr/bin/ibus-daemon -r --xim
PS result: ?        13346 /usr/libexec/pulse/gconf-helper
PS result: ?        13344 /usr/libexec/gdm-user-switch-applet --oaf-activate-iid=OAFIID:GNOME_FastUserSwitchApplet_Factory --oaf-ior-fd=40
PS result: ?        13342 /usr/libexec/notification-area-applet --oaf-activate-iid=OAFIID:GNOME_NotificationAreaApplet_Factory --oaf-ior-fd=32
PS result: ?        13340 /usr/libexec/clock-applet --oaf-activate-iid=OAFIID:GNOME_ClockApplet_Factory --oaf-ior-fd=26
PS result: ?        13337 /usr/bin/gnote --panel-applet --oaf-activate-iid=OAFIID:GnoteApplet_Factory --oaf-ior-fd=20
PS result: ?        13297 gnome-screensaver
PS result: ?        13228 /usr/libexec/gvfsd-trash --spawner :1.7 /org/gtk/gvfs/exec_spaw/0
PS result: ?        13222 /usr/libexec/gvfs-afc-volume-monitor
PS result: ?        13206 /usr/libexec/gvfs-gphoto2-volume-monitor
PS result: ?        13151 /usr/libexec/wnck-applet --oaf-activate-iid=OAFIID:GNOME_Wncklet_Factory --oaf-ior-fd=19
PS result: ?        13150 gpk-update-icon
PS result: ?        13149 /usr/libexec/gvfs-gdu-volume-monitor
PS result: ?        13147 /usr/libexec/trashapplet --oaf-activate-iid=OAFIID:GNOME_Panel_TrashApplet_Factory --oaf-ior-fd=25
PS result: ?        13144 /usr/libexec/im-settings-daemon
PS result: ?        13139 gnome-power-manager
PS result: ?        13135 /usr/libexec/evolution/2.32/evolution-alarm-notify
PS result: ?        13131 /usr/libexec/gdu-notification-daemon
PS result: ?        13129 gnome-volume-control-applet
PS result: ?        13128 /usr/libexec/polkit-gnome-authentication-agent-1
PS result: ?        13127 nm-applet --sm-disable
PS result: ?        13126 bluetooth-applet
PS result: ?        13121 /usr/libexec/bonobo-activation-server --ac-activate --ior-output-fd=19
PS result: ?        13119 nautilus
PS result: ?        13117 gnome-panel
PS result: ?        13116 /usr/bin/pulseaudio --start --log-target=syslog
PS result: ?        13110 metacity
PS result: ?        13089 /usr/libexec/gvfsd
PS result: ?        13087 seahorse-daemon
PS result: ?        13085 /usr/libexec/gnome-settings-daemon
PS result: ?        13077 /usr/libexec/gconfd-2
PS result: ?        13039 /bin/dbus-daemon --fork --print-pid 6 --print-address 8 --session
PS result: ?        13038 dbus-launch --sh-syntax --exit-with-session
PS result: ?        13029 gnome-session
PS result: ?        13020 /usr/bin/gnome-keyring-daemon --daemonize --login
PS result: ?         5129 /usr/bin/gnome-keyring-daemon --daemonize --login
PS result: TT         PID COMMAND
Console Execution error:failed to find console tty.
> run
Breakpoint 2, main () at /mnt/sg_home/yys/dev/miscellaneous/helloworld/helloworld/main.cpp:7
/mnt/sg_home/yys/dev/miscellaneous/helloworld/helloworld/main.cpp:7:62:beg:0x400818
Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.107.el6.x86_64 libgcc-4.4.7-3.el6.x86_64 libstdc++-4.4.7-3.el6.x86_64
>>>>>>cb_gdb:
> info locals
No locals.
>>>>>>cb_gdb:
> info args
No arguments.
>>>>>>cb_gdb:
> info frame
Stack level 0, frame at 0x7fffffffe110:
 rip = 0x400818 in main (/mnt/sg_home/yys/dev/miscellaneous/helloworld/helloworld/main.cpp:7); saved rip 0x3ad861ecdd
 source language c++.
 Arglist at 0x7fffffffe100, args:
 Locals at 0x7fffffffe100, Previous frame's sp is 0x7fffffffe110
 Saved registers:
  rbp at 0x7fffffffe100, rip at 0x7fffffffe108
>>>>>>cb_gdb:
> disassemble
Dump of assembler code for function main():
   0x0000000000400814 <+0>: push   rbp
   0x0000000000400815 <+1>: mov    rbp,rsp
=> 0x0000000000400818 <+4>: mov    esi,0x400988
   0x000000000040081d <+9>: mov    edi,0x600d40
   0x0000000000400822 <+14>: call   0x4006e8 <_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@plt>
   0x0000000000400827 <+19>: mov    esi,0x400708
   0x000000000040082c <+24>: mov    rdi,rax
   0x000000000040082f <+27>: call   0x4006f8 <_ZNSolsEPFRSoS_E@plt>
   0x0000000000400834 <+32>: mov    eax,0x0
   0x0000000000400839 <+37>: leave 
   0x000000000040083a <+38>: ret   
End of assembler dump.
>>>>>>cb_gdb:
> next
******************* 8 Hello world!****************
/mnt/sg_home/yys/dev/miscellaneous/helloworld/helloworld/main.cpp:8:137:beg:0x400834
>>>>>>cb_gdb:
> info locals
No locals.
>>>>>>cb_gdb:
> info args
No arguments.
>>>>>>cb_gdb:
> info frame
Stack level 0, frame at 0x7fffffffe110:
 rip = 0x400834 in main (/mnt/sg_home/yys/dev/miscellaneous/helloworld/helloworld/main.cpp:8); saved rip 0x3ad861ecdd
 source language c++.
 Arglist at 0x7fffffffe100, args:
 Locals at 0x7fffffffe100, Previous frame's sp is 0x7fffffffe110
 Saved registers:
  rbp at 0x7fffffffe100, rip at 0x7fffffffe108
>>>>>>cb_gdb:
> cont
Program exited normally.
>>>>>>cb_gdb:
> quit
-------------------log in window Debugger(debug), end -----------------------------------------------






Now I'm trying to build my plugin for Maya and debug my plugin. Here is the steps:
- I don't know that my CentOS6.4(Final) has several default packages for CMake. They are cmake-2.6.4-5.el6(x86_64), cmake28-2.8.11.2-1.el6(x86_64),  cmake-gui-2.6.4-5.el6(x86_64), cmake28-gui-2.8.11.2-1.el6(x86_64), and these packages are not installed at all. Because I don't know about this, I download and install the latest cmake packages for CentOS6 from pkgs.org, they are cmake-2.8.12.2-4.el6.x86_64.rpm and cmake-gui-2.8.12.2-4.el6.x86_64.rpm.
- I use CMake2.8.12.2 to generate the CodeBlocks project scripts (in CMake script, CMAKE_CXX_FLAGS_DEBUG is set to '-g', CMAKE_BUILD_TYPE is set to 'Debug').
- launch the generated CodeBlocks project script,
- In "Settings / Compiler and debugger settings / Global compiler settings / Compiler Flags", I make sure that '-g' is turned on.
- Rebuild workspace , here is the build log:
Code
-------------- Clean: all in mystring ---------------
Cleaned "mystring - all"
-------------- Build: all in mystring ---------------
Using makefile: Makefile
[ 33%] Building CXX object src/CMakeFiles/mystring.dir/mystring.cpp.o
[ 66%]
Building CXX object src/CMakeFiles/mystring.dir/plugin.cpp.o
[100%] Building CXX object src/CMakeFiles/mystring.dir/main.cpp.o
Linking CXX shared library /j/HOME/yys/dev/mybox/mystring/plug-ins/mystring.so
[100%] Built target mystring
Process terminated with status 0 (0 minutes, 0 seconds)
0 errors, 0 warnings


- press menu item "Debug / Attach to Process" to attach CodeBlocks debugger to Maya. Now Maya is blocked and there is a lot of message in Debugger window.

- set a breakpoint, and here is the log in 'CodeBlock Debugger(debug)' window:
Code
>>>>>>cb_gdb:
> break "/mnt/sg_home/yys/dev/mybox/mystring/src/main.cpp:8"
No source file named /mnt/sg_home/yys/dev/mybox/mystring/src/main.cpp.
Breakpoint 2 ("/mnt/sg_home/yys/dev/mybox/mystring/src/main.cpp:8) pending.

In fact, the directory /mnt/sg_home equals to /j/HOME, so /mnt/sg_home/yys/dev/mybox/mystring/src/main.cpp and /j/HOME/yys/dev/mybox/mystring/src/main.cpp are the same file. I don' know why gdb complains about this.


- press menu item 'Debug/Continue', then Maya crashes, I can't debug my code at all. Here is the log in 'CodeBlock Debugger(debug)' window:
Code
>>>>>>cb_gdb:
> run
[Thread debugging using libthread_db enabled]
Catchpoint 1 (exception thrown), 0x0000003ae52bccb0 in __cxa_throw () from /usr/lib64/libstdc++.so.6
>>>>>>cb_gdb:





I hope that I described my problem clearly, and could you tell me why Maya crashes when I press 'Debug/Continue'? and how to solve this problem?

Regards
« Last Edit: January 27, 2015, 10:19:58 am by yaoyansi »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Are you running 10.05 on centos 6.4?
If so, the best thing you should try is to update it to at least 12.11.
See the night builds sub forum for a link to the Jens repo for CentOS, probably there you'll find a stable build, too.

C::B can be used to debug maya without serious problems. I do it almost every day at work.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline yaoyansi

  • Multiple posting newcomer
  • *
  • Posts: 31
Thanks for your reply.
I will follow this guid:
http://forums.codeblocks.org/index.php/topic,19920.msg135948.html#msg135948

And here is my step:
- download the C::B binary-packages and sources directly from the folders below the copr-results directory(https://copr-be.cloud.fedoraproject.org/results/jenslody/codeblocks/)

- I follow the links and access to this page:
https://copr-be.cloud.fedoraproject.org/results/jenslody/codeblocks/epel-6-x86_64/codeblocks-13.12.svn.10074-1/

- download the follow files:
codeblocks-13.12.svn.10074-1.el6.x86_64.rpm,
codeblocks-contrib-13.12.svn.10074-1.el6.x86_64.rpm,
codeblocks-contrib-devel-13.12.svn.10074-1.el6.x86_64.rpm,
codeblocks-contrib-libs-13.12.svn.10074-1.el6.x86_64.rpm,
codeblocks-devel-13.12.svn.10074-1.el6.x86_64.rpm,
codeblocks-libs-13.12.svn.10074-1.el6.x86_64.rpm,

- remove codeblocks 10.05 from my CentOS6.4
sudo yum remove codeblocks.x86_64
sudo yum remove codeblocks-contrib-devel.x86_64
sudo yum remove codeblocks-contrib-libs.x86_64
sudo yum remove codeblocks-devel.x86_64
sudo yum remove codeblocks-libs.x86_64

- install codeblocks 13.12
sudo yum localinstall codeblocks-libs-13.12.svn.10074-1.el6.x86_64.rpm
sudo yum localinstall codeblocks-13.12.svn.10074-1.el6.x86_64.rpm
sudo yum localinstall codeblocks-devel-13.12.svn.10074-1.el6.x86_64.rpm

sudo yum localinstall codeblocks-contrib-libs-13.12.svn.10074-1.el6.x86_64.rpm
sudo yum localinstall codeblocks-contrib-13.12.svn.10074-1.el6.x86_64.rpm
sudo yum localinstall codeblocks-contrib-devel-13.12.svn.10074-1.el6.x86_64.rpm


I will build and debug my Maya plugin with C::B 13.12 later.

Offline yaoyansi

  • Multiple posting newcomer
  • *
  • Posts: 31
But now I have another problem
« Reply #3 on: January 27, 2015, 04:38:01 am »
Hi all,
After I installed codeblocks 13.12, I can attatch codeblocks debugger to Maya and execute "Debug/Continue" sucessfully. But now I have another problem.

Now I'm going to set a breakpoint, but when I double click a cpp file in codeblocks's Management window, codeblocks freezes.
Here are the steps and the logs:
- launch CMake, set
'Where is the source code' to /j/HOME/yys/dev/mybox/mystring,
'Where to build the binaries' to /j/HOME/yys/dev/mybox_build/mystring12
turn on CMAKE_USE_RELATIVE_PATHS to True
- press 'Configure' and 'Generate' to generate codeblocks project scripts.
Here is the CMakeCache.txt and project script.
Code
-----------------------CMakeCache.txt--------------------------------
# This is the CMakeCache file.
# For build in directory: /j/HOME/yys/dev/mybox_build/mystring12
# It was generated by CMake: /usr/bin/cmake
# You can edit this file to change values found and used by cmake.
# If you do not want to change any of the values, simply exit the editor.
# If you do want to change a value, simply edit, save, and exit the editor.
# The syntax for the file is as follows:
# KEY:TYPE=VALUE
# KEY is the name of a variable in the cache.
# TYPE is a hint to GUIs for the type of VALUE, DO NOT EDIT TYPE!.
# VALUE is the current value for the KEY.

########################
# EXTERNAL cache entries
########################

//Path to a program.
CMAKE_AR:FILEPATH=/usr/bin/ar

//Choose the type of build, options are: None (CMAKE_CXX_FLAGS
// or CMAKE_C_FLAGS used) Debug Release RelWithDebInfo MinSizeRel.
CMAKE_BUILD_TYPE:STRING=Debug

//The CodeBlocks executable
CMAKE_CODEBLOCKS_EXECUTABLE:FILEPATH=/usr/bin/codeblocks

//Enable/Disable color output during build.
CMAKE_COLOR_MAKEFILE:BOOL=ON

//CXX compiler.
CMAKE_CXX_COMPILER:FILEPATH=/usr/bin/c++

//Flags used by the compiler during all build types.
CMAKE_CXX_FLAGS:STRING=

//Flags used by the compiler during debug builds.
CMAKE_CXX_FLAGS_DEBUG:STRING=-g

//Flags used by the compiler during release minsize builds.
CMAKE_CXX_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG

//Flags used by the compiler during release builds (/MD /Ob1 /Oi
// /Ot /Oy /Gs will produce slightly less optimized but smaller
// files).
CMAKE_CXX_FLAGS_RELEASE:STRING=-O3 -DNDEBUG

//Flags used by the compiler during Release with Debug Info builds.
CMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG

//C compiler.
CMAKE_C_COMPILER:FILEPATH=/usr/bin/cc

//Flags used by the compiler during all build types.
CMAKE_C_FLAGS:STRING=

//Flags used by the compiler during debug builds.
CMAKE_C_FLAGS_DEBUG:STRING=-g

//Flags used by the compiler during release minsize builds.
CMAKE_C_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG

//Flags used by the compiler during release builds (/MD /Ob1 /Oi
// /Ot /Oy /Gs will produce slightly less optimized but smaller
// files).
CMAKE_C_FLAGS_RELEASE:STRING=-O3 -DNDEBUG

//Flags used by the compiler during Release with Debug Info builds.
CMAKE_C_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG

//Flags used by the linker.
CMAKE_EXE_LINKER_FLAGS:STRING=' '

//Flags used by the linker during debug builds.
CMAKE_EXE_LINKER_FLAGS_DEBUG:STRING=

//Flags used by the linker during release minsize builds.
CMAKE_EXE_LINKER_FLAGS_MINSIZEREL:STRING=

//Flags used by the linker during release builds.
CMAKE_EXE_LINKER_FLAGS_RELEASE:STRING=

//Flags used by the linker during Release with Debug Info builds.
CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO:STRING=

//Enable/Disable output of compile commands during generation.
CMAKE_EXPORT_COMPILE_COMMANDS:BOOL=OFF

//Install path prefix, prepended onto install directories.
CMAKE_INSTALL_PREFIX:PATH=/usr/local

//Path to a program.
CMAKE_LINKER:FILEPATH=/usr/bin/ld

//Path to a program.
CMAKE_MAKE_PROGRAM:FILEPATH=/usr/bin/gmake

//Flags used by the linker during the creation of modules.
CMAKE_MODULE_LINKER_FLAGS:STRING=' '

//Flags used by the linker during debug builds.
CMAKE_MODULE_LINKER_FLAGS_DEBUG:STRING=

//Flags used by the linker during release minsize builds.
CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL:STRING=

//Flags used by the linker during release builds.
CMAKE_MODULE_LINKER_FLAGS_RELEASE:STRING=

//Flags used by the linker during Release with Debug Info builds.
CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO:STRING=

//Path to a program.
CMAKE_NM:FILEPATH=/usr/bin/nm

//Path to a program.
CMAKE_OBJCOPY:FILEPATH=/usr/bin/objcopy

//Path to a program.
CMAKE_OBJDUMP:FILEPATH=/usr/bin/objdump

//Value Computed by CMake
CMAKE_PROJECT_NAME:STATIC=mystring

//Path to a program.
CMAKE_RANLIB:FILEPATH=/usr/bin/ranlib

//Flags used by the linker during the creation of dll's.
CMAKE_SHARED_LINKER_FLAGS:STRING=' '

//Flags used by the linker during debug builds.
CMAKE_SHARED_LINKER_FLAGS_DEBUG:STRING=

//Flags used by the linker during release minsize builds.
CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL:STRING=

//Flags used by the linker during release builds.
CMAKE_SHARED_LINKER_FLAGS_RELEASE:STRING=

//Flags used by the linker during Release with Debug Info builds.
CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO:STRING=

//If set, runtime paths are not added when installing shared libraries,
// but are added when building.
CMAKE_SKIP_INSTALL_RPATH:BOOL=OFF

//If set, runtime paths are not added when using shared libraries.
CMAKE_SKIP_RPATH:BOOL=OFF

//Flags used by the linker during the creation of static libraries.
CMAKE_STATIC_LINKER_FLAGS:STRING=

//Flags used by the linker during debug builds.
CMAKE_STATIC_LINKER_FLAGS_DEBUG:STRING=

//Flags used by the linker during release minsize builds.
CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL:STRING=

//Flags used by the linker during release builds.
CMAKE_STATIC_LINKER_FLAGS_RELEASE:STRING=

//Flags used by the linker during Release with Debug Info builds.
CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO:STRING=

//Path to a program.
CMAKE_STRIP:FILEPATH=/usr/bin/strip

//If true, cmake will use relative paths in makefiles and projects.
CMAKE_USE_RELATIVE_PATHS:BOOL=ON

//If this value is on, makefiles will be generated without the
// .SILENT directive, and all commands will be echoed to the console
// during the make.  This is useful for debugging only. With Visual
// Studio IDE projects all commands are done without /nologo.
CMAKE_VERBOSE_MAKEFILE:BOOL=OFF

//Path to a file.
MAYA_BASE_DIR:PATH=/usr/autodesk/maya

//Maya's Foundation library path
MAYA_Foundation_LIBRARY:FILEPATH=/usr/autodesk/maya/lib/libFoundation.so

//Maya's IMFbase library path
MAYA_IMFbase_LIBRARY:FILEPATH=/usr/autodesk/maya/lib/libIMFbase.so

//Maya's devkit headers path
MAYA_INCLUDE_DIR:PATH=/usr/autodesk/maya/include

//Maya's Image library path
MAYA_Image_LIBRARY:FILEPATH=/usr/autodesk/maya/lib/libImage.so

//Maya's libraries path
MAYA_LIBRARY_DIR:PATH=/usr/autodesk/maya/lib

//Maya's OpenMayaAnim library path
MAYA_OpenMayaAnim_LIBRARY:FILEPATH=/usr/autodesk/maya/lib/libOpenMayaAnim.so

//Maya's OpenMayaFX library path
MAYA_OpenMayaFX_LIBRARY:FILEPATH=/usr/autodesk/maya/lib/libOpenMayaFX.so

//Maya's OpenMayaRender library path
MAYA_OpenMayaRender_LIBRARY:FILEPATH=/usr/autodesk/maya/lib/libOpenMayaRender.so

//Maya's OpenMayaUI library path
MAYA_OpenMayaUI_LIBRARY:FILEPATH=/usr/autodesk/maya/lib/libOpenMayaUI.so

//Maya's OpenMaya library path
MAYA_OpenMaya_LIBRARY:FILEPATH=/usr/autodesk/maya/lib/libOpenMaya.so

//Maya's cgGL library path
MAYA_cgGL_LIBRARY:FILEPATH=MAYA_cgGL_LIBRARY-NOTFOUND

//Maya's cg library path
MAYA_cg_LIBRARY:FILEPATH=MAYA_cg_LIBRARY-NOTFOUND

//Maya's tbb library path
MAYA_tbb_LIBRARY:FILEPATH=/usr/autodesk/maya/lib/libtbb.so

//Value Computed by CMake
mystring_BINARY_DIR:STATIC=/j/HOME/yys/dev/mybox_build/mystring12

//Dependencies for the target
mystring_LIB_DEPENDS:STATIC=general;/usr/autodesk/maya/lib/libFoundation.so;general;/usr/autodesk/maya/lib/libOpenMaya.so;general;/usr/autodesk/maya/lib/libOpenMayaUI.so;

//Value Computed by CMake
mystring_SOURCE_DIR:STATIC=/j/HOME/yys/dev/mybox/mystring

(It says that the message exceeds the maximum allowed length (20000 characters), so I post the rest in the following reply)
« Last Edit: January 27, 2015, 08:55:44 am by yaoyansi »

Offline yaoyansi

  • Multiple posting newcomer
  • *
  • Posts: 31
But now I have another problem(Continued 1)
« Reply #4 on: January 27, 2015, 04:40:04 am »
Code
-----------------------CMakeCache.txt(continued)--------------------------------
########################
# INTERNAL cache entries
########################

//ADVANCED property for variable: CMAKE_AR
CMAKE_AR-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_BUILD_TOOL
CMAKE_BUILD_TOOL-ADVANCED:INTERNAL=1
//What is the target build tool cmake is generating for.
CMAKE_BUILD_TOOL:INTERNAL=/usr/bin/gmake
//This is the directory where this CMakeCache.txt was created
CMAKE_CACHEFILE_DIR:INTERNAL=/j/HOME/yys/dev/mybox_build/mystring12
//Major version of cmake used to create the current loaded cache
CMAKE_CACHE_MAJOR_VERSION:INTERNAL=2
//Minor version of cmake used to create the current loaded cache
CMAKE_CACHE_MINOR_VERSION:INTERNAL=8
//Patch version of cmake used to create the current loaded cache
CMAKE_CACHE_PATCH_VERSION:INTERNAL=12
//ADVANCED property for variable: CMAKE_COLOR_MAKEFILE
CMAKE_COLOR_MAKEFILE-ADVANCED:INTERNAL=1
//Path to CMake executable.
CMAKE_COMMAND:INTERNAL=/usr/bin/cmake
//Path to cpack program executable.
CMAKE_CPACK_COMMAND:INTERNAL=/usr/bin/cpack
//Path to ctest program executable.
CMAKE_CTEST_COMMAND:INTERNAL=/usr/bin/ctest
//ADVANCED property for variable: CMAKE_CXX_COMPILER
CMAKE_CXX_COMPILER-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_FLAGS
CMAKE_CXX_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_FLAGS_DEBUG
CMAKE_CXX_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_FLAGS_MINSIZEREL
CMAKE_CXX_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_FLAGS_RELEASE
CMAKE_CXX_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_FLAGS_RELWITHDEBINFO
CMAKE_CXX_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_COMPILER
CMAKE_C_COMPILER-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_FLAGS
CMAKE_C_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_FLAGS_DEBUG
CMAKE_C_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_FLAGS_MINSIZEREL
CMAKE_C_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_FLAGS_RELEASE
CMAKE_C_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_FLAGS_RELWITHDEBINFO
CMAKE_C_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//Path to cache edit program executable.
CMAKE_EDIT_COMMAND:INTERNAL=/usr/bin/cmake-gui
//Executable file format
CMAKE_EXECUTABLE_FORMAT:INTERNAL=ELF
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS
CMAKE_EXE_LINKER_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_DEBUG
CMAKE_EXE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_MINSIZEREL
CMAKE_EXE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELEASE
CMAKE_EXE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO
CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_EXPORT_COMPILE_COMMANDS
CMAKE_EXPORT_COMPILE_COMMANDS-ADVANCED:INTERNAL=1
//Name of external makefile project generator.
CMAKE_EXTRA_GENERATOR:INTERNAL=CodeBlocks
//CXX compiler system defined macros
CMAKE_EXTRA_GENERATOR_CXX_SYSTEM_DEFINED_MACROS:INTERNAL=__STDC__;1;__STDC_HOSTED__;1;__GNUC__;4;__GNUC_MINOR__;4;__GNUC_PATCHLEVEL__;7;__GNUC_RH_RELEASE__;3;__SIZE_TYPE__;long unsigned int;__PTRDIFF_TYPE__;long int;__WCHAR_TYPE__;int;__WINT_TYPE__;unsigned int;__INTMAX_TYPE__;long int;__UINTMAX_TYPE__;long unsigned int;__CHAR16_TYPE__;short unsigned int;__CHAR32_TYPE__;unsigned int;__GXX_ABI_VERSION;1002;__SCHAR_MAX__;127;__SHRT_MAX__;32767;__INT_MAX__;2147483647;__LONG_MAX__;9223372036854775807L;__LONG_LONG_MAX__;9223372036854775807LL;__WCHAR_MAX__;2147483647;__CHAR_BIT__;8;__INTMAX_MAX__;9223372036854775807L;__FLT_EVAL_METHOD__; ;__DEC_EVAL_METHOD__;2;__FLT_RADIX__;2;__FLT_MANT_DIG__;24;__FLT_DIG__;6;__FLT_MIN_EXP__;(-125);__FLT_MIN_10_EXP__;(-37);__FLT_MAX_EXP__;128;__FLT_MAX_10_EXP__;38;__FLT_MAX__;3.40282347e+38F;__FLT_MIN__;1.17549435e-38F;__FLT_EPSILON__;1.19209290e-7F;__FLT_DENORM_MIN__;1.40129846e-45F;__FLT_HAS_DENORM__;1;__FLT_HAS_INFINITY__;1;__FLT_HAS_QUIET_NAN__;1;__DBL_MANT_DIG__;53;__DBL_DIG__;15;__DBL_MIN_EXP__;(-1021);__DBL_MIN_10_EXP__;(-307);__DBL_MAX_EXP__;1024;__DBL_MAX_10_EXP__;308;__DBL_MAX__;1.7976931348623157e+308;__DBL_MIN__;2.2250738585072014e-308;__DBL_EPSILON__;2.2204460492503131e-16;__DBL_DENORM_MIN__;4.9406564584124654e-324;__DBL_HAS_DENORM__;1;__DBL_HAS_INFINITY__;1;__DBL_HAS_QUIET_NAN__;1;__LDBL_MANT_DIG__;64;__LDBL_DIG__;18;__LDBL_MIN_EXP__;(-16381);__LDBL_MIN_10_EXP__;(-4931);__LDBL_MAX_EXP__;16384;__LDBL_MAX_10_EXP__;4932;__DECIMAL_DIG__;21;__LDBL_MAX__;1.18973149535723176502e+4932L;__LDBL_MIN__;3.36210314311209350626e-4932L;__LDBL_EPSILON__;1.08420217248550443401e-19L;__LDBL_DENORM_MIN__;3.64519953188247460253e-4951L;__LDBL_HAS_DENORM__;1;__LDBL_HAS_INFINITY__;1;__LDBL_HAS_QUIET_NAN__;1;__DEC32_MANT_DIG__;7;__DEC32_MIN_EXP__;(-94);__DEC32_MAX_EXP__;97;__DEC32_MIN__;1E-95DF;__DEC32_MAX__;9.999999E96DF;__DEC32_EPSILON__;1E-6DF;__DEC32_SUBNORMAL_MIN__;0.000001E-95DF;__DEC64_MANT_DIG__;16;__DEC64_MIN_EXP__;(-382);__DEC64_MAX_EXP__;385;__DEC64_MIN__;1E-383DD;__DEC64_MAX__;9.999999999999999E384DD;__DEC64_EPSILON__;1E-15DD;__DEC64_SUBNORMAL_MIN__;0.000000000000001E-383DD;__DEC128_MANT_DIG__;34;__DEC128_MIN_EXP__;(-6142);__DEC128_MAX_EXP__;6145;__DEC128_MIN__;1E-6143DL;__DEC128_MAX__;9.999999999999999999999999999999999E6144DL;__DEC128_EPSILON__;1E-33DL;__DEC128_SUBNORMAL_MIN__;0.000000000000000000000000000000001E-6143DL;__REGISTER_PREFIX__; ;__USER_LABEL_PREFIX__; ;__VERSION__;"4.4.7 20120313 (Red Hat 4.4.7-3)";__GNUC_GNU_INLINE__;1;_LP64;1;__LP64__;1;__NO_INLINE__;1;__FINITE_MATH_ONLY__; ;__GCC_HAVE_SYNC_COMPARE_AND_SWAP_1;1;__GCC_HAVE_SYNC_COMPARE_AND_SWAP_2;1;__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4;1;__GCC_HAVE_SYNC_COMPARE_AND_SWAP_8;1;__GCC_HAVE_DWARF2_CFI_ASM;1;__SIZEOF_INT__;4;__SIZEOF_LONG__;8;__SIZEOF_LONG_LONG__;8;__SIZEOF_SHORT__;2;__SIZEOF_FLOAT__;4;__SIZEOF_DOUBLE__;8;__SIZEOF_LONG_DOUBLE__;16;__SIZEOF_SIZE_T__;8;__SIZEOF_WCHAR_T__;4;__SIZEOF_WINT_T__;4;__SIZEOF_PTRDIFF_T__;8;__SIZEOF_POINTER__;8;__amd64;1;__amd64__;1;__x86_64;1;__x86_64__;1;__k8;1;__k8__;1;__MMX__;1;__SSE__;1;__SSE2__;1;__SSE_MATH__;1;__SSE2_MATH__;1;__gnu_linux__;1;__linux;1;__linux__;1;linux;1;__unix;1;__unix__;1;unix;1;__ELF__;1;__DECIMAL_BID_FORMAT__;1;__BIGGEST_ALIGNMENT__;16;__STDC__;1;__cplusplus;1;__STDC_HOSTED__;1;__GNUC__;4;__GNUC_MINOR__;4;__GNUC_PATCHLEVEL__;7;__GNUG__;4;__GNUC_RH_RELEASE__;3;__SIZE_TYPE__;long unsigned int;__PTRDIFF_TYPE__;long int;__WCHAR_TYPE__;int;__WINT_TYPE__;unsigned int;__INTMAX_TYPE__;long int;__UINTMAX_TYPE__;long unsigned int;__CHAR16_TYPE__;short unsigned int;__CHAR32_TYPE__;unsigned int;__GXX_WEAK__;1;__DEPRECATED;1;__GXX_RTTI;1;__EXCEPTIONS;1;__GXX_ABI_VERSION;1002;__SCHAR_MAX__;127;__SHRT_MAX__;32767;__INT_MAX__;2147483647;__LONG_MAX__;9223372036854775807L;__LONG_LONG_MAX__;9223372036854775807LL;__WCHAR_MAX__;2147483647;__CHAR_BIT__;8;__INTMAX_MAX__;9223372036854775807L;__FLT_EVAL_METHOD__; ;__DEC_EVAL_METHOD__;2;__FLT_RADIX__;2;__FLT_MANT_DIG__;24;__FLT_DIG__;6;__FLT_MIN_EXP__;(-125);__FLT_MIN_10_EXP__;(-37);__FLT_MAX_EXP__;128;__FLT_MAX_10_EXP__;38;__FLT_MAX__;3.40282347e+38F;__FLT_MIN__;1.17549435e-38F;__FLT_EPSILON__;1.19209290e-7F;__FLT_DENORM_MIN__;1.40129846e-45F;__FLT_HAS_DENORM__;1;__FLT_HAS_INFINITY__;1;__FLT_HAS_QUIET_NAN__;1;__DBL_MANT_DIG__;53;__DBL_DIG__;15;__DBL_MIN_EXP__;(-1021);__DBL_MIN_10_EXP__;(-307);__DBL_MAX_EXP__;1024;__DBL_MAX_10_EXP__;308;__DBL_MAX__;1.7976931348623157e+308;__DBL_MIN__;2.2250738585072014e-308;__DBL_EPSILON__;2.2204460492503131e-16;__DBL_DENORM_MIN__;4.9406564584124654e-324;__DBL_HAS_DENORM__;1;__DBL_HAS_INFINITY__;1;__DBL_HAS_QUIET_NAN__;1;__LDBL_MANT_DIG__;64;__LDBL_DIG__;18;__LDBL_MIN_EXP__;(-16381);__LDBL_MIN_10_EXP__;(-4931);__LDBL_MAX_EXP__;16384;__LDBL_MAX_10_EXP__;4932;__DECIMAL_DIG__;21;__LDBL_MAX__;1.18973149535723176502e+4932L;__LDBL_MIN__;3.36210314311209350626e-4932L;__LDBL_EPSILON__;1.08420217248550443401e-19L;__LDBL_DENORM_MIN__;3.64519953188247460253e-4951L;__LDBL_HAS_DENORM__;1;__LDBL_HAS_INFINITY__;1;__LDBL_HAS_QUIET_NAN__;1;__DEC32_MANT_DIG__;7;__DEC32_MIN_EXP__;(-94);__DEC32_MAX_EXP__;97;__DEC32_MIN__;1E-95DF;__DEC32_MAX__;9.999999E96DF;__DEC32_EPSILON__;1E-6DF;__DEC32_SUBNORMAL_MIN__;0.000001E-95DF;__DEC64_MANT_DIG__;16;__DEC64_MIN_EXP__;(-382);__DEC64_MAX_EXP__;385;__DEC64_MIN__;1E-383DD;__DEC64_MAX__;9.999999999999999E384DD;__DEC64_EPSILON__;1E-15DD;__DEC64_SUBNORMAL_MIN__;0.000000000000001E-383DD;__DEC128_MANT_DIG__;34;__DEC128_MIN_EXP__;(-6142);__DEC128_MAX_EXP__;6145;__DEC128_MIN__;1E-6143DL;__DEC128_MAX__;9.999999999999999999999999999999999E6144DL;__DEC128_EPSILON__;1E-33DL;__DEC128_SUBNORMAL_MIN__;0.000000000000000000000000000000001E-6143DL;__REGISTER_PREFIX__; ;__USER_LABEL_PREFIX__; ;__VERSION__;"4.4.7 20120313 (Red Hat 4.4.7-3)";__GNUC_GNU_INLINE__;1;_LP64;1;__LP64__;1;__NO_INLINE__;1;__FINITE_MATH_ONLY__; ;__GCC_HAVE_SYNC_COMPARE_AND_SWAP_1;1;__GCC_HAVE_SYNC_COMPARE_AND_SWAP_2;1;__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4;1;__GCC_HAVE_SYNC_COMPARE_AND_SWAP_8;1;__GCC_HAVE_DWARF2_CFI_ASM;1;__SIZEOF_INT__;4;__SIZEOF_LONG__;8;__SIZEOF_LONG_LONG__;8;__SIZEOF_SHORT__;2;__SIZEOF_FLOAT__;4;__SIZEOF_DOUBLE__;8;__SIZEOF_LONG_DOUBLE__;16;__SIZEOF_SIZE_T__;8;__SIZEOF_WCHAR_T__;4;__SIZEOF_WINT_T__;4;__SIZEOF_PTRDIFF_T__;8;__SIZEOF_POINTER__;8;__amd64;1;__amd64__;1;__x86_64;1;__x86_64__;1;__k8;1;__k8__;1;__MMX__;1;__SSE__;1;__SSE2__;1;__SSE_MATH__;1;__SSE2_MATH__;1;__gnu_linux__;1;__linux;1;__linux__;1;linux;1;__unix;1;__unix__;1;unix;1;__ELF__;1;__DECIMAL_BID_FORMAT__;1;__BIGGEST_ALIGNMENT__;16;_GNU_SOURCE;1
//CXX compiler system include directories
CMAKE_EXTRA_GENERATOR_CXX_SYSTEM_INCLUDE_DIRS:INTERNAL=/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7;/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/x86_64-redhat-linux;/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/backward;/usr/local/include;/usr/lib/gcc/x86_64-redhat-linux/4.4.7/include;/usr/include
//C compiler system defined macros
CMAKE_EXTRA_GENERATOR_C_SYSTEM_DEFINED_MACROS:INTERNAL=__STDC__;1;__STDC_HOSTED__;1;__GNUC__;4;__GNUC_MINOR__;4;__GNUC_PATCHLEVEL__;7;__GNUC_RH_RELEASE__;3;__SIZE_TYPE__;long unsigned int;__PTRDIFF_TYPE__;long int;__WCHAR_TYPE__;int;__WINT_TYPE__;unsigned int;__INTMAX_TYPE__;long int;__UINTMAX_TYPE__;long unsigned int;__CHAR16_TYPE__;short unsigned int;__CHAR32_TYPE__;unsigned int;__GXX_ABI_VERSION;1002;__SCHAR_MAX__;127;__SHRT_MAX__;32767;__INT_MAX__;2147483647;__LONG_MAX__;9223372036854775807L;__LONG_LONG_MAX__;9223372036854775807LL;__WCHAR_MAX__;2147483647;__CHAR_BIT__;8;__INTMAX_MAX__;9223372036854775807L;__FLT_EVAL_METHOD__; ;__DEC_EVAL_METHOD__;2;__FLT_RADIX__;2;__FLT_MANT_DIG__;24;__FLT_DIG__;6;__FLT_MIN_EXP__;(-125);__FLT_MIN_10_EXP__;(-37);__FLT_MAX_EXP__;128;__FLT_MAX_10_EXP__;38;__FLT_MAX__;3.40282347e+38F;__FLT_MIN__;1.17549435e-38F;__FLT_EPSILON__;1.19209290e-7F;__FLT_DENORM_MIN__;1.40129846e-45F;__FLT_HAS_DENORM__;1;__FLT_HAS_INFINITY__;1;__FLT_HAS_QUIET_NAN__;1;__DBL_MANT_DIG__;53;__DBL_DIG__;15;__DBL_MIN_EXP__;(-1021);__DBL_MIN_10_EXP__;(-307);__DBL_MAX_EXP__;1024;__DBL_MAX_10_EXP__;308;__DBL_MAX__;1.7976931348623157e+308;__DBL_MIN__;2.2250738585072014e-308;__DBL_EPSILON__;2.2204460492503131e-16;__DBL_DENORM_MIN__;4.9406564584124654e-324;__DBL_HAS_DENORM__;1;__DBL_HAS_INFINITY__;1;__DBL_HAS_QUIET_NAN__;1;__LDBL_MANT_DIG__;64;__LDBL_DIG__;18;__LDBL_MIN_EXP__;(-16381);__LDBL_MIN_10_EXP__;(-4931);__LDBL_MAX_EXP__;16384;__LDBL_MAX_10_EXP__;4932;__DECIMAL_DIG__;21;__LDBL_MAX__;1.18973149535723176502e+4932L;__LDBL_MIN__;3.36210314311209350626e-4932L;__LDBL_EPSILON__;1.08420217248550443401e-19L;__LDBL_DENORM_MIN__;3.64519953188247460253e-4951L;__LDBL_HAS_DENORM__;1;__LDBL_HAS_INFINITY__;1;__LDBL_HAS_QUIET_NAN__;1;__DEC32_MANT_DIG__;7;__DEC32_MIN_EXP__;(-94);__DEC32_MAX_EXP__;97;__DEC32_MIN__;1E-95DF;__DEC32_MAX__;9.999999E96DF;__DEC32_EPSILON__;1E-6DF;__DEC32_SUBNORMAL_MIN__;0.000001E-95DF;__DEC64_MANT_DIG__;16;__DEC64_MIN_EXP__;(-382);__DEC64_MAX_EXP__;385;__DEC64_MIN__;1E-383DD;__DEC64_MAX__;9.999999999999999E384DD;__DEC64_EPSILON__;1E-15DD;__DEC64_SUBNORMAL_MIN__;0.000000000000001E-383DD;__DEC128_MANT_DIG__;34;__DEC128_MIN_EXP__;(-6142);__DEC128_MAX_EXP__;6145;__DEC128_MIN__;1E-6143DL;__DEC128_MAX__;9.999999999999999999999999999999999E6144DL;__DEC128_EPSILON__;1E-33DL;__DEC128_SUBNORMAL_MIN__;0.000000000000000000000000000000001E-6143DL;__REGISTER_PREFIX__; ;__USER_LABEL_PREFIX__; ;__VERSION__;"4.4.7 20120313 (Red Hat 4.4.7-3)";__GNUC_GNU_INLINE__;1;_LP64;1;__LP64__;1;__NO_INLINE__;1;__FINITE_MATH_ONLY__; ;__GCC_HAVE_SYNC_COMPARE_AND_SWAP_1;1;__GCC_HAVE_SYNC_COMPARE_AND_SWAP_2;1;__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4;1;__GCC_HAVE_SYNC_COMPARE_AND_SWAP_8;1;__GCC_HAVE_DWARF2_CFI_ASM;1;__SIZEOF_INT__;4;__SIZEOF_LONG__;8;__SIZEOF_LONG_LONG__;8;__SIZEOF_SHORT__;2;__SIZEOF_FLOAT__;4;__SIZEOF_DOUBLE__;8;__SIZEOF_LONG_DOUBLE__;16;__SIZEOF_SIZE_T__;8;__SIZEOF_WCHAR_T__;4;__SIZEOF_WINT_T__;4;__SIZEOF_PTRDIFF_T__;8;__SIZEOF_POINTER__;8;__amd64;1;__amd64__;1;__x86_64;1;__x86_64__;1;__k8;1;__k8__;1;__MMX__;1;__SSE__;1;__SSE2__;1;__SSE_MATH__;1;__SSE2_MATH__;1;__gnu_linux__;1;__linux;1;__linux__;1;linux;1;__unix;1;__unix__;1;unix;1;__ELF__;1;__DECIMAL_BID_FORMAT__;1;__BIGGEST_ALIGNMENT__;16
//C compiler system include directories
CMAKE_EXTRA_GENERATOR_C_SYSTEM_INCLUDE_DIRS:INTERNAL=/usr/local/include;/usr/lib/gcc/x86_64-redhat-linux/4.4.7/include;/usr/include
//Name of generator.
CMAKE_GENERATOR:INTERNAL=Unix Makefiles
//Name of generator toolset.
CMAKE_GENERATOR_TOOLSET:INTERNAL=
//Start directory with the top level CMakeLists.txt file for this
// project
CMAKE_HOME_DIRECTORY:INTERNAL=/j/HOME/yys/dev/mybox/mystring
//Install .so files without execute permission.
CMAKE_INSTALL_SO_NO_EXE:INTERNAL=0
//ADVANCED property for variable: CMAKE_LINKER
CMAKE_LINKER-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MAKE_PROGRAM
CMAKE_MAKE_PROGRAM-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS
CMAKE_MODULE_LINKER_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_DEBUG
CMAKE_MODULE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL
CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELEASE
CMAKE_MODULE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO
CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_NM
CMAKE_NM-ADVANCED:INTERNAL=1
//number of local generators
CMAKE_NUMBER_OF_LOCAL_GENERATORS:INTERNAL=2
//ADVANCED property for variable: CMAKE_OBJCOPY
CMAKE_OBJCOPY-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_OBJDUMP
CMAKE_OBJDUMP-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_RANLIB
CMAKE_RANLIB-ADVANCED:INTERNAL=1
//Path to CMake installation.
CMAKE_ROOT:INTERNAL=/usr/share/cmake
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS
CMAKE_SHARED_LINKER_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_DEBUG
CMAKE_SHARED_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL
CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELEASE
CMAKE_SHARED_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO
CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SKIP_INSTALL_RPATH
CMAKE_SKIP_INSTALL_RPATH-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SKIP_RPATH
CMAKE_SKIP_RPATH-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS
CMAKE_STATIC_LINKER_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_DEBUG
CMAKE_STATIC_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL
CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELEASE
CMAKE_STATIC_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO
CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_STRIP
CMAKE_STRIP-ADVANCED:INTERNAL=1
//Suppress Warnings that are meant for the author of the CMakeLists.txt
// files.
CMAKE_SUPPRESS_DEVELOPER_WARNINGS:INTERNAL=FALSE
//uname command
CMAKE_UNAME:INTERNAL=/bin/uname
//ADVANCED property for variable: CMAKE_USE_RELATIVE_PATHS
CMAKE_USE_RELATIVE_PATHS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_VERBOSE_MAKEFILE
CMAKE_VERBOSE_MAKEFILE-ADVANCED:INTERNAL=1
-------------------------------------------------------
(It says that the message exceeds the maximum allowed length (20000 characters), so I post the rest in the following reply)

Offline yaoyansi

  • Multiple posting newcomer
  • *
  • Posts: 31
But now I have another problem(Continue 2)
« Reply #5 on: January 27, 2015, 04:42:46 am »
Here is the generated project script.
Code
-----------------------mystring.cbp--------------------
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_project_file>
   <FileVersion major="1" minor="6" />
   <Project>
      <Option title="mystring" />
      <Option makefile_is_custom="1" />
      <Option compiler="gcc" />
      <Option virtualFolders="CMake Files\;CMake Files\build\;CMake Files\build\cmake\;CMake Files\build\cmake\Modules\;CMake Files\src\;" />
      <Build>
      <Target title="all">
         <Option working_dir="/j/HOME/yys/dev/mybox_build/mystring12" />
         <Option type="4" />
         <MakeCommands>
            <Build command="/usr/bin/gmake -f &quot;/j/HOME/yys/dev/mybox_build/mystring12/Makefile&quot;  VERBOSE=1 all" />
            <CompileFile command="/usr/bin/gmake -f &quot;/j/HOME/yys/dev/mybox_build/mystring12/Makefile&quot;  VERBOSE=1 &quot;$file&quot;" />
            <Clean command="/usr/bin/gmake -f &quot;/j/HOME/yys/dev/mybox_build/mystring12/Makefile&quot;  VERBOSE=1 clean" />
            <DistClean command="/usr/bin/gmake -f &quot;/j/HOME/yys/dev/mybox_build/mystring12/Makefile&quot;  VERBOSE=1 clean" />
         </MakeCommands>
      </Target>
      <Target title="edit_cache">
         <Option working_dir="/j/HOME/yys/dev/mybox_build/mystring12" />
         <Option type="4" />
         <MakeCommands>
            <Build command="/usr/bin/gmake -f &quot;/j/HOME/yys/dev/mybox_build/mystring12/Makefile&quot;  VERBOSE=1 edit_cache" />
            <CompileFile command="/usr/bin/gmake -f &quot;/j/HOME/yys/dev/mybox_build/mystring12/Makefile&quot;  VERBOSE=1 &quot;$file&quot;" />
            <Clean command="/usr/bin/gmake -f &quot;/j/HOME/yys/dev/mybox_build/mystring12/Makefile&quot;  VERBOSE=1 clean" />
            <DistClean command="/usr/bin/gmake -f &quot;/j/HOME/yys/dev/mybox_build/mystring12/Makefile&quot;  VERBOSE=1 clean" />
         </MakeCommands>
      </Target>
      <Target title="rebuild_cache">
         <Option working_dir="/j/HOME/yys/dev/mybox_build/mystring12" />
         <Option type="4" />
         <MakeCommands>
            <Build command="/usr/bin/gmake -f &quot;/j/HOME/yys/dev/mybox_build/mystring12/Makefile&quot;  VERBOSE=1 rebuild_cache" />
            <CompileFile command="/usr/bin/gmake -f &quot;/j/HOME/yys/dev/mybox_build/mystring12/Makefile&quot;  VERBOSE=1 &quot;$file&quot;" />
            <Clean command="/usr/bin/gmake -f &quot;/j/HOME/yys/dev/mybox_build/mystring12/Makefile&quot;  VERBOSE=1 clean" />
            <DistClean command="/usr/bin/gmake -f &quot;/j/HOME/yys/dev/mybox_build/mystring12/Makefile&quot;  VERBOSE=1 clean" />
         </MakeCommands>
      </Target>
      <Target title="mystring">
         <Option output="/j/HOME/yys/dev/mybox/mystring/plug-ins/mystring.so" prefix_auto="0" extension_auto="0" />
         <Option working_dir="/j/HOME/yys/dev/mybox_build/mystring12/src" />
         <Option object_output="./" />
         <Option type="3" />
         <Option compiler="gcc" />
         <Compiler>
            <Add option="-DREQUIRE_IOSTREAM" />
            <Add option="-D_BOOL" />
            <Add option="-DLINUX" />
            <Add option="-D_LINUX" />
            <Add option="-DLINUX_64" />
            <Add directory="/usr/autodesk/maya/include" />
            <Add directory="/usr/include" />
            <Add directory="/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7" />
            <Add directory="/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/backward" />
            <Add directory="/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/x86_64-redhat-linux" />
            <Add directory="/usr/lib/gcc/x86_64-redhat-linux/4.4.7/include" />
            <Add directory="/usr/local/include" />
         </Compiler>
         <MakeCommands>
            <Build command="/usr/bin/gmake -f &quot;/j/HOME/yys/dev/mybox_build/mystring12/src/Makefile&quot;  VERBOSE=1 mystring" />
            <CompileFile command="/usr/bin/gmake -f &quot;/j/HOME/yys/dev/mybox_build/mystring12/src/Makefile&quot;  VERBOSE=1 &quot;$file&quot;" />
            <Clean command="/usr/bin/gmake -f &quot;/j/HOME/yys/dev/mybox_build/mystring12/src/Makefile&quot;  VERBOSE=1 clean" />
            <DistClean command="/usr/bin/gmake -f &quot;/j/HOME/yys/dev/mybox_build/mystring12/src/Makefile&quot;  VERBOSE=1 clean" />
         </MakeCommands>
      </Target>
      <Target title="mystring/fast">
         <Option output="/j/HOME/yys/dev/mybox/mystring/plug-ins/mystring.so" prefix_auto="0" extension_auto="0" />
         <Option working_dir="/j/HOME/yys/dev/mybox_build/mystring12/src" />
         <Option object_output="./" />
         <Option type="3" />
         <Option compiler="gcc" />
         <Compiler>
            <Add option="-DREQUIRE_IOSTREAM" />
            <Add option="-D_BOOL" />
            <Add option="-DLINUX" />
            <Add option="-D_LINUX" />
            <Add option="-DLINUX_64" />
            <Add directory="/usr/autodesk/maya/include" />
            <Add directory="/usr/include" />
            <Add directory="/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7" />
            <Add directory="/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/backward" />
            <Add directory="/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/x86_64-redhat-linux" />
            <Add directory="/usr/lib/gcc/x86_64-redhat-linux/4.4.7/include" />
            <Add directory="/usr/local/include" />
         </Compiler>
         <MakeCommands>
            <Build command="/usr/bin/gmake -f &quot;/j/HOME/yys/dev/mybox_build/mystring12/src/Makefile&quot;  VERBOSE=1 mystring/fast" />
            <CompileFile command="/usr/bin/gmake -f &quot;/j/HOME/yys/dev/mybox_build/mystring12/src/Makefile&quot;  VERBOSE=1 &quot;$file&quot;" />
            <Clean command="/usr/bin/gmake -f &quot;/j/HOME/yys/dev/mybox_build/mystring12/src/Makefile&quot;  VERBOSE=1 clean" />
            <DistClean command="/usr/bin/gmake -f &quot;/j/HOME/yys/dev/mybox_build/mystring12/src/Makefile&quot;  VERBOSE=1 clean" />
         </MakeCommands>
      </Target>
      </Build>
      <Unit filename="/j/HOME/yys/dev/mybox/mystring/src/main.cpp">
      </Unit>
      <Unit filename="/j/HOME/yys/dev/mybox/mystring/src/mystring.cpp">
      </Unit>
      <Unit filename="/j/HOME/yys/dev/mybox/mystring/src/plugin.cpp">
      </Unit>
      <Unit filename="/j/HOME/yys/dev/mybox/mystring/src/mystring.h">
      </Unit>
      <Unit filename="/j/HOME/yys/dev/mybox/mystring/CMakeLists.txt">
          <Option virtualFolder="CMake Files\" />
      </Unit>
      <Unit filename="/j/HOME/yys/dev/mybox/mystring/build/cmake/Modules/FindMaya.cmake">
          <Option virtualFolder="CMake Files\build\cmake\Modules\" />
      </Unit>
      <Unit filename="/j/HOME/yys/dev/mybox/mystring/src/CMakeLists.txt">
          <Option virtualFolder="CMake Files\src\" />
      </Unit>
   </Project>
</CodeBlocks_project_file>
-------------------------------------------------------

Offline yaoyansi

  • Multiple posting newcomer
  • *
  • Posts: 31
But now I have another problem(Continue 3)
« Reply #6 on: January 27, 2015, 04:43:25 am »
- launch codeblocks and open my project.
Code
----------------------log-------------------------------
$  codeblocks
Starting Code::Blocks svn build  rev 10074 Jan 21 2015, 18:58:42 - wx2.8.12 (Linux, unicode) - 64 bit
Initialize EditColourSet .....
Initialize EditColourSet: done.
Loading menubar...
BYOGames: loaded
Valgrind: loaded
RegExTestbed: loaded
cbKeyBinder: loaded
CodeCompletion: loaded
FileManager: loaded
EnvVars: loaded
ProjectOptionsManipulator: loaded
cbDragScroll: loaded
wxSmithContribItems: loaded
SmartIndentLua: loaded
HexEditor: loaded
ClassWizard: loaded
DoxyBlocks: loaded
lib_finder: loaded
wxSmithAui: loaded
ToDoList: loaded
SmartIndentCpp: loaded
FilesExtensionHandler: loaded
CodeSnippets: loaded
EditorConfig: loaded
ThreadSearch: loaded
ToolsPlus: loaded
Debugger: loaded
OpenFilesList: loaded
SmartIndentPython: loaded
Autosave: loaded
Cccc: loaded
copystrings: loaded
SpellChecker: loaded
Exporter: loaded
IncrementalSearch: loaded
SmartIndentHDL: loaded
SmartIndentFortran: loaded
AStylePlugin: loaded
Profiler: loaded
NassiShneidermanPlugin: loaded
HeaderFixup: loaded
BrowseTracker: loaded
Abbreviations: loaded
CB_Koders: loaded
SmartIndentXML: loaded
ProjectsImporter: loaded
SmartIndentPascal: loaded
CodeStat: loaded
SymTab: loaded
ScriptedWizard: loaded
Cscope: loaded
HelpPlugin: loaded
EditorTweaks: loaded
MouseSap: loaded
wxSmith: loaded
wxSmithMime: loaded
OccurrencesHighlighting: loaded
CppCheck: loaded
Compiler: loaded
AutoVersioning: loaded
ReopenEditor: loaded
BYO Games plugin activated
Valgrind plugin activated
Regular expressions testbed plugin activated
Keyboard shortcuts plugin activated
Code completion plugin activated
FileManager plugin activated
Environment variables plugin activated
Project options manipulator plugin activated
DragScroll plugin activated
wxSmith - Contrib Items plugin activated
SmartIndentLua plugin activated
HexEditor plugin activated
Class wizard plugin activated
DoxyBlocks plugin activated
ClassBrowser::UpdateClassBrowserView(): No active project available.
ClassBrowser::OnThreadEvent(): Updating class browser...
ClassBrowser::OnThreadEvent(): Class browser updated.
Library finder plugin activated
wxSmith - Aui plugin activated
Todo List plugin activated
SmartIndentCpp plugin activated
Files extension handler plugin activated
Code snippets plugin activated
EditorConfig plugin for Code::Blocks plugin activated
ThreadSearch plugin activated
ToolsPlus plugin activated
Debugger plugin activated
Open files list plugin activated
SmartIndentPython plugin activated
Autosave plugin activated
Cccc plugin activated
Copy Strings to clipboard plugin activated
SpellChecker plugin activated
Source Exporter plugin activated
IncrementalSearch plugin activated
SmartIndentHDL plugin activated
SmartIndentFortran plugin activated
Source code formatter (AStyle) plugin activated
Code profiler plugin activated
NassiShneidermanPlugin plugin activated
Header Fixup plugin activated
BrowseTracker plugin activated
Abbreviations plugin activated
Koders query plugin activated
SmartIndentXML plugin activated
Foreign projects importer plugin activated
SmartIndentPascal plugin activated
Code statistics plugin activated
Symbol Table Plugin plugin activated
Project wizard added for 'Empty project'
Project wizard added for 'Fortran application'
Project wizard added for 'Fortran library'
Project wizard added for 'Fortran DLL'
Project wizard added for 'Console application'
Project wizard added for 'D application'
Project wizard added for 'FLTK project'
Project wizard added for 'GLFW project'
Project wizard added for 'GLUT project'
Project wizard added for 'GTK+ project'
Project wizard added for 'Irrlicht project'
Project wizard added for 'Lightfeather project'
Project wizard added for 'Matlab project'
Project wizard added for 'OpenCV project'
Project wizard added for 'OpenGL project'
Project wizard added for 'Ogre project'
Project wizard added for 'Code::Blocks plugin'
Project wizard added for 'QT4 project'
Project wizard added for 'SDL project'
Project wizard added for 'SFML project'
Project wizard added for 'Static library'
Project wizard added for 'Shared library'
Project wizard added for 'wxWidgets project'
Build-target wizard added for 'Console'
Build-target wizard added for 'Static library'
Build-target wizard added for 'wxWidgets'
Project wizard added for 'ARM Project'
Project wizard added for 'AVR Project'
Project wizard added for 'TriCore Project'
Project wizard added for 'PowerPC Project'
Project wizard added for 'MCS51 Project'
File(s) wizard added for 'Empty file'
File(s) wizard added for 'C/C++ source'
File(s) wizard added for 'C/C++ header'
File(s) wizard added for 'Fortran source'
Scripted wizard plugin activated
Cscope plugin activated
Help plugin plugin activated
Editor Tweaks plugin: Building menu
Editor Tweaks plugin: making the menu 14
EditorTweaks plugin activated
MouseSap plugin activated
wxSmith plugin activated
wxSmith - MIME plugin plugin activated
OccurrencesHighlighting plugin activated
CppCheck plugin activated
Added compiler "GNU GCC Compiler"
Added compiler "Intel C/C++ Compiler"
Added compiler "GDC D Compiler"
Added compiler "GNU Fortran Compiler"
Added compiler "G95 Fortran Compiler"
Added compiler "GNU GCC Compiler for ARM"
Added compiler "PGI Fortran Compiler"
Added compiler "GNU GCC Compiler for LM8"
Added compiler "GNU GCC Compiler for LM32"
Added compiler "Tiny C Compiler"
Added compiler "Digital Mars D Compiler"
Added compiler "Small Device C Compiler"
Added compiler "GNU GCC Compiler for AVR"
Added compiler "GNU GCC Compiler for TriCore"
Added compiler "LLVM D Compiler"
Added compiler "LLVM Clang Compiler"
Added compiler "GNU GCC Compiler for ZPU"
Added compiler "GNU GCC Compiler for MSP430"
Added compiler "GNU GCC Compiler for PowerPC"
Added compiler "*No Compiler*"
Compiler plugin activated
AutoVersioning plugin activated
ReopenEditor plugin activated
Loading toolbar...
Initializing plugins...
Loading project file...
Parsing project file...
Loading target all
Loading target edit_cache
Loading target rebuild_cache
Loading target mystring
Loading target mystring/fast
Loading project files...
7 files loaded
Done loading project in 8ms
Project's base path: /mnt/sg_home/yys/dev/mybox_build/mystring12/
Project's common toplevel path: /
NativeParser::GetGCCCompilerDirs(): Caching GCC default include dir: /usr/include/c++/4.4.7
NativeParser::GetGCCCompilerDirs(): Caching GCC default include dir: /usr/include/c++/4.4.7/x86_64-redhat-linux
NativeParser::GetGCCCompilerDirs(): Caching GCC default include dir: /usr/include/c++/4.4.7/backward
NativeParser::GetGCCCompilerDirs(): Caching GCC default include dir: /usr/local/include
NativeParser::GetGCCCompilerDirs(): Caching GCC default include dir: /usr/lib/gcc/x86_64-redhat-linux/4.4.7/include
NativeParser::GetGCCCompilerDirs(): Caching GCC default include dir: /usr/include
NativeParser::DoFullParsing(): AddCompilerPredefinedMacros failed!
NativeParser::DoFullParsing(): AddProjectDefinedMacros failed!
NativeParser::DoFullParsing(): Adding cpp/c files to batch-parser
NativeParser::DoFullParsing(): Added 3 source file(s) for project 'mystring' to batch-parser...
ClassBrowser::UpdateClassBrowserView(): No active project available.
NativeParser::CreateParser(): Finish creating a new parser for project 'mystring'
ClassBrowser::OnThreadEvent(): Updating class browser...
ClassBrowser::OnThreadEvent(): Class browser updated.
NativeParser::OnParserStart(): Starting batch parsing for project 'mystring'...
ReadClsNames() : Unexpected token '((__aligned__))' for 'struct60___pthread_unwind_buf_t', file '/usr/include/pthread.h', line 515.
NativeParser::OnParserEnd(): Project 'mystring' parsing stage done!
Project 'mystring' parsing stage done (102 total parsed files, 4199 tokens in 0 minute(s), 0.269 seconds).
ClassBrowser::OnThreadEvent(): Updating class browser...
ClassBrowser::OnThreadEvent(): Class browser updated.
-----------------------------------------------------


- It works well if I double click a .h file in Codeblocks, here is the log
Code
-------------------------log----------------------------
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 41)
Editor Open
NativeParser::GetAllPathsByFilename(): Traversing '/mnt/sg_home/yys/dev/mybox/mystring/src' for: mystring.*
NativeParser::GetAllPathsByFilename(): Found 2 files:
- /mnt/sg_home/yys/dev/mybox/mystring/src/mystring.cpp
- /mnt/sg_home/yys/dev/mybox/mystring/src/mystring.h
ClassBrowser::OnThreadEvent(): Updating class browser...
ClassBrowser::OnThreadEvent(): Class browser updated.
-----------------------------------------------------


- But codeblocks is blocked if I double click a .cpp file in Codeblocks. I don't know why, and I have to kill the codeblock precess by force. here is the log.
Code
-------------------------log----------------------------
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 41)
Editor Open
Killed
-----------------------------------------------------


I'm going to set breakpoints in my *.cpp files but I can't open the .cpp file in CodeBlocks at all. Could you give me any clue to solve this problem?


BTW
Finally, I find a temp solution to walk around this problem. The solution is to modify all of the absolute source file paths to relative file paths in the generated *.cbp file manually, here is the step:
For example, modify:
Code
<Unit filename="/j/HOME/yys/dev/mybox/mystring/src/main.cpp"></Unit>
<Unit filename="/j/HOME/yys/dev/mybox/mystring/src/mystring.cpp"></Unit>
<Unit filename="/j/HOME/yys/dev/mybox/mystring/src/plugin.cpp"></Unit>
<Unit filename="/j/HOME/yys/dev/mybox/mystring/src/mystring.h"></Unit>
<Unit filename="/j/HOME/yys/dev/mybox/mystring/CMakeLists.txt">
     <Option virtualFolder="CMake Files\" />
</Unit>
<Unit filename="/j/HOME/yys/dev/mybox/mystring/build/cmake/Modules/FindMaya.cmake">
     <Option virtualFolder="CMake Files\build\cmake\Modules\" />
</Unit>
<Unit filename="/j/HOME/yys/dev/mybox/mystring/src/CMakeLists.txt">
     <Option virtualFolder="CMake Files\src\" />
</Unit>
to:
Code
<Unit filename="../../mybox/mystring/CMakeLists.txt">
<Option virtualFolder="CMake Files/../../../../../../j/HOME/yys/dev/mybox/mystring/" /></Unit>
<Unit filename="../../mybox/mystring/build/cmake/Modules/FindMaya.cmake">
<Option virtualFolder="CMake Files/../../../../../../j/HOME/yys/dev/mybox/mystring/build/cmake/Modules/" /></Unit>
<Unit filename="../../mybox/mystring/src/CMakeLists.txt">
<Option virtualFolder="CMake Files/../../../../../../j/HOME/yys/dev/mybox/mystring/src/" /></Unit>
<Unit filename="../../mybox/mystring/src/main.cpp" />
<Unit filename="../../mybox/mystring/src/mystring.cpp" />
<Unit filename="../../mybox/mystring/src/mystring.h" />
<Unit filename="../../mybox/mystring/src/plugin.cpp" />

- Codeblocks is not blocked anymore if I double click a .cpp file in Codeblocks. here is the log
Code
----------------------log-------------------------------------------
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 41)
Editor Open
NativeParser::GetAllPathsByFilename(): Traversing '/mnt/sg_home/yys/dev/mybox/mystring/src' for: main.*
NativeParser::GetAllPathsByFilename(): Traversing ' - /mnt/sg_home/yys/dev/' for: main.*
NativeParser::GetAllPathsByFilename(): Found 1 files:
- /mnt/sg_home/yys/dev/mybox/mystring/src/main.cpp
ClassBrowser::OnThreadEvent(): Updating class browser...
ClassBrowser::OnThreadEvent(): Class browser updated.
-----------------------------------------------------------------

But I'm not satisfied with this temp solution at all, because I have to change the generated *.cbp file. So I still need your help to solve my problem.


Regards
« Last Edit: January 27, 2015, 04:49:35 am by yaoyansi »

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6034
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
@yaoyansi
If the logs are too long, you can save to a txt file and attach to the post.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline yaoyansi

  • Multiple posting newcomer
  • *
  • Posts: 31
It seems that I have the same problem which is mentioned in these two posts:
http://forums.codeblocks.org/index.php/topic,19469.0.html
http://forums.codeblocks.org/index.php/topic,18474.0.html

My home directory /j/HOME(it equals to/mnt/sg_home/) has 396 sub-directories.






Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Things to try:
1. Disable the code completion plugin
2. Install a night build. Jens provide binaries for centos 6, so you should be fine finding one in his repos.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline yaoyansi

  • Multiple posting newcomer
  • *
  • Posts: 31
Things to try:
1. Disable the code completion plugin
CoooooooooL! Man! This is a good solution. Thank you very much! :)

Here is the step for those who don't know how to do it:
- Follow the menu 'Plugins / Manage plugins '
- Find 'Code completion' plugin, press 'Disable'
« Last Edit: January 27, 2015, 10:28:37 am by yaoyansi »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
It is not a solution, but a workaround.
Can you install the latest nightly and then enabled the code completion plugin to see if the bug is still there?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline yaoyansi

  • Multiple posting newcomer
  • *
  • Posts: 31
Another way to avoid C::B from freezing
« Reply #12 on: January 31, 2015, 03:09:40 am »
Thanks for your reply, and I will try the latest package(svn 10090) later.

BTW, I find another way to walk around this problem(svn 10074), and you don't have to disable  'Code completion' plugin in 'Plugins / Manage plugins '
- In Projects tab of Management window, Right click on the project, select 'Project tree'
- Turn off 'Display folders as on disk' and turn on 'Hide folder name'
- Double click a source file, C::B will not freeze any more.